timers 4.1.0 → 4.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGES.md +4 -0
- data/Gemfile +0 -4
- data/lib/timers/version.rb +1 -1
- data/spec/performance_spec.rb +0 -20
- metadata +11 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 107c4a8a97789c9580117a8eca6cb72af1390d54
|
4
|
+
data.tar.gz: 6687f8c8b655ce609a3ecf0a4519dd001baf4e2b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5f838fdcc30e595940ffc40325aea12578b16bf91a279feeafa247eb2d349d2724ec96715ab6d392531efcf7ff9f9e9a44a19b977bfb13a32629ead0a4358bda
|
7
|
+
data.tar.gz: 1fba4a0bad3f7b284ed4a45e6cc1e156cf66082041ec7a767cad14471e3b82a0c4bf068ea874d5e9f6bb90e3a8a571c73ebb710cb50df0d809dc3d65b470fffb
|
data/CHANGES.md
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
4.1.1 (2015-08-21)
|
2
|
+
------------------
|
3
|
+
* Remove `RubyProf` from Gemfile and a test, due to it providing no substantial benefit while increasing problems building bundles under Rubinius.
|
4
|
+
|
1
5
|
4.1.0 (2015-08-16)
|
2
6
|
------------------
|
3
7
|
* Addition of `now_and_every` method; fires block immediately, then sets recurring timer.
|
data/Gemfile
CHANGED
data/lib/timers/version.rb
CHANGED
data/spec/performance_spec.rb
CHANGED
@@ -1,6 +1,4 @@
|
|
1
|
-
|
2
1
|
require 'spec_helper'
|
3
|
-
require 'ruby-prof' unless RUBY_PLATFORM =~ /java/
|
4
2
|
|
5
3
|
# Event based timers:
|
6
4
|
|
@@ -41,25 +39,7 @@ require 'ruby-prof' unless RUBY_PLATFORM =~ /java/
|
|
41
39
|
# Serviced 1142649 events in 11.194903921 seconds, 102068.70405115146 e/s.
|
42
40
|
|
43
41
|
RSpec.describe Timers::Group do
|
44
|
-
if defined? RubyProf
|
45
|
-
before(:each) do
|
46
|
-
# Running RubyProf makes the code slightly slower.
|
47
|
-
RubyProf.start
|
48
|
-
puts "*** Running with RubyProf reduces performance ***"
|
49
|
-
end
|
50
42
|
|
51
|
-
after(:each) do |arg|
|
52
|
-
if RubyProf.running?
|
53
|
-
# file = arg.metadata[:description].gsub(/\s+/, '-')
|
54
|
-
|
55
|
-
result = RubyProf.stop
|
56
|
-
|
57
|
-
printer = RubyProf::FlatPrinter.new(result)
|
58
|
-
printer.print($stderr, min_percent: 1.0)
|
59
|
-
end
|
60
|
-
end
|
61
|
-
end
|
62
|
-
|
63
43
|
it "runs efficiently" do
|
64
44
|
result = []
|
65
45
|
range = (1..500)
|
metadata
CHANGED
@@ -1,16 +1,21 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: timers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.1.
|
4
|
+
version: 4.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tony Arcieri
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-08-
|
11
|
+
date: 2015-08-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
+
version_requirements: !ruby/object:Gem::Requirement
|
15
|
+
requirements:
|
16
|
+
- - ">="
|
17
|
+
- !ruby/object:Gem::Version
|
18
|
+
version: '0'
|
14
19
|
name: hitimes
|
15
20
|
type: :runtime
|
16
21
|
prerelease: false
|
@@ -19,12 +24,12 @@ dependencies:
|
|
19
24
|
- - ">="
|
20
25
|
- !ruby/object:Gem::Version
|
21
26
|
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
22
28
|
version_requirements: !ruby/object:Gem::Requirement
|
23
29
|
requirements:
|
24
30
|
- - ">="
|
25
31
|
- !ruby/object:Gem::Version
|
26
32
|
version: '0'
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
33
|
name: rake
|
29
34
|
type: :development
|
30
35
|
prerelease: false
|
@@ -33,12 +38,12 @@ dependencies:
|
|
33
38
|
- - ">="
|
34
39
|
- !ruby/object:Gem::Version
|
35
40
|
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
36
42
|
version_requirements: !ruby/object:Gem::Requirement
|
37
43
|
requirements:
|
38
|
-
- - "
|
44
|
+
- - "~>"
|
39
45
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
41
|
-
- !ruby/object:Gem::Dependency
|
46
|
+
version: 3.0.0
|
42
47
|
name: rspec
|
43
48
|
type: :development
|
44
49
|
prerelease: false
|
@@ -47,11 +52,6 @@ dependencies:
|
|
47
52
|
- - "~>"
|
48
53
|
- !ruby/object:Gem::Version
|
49
54
|
version: 3.0.0
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - "~>"
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: 3.0.0
|
55
55
|
description: Pure Ruby one-shot and periodic timers
|
56
56
|
email:
|
57
57
|
- tony.arcieri@gmail.com
|