runcoderun-gem_sync 1.3.1 → 1.3.3

Sign up to get free protection for your applications and to get access to all the features.
data/README.txt CHANGED
@@ -33,4 +33,4 @@ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
33
33
  IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
34
34
  CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
35
35
  TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
36
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
36
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/Rakefile CHANGED
@@ -10,7 +10,7 @@ begin
10
10
  gem.homepage = "http://github.com/runcoderun/gem_sync"
11
11
  gem.authors = ["Rob Sanheim"]
12
12
  gem.add_development_dependency "micronaut"
13
- # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
13
+ gem.files.exclude(".gitignore")
14
14
  end
15
15
  rescue LoadError
16
16
  puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
@@ -39,8 +39,6 @@ task :console do
39
39
  sh %(irb -r lib/rcr/gem_sync.rb)
40
40
  end
41
41
 
42
- p RUBY_VERSION
43
- p RUBY_VERSION =~ /1.9/
44
42
  if RUBY_VERSION =~ /1.9/
45
43
  task :default => :examples
46
44
  else
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.3.0
1
+ 1.3.3
@@ -160,4 +160,24 @@ EOL
160
160
  end
161
161
  end
162
162
 
163
+ describe "wtf" do
164
+ it "installs versions of stuff" do
165
+ gem_sync = Rcr::GemSync.new(["--github"])
166
+ installed_gems = <<EOL
167
+ rails (2.3.4, 2.3.2, 2.1.2, 2.1.1, 2.1.0, 2.0.4, 2.0.2, 1.2.6, 1.2.5, 1.2.2, 1.2.1)
168
+ relevance-multi_rails (0.0.8)
169
+ remarkable_rails (3.1.10)
170
+ rspec-rails (1.2.7.1, 1.2.4, 1.2.2, 1.1.12, 1.1.11)
171
+ spicycode-micronaut-rails (0.3.2)
172
+ EOL
173
+ gem_sync.stubs(:installed_gem_list).returns(installed_gems)
174
+ gem_sync.stubs(:read_gem_list).returns("rails (2.3.4, 2.3.3, 2.3.2, 2.3.1, 2.2.2, 2.1.2, 2.1.1, 2.1.0)")
175
+ gem_sync.stubs(:run)
176
+ gem_sync.expects(:run).with(all_of(includes("rails"), includes("version 2.3.3")))
177
+ gem_sync.expects(:run).with(all_of(includes("rails"), includes("version 2.3.1")))
178
+ gem_sync.expects(:run).with(all_of(includes("rails"), includes("version 2.2.2")))
179
+ gem_sync.sync
180
+ end
181
+ end
182
+
163
183
  end
data/gem_sync.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{gem_sync}
8
- s.version = "1.3.1"
8
+ s.version = "1.3.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Rob Sanheim"]
12
- s.date = %q{2009-09-13}
12
+ s.date = %q{2009-09-19}
13
13
  s.default_executable = %q{gem_sync}
14
14
  s.description = %q{Tool to install rubygems for RunCodeRun, though it could be used to bootstrap your own machines as well.}
15
15
  s.email = %q{rob@runcoderun.com}
@@ -19,8 +19,7 @@ Gem::Specification.new do |s|
19
19
  "README.txt"
20
20
  ]
21
21
  s.files = [
22
- ".gitignore",
23
- "History.txt",
22
+ "History.txt",
24
23
  "LICENSE",
25
24
  "Manifest",
26
25
  "Manifest.txt",
data/lib/rcr/gem_sync.rb CHANGED
@@ -72,11 +72,17 @@ module Rcr
72
72
  end
73
73
 
74
74
  def installed?(requested)
75
- gem_installed?(requested.name) && gem_version_installed?(requested.version)
75
+ result = gem_installed?(requested.name) && gem_version_installed?(requested.version)
76
+ puts "Skipping installation of #{requested.name} #{requested.version}, as its already installed" if verbose? && result
77
+ result
76
78
  end
77
79
 
78
80
  def installed_gems
79
- @installed_gems ||= Rcr::GemParser.convert_gem_list(`gem list`)
81
+ @installed_gems ||= Rcr::GemParser.convert_gem_list(installed_gem_list)
82
+ end
83
+
84
+ def installed_gem_list
85
+ `gem list`
80
86
  end
81
87
 
82
88
  def install_from_rubyforge(rubygem)
@@ -44,7 +44,7 @@ context
44
44
  couchrest
45
45
  crack
46
46
  csv-mapper (0.0.3)
47
- cucumber (0.3.96, 0.3.94, 0.3.92, 0.3.9)
47
+ cucumber (0.3.96, 0.3.94, 0.3.92, 0.3.9, 0.2.3)
48
48
  curb +ruby_186 +ruby_191
49
49
  daemons
50
50
  dancroak-clearance
@@ -165,6 +165,7 @@ mocha (0.9.5, 0.9.4, 0.9.0)
165
165
  mojombo-chronic
166
166
  mojombo-grit (1.1.1, 0.9.4)
167
167
  mojombo-jekyll
168
+ moneta
168
169
  money
169
170
  mongrel
170
171
  mosquito (0.1.4, 0.1.3)
@@ -203,7 +204,7 @@ PriorityQueue
203
204
  quietbacktrace
204
205
  rack (1.0.0, 0.9.1, 0.4.0)
205
206
  rack-test (0.2.0, 0.1.0)
206
- rails (2.3.2, 2.3.1, 2.2.2, 2.1.2, 2.1.1, 2.1.0, 2.0.5, 2.0.4, 2.0.2, 1.2.6, 1.2.5, 1.2.4, 1.2.3, 1.2.2, 1.2.1, 1.2.0)
207
+ rails (2.3.4, 2.3.3, 2.3.2, 2.3.1, 2.2.2, 2.1.2, 2.1.1, 2.1.0, 2.0.5, 2.0.4, 2.0.2, 1.2.6, 1.2.5, 1.2.4, 1.2.3, 1.2.2, 1.2.1, 1.2.0)
207
208
  rake (0.8.7, 0.8.4, 0.8.3)
208
209
  railroad
209
210
  rc-rest
@@ -298,6 +299,7 @@ tzinfo
298
299
  unit_record
299
300
  uuidtools (1.0.7, 1.0.3)
300
301
  validatable
302
+ vlad
301
303
  webrat
302
304
  will_paginate
303
305
  xmlelements
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: runcoderun-gem_sync
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.1
4
+ version: 1.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rob Sanheim
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-09-13 00:00:00 -07:00
12
+ date: 2009-09-19 00:00:00 -07:00
13
13
  default_executable: gem_sync
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -32,7 +32,6 @@ extra_rdoc_files:
32
32
  - LICENSE
33
33
  - README.txt
34
34
  files:
35
- - .gitignore
36
35
  - History.txt
37
36
  - LICENSE
38
37
  - Manifest
@@ -52,6 +51,7 @@ files:
52
51
  - lib/runcoderun_gems.txt
53
52
  has_rdoc: false
54
53
  homepage: http://github.com/runcoderun/gem_sync
54
+ licenses:
55
55
  post_install_message:
56
56
  rdoc_options:
57
57
  - --charset=UTF-8
@@ -72,7 +72,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
72
72
  requirements: []
73
73
 
74
74
  rubyforge_project:
75
- rubygems_version: 1.2.0
75
+ rubygems_version: 1.3.5
76
76
  signing_key:
77
77
  specification_version: 3
78
78
  summary: gem_sync
data/.gitignore DELETED
@@ -1 +0,0 @@
1
- pkg