crono 0.8.9 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +7 -13
- data/crono.gemspec +0 -1
- data/lib/crono/period.rb +4 -1
- data/lib/crono/version.rb +1 -1
- metadata +2 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ed856eb002fb736ae1834be39c9922b5baf10b74
|
4
|
+
data.tar.gz: bfcdb4932ea5b7aa500499a2ef8b7285b9fcee2c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 13921a40dcc6fdd50f2893974c4c1d39b6351902d77adb36d1f760141b77bc26a23bf352901e0770024ebd9932c3d5bc7e6aa0e29ce369137908c43988d241af
|
7
|
+
data.tar.gz: b2e8ba6c1ad40b8ac45a9cd4e3785a07775a259828787032ed33aaa4db8e91190d2ff5012414d2d14f3f8eeaa4293c99ce7d08f6016e0f5a1b3ac60091de5182
|
data/Gemfile.lock
CHANGED
@@ -1,17 +1,13 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
crono (0.
|
5
|
-
activejob (~> 4.0)
|
4
|
+
crono (0.9.0)
|
6
5
|
activerecord (~> 4.0)
|
7
6
|
activesupport (~> 4.0)
|
8
7
|
|
9
8
|
GEM
|
10
9
|
remote: https://rubygems.org/
|
11
10
|
specs:
|
12
|
-
activejob (4.2.1)
|
13
|
-
activesupport (= 4.2.1)
|
14
|
-
globalid (>= 0.3.0)
|
15
11
|
activemodel (4.2.1)
|
16
12
|
activesupport (= 4.2.1)
|
17
13
|
builder (~> 3.1)
|
@@ -27,18 +23,16 @@ GEM
|
|
27
23
|
tzinfo (~> 1.1)
|
28
24
|
arel (6.0.0)
|
29
25
|
builder (3.2.2)
|
30
|
-
byebug (
|
26
|
+
byebug (5.0.0)
|
31
27
|
columnize (= 0.9.0)
|
32
28
|
columnize (0.9.0)
|
33
29
|
diff-lcs (1.2.5)
|
34
|
-
globalid (0.3.5)
|
35
|
-
activesupport (>= 4.1.0)
|
36
30
|
haml (4.0.6)
|
37
31
|
tilt
|
38
32
|
i18n (0.7.0)
|
39
33
|
json (1.8.2)
|
40
|
-
minitest (5.
|
41
|
-
rack (1.6.
|
34
|
+
minitest (5.6.1)
|
35
|
+
rack (1.6.1)
|
42
36
|
rack-protection (1.5.3)
|
43
37
|
rack
|
44
38
|
rack-test (0.6.3)
|
@@ -57,13 +51,13 @@ GEM
|
|
57
51
|
diff-lcs (>= 1.2.0, < 2.0)
|
58
52
|
rspec-support (~> 3.2.0)
|
59
53
|
rspec-support (3.2.2)
|
60
|
-
sinatra (1.4.
|
54
|
+
sinatra (1.4.6)
|
61
55
|
rack (~> 1.4)
|
62
56
|
rack-protection (~> 1.4)
|
63
|
-
tilt (
|
57
|
+
tilt (>= 1.3, < 3)
|
64
58
|
sqlite3 (1.3.10)
|
65
59
|
thread_safe (0.3.5)
|
66
|
-
tilt (
|
60
|
+
tilt (2.0.1)
|
67
61
|
timecop (0.7.3)
|
68
62
|
tzinfo (1.2.2)
|
69
63
|
thread_safe (~> 0.1)
|
data/crono.gemspec
CHANGED
@@ -19,7 +19,6 @@ Gem::Specification.new do |spec|
|
|
19
19
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
20
20
|
spec.require_paths = ['lib']
|
21
21
|
|
22
|
-
spec.add_runtime_dependency 'activejob', '~> 4.0'
|
23
22
|
spec.add_runtime_dependency 'activesupport', '~> 4.0'
|
24
23
|
spec.add_runtime_dependency 'activerecord', '~> 4.0'
|
25
24
|
spec.add_development_dependency 'rake', '~> 10.0'
|
data/lib/crono/period.rb
CHANGED
@@ -49,7 +49,10 @@ module Crono
|
|
49
49
|
end
|
50
50
|
|
51
51
|
def parse_at(at)
|
52
|
-
|
52
|
+
if @period < 1.day && (at.is_a? String || at[:hour])
|
53
|
+
fail "period should be at least 1 day to use 'at' with specified hour"
|
54
|
+
end
|
55
|
+
|
53
56
|
case at
|
54
57
|
when String
|
55
58
|
time = Time.parse(at)
|
data/lib/crono/version.rb
CHANGED
metadata
CHANGED
@@ -1,29 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: crono
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dzmitry Plashchynski
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-05-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
-
- !ruby/object:Gem::Dependency
|
14
|
-
name: activejob
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - "~>"
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '4.0'
|
20
|
-
type: :runtime
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - "~>"
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: '4.0'
|
27
13
|
- !ruby/object:Gem::Dependency
|
28
14
|
name: activesupport
|
29
15
|
requirement: !ruby/object:Gem::Requirement
|