wwtd 0.4.6 → 0.4.7

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: ae31aae1fbbfb2abaf45f611d1e87d8b0f19030d
4
- data.tar.gz: d336d2c5bdee5aa5b2eef24eb4049be159cdec54
3
+ metadata.gz: 0df1c2b7d820aea511c66520570497fee6b748b0
4
+ data.tar.gz: bba9d9f9397cd474fa9917d84d18178c11be8c31
5
5
  SHA512:
6
- metadata.gz: a0e92588bd048ba0cb0402bcf2118b658707ff52384c6b9327b8f639eab81299bbe335d98c56d27d6777c9481c315b07382d1bef5f7b2d637765955165379786
7
- data.tar.gz: b329601e7a3b8c9505af1a2a73a67f2dbb035f173335eb3fd882e807a64d880842461e3fd43d56ceff56ec9c15db479d0807b2be3c4e1d1a4148376777afab17
6
+ metadata.gz: 8aea067874ea986d464c6cd050889dba103df4020baa56b0ac5bcff3420822d44905351d103ea31a46521438b04c97da7640aefad0cae39f7637bd2cafe1e19d
7
+ data.tar.gz: 00d496f98fb14197384608049b5b7459e95a334f023f0bddb8f4120f6a1bf6748d10da62337c513a8594f17953b2263da26b9c8b06ce1a404a471ead2c73f850
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -11,8 +11,10 @@ module WWTD
11
11
  puts "Ignoring: #{ignored.sort.join(", ")}" if ignored.any?
12
12
 
13
13
  # Execute tests
14
- results = ::WWTD.run(matrix, parse_options(argv)) do |state, config|
15
- puts info_line(state, config, matrix)
14
+ results = protect_against_nested_runs do
15
+ ::WWTD.run(matrix, parse_options(argv)) do |state, config|
16
+ puts info_line(state, config, matrix)
17
+ end
16
18
  end
17
19
 
18
20
  # Summary
@@ -26,6 +28,20 @@ module WWTD
26
28
 
27
29
  private
28
30
 
31
+ def protect_against_nested_runs
32
+ env = (defined?(Bundler) ? Bundler::ORIGINAL_ENV : ENV)
33
+
34
+ r = rand
35
+ puts "START #{r} -- #{env["INSIDE_WWTD"].inspect}"
36
+ raise "Already running WWTD" if env["INSIDE_WWTD"]
37
+ env['INSIDE_WWTD'] = "1"
38
+ yield
39
+ ensure
40
+ puts "END #{r}"
41
+ env['INSIDE_WWTD'] = nil
42
+ end
43
+
44
+
29
45
  def parse_options(argv)
30
46
  options = {}
31
47
  OptionParser.new do |opts|
@@ -1,3 +1,3 @@
1
1
  module WWTD
2
- VERSION = "0.4.6"
2
+ VERSION = "0.4.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wwtd
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.6
4
+ version: 0.4.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Grosser
@@ -30,7 +30,7 @@ cert_chain:
30
30
  F5etKHZg0j3eHO31/i2HnswY04lqGImUu6aM5EnijFTB7PPW2KwKKM4+kKDYFdlw
31
31
  /0WV1Ng2/Y6qsHwmqGg2VlYj2h4=
32
32
  -----END CERTIFICATE-----
33
- date: 2014-02-19 00:00:00.000000000 Z
33
+ date: 2014-03-13 00:00:00.000000000 Z
34
34
  dependencies: []
35
35
  description:
36
36
  email: michael@grosser.it
metadata.gz.sig CHANGED
@@ -1,2 +1,3 @@
1
- D|e��:���n(���-��e^����.��qr]0��5��~y:f��ͦ�}BQq
2
- P#8��6G�����>b�'�v�����>���o��t���9��GET���M�����'W[_���T�ܲ$h����v)��CM�z4W�����}خ��]R�]�ʘ�v����I#mq<<�"��k���O`�"bV��4t+�M=�D�|ż�`&+F'fhn"�R�FFAD�2�b�Nq/�{�3���A^�n~"�
1
+ ��l�: 
2
+ 7�>�k-��[*2Nq���16jl��H`Ve���LB��� �\�dd���m�|�
3
+ �t�=�::��!G D��n��t�bK\��d�‰���aZ�<�G�o�@�ϖ����r/��b<���#�x�6�)�;y�Ibe���$;��D���T�d���N�j�����@��"�a���d@�a����.}�I���y���=