runcoderun-gem_sync 0.5.1 → 0.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/gem_sync.gemspec +2 -2
- data/lib/rcr/gem_sync.rb +16 -7
- data/lib/runcoderun_gems.txt +7 -4
- metadata +2 -2
data/gem_sync.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{gem_sync}
|
5
|
-
s.version = "0.5.
|
5
|
+
s.version = "0.5.2"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Rob Sanheim @ Relevance"]
|
9
|
-
s.date = %q{2008-
|
9
|
+
s.date = %q{2008-12-04}
|
10
10
|
s.default_executable = %q{gem_sync}
|
11
11
|
s.description = %q{Tool to install dependencies for RunCodeRun, though it could be used to bootstrap your own machines as well.}
|
12
12
|
s.email = %q{rob@runcoderun.com}
|
data/lib/rcr/gem_sync.rb
CHANGED
@@ -3,10 +3,11 @@ require 'open-uri'
|
|
3
3
|
|
4
4
|
module Rcr
|
5
5
|
class GemSync
|
6
|
-
VERSION = '0.5.
|
6
|
+
VERSION = '0.5.2'
|
7
7
|
GITHUB = "http://gems.github.com"
|
8
8
|
RCR_DEFAULT_GEM_LIST = File.expand_path(File.join(File.dirname(__FILE__), *%w[.. runcoderun_gems.txt]))
|
9
9
|
RCR_GITHUB_GEM_LIST = "http://github.com/runcoderun/gem_sync/tree/master%2Flib%2Fruncoderun_gems.txt?raw=true"
|
10
|
+
RCR_GITHUB_GEM_BLACKLIST = ""
|
10
11
|
|
11
12
|
def self.install_gems(gem_list = nil)
|
12
13
|
gem_list = RCR_DEFAULT_GEM_LIST unless gem_list
|
@@ -15,6 +16,14 @@ module Rcr
|
|
15
16
|
read_gem_list(gem_list)
|
16
17
|
install_gems_from_list
|
17
18
|
update_gems
|
19
|
+
uninstall_bad_gems(gem_list)
|
20
|
+
end
|
21
|
+
|
22
|
+
def self.uninstall_bad_gems(gem_list)
|
23
|
+
return unless gem_list == "__from_github__"
|
24
|
+
convert_gem_list(RCR_GITHUB_GEM_BLACKLIST).each do |rubygem|
|
25
|
+
`gem uninstall -a -x #{rubygem.name}`
|
26
|
+
end
|
18
27
|
end
|
19
28
|
|
20
29
|
def self.fail_if_gem_list_doesnt_exist(gem_list)
|
@@ -41,18 +50,18 @@ module Rcr
|
|
41
50
|
end
|
42
51
|
|
43
52
|
def self.install_gems_from_list
|
44
|
-
convert_gem_list(@@gem_list).each do |
|
45
|
-
if gem_installed?(
|
46
|
-
puts "skipping #{
|
53
|
+
convert_gem_list(@@gem_list).each do |rubygem|
|
54
|
+
if gem_installed?(rubygem.name, rubygem.version)
|
55
|
+
puts "skipping #{rubygem.name} #{rubygem.version} - already installed..."
|
47
56
|
next
|
48
57
|
end
|
49
|
-
cmd = "gem install #{
|
50
|
-
cmd << " --version #{
|
58
|
+
cmd = "gem install #{rubygem.name} --no-ri --no-rdoc"
|
59
|
+
cmd << " --version #{rubygem.version}" if gem.version
|
51
60
|
puts cmd
|
52
61
|
puts `#{cmd}`
|
53
62
|
unless $?.success?
|
54
63
|
cmd << " --source #{GITHUB}"
|
55
|
-
puts "***** WARNING Trying to install gem #{
|
64
|
+
puts "***** WARNING Trying to install gem #{rubygem.name} from github - watch for security issues."
|
56
65
|
puts cmd
|
57
66
|
puts `#{cmd}`
|
58
67
|
end
|
data/lib/runcoderun_gems.txt
CHANGED
@@ -25,13 +25,13 @@ daemons (1.0.10)
|
|
25
25
|
diff-lcs (1.1.2)
|
26
26
|
dnsruby (1.2)
|
27
27
|
do_mysql
|
28
|
-
do_sqlite3 (0.9.5)
|
29
28
|
echoe (3)
|
30
29
|
eventmachine
|
31
30
|
expectations (1.2.0)
|
32
31
|
extlib (0.9.5)
|
33
32
|
facets (2.4.4, 2.4.1, 2.3.0, 2.2.1, 2.2.0, 2.1.3, 2.0.5)
|
34
33
|
factory_girl
|
34
|
+
faker
|
35
35
|
fastercsv (1.2.3)
|
36
36
|
fattr (1.0.3)
|
37
37
|
flexmock (0.8.2)
|
@@ -53,7 +53,7 @@ json (1.1.3)
|
|
53
53
|
launchy (0.3.2)
|
54
54
|
libxml-ruby (0.8.3)
|
55
55
|
Linguistics
|
56
|
-
log_buddy (0.0.5)
|
56
|
+
log_buddy (0.0.5, 0.1.3)
|
57
57
|
main (2.8.2)
|
58
58
|
markaby (0.5)
|
59
59
|
mechanize
|
@@ -73,6 +73,7 @@ metaid (1.0)
|
|
73
73
|
mime-types (1.15)
|
74
74
|
mislav-will_paginate (2.3.4)
|
75
75
|
mocha (0.9.0)
|
76
|
+
mongrel
|
76
77
|
mosquito (0.1.3)
|
77
78
|
mysql (2.7)
|
78
79
|
net-ssh (2.0.4)
|
@@ -105,7 +106,8 @@ right_aws (1.8.1)
|
|
105
106
|
ruby-hmac (0.3.2)
|
106
107
|
ruby-openid
|
107
108
|
rmagick (2.5.2)
|
108
|
-
rspec (1.1.4)
|
109
|
+
rspec (1.1.11, 1.1.4)
|
110
|
+
rspec-rails (1.1.11)
|
109
111
|
rubigen
|
110
112
|
ruby-aaws
|
111
113
|
ruby-debug (0.10.2)
|
@@ -117,7 +119,7 @@ RubyInline (3.7.0)
|
|
117
119
|
ruport (1.6.1)
|
118
120
|
session
|
119
121
|
Shoulda (1.1.1)
|
120
|
-
spicycode-rcov (0.8.1.3.0)
|
122
|
+
spicycode-rcov (0.8.1.5.0, 0.8.1.3.0)
|
121
123
|
sql-parser (0.0.2)
|
122
124
|
sqlite3-ruby (1.2.1)
|
123
125
|
starling
|
@@ -139,5 +141,6 @@ treetop (1.2.4)
|
|
139
141
|
twitter
|
140
142
|
uuidtools (1.0.3)
|
141
143
|
validatable (1.6.7)
|
144
|
+
webrat
|
142
145
|
will_paginate (2.2.2)
|
143
146
|
ZenTest (3.10.0)
|
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: 0.5.
|
4
|
+
version: 0.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rob Sanheim @ Relevance
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2008-
|
12
|
+
date: 2008-12-04 00:00:00 -08:00
|
13
13
|
default_executable: gem_sync
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|