runcoderun-gem_sync 0.5.3.2 → 0.5.4

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,6 @@
1
+ === 0.5.4
2
+ * Can use gem version strings to uninstall things on the blacklist
3
+
1
4
  === 0.5.3
2
5
  * Better urls for the gem list from github, plain old .txt works now
3
6
 
data/Rakefile CHANGED
@@ -11,4 +11,9 @@ Echoe.new('gem_sync', Rcr::GemSync::VERSION) do |p|
11
11
  p.url = "http://runcoderun.com"
12
12
  p.test_pattern = 'spec/**/*_spec.rb'
13
13
  p.gemspec_format = :ruby
14
+ end
15
+
16
+ desc 'Load the library in an IRB session'
17
+ task :console do
18
+ sh %(irb -r lib/rcr/gem_sync.rb)
14
19
  end
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.2"
5
+ s.version = "0.5.4"
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-08}
9
+ s.date = %q{2008-12-09}
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.2'
6
+ VERSION = '0.5.4'
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,9 +21,11 @@ module Rcr
21
21
 
22
22
  def self.uninstall_bad_gems(gem_list)
23
23
  return unless gem_list == "__from_github__"
24
+ puts "Uninstalling any gems on the blacklist..."
24
25
  blacklist = open(RCR_GITHUB_GEM_BLACKLIST).read
25
26
  convert_gem_list(blacklist).each do |rubygem|
26
- cmd = "gem uninstall -a -x #{rubygem.name}"
27
+ cmd = "gem uninstall -I -a -x #{rubygem.name}"
28
+ cmd << " --version '#{rubygem.version}'" if rubygem.version
27
29
  puts cmd
28
30
  `#{cmd}`
29
31
  end
@@ -37,6 +39,7 @@ module Rcr
37
39
  end
38
40
 
39
41
  def self.update_self
42
+ puts "Updating runcoderun-gem_sync from github..."
40
43
  puts `gem update runcoderun-gem_sync --source #{GITHUB}`
41
44
  end
42
45
 
@@ -103,6 +103,7 @@ relevance-rubycas-server (0.6.99)
103
103
  relevance-tarantula (0.0.5)
104
104
  relevance-test-spec
105
105
  relevance-github_hook (0.5.8)
106
+ rdiscount
106
107
  right_aws (1.8.1)
107
108
  ruby-hmac (0.3.2)
108
109
  ruby-openid
@@ -123,12 +124,14 @@ Shoulda (1.1.1)
123
124
  spicycode-rcov (0.8.1.5.0, 0.8.1.3.0)
124
125
  sql-parser (0.0.2)
125
126
  sqlite3-ruby (1.2.1)
127
+ spicycode-micronaut
126
128
  starling
127
129
  starling-starling
128
130
  stone
129
131
  syntax
130
132
  systemu (1.2.0)
131
133
  technicalpickles-echoe (3)
134
+ technicalpickles-jeweler
132
135
  termios (0.9.4)
133
136
  term-ansicolor (1.0.3)
134
137
  thoughtbot-clearance (0.1.6)
@@ -63,6 +63,12 @@ ZenTest (3.10.0, 3.9.2, 3.9.1, 3.8.0, 3.6.0)]
63
63
  gems[2].version.should == "3.10.0"
64
64
  gems[3].version.should == "3.9.2"
65
65
  end
66
+
67
+ it "can use version strings" do
68
+ list = %[do_sqlite3 (<= 0.9.8)]
69
+ gems = Rcr::GemSync.convert_gem_list(list)
70
+ gems.first.version.should == '<= 0.9.8'
71
+ end
66
72
  end
67
73
 
68
74
  describe "parsing versions" do
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.2
4
+ version: 0.5.4
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-08 00:00:00 -08:00
12
+ date: 2008-12-09 00:00:00 -08:00
13
13
  default_executable: gem_sync
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency