The problem to some extent got solved by adding the following two
lines to string_more.gemspec -
s.required_rubygems_version = Gem::Requirement.new(">= 0") if
s.respond_to? :required_rubygems_version=
s.rubygems_version = %q{1.3.0}After 20 minutes, the gem got built and I could install it to my local PC. However, the new problem is that the folder E:\ruby\lib\ruby\gems \1.8\gems\RLGGHCourse-string_more-1.0.0 is EMPTY. Now what am I doing wrong? On Feb 9, 12:45 pm, IndianGuru <[email protected]> wrote: > 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 -ahttp://gems.github.comhttp://gems.github.comadded 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 -~----------~----~----~----~------~----~------~--~---
