authlogic-connect icon indicating copy to clipboard operation
authlogic-connect copied to clipboard

Not working with Bundler

Open maccman opened this issue 14 years ago • 5 comments

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

Works fine if I specify the gem.

Can anybody else reproduce this?

maccman avatar Jul 16 '10 16:07 maccman

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

gem "authlogic-connect", :git => "[email protected]:viatropos/authlogic-connect.git"

And then run bundle install, I get this output:

Using authlogic-connect (0.0.6) from [email protected]: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?

lancejpollard avatar Jul 16 '10 18:07 lancejpollard

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

maccman avatar Jul 16 '10 21:07 maccman

Sorry, didn't mean to close the issue.

maccman avatar Jul 16 '10 21:07 maccman

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 avatar Jan 31 '11 23:01 prabak

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.

prabak avatar Feb 01 '11 19:02 prabak