This project is archived and is in readonly mode.
config.gem with multiple sources
-
John
+1, small change and a handy feature
-
Chris Lloyd
+1 Though the real solution is for either every gem developer to host their gems on Rubyforge, or (more realistically) Rubyforge provide automatic acceptances for name-spaced gems (ala Github).
-
Tim Lucas
Just noticed
attr_accessor :source. Not sure if anybody is using GemDependency directly, or whether it's a supported API.I've attached a new patch which removes the
sourcereader accessor and replaces it withsources.Even more unsure now whether :source should simply be an alias to :sources and we allow both a single value and an array of values.
-
Tim Lucas
Attached is a new ticket with updated rdoc for
config.gem, as well as making:sourceand:sourcesequivalent and consistent.The
Rails::GemDependency#sourceaccessor has been removed and replaced with#sources -
Matt Jones
- Assigned user set to Matt Jones
This is caused by the --source option to gem install ignoring any other sources configured by the system when installing dependencies. (see also this ticket for Rubygems)
A different fix would be to include the sources listed from 'gem sources' when invoking 'gem install'. That would solve the most common case (where a gem on github depends on gems hosted on rubyforge).
It should be easy to add ('gem sources' is basically just a newline-seperated list of URLs) - I'll try to put a patch together this weekend.
-
Tim Lucas
you think that's really a good idea though? Sounds like a round-about monkey patch to rubygems, something that would be in rails for quite a while. At least my approach is simply the same as what you'd do on the command line and when rubygems is fixed you just update your app's config (if needed)
-
Thomas Watson
Is this what causes my gems:install to fail when installing a gem from GitHub (using :sources => "http://gems.github.com") that has a regular dependency?
gem install patientslikeme-campaign_monitor --source http://gems.github.com ERROR: Error installing patientslikeme-campaign_monitor:
patientslikeme-campaign_monitor requires xml-simple (>= 1.0.11, runtime) -
joson
A Replica Breitling is a timepiece of high quality and functionality and you will have all the class, prestige and luxury of a wealthy, successful individual. By choosing from our selection of luxury Replica Watches , you can improve your self-esteem and feel confident to enter new circles of business associates and friends. These Rolex Replicas will surely enhance your style and only you will know the watch you wear did not cost you $1,000's of dollars.
