Closed rajeshkamal5050 closed 8 years ago
Facing the same from the terminal as well....
10:bin kamalr$ ./swagger-diff ../../../src/main/resources/account-1.0.json ../../../src/main/resources/account.json
NoMethodError: undefined method `lazy' for #<Enumerator:0x22bac7bc>
incompatible_request_params_enumerator at /Users/kamalr/git/spring-rest-swagger/sdk/sdk-docs/target/rubygems/gems/swagger-diff-1.0.5/lib/swagger/diff/diff.rb:91
requests_compatible? at /Users/kamalr/git/spring-rest-swagger/sdk/sdk-docs/target/rubygems/gems/swagger-diff-1.0.5/lib/swagger/diff/diff.rb:138
compatible? at /Users/kamalr/git/spring-rest-swagger/sdk/sdk-docs/target/rubygems/gems/swagger-diff-1.0.5/lib/swagger/diff/diff.rb:10
(root) at /Users/kamalr/git/spring-rest-swagger/sdk/sdk-docs/target/rubygems/gems/swagger-diff-1.0.5/exe/swagger-diff:8
load at org/jruby/RubyKernel.java:1087
(root) at ./swagger-diff:23
10:bin kamalr$ ruby -v
jruby 1.7.19 (1.9.3p551) 2015-01-29 20786bd on Java HotSpot(TM) 64-Bit Server VM 1.8.0_60-b27 +jit [darwin-x86_64]
Thank you for your feedback! Support for MRI 1.9.3 ended a year ago, so swagger-diff wasn't written with Ruby 1.9.3 in mind, and uses features not present in Ruby 1.9.3. Unfortunately, this includes JRuby 1.7.x. swagger-diff supports JRuby 9.0.4.0, so it should work without issue if you're able to update. We'll update swagger-diff to make this requirement explicit.
Thanks will @jeffreyc try with JRuby 9.0.4.0 and update here.
One more question. Is there a way using the Swagger-Diff to do this,
Delta of the NEW API's/Models which got added between different API versions and present it to the user as these are the new API Features?
Generating a list of new endpoints/parameters is not currently supported, but it should be relatively simple, and is something we have talked about adding. However, we're not currently working on that feature, and would welcome a PR adding this functionality.
Sure will add a PR.
It's been two weeks, so I'm going to trust that upgrading to JRuby 9.0.4.0 fixed your problem and close this issue. If you encounter additional problems, please either comment on this issue or create a new issue as appropriate. Thanks again for your feedback!
Using maven and swagger-diff gems with jruby-complete 1.7.21
Any inputs/suggestions will be great.