async_play 0.1.1 → 0.2.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: d557dc9d43976db79dff3091767ba127661a1447
4
- data.tar.gz: 32b7d48f1efceddf6477e47a4101f06dd04903d7
3
+ metadata.gz: 2bb7065e1db3d8c552672f959ae48c8815022324
4
+ data.tar.gz: 34795e2f4d4e6b469ed2cd6c7f45af844e06c4a1
5
5
  SHA512:
6
- metadata.gz: f44d9d9567493a9fe4b25cc9bea86c45b47f3e1c2f4b9dc9e2956785381b28771bfc9164a95d914fa3013e34837062f18a4a8f680117ac9289ee1dc5878c9403
7
- data.tar.gz: a9fb7b23823c9074df0f481196618d4444352245cca60a9cbf1c971a20d7b25ac32d210d8963778b483712b68372bed92005c6e6493adcf964de46feaa08137d
6
+ metadata.gz: 46059346d5b18a7ebcc82ced54b13fb6b939b42a9ac7d1102445ff01c383ed1fdb15768952e112118ee126fe2e1e7a9a022f03c5108ed9465fb6e0dbca8113a3
7
+ data.tar.gz: 647d3284bc4a27ac22c1e6201bd634e903d1c85c23660c3b4c2fa27481246abfff702787ebd9010c26b456c53045c77bbd748343ede2f68c674017c5728cf200
data/README.md CHANGED
@@ -31,6 +31,11 @@ results = AsyncPlay.opening{ | curtain | Thread.new { curtain.call 1 } }
31
31
 
32
32
  If you do not call the proc within 1 second, AsyncPlay#opening raise an error.
33
33
 
34
+ ### Change wait time
35
+
36
+ The wait time is 1 second by default.
37
+ To change wait time, set the environment variable `ASYNC_PLAY_WAIT_TIME` in seconds.
38
+
34
39
  ## Development
35
40
 
36
41
  After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
@@ -28,7 +28,7 @@ module AsyncPlay
28
28
  end
29
29
 
30
30
  def pop
31
- pop_with_timeout 1
31
+ pop_with_timeout ENV['ASYNC_PLAY_WAIT_TIME']&.to_i || 1
32
32
  end
33
33
 
34
34
  private
@@ -1,3 +1,3 @@
1
1
  module AsyncPlay
2
- VERSION = "0.1.1"
2
+ VERSION = "0.2.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: async_play
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - ledsun
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-06-03 00:00:00.000000000 Z
11
+ date: 2017-06-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler