cartage-bundler 1.1 → 1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 34bf308db6d6a09e30f8ac4d2a4c2620fb6113b6
4
- data.tar.gz: f5d4ed4d796fb977cab069f62f62e4cbc02569c7
3
+ metadata.gz: 4e3ceebdaac7e09be90b0639de85b29db63a4997
4
+ data.tar.gz: 9a29513f048f24fde9ff16669d719b8b46854785
5
5
  SHA512:
6
- metadata.gz: 5bd0e30a7d2f458b2eab725638d91b71d86c21f4b5a50d2241d307f24e6a22eba79fa8003c7e2857dac584b5afe13acaad50772d789756fecfa7307d140f0d2b
7
- data.tar.gz: 910f267cd4d27a8c19a89c57d5fde9c6161897662f9a28520fd45fd986413508118e11e65649b9958d7591e22e6354e9c1bf87027f542f81122df4aac205c85e
6
+ metadata.gz: a9bb9f4f2fe0194bfcd1189d8a1e53ddb7946b01225603fb768b02c7d5ee5b7db6682f940d9a039df32022df9836bdbbbf173ddd9193fd2f1383b755d8ef9ed0
7
+ data.tar.gz: 0087c75b15063b67d7e56f71ab17278e8560f6df3230fd9925bf5e337b53095bd924869b39975d26310b5e3db8ccf58c226a62b26e44935fea1d6b6939cbab39
data/History.md CHANGED
@@ -1,3 +1,10 @@
1
+ ### 1.2 / 2016-02-19
2
+
3
+ * 1 minor enhancement
4
+
5
+ * cartage-bundler now adds Cartage#run_without_bundler as a convenience
6
+ method for dependent plug-ins to use.
7
+
1
8
  ### 1.1 / 2016-02-17
2
9
 
3
10
  * 1 minor enhancement
@@ -5,6 +5,14 @@ require 'bundler'
5
5
 
6
6
  # Cartage, a reliable package builder.
7
7
  class Cartage
8
+ # A utility method for Cartage plug-ins to run a +command+ in the shell
9
+ # without the current Bundler environment. If Bundler is not in use, acts
10
+ # just like #run.
11
+ def run_without_bundler(command)
12
+ runner = -> { run(command) }
13
+ return runner.call unless defined?(::Bundler)
14
+ ::Bundler.with_clean_env(&runner)
15
+ end
8
16
  end
9
17
 
10
18
  # Cartage::Bundler is a +:vendor_dependencies+ plug-in for Cartage.
@@ -50,7 +58,7 @@ end
50
58
  # extra_without_groups:
51
59
  # - assets
52
60
  class Cartage::Bundler < Cartage::Plugin
53
- VERSION = '1.1' # :nodoc:
61
+ VERSION = '1.2' # :nodoc:
54
62
 
55
63
  # Cartage::Bundler is only enabled if the Gemfile exists.
56
64
  def disabled?
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cartage-bundler
3
3
  version: !ruby/object:Gem::Version
4
- version: '1.1'
4
+ version: '1.2'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Austin Ziegler
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-02-17 00:00:00.000000000 Z
11
+ date: 2017-03-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cartage