runcoderun-gem_sync 0.5.3.1 → 0.5.3.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 +3 -2
- data/lib/runcoderun_gems.txt +1 -0
- data/spec/gem_sync_spec.rb +3 -1
- 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.3.
|
5
|
+
s.version = "0.5.3.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-12-
|
9
|
+
s.date = %q{2008-12-08}
|
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,7 +3,7 @@ require 'open-uri'
|
|
3
3
|
|
4
4
|
module Rcr
|
5
5
|
class GemSync
|
6
|
-
VERSION = '0.5.3.
|
6
|
+
VERSION = '0.5.3.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/raw/master/lib/runcoderun_gems.txt"
|
@@ -21,7 +21,8 @@ module Rcr
|
|
21
21
|
|
22
22
|
def self.uninstall_bad_gems(gem_list)
|
23
23
|
return unless gem_list == "__from_github__"
|
24
|
-
|
24
|
+
blacklist = open(RCR_GITHUB_GEM_BLACKLIST).read
|
25
|
+
convert_gem_list(blacklist).each do |rubygem|
|
25
26
|
cmd = "gem uninstall -a -x #{rubygem.name}"
|
26
27
|
puts cmd
|
27
28
|
`#{cmd}`
|
data/lib/runcoderun_gems.txt
CHANGED
data/spec/gem_sync_spec.rb
CHANGED
@@ -33,8 +33,10 @@ describe 'GemSync' do
|
|
33
33
|
Rcr::GemSync.read_gem_list "/my/gems.txt"
|
34
34
|
end
|
35
35
|
|
36
|
-
it "reads from gem list on github if passed github param" do
|
36
|
+
it "reads from gem list and blacklist on github if passed github param" do
|
37
37
|
Rcr::GemSync.expects(:open).with(Rcr::GemSync::RCR_GITHUB_GEM_LIST).returns(StringIO.new)
|
38
|
+
Rcr::GemSync.expects(:open).with(Rcr::GemSync::RCR_GITHUB_GEM_BLACKLIST).returns(StringIO.new)
|
39
|
+
|
38
40
|
Rcr::GemSync.install_gems "__from_github__"
|
39
41
|
end
|
40
42
|
|
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.3.
|
4
|
+
version: 0.5.3.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-
|
12
|
+
date: 2008-12-08 00:00:00 -08:00
|
13
13
|
default_executable: gem_sync
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|