chrono 0.0.2 → 0.0.3

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: 31bceadc7e5050d3837628b9388d98b748367baa
4
- data.tar.gz: c026bae471b3daacadd4ae5d328238f5ccdf51b9
3
+ metadata.gz: 1bb566a8a17561cdd3c2aeb1240813588ba25015
4
+ data.tar.gz: cf8104d986640e48a3d592dcca2f55c5091e8e35
5
5
  SHA512:
6
- metadata.gz: b161f9fcd7187abea95639062772b8979d343b714fce640a828029839951290f5e70e7ab3e035294f6ad8d9ecd654a7e17a1dcad128a6065a854cd3f4a89a362
7
- data.tar.gz: a9797e3245d9a7700be75855526e963e723245d002a1954dc93c1e6a2e473b110b5dcb07c4949c6f8b12eca92c907cda767da264caa8da4de2d19d59ef3dff28
6
+ metadata.gz: e2dcafd3f361649e01b43a7b3a27fbbe1b498a4f178bc07d26126f87f3342e91f0a33594ee2463b8ed27c705763830817e7feb0a97bf2aee95b2d26d4045624e
7
+ data.tar.gz: 3f8acfe80bc890077881922763b3f5af361bfe3566d46fa1eeda909fda4fdaf9c38f6314986861d2406b5b46bedabca84a974e92325847c81972bb8407246634
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## 0.0.3
2
+ * Schedule more accurate second
3
+
1
4
  ## 0.0.2
2
5
  * Chrono::Trigger was added
3
6
 
@@ -35,7 +35,7 @@ module Chrono
35
35
  private
36
36
 
37
37
  def time
38
- @time ||= now + 1.minute
38
+ @time ||= (now + 1.minute).at_beginning_of_minute
39
39
  end
40
40
 
41
41
  def schedule
@@ -1,3 +1,3 @@
1
1
  module Chrono
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
@@ -5,6 +5,7 @@ describe Chrono::Iterator do
5
5
  [
6
6
  "2000-01-01 00:00:00", "2000-01-01 00:01:00", "* * * * *",
7
7
  "2000-01-01 00:59:00", "2000-01-01 01:00:00", "* * * * *",
8
+ "2000-01-01 00:00:01", "2000-01-01 00:01:00", "* * * * *",
8
9
  "2000-01-01 23:59:00", "2000-01-02 00:00:00", "* * * * *",
9
10
  "2000-01-31 23:59:00", "2000-02-01 00:00:00", "* * * * *",
10
11
  "2000-12-31 23:59:00", "2001-01-01 00:00:00", "* * * * *",
data/spec/spec_helper.rb CHANGED
@@ -1,10 +1,13 @@
1
1
  require "simplecov"
2
- require "coveralls"
3
2
 
4
- SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
5
- SimpleCov::Formatter::HTMLFormatter,
6
- Coveralls::SimpleCov::Formatter
7
- ]
3
+ if ENV["CI"]
4
+ require "coveralls"
5
+ SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
6
+ SimpleCov::Formatter::HTMLFormatter,
7
+ Coveralls::SimpleCov::Formatter
8
+ ]
9
+ end
10
+
8
11
  SimpleCov.start
9
12
 
10
13
  $LOAD_PATH.unshift File.expand_path("../../lib", __FILE__)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chrono
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryo Nakamura