Closed kinman-enphase closed 10 years ago
Even I'm facing the same issue. Any solution to this??
Can you both try against the latest master and report back as the gem dependencies have been updated - thanks.
Looks like the same problem:
STARTING RAILS - set ENV['app_rev']=3.3.2, ENV['scm_rev']=N/A, RAILS_ENV=development
** Execute swagger:docs
rake aborted!
undefined method `source' for "GET":String
/Users/kinman/.rvm/gems/ruby-1.9.3-p484@master/bundler/gems/swagger-docs-4fc9db6b698b/lib/swagger/docs/generator.rb:151:in `get_route_path_apis'
/Users/kinman/.rvm/gems/ruby-1.9.3-p484@master/bundler/gems/swagger-docs-4fc9db6b698b/lib/swagger/docs/generator.rb:128:in `block in process_path'
/Users/kinman/.rvm/gems/ruby-1.9.3-p484@master/bundler/gems/swagger-docs-4fc9db6b698b/lib/swagger/docs/generator.rb:127:in `each'
/Users/kinman/.rvm/gems/ruby-1.9.3-p484@master/bundler/gems/swagger-docs-4fc9db6b698b/lib/swagger/docs/generator.rb:127:in `process_path'
/Users/kinman/.rvm/gems/ruby-1.9.3-p484@master/bundler/gems/swagger-docs-4fc9db6b698b/lib/swagger/docs/generator.rb:62:in `block in generate_doc'
/Users/kinman/.rvm/gems/ruby-1.9.3-p484@master/bundler/gems/swagger-docs-4fc9db6b698b/lib/swagger/docs/generator.rb:61:in `each'
/Users/kinman/.rvm/gems/ruby-1.9.3-p484@master/bundler/gems/swagger-docs-4fc9db6b698b/lib/swagger/docs/generator.rb:61:in `generate_doc'
/Users/kinman/.rvm/gems/ruby-1.9.3-p484@master/bundler/gems/swagger-docs-4fc9db6b698b/lib/swagger/docs/generator.rb:49:in `block in generate_docs'
/Users/kinman/.rvm/gems/ruby-1.9.3-p484@master/bundler/gems/swagger-docs-4fc9db6b698b/lib/swagger/docs/generator.rb:46:in `each'
/Users/kinman/.rvm/gems/ruby-1.9.3-p484@master/bundler/gems/swagger-docs-4fc9db6b698b/lib/swagger/docs/generator.rb:46:in `generate_docs'
/Users/kinman/.rvm/gems/ruby-1.9.3-p484@master/bundler/gems/swagger-docs-4fc9db6b698b/lib/swagger/docs/generator.rb:20:in `write_docs'
/Users/kinman/.rvm/gems/ruby-1.9.3-p484@master/bundler/gems/swagger-docs-4fc9db6b698b/lib/tasks/swagger.rake:5:in `block (2 levels) in <top (required)>'
Can you post your Gemfile and Gemfile.lock please.
Gemfile
source "https://rubygems.org"
gem "rails", "3.0.20"
gem "rake", "0.8.7"
gem "hoe", "2.8.0"
gem "rack", "1.2.5"
gem "redis", "~> 3.0"
gem "cocaine", "0.3.2"
gem "paperclip", "2.7.0"
gem "nokogiri", "1.5.1"
gem "libxml-ruby", "2.7.0"
gem "json", "1.5.3"
gem "yajl-ruby", "0.8.3"
gem "packet", "0.1.15"
gem "mysql2", "~> 0.2.18"
gem 'will_paginate', '~> 3.0'
gem "tzinfo", "0.3.38"
gem "net-ssh", '2.1.4'
gem "simple-rss", "1.3.1"
gem "airbrake", '3.1.8'
gem "cancan", '1.6.7'
gem "role_model", '0.7.0'
gem "aws-sdk", '~> 1.32.0'
gem "composite_primary_keys", "~> 3.1.10"
gem 'oauth', '0.4.5', :git => "git://github.com/Enlighten/oauth-ruby.git"
gem 'oauth-plugin', "0.4.0.rc2", :git => "git://github.com/Enlighten/oauth-plugin.git", :branch=>'0_4_0_RC2-branch'
gem 'yui-compressor', '0.9.4'
gem 'resque', '1.24.1'
gem 'rubyzip', '0.9.4'
gem 'mongo', '1.7.1'
gem 'bson', '1.7.1'
gem 'bson_ext', '1.7.1'
gem 'mongo_mapper', '0.8.6'
gem 'mongomapper_i18n', '0.1.0'
gem "newrelic_rpm", "~> 3.8.1"
gem 'rdoc', '~> 3.4'
gem "dynamic_form", "~> 1.1.4"
gem "curb", "0.7.15"
gem 'databasedotcom', "1.3.1"
gem 'default_value_for', '1.0.6'
gem "RedCloth", "4.2.9"
gem "gabba", "0.1.1"
gem "actionmailer_inline_css", "1.5.2"
gem "ruby-prof", "0.10.8"
gem "strip_attributes", "1.1.0"
gem 'rails-i18n', "~> 0.6.2"
gem "jammit", "0.6.5"
gem "i18n-js", "~> 2.1.2"
gem "sundawg_country_codes", "~> 0.0.7"
gem "work_queue", "2.5.2"
gem "uuidtools", "2.1.3"
gem "gdata", :git => 'git://github.com/dwaite/gdata.git'
gem 'enphase-carmen', :require=>'carmen', :git=>'git://github.com/Enlighten/carmen.git', :branch=>'0.2.x'
gem 'pg', '0.17.1'
gem 'activerecord-postgresql-adapter', '0.0.1'
gem 'stripe', :git => 'git://github.com/stripe/stripe-ruby'
gem 'ruby-saml', '~> 0.7.2'
gem '3scale_client', :git => "git://github.com/3scale/3scale_ws_api_for_ruby.git"
gem 'swagger-docs', :git => "git://github.com/richhollis/swagger-docs.git"
gem 'when_sun', '1.0.1'
gem "enphase-arturo", '1.3.3', :require => 'arturo'
gem 'pvwatts-ee', '0.1.4'
gem "sendgrid-enphase", "~> 1.1.0", :require => 'sendgrid'
Gemfile.lock
GIT
remote: git://github.com/3scale/3scale_ws_api_for_ruby.git
revision: 929ca271a0e2b7f93ee848d5a803df73e36e8ea0
specs:
3scale_client (2.3.3)
nokogiri
GIT
remote: git://github.com/Enlighten/carmen.git
revision: c4f39cbc882945d716209add9d0018c0549e96d8
branch: 0.2.x
specs:
enphase-carmen (0.2.14)
GIT
remote: git://github.com/Enlighten/oauth-plugin.git
revision: 4964332fdde2b0c5bc72c35b8d6e3d6110f52ec1
branch: 0_4_0_RC2-branch
specs:
oauth-plugin (0.4.0.rc2)
multi_json (~> 1.0.4)
oauth (~> 0.4.4)
oauth2 (~> 0.5.2)
rack (~> 1.2.5)
GIT
remote: git://github.com/Enlighten/oauth-ruby.git
revision: d3ef646d7365081a82663569d59d688cb7525402
specs:
oauth (0.4.5)
GIT
remote: git://github.com/dwaite/gdata.git
revision: fae93bd449d44044dbd0d565946b6ba0e21cb772
specs:
gdata (1.1.2)
GIT
remote: git://github.com/richhollis/swagger-docs.git
revision: 4fc9db6b698b540689db637e82a0c83a570c828c
specs:
swagger-docs (0.1.8)
GIT
remote: git://github.com/stripe/stripe-ruby
revision: f369ca16f956979d7e2a68242399417197f43168
specs:
stripe (1.9.9)
mime-types (~> 1.25)
multi_json (>= 1.0.4, < 2)
rest-client (~> 1.4)
GEM
remote: https://rubygems.org/
specs:
RedCloth (4.2.9)
abstract (1.0.0)
actionmailer (3.0.20)
actionpack (= 3.0.20)
mail (~> 2.2.19)
actionmailer_inline_css (1.5.2)
actionmailer (>= 3.0.0)
nokogiri (>= 1.4.4)
premailer (>= 1.7.1)
actionpack (3.0.20)
activemodel (= 3.0.20)
activesupport (= 3.0.20)
builder (~> 2.1.2)
erubis (~> 2.6.6)
i18n (~> 0.5.0)
rack (~> 1.2.5)
rack-mount (~> 0.6.14)
rack-test (~> 0.5.7)
tzinfo (~> 0.3.23)
activemodel (3.0.20)
activesupport (= 3.0.20)
builder (~> 2.1.2)
i18n (~> 0.5.0)
activerecord (3.0.20)
activemodel (= 3.0.20)
activesupport (= 3.0.20)
arel (~> 2.0.10)
tzinfo (~> 0.3.23)
activerecord-postgresql-adapter (0.0.1)
pg
activeresource (3.0.20)
activemodel (= 3.0.20)
activesupport (= 3.0.20)
activesupport (3.0.20)
addressable (2.3.5)
airbrake (3.1.8)
activesupport
builder
json
arel (2.0.10)
aws-sdk (1.32.0)
json (~> 1.4)
nokogiri (>= 1.4.4)
uuidtools (~> 2.1)
backports (3.3.5)
bson (1.7.1)
bson_ext (1.7.1)
bson (~> 1.7.1)
builder (2.1.2)
cancan (1.6.7)
canonix (0.1.1)
cocaine (0.3.2)
composite_primary_keys (3.1.11)
activerecord (~> 3.0.0, >= 3.0.5)
crack (0.4.1)
safe_yaml (~> 0.9.0)
css_parser (1.3.5)
addressable
curb (0.7.15)
databasedotcom (1.3.1)
json
multipart-post (~> 1.1)
default_value_for (1.0.6)
dynamic_form (1.1.4)
enphase-arturo (1.3.3)
rails (~> 3.0)
erubis (2.6.6)
abstract (>= 1.0.0)
faraday (0.8.8)
multipart-post (~> 1.2.0)
gabba (0.1.1)
hoe (2.8.0)
rake (>= 0.8.7)
htmlentities (4.3.1)
i18n (0.5.0)
i18n-js (2.1.2)
i18n
jammit (0.6.5)
yui-compressor (>= 0.9.3)
jnunemaker-validatable (1.8.4)
activesupport (>= 2.3.4)
json (1.5.3)
libxml-ruby (2.7.0)
macaddr (1.6.1)
systemu (~> 2.5.0)
mail (2.2.20)
activesupport (>= 2.3.6)
i18n (>= 0.4.0)
mime-types (~> 1.16)
treetop (~> 1.4.8)
mime-types (1.25.1)
mongo (1.7.1)
bson (~> 1.7.1)
mongo_mapper (0.8.6)
activesupport (>= 2.3.4)
jnunemaker-validatable (~> 1.8.4)
plucky (~> 0.3.6)
mongomapper_i18n (0.1.0)
mongo_mapper (>= 0.7.0)
mono_logger (1.1.0)
multi_json (1.0.4)
multipart-post (1.2.0)
mysql2 (0.2.21)
net-ssh (2.1.4)
newrelic_rpm (3.8.1.221)
nokogiri (1.5.1)
oauth2 (0.5.2)
faraday (~> 0.7)
multi_json (~> 1.0)
packet (0.1.15)
paperclip (2.7.0)
activerecord (>= 2.3.0)
activesupport (>= 2.3.2)
cocaine (>= 0.0.2)
mime-types
pg (0.17.1)
plucky (0.3.8)
mongo (~> 1.3)
polyglot (0.3.3)
premailer (1.7.9)
css_parser (>= 1.1.9)
htmlentities (>= 4.0.0)
pvwatts-ee (0.1.4)
savon (~> 0.7.6)
rack (1.2.5)
rack-mount (0.6.14)
rack (>= 1.0.0)
rack-test (0.5.7)
rack (>= 1.0)
rails (3.0.20)
actionmailer (= 3.0.20)
actionpack (= 3.0.20)
activerecord (= 3.0.20)
activeresource (= 3.0.20)
activesupport (= 3.0.20)
bundler (~> 1.0)
railties (= 3.0.20)
rails-i18n (0.6.6)
i18n (~> 0.5)
railties (3.0.20)
actionpack (= 3.0.20)
activesupport (= 3.0.20)
rake (>= 0.8.7)
rdoc (~> 3.4)
thor (~> 0.14.4)
rake (0.8.7)
rdoc (3.12.2)
json (~> 1.4)
redis (3.0.6)
redis-namespace (1.4.1)
redis (~> 3.0.4)
resque (1.24.1)
mono_logger (~> 1.0)
multi_json (~> 1.0)
redis-namespace (~> 1.2)
sinatra (>= 0.9.2)
vegas (~> 0.1.2)
rest-client (1.6.7)
mime-types (>= 1.16)
role_model (0.7.0)
ruby-prof (0.10.8)
ruby-saml (0.7.2)
canonix (= 0.1.1)
nokogiri
uuid (~> 2.3)
rubyzip (0.9.4)
safe_yaml (0.9.7)
savon (0.7.9)
builder (>= 2.1.2)
crack (>= 0.1.4)
sendgrid-enphase (1.1.0)
json
json
simple-rss (1.3.1)
sinatra (1.2.9)
backports
rack (~> 1.1, < 1.5)
tilt (>= 1.2.2, < 2.0)
strip_attributes (1.1.0)
activemodel (~> 3.0)
sundawg_country_codes (0.0.7)
systemu (2.5.2)
thor (0.14.6)
tilt (1.4.1)
treetop (1.4.15)
polyglot
polyglot (>= 0.3.1)
tzinfo (0.3.38)
uuid (2.3.7)
macaddr (~> 1.0)
uuidtools (2.1.3)
vegas (0.1.11)
rack (>= 1.0.0)
when_sun (1.0.1)
will_paginate (3.0.5)
work_queue (2.5.2)
yajl-ruby (0.8.3)
yui-compressor (0.9.4)
PLATFORMS
ruby
DEPENDENCIES
3scale_client!
RedCloth (= 4.2.9)
actionmailer_inline_css (= 1.5.2)
activerecord-postgresql-adapter (= 0.0.1)
airbrake (= 3.1.8)
aws-sdk (~> 1.32.0)
bson (= 1.7.1)
bson_ext (= 1.7.1)
cancan (= 1.6.7)
cocaine (= 0.3.2)
composite_primary_keys (~> 3.1.10)
curb (= 0.7.15)
databasedotcom (= 1.3.1)
default_value_for (= 1.0.6)
dynamic_form (~> 1.1.4)
enphase-arturo (= 1.3.3)
enphase-carmen!
gabba (= 0.1.1)
gdata!
hoe (= 2.8.0)
i18n-js (~> 2.1.2)
jammit (= 0.6.5)
json (= 1.5.3)
libxml-ruby (= 2.7.0)
mongo (= 1.7.1)
mongo_mapper (= 0.8.6)
mongomapper_i18n (= 0.1.0)
mysql2 (~> 0.2.18)
net-ssh (= 2.1.4)
newrelic_rpm (~> 3.8.1)
nokogiri (= 1.5.1)
oauth (= 0.4.5)!
oauth-plugin (= 0.4.0.rc2)!
packet (= 0.1.15)
paperclip (= 2.7.0)
pg (= 0.17.1)
pvwatts-ee (= 0.1.4)
rack (= 1.2.5)
rails (= 3.0.20)
rails-i18n (~> 0.6.2)
rake (= 0.8.7)
rdoc (~> 3.4)
redis (~> 3.0)
resque (= 1.24.1)
role_model (= 0.7.0)
ruby-prof (= 0.10.8)
ruby-saml (~> 0.7.2)
rubyzip (= 0.9.4)
sendgrid-enphase (~> 1.1.0)
simple-rss (= 1.3.1)
strip_attributes (= 1.1.0)
stripe!
sundawg_country_codes (~> 0.0.7)
swagger-docs!
tzinfo (= 0.3.38)
uuidtools (= 2.1.3)
when_sun (= 1.0.1)
will_paginate (~> 3.0)
work_queue (= 2.5.2)
yajl-ruby (= 0.8.3)
yui-compressor (= 0.9.4)
Ok, I have reproduced the problem. I will update shortly!
Yes, sorry about the gigantic Gemfile. Thank you for taking the time to look at this.
Karen
On Wed, Jul 16, 2014 at 8:52 AM, Richard Hollis notifications@github.com wrote:
Ok, I have reproduced the problem. I will update shortly!
— Reply to this email directly or view it on GitHub https://github.com/richhollis/swagger-docs/issues/58#issuecomment-49185969 .
This email message is for the sole use of the intended recipient(s) and may contain confidential and/or privileged information. If you are not an intended recipient, you may not review, use, copy, disclose or distribute this message. If you received this message in error, please contact the sender by reply email and destroy all copies of the original message.
Can you try the latest master please and see if that fixes the problem. Please let me know either way. Thanks!
Closing as this should now be addressed in the master branch. If this is not the case then please reopen. Thanks.
I think I'm getting a little further now... (Gemfile substantially the same as last request)
STARTING RAILS - set ENV['app_rev']=3.3.4, ENV['scm_rev']=N/A, RAILS_ENV=development
** Execute swagger:docs
rake aborted!
undefined method `spec' for "/api/v2/systems(.:format)":String
/Users/kinman/.rvm/gems/ruby-1.9.3-p484@master/bundler/gems/swagger-docs-f43786be408e/lib/swagger/docs/generator.rb:160:in `get_route_path_apis'
/Users/kinman/.rvm/gems/ruby-1.9.3-p484@master/bundler/gems/swagger-docs-f43786be408e/lib/swagger/docs/generator.rb:131:in `block in process_path'
/Users/kinman/.rvm/gems/ruby-1.9.3-p484@master/bundler/gems/swagger-docs-f43786be408e/lib/swagger/docs/generator.rb:130:in `each'
/Users/kinman/.rvm/gems/ruby-1.9.3-p484@master/bundler/gems/swagger-docs-f43786be408e/lib/swagger/docs/generator.rb:130:in `process_path'
/Users/kinman/.rvm/gems/ruby-1.9.3-p484@master/bundler/gems/swagger-docs-f43786be408e/lib/swagger/docs/generator.rb:65:in `block in generate_doc'
/Users/kinman/.rvm/gems/ruby-1.9.3-p484@master/bundler/gems/swagger-docs-f43786be408e/lib/swagger/docs/generator.rb:64:in `each'
/Users/kinman/.rvm/gems/ruby-1.9.3-p484@master/bundler/gems/swagger-docs-f43786be408e/lib/swagger/docs/generator.rb:64:in `generate_doc'
/Users/kinman/.rvm/gems/ruby-1.9.3-p484@master/bundler/gems/swagger-docs-f43786be408e/lib/swagger/docs/generator.rb:52:in `block in generate_docs'
/Users/kinman/.rvm/gems/ruby-1.9.3-p484@master/bundler/gems/swagger-docs-f43786be408e/lib/swagger/docs/generator.rb:49:in `each'
/Users/kinman/.rvm/gems/ruby-1.9.3-p484@master/bundler/gems/swagger-docs-f43786be408e/lib/swagger/docs/generator.rb:49:in `generate_docs'
/Users/kinman/.rvm/gems/ruby-1.9.3-p484@master/bundler/gems/swagger-docs-f43786be408e/lib/swagger/docs/generator.rb:20:in `write_docs'
/Users/kinman/.rvm/gems/ruby-1.9.3-p484@master/bundler/gems/swagger-docs-f43786be408e/lib/tasks/swagger.rake:5:in `block (2 levels) in <top (required)>'
/Users/kinman/.rvm/gems/ruby-1.9.3-p484@master/gems/rake-0.8.7/lib/rake.rb:636:in `call'
/Users/kinman/.rvm/gems/ruby-1.9.3-p484@master/gems/rake-0.8.7/lib/rake.rb:636:in `block in execute'
/Users/kinman/.rvm/gems/ruby-1.9.3-p484@master/gems/rake-0.8.7/lib/rake.rb:631:in `each'
/Users/kinman/.rvm/gems/ruby-1.9.3-p484@master/gems/rake-0.8.7/lib/rake.rb:631:in `execute'
/Users/kinman/.rvm/gems/ruby-1.9.3-p484@master/gems/rake-0.8.7/lib/rake.rb:597:in `block in invoke_with_call_chain'
/Users/kinman/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
/Users/kinman/.rvm/gems/ruby-1.9.3-p484@master/gems/rake-0.8.7/lib/rake.rb:590:in `invoke_with_call_chain'
/Users/kinman/.rvm/gems/ruby-1.9.3-p484@master/gems/rake-0.8.7/lib/rake.rb:583:in `invoke'
/Users/kinman/.rvm/gems/ruby-1.9.3-p484@master/gems/rake-0.8.7/lib/rake.rb:2051:in `invoke_task'
/Users/kinman/.rvm/gems/ruby-1.9.3-p484@master/gems/rake-0.8.7/lib/rake.rb:2029:in `block (2 levels) in top_level'
/Users/kinman/.rvm/gems/ruby-1.9.3-p484@master/gems/rake-0.8.7/lib/rake.rb:2029:in `each'
/Users/kinman/.rvm/gems/ruby-1.9.3-p484@master/gems/rake-0.8.7/lib/rake.rb:2029:in `block in top_level'
/Users/kinman/.rvm/gems/ruby-1.9.3-p484@master/gems/airbrake-3.1.8/lib/airbrake/rake_handler.rb:39:in `standard_exception_handling'
/Users/kinman/.rvm/gems/ruby-1.9.3-p484@master/gems/rake-0.8.7/lib/rake.rb:2023:in `top_level'
/Users/kinman/.rvm/gems/ruby-1.9.3-p484@master/gems/rake-0.8.7/lib/rake.rb:2001:in `block in run'
/Users/kinman/.rvm/gems/ruby-1.9.3-p484@master/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'
/Users/kinman/.rvm/gems/ruby-1.9.3-p484@master/gems/rake-0.8.7/lib/rake.rb:1998:in `run'
/Users/kinman/.rvm/gems/ruby-1.9.3-p484@master/gems/rake-0.8.7/bin/rake:31:in `<top (required)>'
/Users/kinman/.rvm/gems/ruby-1.9.3-p484@master/bin/rake:23:in `load'
/Users/kinman/.rvm/gems/ruby-1.9.3-p484@master/bin/rake:23:in `<main>'
Getting a little further now, I think, but still failing. I commented on the issue, but I can't reopen one that you closed. Please let me know if you want a new issue for this.
On Fri, Aug 1, 2014 at 7:12 AM, Richard Hollis notifications@github.com wrote:
Closed #58 https://github.com/richhollis/swagger-docs/issues/58.
— Reply to this email directly or view it on GitHub https://github.com/richhollis/swagger-docs/issues/58#event-148174242.
This email message is for the sole use of the intended recipient(s) and may contain confidential and/or privileged information. If you are not an intended recipient, you may not review, use, copy, disclose or distribute this message. If you received this message in error, please contact the sender by reply email and destroy all copies of the original message.
Ok @kinman-enphase try the latest master again now please.
Hey @kinman-enphase any chance you could try again :)
Yes, I will definitely try this again. Please hold.
On Thu, Aug 7, 2014 at 5:57 AM, Richard Hollis notifications@github.com wrote:
Hey @kinman-enphase https://github.com/kinman-enphase any chance you could try again :)
— Reply to this email directly or view it on GitHub https://github.com/richhollis/swagger-docs/issues/58#issuecomment-51467363 .
This email message is for the sole use of the intended recipient(s) and may contain confidential and/or privileged information. If you are not an intended recipient, you may not review, use, copy, disclose or distribute this message. If you received this message in error, please contact the sender by reply email and destroy all copies of the original message.
Success. Thank you!
I'm getting this stack trace when trying to generate doc. You can see the ancient versions of Rails, Rake, and even Ruby that I'm running. Let me know what other information would be helpful for debugging.