Missing gemspec file in 0.3.0
Reported by Farzad FARID | August 25th, 2008 @ 01:48 AM
Hi,
I'm using grempe-amazon-ec2-0.3.0.
I wanted to run the tests on the gem, but the Rakefile won't run because the gemspec is missing.
% rake test
(in /var/lib/gems/1.8/gems/grempe-amazon-ec2-0.3.0)
rake aborted!
No such file or directory - amazon-ec2.gemspec
/var/lib/gems/1.8/gems/grempe-amazon-ec2-0.3.0/Rakefile:8:in `read'
(See full trace by running task with --trace)
Regards
Comments and changes to this ticket
-
Farzad FARID August 25th, 2008 @ 05:39 AM
Actually, I think the new 0.3.0 gem is incomplete, because it's CHANGELOG is not even up to date with the lastest changes on GitHub...
Regards
-
Glenn Rempe August 25th, 2008 @ 11:36 AM
- → Tag changed from to bug build
- → State changed from new to invalid
It worked fine for me just now with a fresh public clone.
/tmp\ > git clone git://github.com/grempe/amazon-ec2.git Initialized empty Git repository in /private/tmp/amazon-ec2/.git/ remote: Counting objects: 1558, done. remote: Compressing objects: 100% remote: (420/420), done. remote: Total 1558 (delta 1028), reused 1558 (delta 1028) Receiving objects: 100% (1558/1558), 818.01 KiB | 418 KiB/s, done. Resolving deltas: 100% (1028/1028), done. /tmp\ > cd amazon-ec2/ /tmp/amazon-ec2 (master)\ > rake test (in /private/tmp/amazon-ec2) /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby -Ilib:test "/Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake/rake_test_loader.rb" "test/test_EC2.rb" "test/test_EC2_availability_zones.rb" "test/test_EC2_console.rb" "test/test_EC2_elastic_ips.rb" "test/test_EC2_image_attributes.rb" "test/test_EC2_images.rb" "test/test_EC2_instances.rb" "test/test_EC2_keypairs.rb" "test/test_EC2_products.rb" "test/test_EC2_responses.rb" "test/test_EC2_security_groups.rb" "test/test_EC2_snapshots.rb" "test/test_EC2_volumes.rb" "test/test_helper.rb" Loaded suite /Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake/rake_test_loader Started ............................................................................. Finished in 1.365945 seconds. 77 tests, 318 assertions, 0 failures, 0 errors /tmp/amazon-ec2 (master)\ > rake gem (in /private/tmp/amazon-ec2) WARNING: no rubyforge_project specified WARNING: deprecated autorequire specified Successfully built RubyGem Name: amazon-ec2 Version: 0.3.0 File: amazon-ec2-0.3.0.gem /tmp/amazon-ec2 (master)\ > ls -la total 104 drwxr-xr-x 14 glenn wheel 476 Aug 25 11:30 . drwxrwxrwt 1435 root wheel 48790 Aug 25 11:30 .. drwxr-xr-x 13 glenn wheel 442 Aug 25 11:30 .git -rw-r--r-- 1 glenn wheel 6 Aug 25 11:30 .gitignore -rw-r--r-- 1 glenn wheel 12951 Aug 25 11:30 CHANGELOG -rw-r--r-- 1 glenn wheel 2805 Aug 25 11:30 LICENSE -rw-r--r-- 1 glenn wheel 16746 Aug 25 11:30 README.rdoc -rw-r--r-- 1 glenn wheel 709 Aug 25 11:30 Rakefile -rw-r--r-- 1 glenn wheel 2964 Aug 25 11:30 amazon-ec2.gemspec drwxr-xr-x 5 glenn wheel 170 Aug 25 11:30 bin drwxr-xr-x 4 glenn wheel 136 Aug 25 11:30 lib drwxr-xr-x 3 glenn wheel 102 Aug 25 11:30 pkg drwxr-xr-x 16 glenn wheel 544 Aug 25 11:30 test drwxr-xr-x 5 glenn wheel 170 Aug 25 11:30 wsdl /tmp/amazon-ec2 (master)\ >Both the CHANGELOG and amazon-ec2.gemspec are present and up to date. The tests run, and the gem builds. Can you be more specific about the issues you are facing and what steps you took to try to test/install?
Thanks,
Glenn
-
Glenn Rempe August 25th, 2008 @ 11:43 AM
Looking more closely at your example, I see that you are trying to run the tests out of the install dir instead of from within the cloned repo (as I did in my demo above).
I currently do not include the gemspec file as part of an install which I think is what is causing your issue.
I would suggest cloning the repo and running the tests from there instead. If there is a specific reason why this is not acceptable I can see about including the gemspec in the manifest of files that get installed along with the gem.
-
Glenn Rempe August 25th, 2008 @ 11:47 AM
CHANGELOG in the Git repo is up to date with latest changesets (made within the last couple of days).
-
Farzad FARID August 25th, 2008 @ 02:07 PM
Hi,
The grempe-amazon-ec2-0.3.0.gem I got this morning from GitHub is incomplete, its CHANGELOG does not report version 0.3.0
I attach the gem that got installed when I run "gem update" to this message, so you can check by yourself.
As for the tests, I sometimes run "gem install -t <a_gem>" when installing a Gem, so in this case this would fail.
Moreover I think it'd be nice to be able to run the tests without having to use Git, but it's a matter of taste :)
Regards
Please Login or create a free account to add a new comment.
You can update this ticket by sending an email to from your email client. (help)
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
An open source library for interacting with Amazon Web Services Elastic Compute Cloud (EC2).
Git source code, installation, and usage instructions can be found at:
http://github.com/grempe/amazon-ec2/tree/master
Discussion group is at:
http://groups.google.com/group/amazon-ec2
