wwtd 0.7.0 → 0.8.0

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: 684ca38e23a7af8ffb10b944cd14f33a7e50102d
4
- data.tar.gz: 68ffce845643c7ab35c3991408401a9625f11ba7
3
+ metadata.gz: 28a58b4b1f31df206d8fe64c4f6113289bc1f74c
4
+ data.tar.gz: 4dd575d2d517be4bab185c293840637eb0777ee3
5
5
  SHA512:
6
- metadata.gz: 2e35a28790372d7449e66b3ace34fcdf9c7718888324eb729b89bcc8b324d87cc3583de65345116e1c73cb0d7d7446bd9863c676835336b75265c8d1266314ee
7
- data.tar.gz: 36032ba24c407e0ec8511ff51000d07f98dc9e7f07c8a6e5d856d54c3b683854816207d5df88c160791d80e24e36b732802f5274899f84c77fd3a692ef6af0d5
6
+ metadata.gz: 37ed689748aaca642e3b05afa2c17434db599e784e0df53e1fa6ba5734d9a65344e5a4b1a6fa5502f0fe2009db91a9b9b63b07bc00bc258425924bcaf36c94f6
7
+ data.tar.gz: 020bade5fc8f65a4acdde7f4772b8ea7adab4075e1deebd9a28280f5590e4e9f6891c8826ba3bdd60ddb96a94581a38bcd0395f73862b8b2bf2857ad0299ae89
@@ -56,11 +56,14 @@ module WWTD
56
56
  # needs the export to work on ruby 1.9 / linux
57
57
  def escaped_env(env, options={})
58
58
  return "" if env.empty?
59
- env = env.map {|k,v| "#{k}=#{Shellwords.escape(v)}" }
59
+
60
+ if options[:rerun] && gemfile = env["BUNDLE_GEMFILE"]
61
+ env["BUNDLE_GEMFILE"] = gemfile.sub("#{Dir.pwd}/", "")
62
+ end
63
+
64
+ env = env.map { |k,v| "#{k}=#{Shellwords.escape(v)}" }
60
65
  if options[:rerun]
61
66
  env.join(" ") + " "
62
- elsif env.empty?
63
- ""
64
67
  else
65
68
  env.map { |e| "export #{e}" }.join(" && ") + " && "
66
69
  end
@@ -68,7 +68,7 @@ module WWTD
68
68
  name, value = part.split("=", 2)
69
69
  env[name] = value
70
70
  end
71
- env["BUNDLE_GEMFILE"] = gemfile if gemfile
71
+ env["BUNDLE_GEMFILE"] = File.expand_path(gemfile) if gemfile
72
72
  end
73
73
 
74
74
  def committed?(file)
@@ -1,3 +1,3 @@
1
1
  module WWTD
2
- VERSION = "0.7.0"
2
+ VERSION = "0.8.0"
3
3
  end
metadata CHANGED
@@ -1,36 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wwtd
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Grosser
8
8
  autorequire:
9
9
  bindir: bin
10
- cert_chain:
11
- - |
12
- -----BEGIN CERTIFICATE-----
13
- MIIDcDCCAligAwIBAgIBATANBgkqhkiG9w0BAQUFADA/MRAwDgYDVQQDDAdtaWNo
14
- YWVsMRcwFQYKCZImiZPyLGQBGRYHZ3Jvc3NlcjESMBAGCgmSJomT8ixkARkWAml0
15
- MB4XDTE0MDIwNDIwMjk0MVoXDTE1MDIwNDIwMjk0MVowPzEQMA4GA1UEAwwHbWlj
16
- aGFlbDEXMBUGCgmSJomT8ixkARkWB2dyb3NzZXIxEjAQBgoJkiaJk/IsZAEZFgJp
17
- dDCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMorXo/hgbUq97+kII9H
18
- MsQcLdC/7wQ1ZP2OshVHPkeP0qH8MBHGg6eYisOX2ubNagF9YTCZWnhrdKrwpLOO
19
- cPLaZbjUjljJ3cQR3B8Yn1veV5IhG86QseTBjymzJWsLpqJ1UZGpfB9tXcsFtuxO
20
- 6vHvcIHdzvc/OUkICttLbH+1qb6rsHUceqh+JrH4GrsJ5H4hAfIdyS2XMK7YRKbh
21
- h+IBu6dFWJJByzFsYmV1PDXln3UBmgAt65cmCu4qPfThioCGDzbSJrGDGLmw/pFX
22
- FPpVCm1zgYSb1v6Qnf3cgXa2f2wYGm17+zAVyIDpwryFru9yF/jJxE38z/DRsd9R
23
- /88CAwEAAaN3MHUwCQYDVR0TBAIwADALBgNVHQ8EBAMCBLAwHQYDVR0OBBYEFLIj
24
- Z1x7SnjGGHK+MiVZkFjjS/iMMB0GA1UdEQQWMBSBEm1pY2hhZWxAZ3Jvc3Nlci5p
25
- dDAdBgNVHRIEFjAUgRJtaWNoYWVsQGdyb3NzZXIuaXQwDQYJKoZIhvcNAQEFBQAD
26
- ggEBAExBcUWfGuamYn+IddOA0Ws8jUKwB14RXoZRDrTiTAlMm3Bkg2OKyxS3uJXa
27
- 6Z+LwFiZwVYk62yHXqNzEJycQk4SEmY+xDWLj0p7X6qEeU4QZKwR1TwJ5z3PTrZ6
28
- irJgM3q7NIBRvmTzRaAghWcQn+Eyr5YLOfMksjVBMUMnzh5/ZDgq53LphgJbGwvz
29
- ScJAgfNclLHnjk9q1mT1s0e1FPWbiAL3siBIR5HpH8qtSEiivTf2ntciebOqS93f
30
- F5etKHZg0j3eHO31/i2HnswY04lqGImUu6aM5EnijFTB7PPW2KwKKM4+kKDYFdlw
31
- /0WV1Ng2/Y6qsHwmqGg2VlYj2h4=
32
- -----END CERTIFICATE-----
33
- date: 2014-12-23 00:00:00.000000000 Z
10
+ cert_chain: []
11
+ date: 2015-03-27 00:00:00.000000000 Z
34
12
  dependencies: []
35
13
  description:
36
14
  email: michael@grosser.it
Binary file
data.tar.gz.sig DELETED
@@ -1,2 +0,0 @@
1
- �7n��Ꚁ6��2G�D�qC��W5O/ϣj $A�v�m���-��e���>]��?u�S�⤵�f�ǿ*Ƙ�=�����8v+�Y��S�eE��Z��Q���7Z���@��R�aI�'�x3I8�ۦ����h�y��"(�'ӼPA�R|$��I���n#�Rr��Y������L=�~�&^��X�̫
2
- )K5I�C���d���=��TvX]�>Vn6P�=��v�/fU�
metadata.gz.sig DELETED
Binary file