penchant 0.2.15 → 0.2.16

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.
Files changed (3) hide show
  1. data/bin/penchant +7 -0
  2. data/lib/penchant/version.rb +1 -1
  3. metadata +4 -4
data/bin/penchant CHANGED
@@ -41,6 +41,7 @@ class PenchantCLI < Thor
41
41
 
42
42
  method_options :deployment => false
43
43
  method_options :switch_back => false
44
+ method_options :no_auto_update => false
44
45
  desc "gemfile ENV", "Switch the gemfile environment, or rebuild the current environment if not given"
45
46
  def gemfile(env = get_current_env)
46
47
  check_git_hooks!
@@ -62,7 +63,13 @@ class PenchantCLI < Thor
62
63
  puts "No Gemfile or Gemfile.penchant, exiting."
63
64
  exit 1
64
65
  end
66
+
65
67
  system %{bundle}
68
+
69
+ # it's asking for bundle update, we know what we're doing
70
+ if $?.exitstatus == 6 and !options[:no_auto_update]
71
+ system %{bundle update}
72
+ end
66
73
  end
67
74
 
68
75
  desc "gemfile-env", "Get the gemfile environment"
@@ -1,3 +1,3 @@
1
1
  module Penchant
2
- VERSION = "0.2.15"
2
+ VERSION = "0.2.16"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: penchant
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.15
4
+ version: 0.2.16
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-08-02 00:00:00.000000000 Z
12
+ date: 2012-08-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -198,7 +198,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
198
198
  version: '0'
199
199
  segments:
200
200
  - 0
201
- hash: 3497942139244782900
201
+ hash: -4574522728835378129
202
202
  required_rubygems_version: !ruby/object:Gem::Requirement
203
203
  none: false
204
204
  requirements:
@@ -207,7 +207,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
207
207
  version: '0'
208
208
  segments:
209
209
  - 0
210
- hash: 3497942139244782900
210
+ hash: -4574522728835378129
211
211
  requirements: []
212
212
  rubyforge_project: penchant
213
213
  rubygems_version: 1.8.23