geminstaller 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ == 0.2.2 / 2007-07-07
2
+ * Fix performance problems with autogem command (don't manually recurse dependencies, gem method does it already)
3
+ * Fix bad links in docs
4
+
1
5
  == 0.2.1 / 2007-06-07
2
6
  * Fixes to handle internal refactoring of command classes in RubyGems 0.9.3
3
7
 
data/Rakefile CHANGED
@@ -78,7 +78,7 @@ task :website_rdocs => :docs do
78
78
  mv "doc", "website/output/code/rdoc"
79
79
  end
80
80
 
81
- desc "Generate ri locally for testing"
81
+ desc "Generate website, including rdoc and coverage"
82
82
  task :website => [:webgen, :website_rdocs, :coverage] do
83
83
  end
84
84
 
data/TODO.txt CHANGED
@@ -2,13 +2,14 @@
2
2
  * Allow array or eval'able string of gems to be passed as --gems arg or instead of args
3
3
  * Add @options[:gems], should be parsed from
4
4
  =============== 0.2.4
5
- * Modify environment.rb for rails, not boot.rb. Fix all doc references.
5
+ * Understand environment.rb vs boot.rb. Add doc references.
6
6
  * Catch permission errors, and print descriptive instructions on how to handle sudo. "Uh Oh! A gem installation failed because it did not have permission to write to the filesystem. If you want to have automated GemInstaller goodness, you'll have to fix this. Don't worry, it's easy! You have three basic choices: ..."
7
7
  * docs - clean up sudo section. Should be clearer about sudoers entry, and make sure that NOPASSWD is the last entry.
8
8
  * Faq - mention sudo
9
9
  * Faq - mention Zed's questions
10
10
  * design - dependency management is good. Maven got it right, if not for the jelly...
11
11
  * search for config/geminstaller.yml by default
12
+ * Investigate gem_plugin. Plugin for mongrel???
12
13
  ================ 0.2.5 release ===================
13
14
  * Rename API: autogem -> gem, run -> install
14
15
  ================ 0.3.0 release =====================
@@ -3,39 +3,28 @@ module GemInstaller
3
3
  attr_writer :gem_command_manager, :gem_spec_manager, :gem_source_index_proxy
4
4
  def autogem(gems)
5
5
  @gem_source_index_proxy.refresh!
6
- reversed_gems = gems.reverse!
7
6
  @completed_names = []
8
7
  @completed_gems = []
9
- reversed_gems.each do |gem|
8
+ gems.each do |gem|
10
9
  process_gem(gem)
11
10
  end
12
11
  @completed_gems
13
12
  end
14
13
 
15
14
  def process_gem(gem)
15
+ p "Autogem#process_gem, gem: #{gem.name} - #{gem.version}"
16
16
  unless @completed_names.index(gem.name) or gem.no_autogem
17
17
  invoke_require_gem_command(gem.name, gem.version)
18
18
  @completed_names << gem.name
19
19
  @completed_gems << gem
20
20
  end
21
- process_gem_dependencies(gem)
22
21
  end
23
22
 
24
- def process_gem_dependencies(gem)
25
- # TODO: this method is duplicated in rogue_gem_finder. Should abstract and take a block
26
- matching_gems = @gem_spec_manager.local_matching_gems(gem)
27
- matching_gems.each do |matching_gem|
28
- dependency_gems = @gem_command_manager.dependency(matching_gem.name, matching_gem.version.to_s)
29
- dependency_gems.each do |dependency_gem|
30
- process_gem(dependency_gem)
31
- end
32
- end
33
- end
34
-
35
23
  def invoke_require_gem_command(name, version)
36
24
  if Gem::RubyGemsVersion.index('0.8') == 0
37
25
  require_gem(name, version)
38
26
  else
27
+ # TODO: should we check true/false result of gem method?
39
28
  gem(name, version)
40
29
  end
41
30
  end
data/lib/geminstaller.rb CHANGED
@@ -29,7 +29,7 @@ module GemInstaller
29
29
  end
30
30
 
31
31
  def self.version
32
- "0.2.1"
32
+ "0.2.2"
33
33
  end
34
34
 
35
35
  def self.create_application(args = [], registry = nil)
@@ -313,7 +313,7 @@ $ geminstaller --sudo # only use the -sudo option if necessary
313
313
 
314
314
  h3(#using_geminstaller_from_other_ruby_apps). Using GemInstaller from Other Ruby Apps
315
315
 
316
- If you want to automatically invoke GemInstaller from some other Ruby application, the approach will be very similar to the Rails approach shown above. Instead of boot.rb, put the GemInstaller invocation into the class or script which is the very first one run when your application starts up. To use it in build scripts such as <code>rake</code>, include it in a task. GemInstaller (obviously) must run before any gems are loaded or referenced.
316
+ If you want to automatically invoke GemInstaller from some other Ruby application, the approach will be very similar to the Rails approach "shown above":#invoking_geminstaller_from_rails. Instead of boot.rb, put the GemInstaller invocation into the class or script which is the very first one run when your application starts up. To use it in build scripts such as <code>rake</code>, include it in a task. GemInstaller (obviously) must run before any gems are loaded or referenced.
317
317
 
318
318
  h2(#using_erb_in_config_files). Using <code>erb</code> in config files
319
319
 
@@ -38,5 +38,6 @@ Currently (as of version 0.0.2), the only _major_ known bug is related to auto-i
38
38
 
39
39
  h2(#history). History
40
40
 
41
+ * 0.2.2 - Fix performance problems with autogem command (don't manually recurse dependencies, gem method does it already)
41
42
  * 0.2.1 - RubyGems release 0.9.3 had some major refactoring done to the internals, which broke GemInstaller 0.2.0. GemInstaller 0.2.1 is a patch release to fix this. I did limited testing on 0.9.3 and 0.9.0. Please let me know if anything is broken on any version of RubyGems.
42
43
  * 0.2.0 - Initial release. Yay!
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.4
3
3
  specification_version: 1
4
4
  name: geminstaller
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.2.1
7
- date: 2007-06-07 00:00:00 -07:00
6
+ version: 0.2.2
7
+ date: 2007-07-07 00:00:00 -07:00
8
8
  summary: GemInstaller provides automated management of RubyGems.
9
9
  require_paths:
10
10
  - lib