ota42y/openapi_parser

requiring 0.2.6 fails with uninitialized constant OpenAPIParser::DefinitionValidatable

adamruzicka opened this issue · 2 comments

Requiring openapi_parser fails with uninitialized constant OpenAPIParser::DefinitionValidatable. This happens only on 0.2.6, 0.2.5 seems to be fine.

Gemfile

source 'https://rubygems.org'

gem 'openapi_parser', '= 0.2.6'

reproducer.rb

require 'openapi_parser'

To reproduce, do the following

$ bundle install
Fetching gem metadata from https://rubygems.org/.
Resolving dependencies...
Using bundler 1.16.1
Using openapi_parser 0.2.6
Bundle complete! 1 Gemfile dependency, 2 gems now installed.
Use `bundle info [gemname]` to see where a bundled gem is installed.

$ bundle exec ruby runme.rb
Traceback (most recent call last):
        8: from runme.rb:1:in `<main>'
        7: from runme.rb:1:in `require'
        6: from /home/aruzicka/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/openapi_parser-0.2.6/lib/openapi_parser.rb:7:in `<top (required)>'                                                                                           
        5: from /home/aruzicka/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/openapi_parser-0.2.6/lib/openapi_parser.rb:7:in `require'                                                                                                    
        4: from /home/aruzicka/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/openapi_parser-0.2.6/lib/openapi_parser/schemas.rb:4:in `<top (required)>'                                                                                   
        3: from /home/aruzicka/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/openapi_parser-0.2.6/lib/openapi_parser/schemas.rb:4:in `require_relative'                                                                                   
        2: from /home/aruzicka/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/openapi_parser-0.2.6/lib/openapi_parser/schemas/openapi.rb:6:in `<top (required)>'                                                                           
        1: from /home/aruzicka/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/openapi_parser-0.2.6/lib/openapi_parser/schemas/openapi.rb:7:in `<module:Schemas>'                                                                           
/home/aruzicka/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/openapi_parser-0.2.6/lib/openapi_parser/schemas/openapi.rb:8:in `<class:OpenAPI>': uninitialized constant OpenAPIParser::DefinitionValidatable (NameError)

Sorry, I missed release.
I already release v0.2.7 so please use this.

Thank you for resolving this so quickly