chrono 0.0.3 → 0.0.4

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: 1bb566a8a17561cdd3c2aeb1240813588ba25015
4
- data.tar.gz: cf8104d986640e48a3d592dcca2f55c5091e8e35
3
+ metadata.gz: 17c70fc28e40e7678739072bd43c6e34d13e8fee
4
+ data.tar.gz: f005cdfa77f4d3c4478d0f3d2d669f59dc086708
5
5
  SHA512:
6
- metadata.gz: e2dcafd3f361649e01b43a7b3a27fbbe1b498a4f178bc07d26126f87f3342e91f0a33594ee2463b8ed27c705763830817e7feb0a97bf2aee95b2d26d4045624e
7
- data.tar.gz: 3f8acfe80bc890077881922763b3f5af361bfe3566d46fa1eeda909fda4fdaf9c38f6314986861d2406b5b46bedabca84a974e92325847c81972bb8407246634
6
+ metadata.gz: f61e54a07b776fe45fe8c9175db57fb467a92f04edbf94c6718e9bd2031e0cdd27be835f4aeb053ca508b0ab05ca040c71d29e51b21a1acdfc83422034413ad7
7
+ data.tar.gz: 2dcbe983ad8cbf44f7c0365aa6e9f6a37ee19f4ff883f3b7e0695793c2c3a8f1a86e332c8183907e9c077c19a66974851e2f7504357a385658689a03d268e97f
data/.travis.yml CHANGED
@@ -5,3 +5,6 @@ rvm:
5
5
  branches:
6
6
  only:
7
7
  - master
8
+ env:
9
+ global:
10
+ secure: bzOuKK2sEcdWchOeiS5VgKIj8R6ZFZLtmlJ3aENdYAXcrrVW+1XKAGQlT3NxH5G2EloV8nNPOX8oNXbYjs81AvEEdjZGRMYUnC59GbvtL+2zQgG77yq5xI/UXypuBQIzUBhzrwFMImSAltKsdlbsrVUtl7x8Arg1HajcMbEsg9Y=
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## 0.0.4
2
+ Add extra 1sec sleep to adjust to exact minute
3
+
1
4
  ## 0.0.3
2
5
  * Schedule more accurate second
3
6
 
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Chrono [![Build Status](https://travis-ci.org/r7kamura/chrono.png)](https://travis-ci.org/r7kamura/chrono) [![Code Climate](https://codeclimate.com/github/r7kamura/chrono.png)](https://codeclimate.com/github/r7kamura/chrono) [![Coverage Status](https://coveralls.io/repos/r7kamura/chrono/badge.png?branch=master&cache-version=1)](https://coveralls.io/r/r7kamura/chrono?branch=master)
1
+ # Chrono [![Build Status](https://travis-ci.org/r7kamura/chrono.png)](https://travis-ci.org/r7kamura/chrono) [![Code Climate](https://codeclimate.com/github/r7kamura/chrono.png)](https://codeclimate.com/github/r7kamura/chrono) [![Code Climate](https://codeclimate.com/github/r7kamura/chrono/coverage.png)](https://codeclimate.com/github/r7kamura/chrono)
2
2
 
3
3
  Provides a chain of logics about chronology.
4
4
 
@@ -6,7 +6,6 @@ Provides a chain of logics about chronology.
6
6
  Waits till scheduled time and then triggers a given job. `#run` is a periodic version of `#once`.
7
7
 
8
8
  ```ruby
9
- # Trigger
10
9
  trigger = Chrono::Trigger.new("30 * * * *") { Time.now }
11
10
  trigger.once #=> 2000-01-01 00:30:00
12
11
  trigger.run #=> 2000-01-01 01:30:00
data/chrono.gemspec CHANGED
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
18
18
 
19
19
  spec.add_dependency "activesupport"
20
20
  spec.add_development_dependency "bundler"
21
- spec.add_development_dependency "coveralls"
21
+ spec.add_development_dependency "codeclimate-test-reporter"
22
22
  spec.add_development_dependency "rake"
23
23
  spec.add_development_dependency "rspec", "2.14.1"
24
24
  spec.add_development_dependency "simplecov"
@@ -31,7 +31,7 @@ module Chrono
31
31
  end
32
32
 
33
33
  def period
34
- iterator.next - Time.now
34
+ iterator.next - Time.now + 1.second
35
35
  end
36
36
  end
37
37
  end
@@ -1,3 +1,3 @@
1
1
  module Chrono
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
data/spec/spec_helper.rb CHANGED
@@ -1,15 +1,11 @@
1
1
  require "simplecov"
2
+ SimpleCov.start
2
3
 
3
4
  if ENV["CI"]
4
- require "coveralls"
5
- SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
6
- SimpleCov::Formatter::HTMLFormatter,
7
- Coveralls::SimpleCov::Formatter
8
- ]
5
+ require "codeclimate-test-reporter"
6
+ CodeClimate::TestReporter.start
9
7
  end
10
8
 
11
- SimpleCov.start
12
-
13
9
  $LOAD_PATH.unshift File.expand_path("../../lib", __FILE__)
14
10
  require "chrono"
15
11
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chrono
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryo Nakamura
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-19 00:00:00.000000000 Z
11
+ date: 2014-05-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -39,7 +39,7 @@ dependencies:
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
- name: coveralls
42
+ name: codeclimate-test-reporter
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - ">="
@@ -152,3 +152,4 @@ test_files:
152
152
  - spec/chrono/iterator_spec.rb
153
153
  - spec/chrono/trigger_spec.rb
154
154
  - spec/spec_helper.rb
155
+ has_rdoc: