geminstaller 0.5.1 → 0.5.2

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,4 +1,7 @@
1
- == 0.5.1 / yyyy-mm-dd
1
+ == 0.5.2 / 2009-07-24
2
+ * Support for Rubygems 1.3.5
3
+
4
+ == 0.5.1 / 2009-02-23
2
5
  * Print a very verbose and helpful error message if gem cannot be found on remote server. Attempts to help http://thewoolleyweb.lighthouseapp.com/projects/11580/tickets/5-sometimes-installing-fails
3
6
  * Fix bug with stderr being swallowed silently when '--sudo' option is used.
4
7
 
data/Manifest.txt CHANGED
@@ -1,4 +1,3 @@
1
- .loadpath
2
1
  COPYING
3
2
  History.txt
4
3
  LICENSE
@@ -6,6 +5,7 @@ Manifest.txt
6
5
  README.txt
7
6
  Rakefile
8
7
  TODO.txt
8
+ authors
9
9
  bin/geminstaller
10
10
  cruise_config.rb
11
11
  focused_spec.sh
@@ -55,8 +55,6 @@ lib/geminstaller/version_specifier.rb
55
55
  lib/geminstaller/yaml_loader.rb
56
56
  lib/geminstaller_rails_preinitializer.rb
57
57
  start_local_gem_server.sh
58
- test/test_all.rb
59
- test/test_all_smoketests.rb
60
58
  website/config.yaml
61
59
  website/src/analytics.page
62
60
  website/src/code/ci.virtual
data/README.txt CHANGED
@@ -1,6 +1,9 @@
1
- GemInstaller
2
- by Chad Woolley
3
- http://geminstaller.rubyforge.org
1
+ = GemInstaller
2
+
3
+ * http://geminstaller.rubyforge.org
4
+ * http://thewoolleyweb.lighthouseapp.com/projects/11580-geminstaller
5
+ * mailto:"GemInstaller Development" <geminstaller-development@rubyforge.org>
6
+ * mailto:"Chad Woolley" <thewoolleyman@gmail.com>
4
7
 
5
8
  == DESCRIPTION:
6
9
 
@@ -9,7 +12,6 @@ Automated Gem installation, activation, and much more!
9
12
  == FEATURES:
10
13
 
11
14
  GemInstaller provides automated installation, loading and activation of RubyGems. It uses a simple YAML config file to:
12
-
13
15
  * Automatically install the correct versions of all required gems wherever your app runs.
14
16
  * Automatically ensure installed gems and versions are consistent across multiple applications, machines, platforms, and environments
15
17
  * Automatically activate correct versions of gems on the ruby load path when your app runs ('require_gem'/'gem')
@@ -23,16 +25,20 @@ GemInstaller provides automated installation, loading and activation of RubyGems
23
25
 
24
26
  == SYNOPSYS:
25
27
 
26
- Automated Gem installation, activation, and much more!
28
+ See Quick Start at http://geminstaller.rubyforge.org/documentation/index.html
27
29
 
28
- === Download:
30
+ === Bugs/Patches
29
31
 
30
- Downloads are available at http://rubyforge.org/frs/?group_id=1902
32
+ http://thewoolleyweb.lighthouseapp.com/projects/11580-geminstaller
31
33
 
32
34
  === Quick Start:
33
35
 
34
36
  See http://geminstaller.rubyforge.org/documentation/index.html
35
37
 
38
+ == REQUIREMENTS:
39
+
40
+ * RubyGems
41
+
36
42
  == INSTALL:
37
43
 
38
44
  * [sudo] gem install geminstaller
data/Rakefile CHANGED
@@ -1,9 +1,12 @@
1
1
  # -*- ruby -*-
2
2
 
3
- require 'rubygems'
3
+ require File.expand_path("#{File.dirname(__FILE__)}/spec/helper/test_gem_home")
4
+ GemInstaller::TestGemHome.install_rubygems
5
+
4
6
  begin
5
7
  require 'hoe'
6
- rescue LoadError
8
+ rescue LoadError => e
9
+ puts e
7
10
  abort "ERROR: GemInstaller has build- and test-time dependencies
8
11
  on Hoe and other libraries. Run the 'geminstaller'
9
12
  executable from the root of the geminstaller source
@@ -11,21 +14,21 @@ rescue LoadError
11
14
  these dependencies."
12
15
  end
13
16
 
17
+ puts "Gem::RubyGemsVersion = #{Gem::RubyGemsVersion}"
14
18
  require './lib/geminstaller.rb'
15
19
  require './lib/geminstaller/hoe_extensions.rb'
16
20
 
17
- IndependentHoe.new('geminstaller', GemInstaller.version) do |p|
18
- p.author = 'Chad Woolley'
19
- p.email = 'thewoolleyman@gmail.com'
21
+ IndependentHoe.plugin :seattlerb
22
+
23
+ IndependentHoe.spec 'geminstaller' do |p|
24
+ developer 'Chad Woolley', 'thewoolleyman@gmail.com'
20
25
  p.rubyforge_name = 'geminstaller'
21
- p.summary = p.paragraphs_of('README.txt', 1).first.split(/\n/)[2]
22
- p.description = p.paragraphs_of('README.txt', 2..5).join("\n\n")
23
- p.url = p.paragraphs_of('README.txt', 0).first.split(/\n/)[1..-1]
24
- p.changes = p.paragraphs_of('History.txt', 0..1).join("\n\n")
25
- p.clean_globs << 'coverage'
26
- p.clean_globs << 'website/out'
27
- p.clean_globs << 'website/output'
28
- p.clean_globs << '**/webgen.cache'
26
+ p.version = GemInstaller.version
27
+ p.summary = "See http://geminstaller.rubyforge.org"
28
+ clean_globs << 'coverage'
29
+ clean_globs << 'website/out'
30
+ clean_globs << 'website/output'
31
+ clean_globs << '**/webgen.cache'
29
32
  p.extra_deps = []
30
33
  end
31
34
 
@@ -63,9 +66,13 @@ task :diff_manifest => :clean do
63
66
  Find.find '.' do |path|
64
67
  next unless File.file? path
65
68
  next if path =~ /\.svn|tmp$|CVS/
69
+ next if path =~ /\.git|\.gitmodules/
70
+ next if path =~ /dummyrepo/
66
71
  next if path =~ /\.iml|\.ipr|\.iws|\.kpf|\.tmproj|\.project/
72
+ next if path =~ /\.idea/
67
73
  next if path =~ /\.\/nbproject/
68
74
  next if path =~ /\.\/spec/
75
+ next if path =~ /\.\/test_suites/
69
76
  next if path =~ /\.\/pkg/
70
77
  next if path =~ /\.\/out/
71
78
  next if path =~ /\.\/website\/out/
@@ -123,28 +130,78 @@ task :upload_website do
123
130
  end
124
131
 
125
132
  desc 'Run All Smoketests'
126
- task :all_smoketest => [:clean] do
133
+ task :all_smoketest => [:git_submodule_update, :clean] do
127
134
  run_smoketest 'test/test_all_smoketests.rb'
128
135
  end
129
136
 
130
137
  desc 'Run Install Smoketest'
131
- task :install_smoketest => [:clean] do
138
+ task :install_smoketest => [:git_submodule_update, :clean] do
132
139
  run_smoketest 'spec/smoketest/install_smoketest.rb'
133
140
  end
134
141
 
135
142
  desc 'Run AutoGem Smoketest'
136
- task :autogem_smoketest => [:clean] do
143
+ task :autogem_smoketest => [:git_submodule_update, :clean] do
137
144
  run_smoketest 'spec/smoketest/autogem_smoketest.rb'
138
145
  end
139
146
 
140
147
  desc 'Run Rails Smoketest'
141
- task :rails_smoketest => [:clean] do
148
+ task :rails_smoketest => [:git_submodule_update, :clean] do
142
149
  run_smoketest 'spec/smoketest/rails_smoketest.rb'
143
150
  end
144
151
 
145
152
  desc 'Run Debug Smoketest'
146
- task :debug_smoketest => [:clean] do
153
+ task :debug_smoketest => [:git_submodule_update, :clean] do
147
154
  run_smoketest 'spec/smoketest/debug_smoketest.rb'
148
155
  end
149
156
 
157
+ desc 'CruiseControl.rb default task'
158
+ task :cruise => [:geminstaller, :git_submodule_commit_and_push] do
159
+ Rake::Task[:default].invoke
160
+ end
161
+
162
+ desc 'Run GemInstaller to install development dependencies'
163
+ task :geminstaller do
164
+ system('geminstaller') || raise("'geminstaller' command failed")
165
+ end
166
+
167
+ desc 'Git submodules init and update'
168
+ task :git_submodule_update do
169
+ if File.exist?(File.dirname(__FILE__) + "/.git")
170
+ # NOTE: If you remove a submodule, you must do 'git rm --cached [path to deleted submodule]' or else you will get warnings
171
+ sh "git submodule init"
172
+ sh "git submodule update"
173
+ end
174
+ end
175
+
176
+ desc 'Git submodules init, update, and pull'
177
+ task :git_submodule_pull => [:git_submodule_update] do
178
+ if File.exist?(File.dirname(__FILE__) + "/.git")
179
+ sh "cd dummyrepo && git pull origin master && git status; cd .."
180
+ sh "cd spec/fixture/rubygems_dist/rubygems-trunk/ && git pull origin master && git status; cd ../../../../"
181
+ end
182
+ end
183
+
184
+ desc 'Git submodules init, update, pull, commit, and push - warning - does a commit and push to remote repo'
185
+ task :git_submodule_commit_and_push => [:git_submodule_pull] do
186
+ if File.exist?(File.dirname(__FILE__) + "/.git") && git_repo_writeable?
187
+ puts "Updating, committing, and pushing git submodule updates..."
188
+ git_commit_submodule_commit('dummyrepo')
189
+ git_commit_submodule_commit('spec/fixture/rubygems_dist/rubygems-trunk')
190
+ sh "git push"
191
+ end
192
+ end
193
+
194
+ def git_commit_submodule_commit(submodule_path)
195
+ sh "git commit #{submodule_path} -m 'update #{submodule_path} submodule'" do |ok, res|
196
+ if !ok and res.exitstatus != 1
197
+ puts "pattern not found (status = #{res.exitstatus})"
198
+ raise "git #{submodule_path} submodule commit failed"
199
+ end
200
+ end
201
+ end
202
+
203
+ def git_repo_writeable?
204
+ `git config --get-regexp remote\..+\.url` =~ /git@/
205
+ end
206
+
150
207
  # vim: syntax=Ruby
data/TODO.txt CHANGED
@@ -134,5 +134,5 @@
134
134
  * Fix errors when using relative or ~/ dir in --config path
135
135
  * make verbose option specify --backtrace on all gem commands
136
136
  * Add support, syntax, and options for uninstalling gems - completely, or down to highest specified version.
137
- * add feature to automatically warn if there is a more recent version of the gem available and check_for_upgrade == false. Use "gem outdated" command
137
+ * add feature to automatically warn if there is a more recent version of the gem available and check_for_upgrade == false. Use "gem outdated" command
138
138
  ================ 0.later.1 Unprioritized ===================
data/authors ADDED
@@ -0,0 +1 @@
1
+ thewoolleyman = Chad Woolley <thewoolleyman@gmail.com>
data/cruise_config.rb CHANGED
@@ -1,8 +1,17 @@
1
1
  # Project-specific configuration for CruiseControl.rb
2
2
  require 'fileutils'
3
+ require 'socket'
3
4
 
4
5
  Project.configure do |project|
5
- project.email_notifier.emails = ['thewoolleyman@gmail.com']
6
+ triggers = []
7
+ if File.exists?(File.expand_path(File.dirname(project.path)) + '/../../RubyGems')
8
+ triggers << :RubyGems
9
+ end
10
+ if File.exists?(File.expand_path(File.dirname(project.path)) + '/../../dummyrepo')
11
+ triggers << :dummyrepo
12
+ end
13
+ project.triggered_by *triggers
14
+ project.email_notifier.emails = ['thewoolleyman@gmail.com'] if Socket.gethostname =~ /(thewoolleyweb.com|ci.pivotallabs.com)/
6
15
  if project.name =~ /rubygems[_-](.*)$/ # geminstaller_using_rubygems_0-9-4
7
16
  rubygems_version = $1
8
17
  rubygems_version.gsub!('-','.')
data/geminstaller.yml CHANGED
@@ -1,13 +1,15 @@
1
1
  ---
2
2
  # GemInstaller config file which specifies the actual build, test, and doc dependencies for GemInstaller itself.
3
3
  defaults:
4
- install_options: --include-dependencies
5
- fix_dependencies: true
4
+ install_options: --no-ri --no-rdoc
5
+ #fix_dependencies: true
6
6
  gems:
7
7
  - name: diff-lcs
8
8
  version: '>= 1.1.2'
9
9
  - name: hoe
10
- version: '>= 1.4.0'
10
+ version: '>= 2.3.2'
11
+ - name: hoe-seattlerb
12
+ version: '>= 1.2.0'
11
13
  - name: open4
12
14
  version: '>= 0.9.6'
13
15
  - name: rake
@@ -19,7 +21,10 @@ gems:
19
21
  # version: '= 3.0.4'
20
22
  version: '= 4.0.4'
21
23
  - name: rspec
22
- version: '>= 1.1.12'
24
+ version: '>= 1.2.8'
25
+ # install dev dependencies for rspec, or else regression tests on older versions of rubygems with the dev dependencies
26
+ # bug (1.0, 1.1) fail - and currently Hoe swallows Rspec load error silently
27
+ install_options: --no-ri --no-rdoc --development
23
28
  - name: cmdparse
24
29
  version: '>= 2.0.2'
25
30
  - name: ruby-debug
data/lib/geminstaller.rb CHANGED
@@ -34,7 +34,7 @@ module GemInstaller
34
34
  end
35
35
 
36
36
  def self.version
37
- "0.5.1"
37
+ "0.5.2"
38
38
  end
39
39
 
40
40
  def self.create_application(args = [], registry = nil)
@@ -1,5 +1,3 @@
1
- require 'rubygems/rubygems_version'
2
-
3
1
  module GemInstaller
4
2
  class RubyGemsVersionChecker
5
3
  def self.matches?(version_spec, options = {})
@@ -32,6 +32,10 @@ These are some notes on the underlying design of GemInstaller, and the current s
32
32
 
33
33
  h1. Maintaining forward and backward compatibility with multiple RubyGems versions
34
34
 
35
+ * BACKWARD COMPATIBILITY UPDATE: As of July 2009, I had to give up on being able to keep the test suite running against all old versions of RubyGems back to 0.8.11, and I've had to drop test support for some of the old versions. The world moves on, and changes in Rspec, Rake, Hoe, Ruby, and Rubygems itself make it hard to make the tests themselves run under old versions of Rubygems. GemInstaller ITSELF should still run against these versions, I just can't run the automated tests for them.
36
+
37
+ * FORWARD COMPATIBILITY UPDATE: Between my move to git (no more automagically-updating svn:externals, just lame manual git submodules), and RubyGems' refusal to allow incrementing of the RubyGems trunk version ([refusal](http://rubyforge.org/pipermail/rubygems-developers/2009-June/004749.html), [explanation](http://rubyforge.org/pipermail/rubygems-developers/2009-June/004750.html)), maintaining automated tests and version checks against the latest RubyGems trunk presented some challenges. However, I have it working again, in an ugly Rube-Goldbergesque kind of way. More details later...
38
+
35
39
  * I've put a lot of effort into ensuring that GemInstaller works with older versions of RubyGems, and run automated tests against several recent versions on Continuous Integration.
36
40
 
37
41
  * This wasn't as hard as it seems. The hardest part was figuring out what was different between versions. Once you understand that, you can add switch statements to perform different logic or tests depending on the version (which is easy if you use rubygems built in Version Requirement support - see GemInstaller::RubygemsVersionChecker).
@@ -57,11 +61,11 @@ Yeah, it's too manual. Notes for improvement below.
57
61
  * Update version in geminstaller.rb (if it was not done immediately after last publish, which it should have been)
58
62
  * rake update_manifest
59
63
  * Run tests:
60
- ** CI should be green for all versions
61
- ** install_smoketest.rb and autogem_smoketest.rb should pass for all RubyGems versions on mac/linux
62
- ** test_all, install_smoketest.rb and autogem_smoketest.rb should pass for latest RubyGems version on windows
64
+ ** CI should be green for latest version and as many old versions as possible
65
+ ** install_smoketest.rb and autogem_smoketest.rb should pass for all RubyGems versions on mac/linux (if they are in a working state)
66
+ ** test_all, install_smoketest.rb and autogem_smoketest.rb should pass for latest RubyGems version on windows (if they are in a working state)
63
67
  * Make sure everything is checked in
64
- * Make a tag in svn
68
+ * Make a tag in git
65
69
  * rake clean package
66
70
  * Upload gem to rubyforge
67
71
  * rake publish_website
@@ -10,6 +10,7 @@ If anything is unclear, or if you'd like to see a tutorial on a topic, please su
10
10
  * "Integrating GemInstaller into Ruby on Rails":#integrating_geminstaller_into_ruby_on_rails
11
11
  * "Using Common or Shared Config Files or Snippets":#using_common_or_shared_config_files
12
12
  * "Running GemInstaller from Capistrano":#running_geminstaller_from_capistrano
13
+ * "Running GemInstaller from Vlad the Deployer":#running_geminstaller_from_vlad_the_deployer
13
14
 
14
15
  h2(#installing_geminstaller). Installing GemInstaller
15
16
 
@@ -292,9 +293,45 @@ See also: Docs on the "<code>--config</code>":documentation.html#config_option o
292
293
 
293
294
  h2(#running_geminstaller_from_capistrano). Running GemInstaller from Capistrano
294
295
 
295
- GemInstaller can be hooked in as a capistrano task. This is a way to avoid having the boot.rb hacks run in demo or production, and possibly cause problems with app startup in these environments. It also is a way to avoid the current bug with Rails and Mongrel gems not being loaded correctly if they are upgraded during the app startup process.
296
+ GemInstaller can be hooked in as a capistrano task. This is a way to avoid having gems installed via the preinitializer.rb run in demo or production, and possibly cause problems with app startup in these environments (note you still want to Activate them in preinitializer.rb via GemInstaller.autorun). It also is a way to avoid the current bug with Rails and Mongrel gems not being loaded correctly if they are upgraded during the app startup process. Here's an example recipe:
296
297
 
297
- TODO: Finish writing this, for now see docs on "Using GemInstaller from Other Ruby Apps":documentation.html#using_geminstaller_from_other_ruby_apps
298
+ <pre><code>
299
+ namespace :deploy do
300
+ desc "gem installer"
301
+ task :geminstaller, :roles => :app do
302
+ sudo "geminstaller -c #{current_release}/config/geminstaller.yml"
303
+ end
304
+ end
305
+ </code></pre>
298
306
 
299
307
  See also: Docs on "Using GemInstaller from Other Ruby Apps":documentation.html#using_geminstaller_from_other_ruby_apps.
300
308
 
309
+ h2(#running_geminstaller_from_vlad_the_deployer). Running GemInstaller from Vlad the Deployer
310
+
311
+ You can also run GemInstaller from "Vlad the Deployer":http://rubyhitsquad.com/Vlad_the_Deployer.html. Check out "this gist":http://gist.github.com/72143 and "blog post":http://geminstallthat.wordpress.com/2009/02/28/using-geminstaller-with-vlad-the-deployer from "John Dewey":http://geminstallthat.wordpress.com . Here's the contents of that gist:
312
+
313
+ <pre><code>
314
+ ### lib/tasks/app.rake
315
+
316
+ begin
317
+ require 'vlad'
318
+ Vlad.load :scm => :git, :web => :apache
319
+ rescue LoadError
320
+ puts $!
321
+ end
322
+
323
+ ### Extending 'vlad:update' with 'gems:geminstaller'
324
+ namespace :vlad do
325
+ desc "Install gems via geminstaller."
326
+ remote_task :update, :roles => :app do
327
+ Rake::Task['gems:geminstaller'].invoke
328
+ end
329
+ end
330
+
331
+ namespace :gems do
332
+ desc "Run geminstaller."
333
+ remote_task :geminstaller, :roles => :app do
334
+ run "geminstaller --sudo -c #{current_path}/config/geminstaller.yml"
335
+ end
336
+ end
337
+ </code></pre>
@@ -20,7 +20,7 @@ GemInstaller provides automated installation, loading and activation of RubyGems
20
20
 
21
21
  GemInstaller can be used from the command line, or embedded to run automatically on startup for a Rails app or any other Ruby program.
22
22
 
23
- It has been tested on all major platforms (mac, linux, windows), and has an "extensive suite of tests":code/coverage/index.html which are "automatically run by Continuous Integration":http://ci.thewoolleyweb.com against recent versions of RubyGems (> 1.0.1 releases and trunk)..
23
+ It has been tested on all major platforms (mac, linux, windows), and has an "extensive suite of tests":code/coverage/index.html which are "automatically run by Continuous Integration":http://ci.thewoolleyweb.com against recent versions of RubyGems (selected older releases and trunk)..
24
24
 
25
25
  h2. How do I get it?
26
26
 
@@ -46,6 +46,8 @@ Please "report any others that you find":http://thewoolleyweb.lighthouseapp.com/
46
46
 
47
47
  h2(#history). History
48
48
 
49
+ * 0.5.2
50
+ ** Support for Rubygems 1.3.5.
49
51
  * 0.5.1
50
52
  ** Print a very verbose and helpful error message if gem cannot be found on remote server. Attempts to help "http://thewoolleyweb.lighthouseapp.com/projects/11580/tickets/5-sometimes-installing-fails":http://thewoolleyweb.lighthouseapp.com/projects/11580/tickets/5-sometimes-installing-fails
51
53
  ** Fix bug with stderr being swallowed silently when '--sudo' option is used.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: geminstaller
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chad Woolley
@@ -9,12 +9,13 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-02-23 00:00:00 -07:00
12
+ date: 2009-07-24 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies: []
15
15
 
16
- description: "Automated Gem installation, activation, and much more! == FEATURES: GemInstaller provides automated installation, loading and activation of RubyGems. It uses a simple YAML config file to: * Automatically install the correct versions of all required gems wherever your app runs. * Automatically ensure installed gems and versions are consistent across multiple applications, machines, platforms, and environments * Automatically activate correct versions of gems on the ruby load path when your app runs ('require_gem'/'gem') * Automatically reinstall missing dependency gems (built in to RubyGems > 1.0) * Automatically detect correct platform to install for multi-platform gems (built in to RubyGems > 1.0) * Print YAML for \"rogue gems\" which are not specified in the current config, to easily bootstrap your config file, or find gems that were manually installed without GemInstaller. * Allow for common configs to be reused across projects or environments by supporting multiple config files, including common config file snippets, and defaults with overrides. * Allow for dynamic selection of gems, versions, and platforms to be used based on environment vars or any other logic. * Avoid the \"works on demo, breaks on production\" syndrome * Solve world hunger, prevent the global energy crisis, and wash your socks. == SYNOPSYS:"
17
- email: thewoolleyman@gmail.com
16
+ description: Automated Gem installation, activation, and much more!
17
+ email:
18
+ - thewoolleyman@gmail.com
18
19
  executables:
19
20
  - geminstaller
20
21
  extensions: []
@@ -25,7 +26,6 @@ extra_rdoc_files:
25
26
  - README.txt
26
27
  - TODO.txt
27
28
  files:
28
- - .loadpath
29
29
  - COPYING
30
30
  - History.txt
31
31
  - LICENSE
@@ -33,6 +33,7 @@ files:
33
33
  - README.txt
34
34
  - Rakefile
35
35
  - TODO.txt
36
+ - authors
36
37
  - bin/geminstaller
37
38
  - cruise_config.rb
38
39
  - focused_spec.sh
@@ -82,8 +83,6 @@ files:
82
83
  - lib/geminstaller/yaml_loader.rb
83
84
  - lib/geminstaller_rails_preinitializer.rb
84
85
  - start_local_gem_server.sh
85
- - test/test_all.rb
86
- - test/test_all_smoketests.rb
87
86
  - website/config.yaml
88
87
  - website/src/analytics.page
89
88
  - website/src/code/ci.virtual
@@ -104,7 +103,9 @@ files:
104
103
  - website/src/metainfo
105
104
  - website/src/webgen.css
106
105
  has_rdoc: true
107
- homepage: " by Chad Woolley"
106
+ homepage: http://geminstaller.rubyforge.org
107
+ licenses: []
108
+
108
109
  post_install_message:
109
110
  rdoc_options:
110
111
  - --main
@@ -126,9 +127,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
126
127
  requirements: []
127
128
 
128
129
  rubyforge_project: geminstaller
129
- rubygems_version: 1.4.0
130
+ rubygems_version: 1.3.5.1
130
131
  signing_key:
131
132
  specification_version: 3
132
- summary: Automated Gem installation, activation, and much more!
133
- test_files:
134
- - test/test_all.rb
133
+ summary: See http://geminstaller.rubyforge.org
134
+ test_files: []
135
+
data/.loadpath DELETED
@@ -1,5 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <loadpath>
3
- <pathentry path="" type="src"/>
4
- <pathentry path="org.rubypeople.rdt.launching.RUBY_CONTAINER" type="con"/>
5
- </loadpath>
data/test/test_all.rb DELETED
@@ -1,36 +0,0 @@
1
- print "\nRunning all GemInstaller Tests, ENV['RUBYGEMS_VERSION'] == '#{ENV['RUBYGEMS_VERSION']}'\n\n"
2
-
3
- dir = File.dirname(__FILE__)
4
- specdir = File.expand_path("#{dir}/../spec")
5
- require File.expand_path("#{specdir}/helper/spec_helper")
6
-
7
- spec_files = Dir.glob("#{specdir}/**/*_spec.rb")
8
-
9
- # put test_gem_home_spec first so we only have to perform the install once
10
- test_gem_home_path = Dir.glob("#{specdir}/functional/test_gem_home_spec.rb")[0]
11
- spec_files.delete(test_gem_home_path)
12
- spec_files.unshift(test_gem_home_path)
13
- spec_files.uniq
14
-
15
- args = spec_files
16
- args << "--color"
17
- args << "--format"
18
- args << "specdoc"
19
- args << "--diff"
20
- args << "unified"
21
-
22
- # append generated args to ARGV. THis may break if incompatible args are specified,
23
- # but I don't know a better way to invoke Rspec 1.1.1 programatically and check the return value
24
- ARGV.concat(args)
25
-
26
- success = false
27
- begin
28
- require 'spec'
29
- success = ::Spec::Runner::CommandLine.run
30
- ensure
31
- GemInstaller::TestGemHome.reset
32
- end
33
- # not sure what Spec::Runner::CommandLine.run can return, but fail if it's not boolean as expected
34
- raise "unexpected non-boolean return value from Spec::Runner::CommandLine.run(rspec_options)" unless success == true || success == false
35
-
36
- raise "Specs failed" unless success
@@ -1,21 +0,0 @@
1
- print "\nRunning all GemInstaller SmokeTests, ENV['RUBYGEMS_VERSION'] == '#{ENV['RUBYGEMS_VERSION']}'\n\n"
2
-
3
- dir = File.dirname(__FILE__)
4
- smoketest_dir = File.expand_path("#{dir}/../spec/smoketest")
5
-
6
- test_files = Dir.glob("#{smoketest_dir}/**/*_smoketest.rb")
7
-
8
- test_files.each do |test_file|
9
- raise "#{test_file} failed" unless system("ruby #{test_file}")
10
- end
11
- #
12
- # class SmokeTestSuite
13
- # def self.suite
14
- # suite = Test::Unit::TestSuite.new
15
- # suite << GemInstaller::AutoGemSmokeTest.suite
16
- # # suite << GemInstaller::InstallSmokeTest.suite
17
- # # suite << GemInstaller::RailsSmokeTest.suite
18
- # return suite
19
- # end
20
- # end
21
- # Test::Unit::UI::Console::TestRunner.run(SmokeTestSuite)