algolia / algolia/jekyll-algolia
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'"].
- Dominant language
- Ruby
- Stars
- 211
- Forks
- 35
- PR merge metrics
- No merged PRs in 30d
Description
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: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: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: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: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: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: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: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: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: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: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:in `method_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: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: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: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: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: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: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: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: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: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: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:in `method_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
Contributor guide
Research direction
Start by reproducing `bundle exec jekyll algolia` with Ruby 2.5.5, Jekyll 3.8.5, the shown Gemfile, and `_config.yml`. Trace the jekyll-algolia entry point that processes documents and identify the source of the `Document#name` deprecation. Done means indexing completes without these deprecation messages.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- jekyll, ruby
- Domain
- search
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100