runcoderun-gem_sync 0.5.3.1 → 0.5.3.2

Sign up to get free protection for your applications and to get access to all the features.
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.1"
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-05}
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.1'
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
- convert_gem_list(RCR_GITHUB_GEM_BLACKLIST).each do |rubygem|
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}`
@@ -125,6 +125,7 @@ sql-parser (0.0.2)
125
125
  sqlite3-ruby (1.2.1)
126
126
  starling
127
127
  starling-starling
128
+ stone
128
129
  syntax
129
130
  systemu (1.2.0)
130
131
  technicalpickles-echoe (3)
@@ -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.1
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-05 00:00:00 -08:00
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