algolia / jekyll-algolia

Add fast and relevant search to your Jekyll site
https://community.algolia.com/jekyll-algolia/
MIT License
214 stars 35 forks source link

Deprecation: Called by ["C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/jekyll-3.8.5/lib/jekyll/document.rb:377:in `method_missing'"]. #127

Open clockshark opened 5 years ago

clockshark commented 5 years ago

I want to report a bug: Deprecation: Called by ["C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/jekyll-3.8.5/lib/jekyll/document.rb:377:in `method_missing'"]. Deprecation: Document#name is now a key in the #data hash.

What is the current behavior?

$ ALGOLIA_API_KEY='KEY_GOES_HERE' bundle exec jekyll algolia Configuration file: config.yml Processing site... Deprecation: Document#name is now a key in the #data hash. Deprecation: Called by ["C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/jekyll-3.8.5/lib/jekyll/document.rb:377:in method_missing'"]. Deprecation: Document#name is now a key in the #data hash. Deprecation: Called by ["C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/jekyll-3.8.5/lib/jekyll/document.rb:377:inmethod_missing'"]. Deprecation: Document#name is now a key in the #data hash. Deprecation: Called by ["C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/jekyll-3.8.5/lib/jekyll/document.rb:377:in method_missing'"]. Deprecation: Document#name is now a key in the #data hash. Deprecation: Called by ["C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/jekyll-3.8.5/lib/jekyll/document.rb:377:inmethod_missing'"]. Deprecation: Document#name is now a key in the #data hash. Deprecation: Called by ["C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/jekyll-3.8.5/lib/jekyll/document.rb:377:in method_missing'"]. Deprecation: Document#name is now a key in the #data hash. Deprecation: Called by ["C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/jekyll-3.8.5/lib/jekyll/document.rb:377:inmethod_missing'"]. Deprecation: Document#name is now a key in the #data hash. Deprecation: Called by ["C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/jekyll-3.8.5/lib/jekyll/document.rb:377:in method_missing'"]. Deprecation: Document#name is now a key in the #data hash. Deprecation: Called by ["C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/jekyll-3.8.5/lib/jekyll/document.rb:377:inmethod_missing'"]. Deprecation: Document#name is now a key in the #data hash. Deprecation: Called by ["C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/jekyll-3.8.5/lib/jekyll/document.rb:377:in method_missing'"]. Deprecation: Document#name is now a key in the #data hash. Deprecation: Called by ["C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/jekyll-3.8.5/lib/jekyll/document.rb:377:inmethod_missing'"]. Deprecation: Document#name is now a key in the #data hash. Deprecation: Called by ["C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/jekyll-3.8.5/lib/jekyll/document.rb:377:in method_missing'"]. Deprecation: Document#name is now a key in the #data hash. Deprecation: Called by ["C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/jekyll-3.8.5/lib/jekyll/document.rb:377:inmethod_missing'"]. Rendering to HTML (100%) |=====================================================| Deprecation: Document#name is now a key in the #data hash. | Deprecation: Called by ["C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/jekyll-3.8.5/lib/jekyll/document.rb:377:in method_missing'"]. Deprecation: Document#name is now a key in the #data hash. Deprecation: Called by ["C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/jekyll-3.8.5/lib/jekyll/document.rb:377:inmethod_missing'"]. Deprecation: Document#name is now a key in the #data hash. Deprecation: Called by ["C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/jekyll-3.8.5/lib/jekyll/document.rb:377:in method_missing'"]. Deprecation: Document#name is now a key in the #data hash. Deprecation: Called by ["C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/jekyll-3.8.5/lib/jekyll/document.rb:377:inmethod_missing'"]. Deprecation: Document#name is now a key in the #data hash. | Deprecation: Called by ["C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/jekyll-3.8.5/lib/jekyll/document.rb:377:in method_missing'"]. Deprecation: Document#name is now a key in the #data hash. Deprecation: Called by ["C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/jekyll-3.8.5/lib/jekyll/document.rb:377:inmethod_missing'"]. Deprecation: Document#name is now a key in the #data hash. Deprecation: Called by ["C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/jekyll-3.8.5/lib/jekyll/document.rb:377:in method_missing'"]. Deprecation: Document#name is now a key in the #data hash. Deprecation: Called by ["C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/jekyll-3.8.5/lib/jekyll/document.rb:377:inmethod_missing'"]. Deprecation: Document#name is now a key in the #data hash. Deprecation: Called by ["C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/jekyll-3.8.5/lib/jekyll/document.rb:377:in method_missing'"]. Deprecation: Document#name is now a key in the #data hash. Deprecation: Called by ["C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/jekyll-3.8.5/lib/jekyll/document.rb:377:inmethod_missing'"]. Deprecation: Document#name is now a key in the #data hash. Deprecation: Called by ["C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/jekyll-3.8.5/lib/jekyll/document.rb:377:in method_missing'"]. Deprecation: Document#name is now a key in the #data hash. Deprecation: Called by ["C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/jekyll-3.8.5/lib/jekyll/document.rb:377:inmethod_missing'"]. Extracting records (100%) |====================================================| Settings are already up to date. Getting list of existing records Content is already up to date. ✔ Indexing complete

What is your expected behavior? I should not be seeing the DEP errors

Git repository to reproduce the issue:

Ruby version used: $ ruby -v ruby 2.5.5p157 (2019-03-15 revision 67260) [x64-mingw32]

Jekyll version used: $ jekyll -v jekyll 3.8.5

Gemfile: group :jekyll_plugins do gem 'jekyll-algolia', '~> 1.0' end

_config.yml algolia: application_id: ID_HERE index_name: jekyll search_only_api_key: KEY_HERE