rblocks 1.0.0 → 1.0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +2 -2
- data/lib/{r_blocks → rblocks}/ticker.rb +0 -0
- data/lib/{r_blocks → rblocks}/timer.rb +0 -0
- data/rblocks.gemspec +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 63d8fe569f6c82bd50be2c575253688e7a9a627b1715c95791d26811e786f7aa
|
4
|
+
data.tar.gz: 8468c3c058ad92285f66f67b65f17139fd7aad458747642c1f6784ab4a4d6071
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c9f0b79a34e6e0e7ab8acc5f140f4edac65aa6329b50f1dc14fde607e4c23393c827e9e33f8497526238327f47edbf7fc8a1edf0468ae4eab14ad54dc66b9533
|
7
|
+
data.tar.gz: efb80c3663d06b2d18708702e219fd6a102c9645c2286dd47cc049a97d8b3e0862594025bb6040b6cef6f138c588078358342602cf09625962b6481990e7a4b2
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -32,7 +32,7 @@ timer.wait # block until timer is done
|
|
32
32
|
alternatively, one could pass a block:
|
33
33
|
|
34
34
|
```ruby
|
35
|
-
require "
|
35
|
+
require "rblocks/timer"
|
36
36
|
|
37
37
|
timer = RBlock::Timer.new(0.001) # Set timer for 1ms
|
38
38
|
timer.wait { |_t| puts "done" } # execute block when timer is done
|
@@ -41,7 +41,7 @@ timer.wait { |_t| puts "done" } # execute block when timer is done
|
|
41
41
|
### Ticker
|
42
42
|
|
43
43
|
```ruby
|
44
|
-
require "
|
44
|
+
require "rblocks/ticker"
|
45
45
|
|
46
46
|
ticker = RBlock::Ticker.new(1) # Tick once every second
|
47
47
|
|
File without changes
|
File without changes
|
data/rblocks.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rblocks
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0
|
4
|
+
version: 1.0.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Armin Pasalic
|
@@ -97,8 +97,8 @@ files:
|
|
97
97
|
- Rakefile
|
98
98
|
- bin/console
|
99
99
|
- bin/setup
|
100
|
-
- lib/
|
101
|
-
- lib/
|
100
|
+
- lib/rblocks/ticker.rb
|
101
|
+
- lib/rblocks/timer.rb
|
102
102
|
- rblocks.gemspec
|
103
103
|
homepage: https://github.com/krule/rblocks
|
104
104
|
licenses:
|