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 +4 -4
- data/.travis.yml +3 -0
- data/CHANGELOG.md +3 -0
- data/README.md +1 -2
- data/chrono.gemspec +1 -1
- data/lib/chrono/trigger.rb +1 -1
- data/lib/chrono/version.rb +1 -1
- data/spec/spec_helper.rb +3 -7
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 17c70fc28e40e7678739072bd43c6e34d13e8fee
|
4
|
+
data.tar.gz: f005cdfa77f4d3c4478d0f3d2d669f59dc086708
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f61e54a07b776fe45fe8c9175db57fb467a92f04edbf94c6718e9bd2031e0cdd27be835f4aeb053ca508b0ab05ca040c71d29e51b21a1acdfc83422034413ad7
|
7
|
+
data.tar.gz: 2dcbe983ad8cbf44f7c0365aa6e9f6a37ee19f4ff883f3b7e0695793c2c3a8f1a86e332c8183907e9c077c19a66974851e2f7504357a385658689a03d268e97f
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
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) [![
|
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 "
|
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"
|
data/lib/chrono/trigger.rb
CHANGED
data/lib/chrono/version.rb
CHANGED
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 "
|
5
|
-
|
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.
|
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-
|
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:
|
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:
|