geminstaller 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,10 @@
1
+ == 0.x.y / yyyy-mm-dd
2
+
3
+ == 0.2.3 / 2007-08-03
4
+ * remove Autogem#process_gem debug statement
5
+ * Don't reset test_gem_home in test_gem_home_spec, shaves about 18 seconds off suite
6
+ * Suppress output of rubygems installation during tests with --quiet flag
7
+
1
8
  == 0.2.2 / 2007-07-07
2
9
  * Fix performance problems with autogem command (don't manually recurse dependencies, gem method does it already)
3
10
  * Fix bad links in docs
data/TODO.txt CHANGED
@@ -1,7 +1,7 @@
1
- * Fix broken doc links Jean-Michel reported
1
+ * Figure out how to suppress webrick messages from embedded gem server
2
2
  * Allow array or eval'able string of gems to be passed as --gems arg or instead of args
3
- * Add @options[:gems], should be parsed from
4
- =============== 0.2.4
3
+ * Add @options[:gems], should be parsed from command line
4
+ =============== 0.2.6
5
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.
@@ -10,8 +10,8 @@
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
12
  * Investigate gem_plugin. Plugin for mongrel???
13
- ================ 0.2.5 release ===================
14
- * Rename API: autogem -> gem, run -> install
13
+ ================ 0.2.8 release ===================
14
+ * Rename API: deprecate 'autogem' and rename to 'loadgems'; change current 'run' to 'install'; add new 'run' which automatically calls both 'install' and 'gem', add 'no-loadgems' option (only applicable when invoked programatically) to supress automatic 'loadgems
15
15
  ================ 0.3.0 release =====================
16
16
  * update docs with details on how to handle unmet dependencies when -y is not specified
17
17
  * tutorial: using common or shared config files, with different configs for different environments - test (rspec) vs. dev (capistrano) vs. demo/staging/prod
@@ -23,7 +23,6 @@
23
23
  ================ 0.3.1 finishing website ===================
24
24
  * make valid_platform_selector use data from tattle
25
25
  * autogem and run args can be passed as string or array
26
- * tell rspec not to alphabetize my specs, or figure out how to not run testgemhome in the middle and have it set up test gem home twice
27
26
  * better test coverage for --sudo and --exception options
28
27
  * use rspec context_setup
29
28
  * split out geminstaller_spec into application_spec and geminstaller_spec. Fix reference in docs / design
data/geminstaller.yml CHANGED
@@ -16,7 +16,7 @@ gems:
16
16
  - name: RedCloth
17
17
  version: '>= 3.0.4'
18
18
  - name: rspec
19
- version: '= 0.9.3'
19
+ version: '>= 1.0.8'
20
20
  - name: cmdparse
21
21
  version: '>= 2.0.2'
22
22
  - name: webgen
data/lib/geminstaller.rb CHANGED
@@ -29,7 +29,7 @@ module GemInstaller
29
29
  end
30
30
 
31
31
  def self.version
32
- "0.2.2"
32
+ "0.2.3"
33
33
  end
34
34
 
35
35
  def self.create_application(args = [], registry = nil)
@@ -12,7 +12,6 @@ module GemInstaller
12
12
  end
13
13
 
14
14
  def process_gem(gem)
15
- p "Autogem#process_gem, gem: #{gem.name} - #{gem.version}"
16
15
  unless @completed_names.index(gem.name) or gem.no_autogem
17
16
  invoke_require_gem_command(gem.name, gem.version)
18
17
  @completed_names << gem.name
@@ -1,5 +1,4 @@
1
1
  # this file supports backward compatibility for prior versions of RubyGems
2
- RUBYGEMS_VERSION_CHECKER = GemInstaller::RubyGemsVersionChecker.new
3
2
 
4
3
  # 0.9.3 reorganized commands to Gem::Commands:: module from Gem::
5
4
  if RUBYGEMS_VERSION_CHECKER.less_than?('0.9.3')
@@ -55,12 +55,11 @@ require "geminstaller"
55
55
  config_paths = "#{File.expand_path(RAILS_ROOT)}/config/geminstaller.yml"
56
56
 
57
57
  # Arguments which will be passed to GemInstaller
58
- args = "--config #{config_paths}"
58
+ args = "--config #{config_paths}"
59
59
 
60
60
  # The 'exceptions' flag determines whether errors encountered while running GemInstaller
61
61
  # should raise exceptions (and abort Rails), or just return a nonzero return code
62
- exceptions = true
63
- args += " --exceptions" if exceptions
62
+ args += " --exceptions"
64
63
 
65
64
  # This will use sudo by default on all non-windows platforms, but requires an entry in your
66
65
  # sudoers file to avoid having to type a password. It can be omitted if you don't want to use sudo.
@@ -71,9 +70,8 @@ args += " --sudo" unless RUBY_PLATFORM =~ /mswin/
71
70
  GemInstaller.run(args)
72
71
 
73
72
  # The 'autogem' method will automatically add all gems in the GemInstaller config to your load path, using the 'gem'
74
- # or 'require_gem' command. If you want to use other config file path(s), pass them as an array or comma-delimited list.
75
- # Note that only the *first* version of any given gem will be loaded.
76
- GemInstaller.autogem(config_paths, exceptions)
73
+ # or 'require_gem' command. Note that only the *first* version of any given gem will be loaded.
74
+ GemInstaller.autogem(args)
77
75
  ############# End GemInstaller config
78
76
 
79
77
  unless defined?(Rails::Initializer)
@@ -34,10 +34,13 @@ GemInstaller was created by "Chad Woolley":http://www.thewoolleyweb.com.
34
34
 
35
35
  h2(#known_bugs). Known Bugs
36
36
 
37
- Currently (as of version 0.0.2), the only _major_ known bug is related to auto-installing the Rails or Mongrel gems via boot.rb during startup of Mongrel or Webrick. The simple workaround is to run GemInstaller manually or just restart Rails anytime GemInstaller auto-installs a Rails/Mongrel gem upgrade during app startup. For Rails and other deployable apps, you can also "run GemInstaller from Capistrano":documentation/tutorials.html#running_geminstaller_from_capistrano to avoid this problem in demo/production environments. Researching and fixing this problem is a top priority. I bet there's another bug or twoo, so please "report them if you find them":http://rubyforge.org/tracker/?group_id=1902!
37
+ Currently (as of version 0.2.3), the only _major_ known bug is related to auto-installing the Rails or Mongrel gems via boot.rb during startup of Mongrel or Webrick. The simple workaround is to run GemInstaller manually or just restart Rails anytime GemInstaller auto-installs a Rails/Mongrel gem upgrade during app startup. For Rails and other deployable apps, you can also "run GemInstaller from Capistrano":documentation/tutorials.html#running_geminstaller_from_capistrano to avoid this problem in demo/production environments. Researching and fixing this problem is a top priority. I bet there's another bug or twoo, so please "report them if you find them":http://rubyforge.org/tracker/?group_id=1902!
38
+
39
+ There's also some leakage of gem doc warning messages even if you turn down --rubygems-output, but these can be ignored (these same messages show up when installing gems manually). This should be fixed soon.
38
40
 
39
41
  h2(#history). History
40
42
 
43
+ * 0.2.3 - Fix debug statement left in, upgrade rspec, improvements to test suite
41
44
  * 0.2.2 - Fix performance problems with autogem command (don't manually recurse dependencies, gem method does it already)
42
45
  * 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.
43
46
  * 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.2
7
- date: 2007-07-07 00:00:00 -07:00
6
+ version: 0.2.3
7
+ date: 2007-09-03 00:00:00 -07:00
8
8
  summary: GemInstaller provides automated management of RubyGems.
9
9
  require_paths:
10
10
  - lib
@@ -95,14 +95,10 @@ files:
95
95
  - website/src/index.page
96
96
  test_files:
97
97
  - test/test_all.rb
98
- rdoc_options:
99
- - --main
100
- - README.txt
101
- extra_rdoc_files:
102
- - History.txt
103
- - Manifest.txt
104
- - README.txt
105
- - TODO.txt
98
+ rdoc_options: []
99
+
100
+ extra_rdoc_files: []
101
+
106
102
  executables:
107
103
  - geminstaller
108
104
  extensions: []