There seems to be a problem with downloading one's own gems from
GitHub. I am using a Windows XP box and have gem 1.3.1 locally. Here's
what I do -

I created a new repo in my GitHub account by the name string_more.
Here's the url - http://github.com/RLGGHCourse/string_more/tree/master

I then go to my project's edit page and check the 'RubyGem' box.

Next, I open a bash shell in my local repository folder and type in
these commands:
a...@comp /e/gitlocalrepo
$ mkdir string_more
$ cd string_more
$ mkdir lib

I store a simple Ruby program string_more.rb in the folder e:/
gitlocalrepo/string_more/lib

I create a text file called string_more.gemspec in the main
string_more folder, as follows:
Gem::Specification.new do |s|
  s.name = %q{string_more}
  s.version = '0.0.1'
  s.platform = 'Gem::Platform::Ruby'
  s.summary = %q{string_more adds useful features to the String class}
  s.require_paths = ["lib"]
  s.author = "Satish Talim"
  s.email = %q{[email protected]}
  s.homepage = %q{http://satishtalim.com/}
  s.has_rdoc = false
  s.required_ruby_version = '>= 1.8.6'
end

Next, I type:
a...@comp /e/gitlocalrepo/string_more
$ git init
$ touch string_more.gemspec
$ git add .
$ git commit -m 'first commit'
$ git remote add origin [email protected]:RLGGHCourse/string_more.git
$ git push origin master

When I go to - http://github.com/RLGGHCourse/string_more/tree/master
I see a small red diamond icon for my gem. Note: I don't receive any
message from GitHub that the gem has been built.

Finally, I type in a new command window:
E:\>gem sources -a http://gems.github.com
http://gems.github.com added to sources
E:\>gem install RLGGHCourse-string_more
ERROR: could not find gem RLGGHCourse-string_more locally or in a
repository
E:\>

I have tried all the Troubleshooting here - http://gems.github.com/
but no luck. I always keep getting the error -
ERROR: could not find gem RLGGHCourse-string_more locally or in a
repository

What am I doing wrong. All help appreciated.




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"GitHub" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/github?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to