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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0d98a044127bb5c5104712de84e4d6382d4a1c2f
4
- data.tar.gz: efb53cca30a4d6c7ddb648453ecd035cacc7048a
3
+ metadata.gz: ed856eb002fb736ae1834be39c9922b5baf10b74
4
+ data.tar.gz: bfcdb4932ea5b7aa500499a2ef8b7285b9fcee2c
5
5
  SHA512:
6
- metadata.gz: d8c923be56a6e1b71692dc8f3e1d86c58143cb26f2d4e18d0c433cf6593eaa64f3389ffa3a344492ef29870ba660ebb3ff64d4016721ecddca62df5ef7ed02ce
7
- data.tar.gz: 5d3c5457fbf258d093f64f685dddc05781b8cf678e256b8cb47d2f511e0981619b06c26053b4829e78da630417ea0b16a49397e27e219d776cec38edfd7fee31
6
+ metadata.gz: 13921a40dcc6fdd50f2893974c4c1d39b6351902d77adb36d1f760141b77bc26a23bf352901e0770024ebd9932c3d5bc7e6aa0e29ce369137908c43988d241af
7
+ data.tar.gz: b2e8ba6c1ad40b8ac45a9cd4e3785a07775a259828787032ed33aaa4db8e91190d2ff5012414d2d14f3f8eeaa4293c99ce7d08f6016e0f5a1b3ac60091de5182
@@ -1,17 +1,13 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- crono (0.8.9)
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 (4.0.5)
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.5.1)
41
- rack (1.6.0)
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.5)
54
+ sinatra (1.4.6)
61
55
  rack (~> 1.4)
62
56
  rack-protection (~> 1.4)
63
- tilt (~> 1.3, >= 1.3.4)
57
+ tilt (>= 1.3, < 3)
64
58
  sqlite3 (1.3.10)
65
59
  thread_safe (0.3.5)
66
- tilt (1.4.1)
60
+ tilt (2.0.1)
67
61
  timecop (0.7.3)
68
62
  tzinfo (1.2.2)
69
63
  thread_safe (~> 0.1)
@@ -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'
@@ -49,7 +49,10 @@ module Crono
49
49
  end
50
50
 
51
51
  def parse_at(at)
52
- fail "period should be at least 1 day to use 'at'" if @period < 1.day
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)
@@ -1,3 +1,3 @@
1
1
  module Crono
2
- VERSION = '0.8.9'
2
+ VERSION = '0.9.0'
3
3
  end
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.8.9
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-04-14 00:00:00.000000000 Z
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