Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not working with Bundler #25

Open
maccman opened this issue Jul 16, 2010 · 5 comments
Open

Not working with Bundler #25

maccman opened this issue Jul 16, 2010 · 5 comments

Comments

@maccman
Copy link

maccman commented Jul 16, 2010

Getting invalid gemspec error when specifying authlogic-connect's git repo.

Works fine if I specify the gem.

Can anybody else reproduce this?

@lancejpollard
Copy link
Owner

When I do this in my Gemfile for the �authlogic-connect-example:

gem "authlogic-connect", :git => "git@github.com:viatropos/authlogic-connect.git"

And then run bundle install, I get this output:

Using authlogic-connect (0.0.6) from git@github.com:viatropos/authlogic-connect.git (at master) 
authlogic-connect at ~/.rvm/gems/ruby-1.8.7-p174@rails3beta/bundler/gems/authlogic-connect-85ff1f78d07a6d0b6183301ee782e71144e0d157-master/pkg did not have a valid gemspec.
This prevents bundler from installing bins or native extensions, but that may not affect its functionality.
The validation message from Rubygems was: [
  "README.markdown",
  "Rakefile",
  "init.rb",
  "MIT-LICENSE",
  "lib/authlogic-connect.rb",
  "lib/authlogic_connect",
  "lib/authlogic_connect/access_token.rb",
  "lib/authlogic_connect/authlogic_connect.rb",
  "lib/authlogic_connect/callback_filter.rb",
  "lib/authlogic_connect/common",
  "lib/authlogic_connect/common/session.rb",
  "lib/authlogic_connect/common/state.rb",
  "lib/authlogic_connect/common/user.rb",
  "lib/authlogic_connect/common/variables.rb",
  "lib/authlogic_connect/common.rb",
  "lib/authlogic_connect/engine.rb",
  "lib/authlogic_connect/ext.rb",
  "lib/authlogic_connect/oauth",
  "lib/authlogic_connect/oauth/helper.rb",
  "lib/authlogic_connect/oauth/process.rb",
  "lib/authlogic_connect/oauth/session.rb",
  "lib/authlogic_connect/oauth/state.rb",
  "lib/authlogic_connect/oauth/tokens",
  "lib/authlogic_connect/oauth/tokens/aol_token.rb",
  "lib/authlogic_connect/oauth/tokens/facebook_token.rb",
  "lib/authlogic_connect/oauth/tokens/foursquare_token.rb",
  "lib/authlogic_connect/oauth/tokens/get_satisfaction_token.rb",
  "lib/authlogic_connect/oauth/tokens/github_token.rb",
  "lib/authlogic_connect/oauth/tokens/google_token.rb",
  "lib/authlogic_connect/oauth/tokens/linked_in_token.rb",
  "lib/authlogic_connect/oauth/tokens/meetup_token.rb",
  "lib/authlogic_connect/oauth/tokens/myspace_token.rb",
  "lib/authlogic_connect/oauth/tokens/netflix_token.rb",
  "lib/authlogic_connect/oauth/tokens/oauth_token.rb",
  "lib/authlogic_connect/oauth/tokens/ohloh_token.rb",
  "lib/authlogic_connect/oauth/tokens/opensocial_token.rb",
  "lib/authlogic_connect/oauth/tokens/twitter_token.rb",
  "lib/authlogic_connect/oauth/tokens/vimeo_token.rb",
  "lib/authlogic_connect/oauth/tokens/yahoo_token.rb",
  "lib/authlogic_connect/oauth/user.rb",
  "lib/authlogic_connect/oauth/variables.rb",
  "lib/authlogic_connect/oauth.rb",
  "lib/authlogic_connect/openid",
  "lib/authlogic_connect/openid/process.rb",
  "lib/authlogic_connect/openid/session.rb",
  "lib/authlogic_connect/openid/state.rb",
  "lib/authlogic_connect/openid/tokens",
  "lib/authlogic_connect/openid/tokens/aol_token.rb",
  "lib/authlogic_connect/openid/tokens/blogger_token.rb",
  "lib/authlogic_connect/openid/tokens/flickr_token.rb",
  "lib/authlogic_connect/openid/tokens/my_openid_token.rb",
  "lib/authlogic_connect/openid/tokens/openid_token.rb",
  "lib/authlogic_connect/openid/user.rb",
  "lib/authlogic_connect/openid/variables.rb",
  "lib/authlogic_connect/openid.rb",
  "lib/authlogic_connect/rack_state.rb",
  "lib/open_id_authentication.rb",
  "rails/init.rb",
  "test/controllers",
  "test/controllers/test_users_controller.rb",
  "test/database.yml",
  "test/libs",
  "test/libs/database.rb",
  "test/libs/user.rb",
  "test/libs/user_session.rb",
  "test/test_helper.rb",
  "test/test_oauth.rb",
  "test/test_openid.rb",
  "test/test_user.rb"
]
are not files

Is that what you're getting? I will look into this. I saw you put the gemspec in the root and updated the manifest, I will do the same.

I am using rails3beta4 and ruby 1.8.7, what are you using?

@maccman
Copy link
Author

maccman commented Jul 16, 2010

Yes, that's correct. However, unfortunately, even putting the gemspec in the root is giving me the same problems.

@maccman
Copy link
Author

maccman commented Jul 16, 2010

Sorry, didn't mean to close the issue.

@prabak
Copy link

prabak commented Jan 31, 2011

any luck with this one? i have forked the gem and trying to install it by specifying the git repo and getting the same error.

@prabak
Copy link

prabak commented Feb 1, 2011

Okay, I figured out the problem. It was due to the path to the files. According to bundler document, the gemspec should be in the root directory. Update the Rake file. change the reference to pkg directory to pkg/../. i.e. it should look in the root directory instead of pkg directory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants