chrono 0.4.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.github/workflows/test.yml +22 -0
- data/CHANGELOG.md +57 -11
- data/README.md +4 -1
- data/chrono.gemspec +1 -3
- data/lib/chrono/next_time.rb +1 -9
- data/lib/chrono/version.rb +1 -1
- data/spec/spec_helper.rb +0 -8
- metadata +6 -35
- data/.travis.yml +0 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 046fa468703ffbd8c7c77b1767853c5db8e518c6affbc0b2a84d466cb15492b5
|
4
|
+
data.tar.gz: 2128582a3bf2822dc3eab8cdf27e159fb4bd193ed896b4cea36309e4fec5516e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 46dbbf74bd81f5f5177109660e85edb88fb65fcf561947ea924f0fe158e5c117fb9b91a9c9b8a8202d425f3e0e6fdb43ef506912ce4207ba0bb0e4cb5648ae23
|
7
|
+
data.tar.gz: 5891051f8983853fbafb88e171bfdb315653e43be2165cbb837e52a705e1a6a3696f441eee41b0b9842cbe7b8f40fbf430625016fa77e1c172c4d2a8eb68b6cb
|
@@ -0,0 +1,22 @@
|
|
1
|
+
name: test
|
2
|
+
|
3
|
+
on:
|
4
|
+
pull_request:
|
5
|
+
push:
|
6
|
+
branches:
|
7
|
+
- master
|
8
|
+
|
9
|
+
jobs:
|
10
|
+
build:
|
11
|
+
runs-on: ubuntu-latest
|
12
|
+
strategy:
|
13
|
+
matrix:
|
14
|
+
ruby:
|
15
|
+
- 2.7.2
|
16
|
+
steps:
|
17
|
+
- uses: actions/checkout@v2
|
18
|
+
- uses: ruby/setup-ruby@v1
|
19
|
+
with:
|
20
|
+
ruby-version: ${{ matrix.ruby }}
|
21
|
+
bundler-cache: true
|
22
|
+
- run: bundle exec rake
|
data/CHANGELOG.md
CHANGED
@@ -1,31 +1,77 @@
|
|
1
|
+
# Changelog
|
2
|
+
|
3
|
+
## Unreleased
|
4
|
+
|
5
|
+
## 0.5.0
|
6
|
+
|
7
|
+
### Added
|
8
|
+
|
9
|
+
- Add support for activesupport 7 (thx @unasuke).
|
10
|
+
|
11
|
+
### Changed
|
12
|
+
|
13
|
+
- Drop support of activesupport below 5.2.
|
14
|
+
|
1
15
|
## 0.4.0
|
2
16
|
|
3
|
-
|
17
|
+
### Changed
|
18
|
+
|
19
|
+
- Raise ArgumentError on inifinite loop detected (thx @nurse).
|
4
20
|
|
5
21
|
## 0.3.0
|
6
|
-
|
22
|
+
|
23
|
+
### Fixed
|
24
|
+
|
25
|
+
- Fix bug on day and wday specs.
|
7
26
|
|
8
27
|
## 0.2.0
|
9
|
-
|
10
|
-
|
28
|
+
|
29
|
+
### Added
|
30
|
+
|
31
|
+
- Support some alias field names.
|
32
|
+
|
33
|
+
### Changed
|
34
|
+
|
35
|
+
- Add more strict validations.
|
11
36
|
|
12
37
|
## 0.1.0
|
13
|
-
|
38
|
+
|
39
|
+
### Changed
|
40
|
+
|
41
|
+
- Raise errors on invalid fields (thx @eagletmt).
|
14
42
|
|
15
43
|
## 0.0.6
|
16
|
-
|
44
|
+
|
45
|
+
### Changed
|
46
|
+
|
47
|
+
- Support ActiveSupport 3 and 4.
|
17
48
|
|
18
49
|
## 0.0.5
|
19
|
-
|
50
|
+
|
51
|
+
### Changed
|
52
|
+
|
53
|
+
- Fix missing version dependency on ActiveSupport 4.
|
20
54
|
|
21
55
|
## 0.0.4
|
22
|
-
|
56
|
+
|
57
|
+
### Changed
|
58
|
+
|
59
|
+
- Add extra 1sec sleep to adjust to exact minute.
|
23
60
|
|
24
61
|
## 0.0.3
|
25
|
-
|
62
|
+
|
63
|
+
### Changed
|
64
|
+
|
65
|
+
- Schedule more accurate second.
|
26
66
|
|
27
67
|
## 0.0.2
|
28
|
-
|
68
|
+
|
69
|
+
### Added
|
70
|
+
|
71
|
+
- Chrono::Trigger was added.
|
29
72
|
|
30
73
|
## 0.0.1
|
31
|
-
|
74
|
+
|
75
|
+
### Added
|
76
|
+
|
77
|
+
- Chrono::Iterator was added.
|
data/README.md
CHANGED
@@ -1,4 +1,7 @@
|
|
1
|
-
# Chrono
|
1
|
+
# Chrono
|
2
|
+
|
3
|
+
[![test](https://github.com/r7kamura/chrono/actions/workflows/test.yml/badge.svg)](https://github.com/r7kamura/chrono/actions/workflows/test.yml)
|
4
|
+
[![Gem Version](https://badge.fury.io/rb/chrono.svg)](https://rubygems.org/gems/chrono)
|
2
5
|
|
3
6
|
Provides a chain of logics about chronology.
|
4
7
|
|
data/chrono.gemspec
CHANGED
@@ -16,10 +16,8 @@ Gem::Specification.new do |spec|
|
|
16
16
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
17
17
|
spec.require_paths = ["lib"]
|
18
18
|
|
19
|
-
spec.add_dependency "activesupport"
|
19
|
+
spec.add_dependency "activesupport", '>= 5.2'
|
20
20
|
spec.add_development_dependency "bundler"
|
21
|
-
spec.add_development_dependency "codeclimate-test-reporter"
|
22
21
|
spec.add_development_dependency "rake"
|
23
22
|
spec.add_development_dependency "rspec", "~> 3.4.0"
|
24
|
-
spec.add_development_dependency "simplecov"
|
25
23
|
end
|
data/lib/chrono/next_time.rb
CHANGED
@@ -1,13 +1,5 @@
|
|
1
|
+
require "active_support"
|
1
2
|
require "active_support/core_ext/numeric/time"
|
2
|
-
require "active_support/version"
|
3
|
-
|
4
|
-
if ActiveSupport::VERSION::MAJOR >= 4
|
5
|
-
require "active_support/core_ext/date"
|
6
|
-
require "active_support/core_ext/time"
|
7
|
-
else
|
8
|
-
require "active_support/core_ext/date/calculations"
|
9
|
-
require "active_support/core_ext/time/calculations"
|
10
|
-
end
|
11
3
|
|
12
4
|
module Chrono
|
13
5
|
class NextTime
|
data/lib/chrono/version.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
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.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryo Nakamura
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-12-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '5.2'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '5.2'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -38,20 +38,6 @@ dependencies:
|
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: codeclimate-test-reporter
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - ">="
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: '0'
|
48
|
-
type: :development
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - ">="
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '0'
|
55
41
|
- !ruby/object:Gem::Dependency
|
56
42
|
name: rake
|
57
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -80,20 +66,6 @@ dependencies:
|
|
80
66
|
- - "~>"
|
81
67
|
- !ruby/object:Gem::Version
|
82
68
|
version: 3.4.0
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
name: simplecov
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - ">="
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: '0'
|
90
|
-
type: :development
|
91
|
-
prerelease: false
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
93
|
-
requirements:
|
94
|
-
- - ">="
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version: '0'
|
97
69
|
description:
|
98
70
|
email:
|
99
71
|
- r7kamura@gmail.com
|
@@ -101,8 +73,8 @@ executables: []
|
|
101
73
|
extensions: []
|
102
74
|
extra_rdoc_files: []
|
103
75
|
files:
|
76
|
+
- ".github/workflows/test.yml"
|
104
77
|
- ".gitignore"
|
105
|
-
- ".travis.yml"
|
106
78
|
- CHANGELOG.md
|
107
79
|
- Gemfile
|
108
80
|
- LICENSE.txt
|
@@ -144,8 +116,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
144
116
|
- !ruby/object:Gem::Version
|
145
117
|
version: '0'
|
146
118
|
requirements: []
|
147
|
-
|
148
|
-
rubygems_version: 2.6.11
|
119
|
+
rubygems_version: 3.1.4
|
149
120
|
signing_key:
|
150
121
|
specification_version: 4
|
151
122
|
summary: Provides a chain of logics about chronology.
|
data/.travis.yml
DELETED