penchant 0.2.21 → 0.2.22

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -135,6 +135,8 @@ end
135
135
  Run `penchant gemfile ENV --deployment` to get this behavior. This is run by default when the
136
136
  pre-commit git hook runs, but only after the default Rake task passes.
137
137
 
138
+ If you just want any locally installed gems, add the `--local` switch. Great if rubygems.org is down!
139
+
138
140
  #### Won't this change the project dependencies?!
139
141
 
140
142
  Probably not. You probably have the "main" gems in your project locked to a version of Rails or
data/bin/penchant CHANGED
@@ -52,6 +52,7 @@ source :rubygems
52
52
  method_options :deployment => false
53
53
  method_options :switch_back => false
54
54
  method_options :no_auto_update => false
55
+ method_options :local => false
55
56
  desc "gemfile ENV", "Switch the gemfile environment, or rebuild the current environment if not given"
56
57
  def gemfile(env = get_current_env)
57
58
  check_git_hooks!
@@ -74,11 +75,17 @@ source :rubygems
74
75
  exit 1
75
76
  end
76
77
 
77
- system %{bundle}
78
+ command = %{bundle}
79
+ command << " --local" if options[:local]
80
+
81
+ system command
78
82
 
79
83
  # it's asking for bundle update, we know what we're doing
80
84
  if $?.exitstatus == 6 and !options[:no_auto_update]
81
- system %{bundle update}
85
+ command = %{bundle update}
86
+ command << " --local" if options[:local]
87
+
88
+ system command
82
89
  end
83
90
  end
84
91
 
@@ -1,3 +1,3 @@
1
1
  module Penchant
2
- VERSION = "0.2.21"
2
+ VERSION = "0.2.22"
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.21
4
+ version: 0.2.22
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-29 00:00:00.000000000 Z
12
+ date: 2012-09-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -199,7 +199,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
199
199
  version: '0'
200
200
  segments:
201
201
  - 0
202
- hash: 764884557755506875
202
+ hash: 2606576906095808762
203
203
  required_rubygems_version: !ruby/object:Gem::Requirement
204
204
  none: false
205
205
  requirements:
@@ -208,7 +208,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
208
208
  version: '0'
209
209
  segments:
210
210
  - 0
211
- hash: 764884557755506875
211
+ hash: 2606576906095808762
212
212
  requirements: []
213
213
  rubyforge_project: penchant
214
214
  rubygems_version: 1.8.23