the_heist 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -35,6 +35,12 @@ Now pull off the heist!
35
35
  gem install redis-namespace --version=0.7.0 --no-ri --no-rdoc
36
36
  gem install redis-namespace --version=0.8.0 --no-ri --no-rdoc
37
37
 
38
+ Optionally, you can pull off the heist with only the newest version of each gem !
39
+
40
+ $ gem list | heist --recent
41
+ gem install redis --version=2.0.6 --no-ri --no-rdoc
42
+ gem install redis-namespace --version=0.8.0 --no-ri --no-rdoc
43
+
38
44
  Apologies
39
45
  =========
40
46
 
@@ -47,4 +53,4 @@ Coughing, wheezing, sneezing, itching, runny nose, loss of appetite, dabbling in
47
53
 
48
54
  Suppresses ri/rdoc by default.
49
55
 
50
- It is likely that gem dependencies will lop on more gem versions than the explicitly designated ones.
56
+ It is likely that gem dependencies will pile on more gem versions than the explicitly designated ones.
data/lib/heist/main.rb CHANGED
@@ -26,6 +26,13 @@ module Heist
26
26
  gem, versions = match
27
27
  versions = versions.split(/, /)
28
28
 
29
+ # at some point, abstract this to a config/settings
30
+ # module elsewhere...
31
+ if ARGV.include?('--recent')
32
+ versions = versions.first
33
+ end
34
+ # </lazy>
35
+
29
36
  versions.reverse.each do |version|
30
37
  output << ("gem install #{gem}" +
31
38
  " --version=#{version}" +
data/lib/heist/version.rb CHANGED
@@ -3,5 +3,5 @@
3
3
  #
4
4
 
5
5
  module Heist
6
- Version = VERSION = '0.0.2'
6
+ Version = VERSION = '0.0.3'
7
7
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: the_heist
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 2
10
- version: 0.0.2
9
+ - 3
10
+ version: 0.0.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jerry Chen
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-03-24 00:00:00 -05:00
18
+ date: 2011-04-16 00:00:00 -05:00
19
19
  default_executable:
20
20
  dependencies: []
21
21