timers 3.0.0.pre → 3.0.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3e9bfe42a47fd75ccdb65871da796a7f8fc34c06
4
- data.tar.gz: 1b399be03f9c02b444b1564f63694bb41b81ecde
3
+ metadata.gz: 6d2232fddadad4b9e14c2798cff52260842c4fab
4
+ data.tar.gz: 44cabddf628adc171fa07820eaa11242773aa4f9
5
5
  SHA512:
6
- metadata.gz: 61ac36cb1df7d08dc523bd198d3cc510a7d59db6e21a25e7641b9bd3f8d3106518a99ec8691933c2ef64fd5d1abc43e3b2a7f5543baa4ebd7fb09fd5df7f07b0
7
- data.tar.gz: c1679de4914d8d11ebccc3e8cc9ab833e9f14ca24ce5cd5bc601b40f5a6dac5cd42268375f15e04e157e8695f0d9ffd26f79c98aec25ac98a6682e7a725555c5
6
+ metadata.gz: 94bd5155f6775c678e9f3df86ca5cf5736128f8c7349225907a00ff29d2beeac76ee3300cb5ef5526a7fe2ddc3d6f4f408228ef6552252c997d27cc3ddb27da8
7
+ data.tar.gz: 484711333673f915bc847adb6a10fe940324b60b23ba8ef3ef3d0fdd31594c90fd79a8fadfdf02e5b052f1209ea1094e31ca946d6247a727e3e5b60ba187f99f
data/CHANGES.md CHANGED
@@ -1,8 +1,9 @@
1
- 3.0.0.pre
2
- ---------
1
+ 3.0.0 (2013-06-14)
2
+ ------------------
3
3
  * Refactor `Timers` class into `Timers::Group`
4
4
  * Add `Timers::Timeout` class for implementing timeouts
5
5
  * Fix timer fudging
6
+ * Update to RSpec 3
6
7
 
7
8
  2.0.0 (2013-12-30)
8
9
  ------------------
@@ -1,3 +1,3 @@
1
1
  module Timers
2
- VERSION = "3.0.0.pre"
2
+ VERSION = "3.0.0"
3
3
  end
@@ -1,7 +1,7 @@
1
1
 
2
2
  require 'spec_helper'
3
3
 
4
- describe Timers::Group do
4
+ RSpec.describe Timers::Group do
5
5
  it "sleeps until the next timer" do
6
6
  interval = TIMER_QUANTUM * 2
7
7
  started_at = Time.now
@@ -6,3 +6,14 @@ require 'timers'
6
6
 
7
7
  # Level of accuracy enforced by tests (50ms)
8
8
  TIMER_QUANTUM = 0.05
9
+
10
+ RSpec.configure do |config|
11
+ # Setting this config option `false` removes rspec-core's monkey patching of the
12
+ # top level methods like `describe`, `shared_examples_for` and `shared_context`
13
+ # on `main` and `Module`. The methods are always available through the `RSpec`
14
+ # module like `RSpec.describe` regardless of this setting.
15
+ # For backwards compatibility this defaults to `true`.
16
+ #
17
+ # https://relishapp.com/rspec/rspec-core/v/3-0/docs/configuration/global-namespace-dsl
18
+ config.expose_dsl_globally = false
19
+ end
@@ -2,7 +2,7 @@
2
2
  require 'spec_helper'
3
3
  require 'timers/timeout'
4
4
 
5
- describe Timers::Timeout do
5
+ RSpec.describe Timers::Timeout do
6
6
  it "repeats until timeout expired" do
7
7
  timeout = Timers::Timeout.new(5)
8
8
  count = 0
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: timers
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0.pre
4
+ version: 3.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tony Arcieri
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-10 00:00:00.000000000 Z
11
+ date: 2014-06-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: hitimes
@@ -93,9 +93,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
93
93
  version: '0'
94
94
  required_rubygems_version: !ruby/object:Gem::Requirement
95
95
  requirements:
96
- - - ">"
96
+ - - ">="
97
97
  - !ruby/object:Gem::Version
98
- version: 1.3.1
98
+ version: '0'
99
99
  requirements: []
100
100
  rubyforge_project:
101
101
  rubygems_version: 2.2.2