date_discreter 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 +5 -5
- data/.github/workflows/test.yml +114 -0
- data/CHANGELOG.md +8 -2
- data/Gemfile +29 -0
- data/README.md +1 -2
- data/date_discreter.gemspec +7 -2
- data/lib/date_discreter/version.rb +1 -1
- data/spec/spec_helper.rb +2 -6
- metadata +25 -25
- data/.hound.yml +0 -25
- data/.tachikoma.yml +0 -1
- data/.travis.yml +0 -26
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 7e4efcf2d0e7665b3a3756f5130e3cf3a4e05ea27682e35a9f8bd5af2d48a894
|
4
|
+
data.tar.gz: bc186857124a6549a7b56efc8eeb3b01cc95d301b801c83adc969126fb37bc3f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: df8a2d2fb83594bdbdd970116eab92816f1e498fb6470c7a30a86a64e4d66e27cb33f9003f23503522b5add116f231e8d20e433aa4dc7a40d78a26fc0d784344
|
7
|
+
data.tar.gz: fbc3735d1c2aec5c12fe6cb65f60f63bd0be45e1a351f9bfd37a0f5d94bb62f9abcb098cb530b07e0e2627c92026c8801502b0affc16548325658ca80561898d
|
@@ -0,0 +1,114 @@
|
|
1
|
+
name: test
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
branches:
|
6
|
+
- master
|
7
|
+
pull_request:
|
8
|
+
types:
|
9
|
+
- opened
|
10
|
+
- synchronize
|
11
|
+
- reopened
|
12
|
+
schedule:
|
13
|
+
- cron: "0 10 * * 5" # JST 19:00 (Fri)
|
14
|
+
|
15
|
+
env:
|
16
|
+
CI: "true"
|
17
|
+
|
18
|
+
jobs:
|
19
|
+
test:
|
20
|
+
runs-on: ubuntu-latest
|
21
|
+
|
22
|
+
container: ${{ matrix.ruby }}
|
23
|
+
|
24
|
+
strategy:
|
25
|
+
fail-fast: false
|
26
|
+
|
27
|
+
matrix:
|
28
|
+
ruby:
|
29
|
+
- ruby:2.0
|
30
|
+
- ruby:2.1
|
31
|
+
- ruby:2.2
|
32
|
+
- ruby:2.3
|
33
|
+
- ruby:2.4
|
34
|
+
- ruby:2.5
|
35
|
+
- ruby:2.6
|
36
|
+
- ruby:2.7
|
37
|
+
- ruby:3.0
|
38
|
+
- rubylang/ruby:master-nightly-bionic
|
39
|
+
include:
|
40
|
+
- ruby: rubylang/ruby:master-nightly-bionic
|
41
|
+
allow_failures: "true"
|
42
|
+
|
43
|
+
steps:
|
44
|
+
- uses: actions/checkout@v2
|
45
|
+
|
46
|
+
|
47
|
+
- name: Cache vendor/bundle
|
48
|
+
uses: actions/cache@v1
|
49
|
+
id: cache_gem
|
50
|
+
with:
|
51
|
+
path: vendor/bundle
|
52
|
+
key: v1-gem-${{ runner.os }}-${{ matrix.ruby }}-${{ github.sha }}
|
53
|
+
restore-keys: |
|
54
|
+
v1-gem-${{ runner.os }}-${{ matrix.ruby }}-
|
55
|
+
continue-on-error: ${{ matrix.allow_failures == 'true' }}
|
56
|
+
|
57
|
+
- name: bundle update
|
58
|
+
run: |
|
59
|
+
set -xe
|
60
|
+
bundle config path vendor/bundle
|
61
|
+
bundle update --jobs $(nproc) --retry 3
|
62
|
+
continue-on-error: ${{ matrix.allow_failures == 'true' }}
|
63
|
+
|
64
|
+
- name: Setup Code Climate Test Reporter
|
65
|
+
uses: aktions/codeclimate-test-reporter@v1
|
66
|
+
with:
|
67
|
+
codeclimate-test-reporter-id: ${{ secrets.CC_TEST_REPORTER_ID }}
|
68
|
+
command: before-build
|
69
|
+
if: matrix.ruby >= 'ruby:2.4'
|
70
|
+
continue-on-error: true
|
71
|
+
|
72
|
+
- name: Run test
|
73
|
+
run: |
|
74
|
+
set -xe
|
75
|
+
bundle exec rspec
|
76
|
+
bundle exec rubydoctest README.md
|
77
|
+
continue-on-error: ${{ matrix.allow_failures == 'true' }}
|
78
|
+
|
79
|
+
- name: Teardown Code Climate Test Reporter
|
80
|
+
uses: aktions/codeclimate-test-reporter@v1
|
81
|
+
with:
|
82
|
+
codeclimate-test-reporter-id: ${{ secrets.CC_TEST_REPORTER_ID }}
|
83
|
+
command: after-build
|
84
|
+
if: matrix.ruby >= 'ruby:2.4' && always()
|
85
|
+
continue-on-error: true
|
86
|
+
|
87
|
+
- name: Slack Notification (not success)
|
88
|
+
uses: lazy-actions/slatify@master
|
89
|
+
if: "! success()"
|
90
|
+
continue-on-error: true
|
91
|
+
with:
|
92
|
+
job_name: ${{ format('*build* ({0})', matrix.ruby) }}
|
93
|
+
type: ${{ job.status }}
|
94
|
+
icon_emoji: ":octocat:"
|
95
|
+
url: ${{ secrets.SLACK_WEBHOOK }}
|
96
|
+
token: ${{ secrets.GITHUB_TOKEN }}
|
97
|
+
|
98
|
+
notify:
|
99
|
+
needs:
|
100
|
+
- test
|
101
|
+
|
102
|
+
runs-on: ubuntu-latest
|
103
|
+
|
104
|
+
steps:
|
105
|
+
- name: Slack Notification (success)
|
106
|
+
uses: lazy-actions/slatify@master
|
107
|
+
if: always()
|
108
|
+
continue-on-error: true
|
109
|
+
with:
|
110
|
+
job_name: '*build*'
|
111
|
+
type: ${{ job.status }}
|
112
|
+
icon_emoji: ":octocat:"
|
113
|
+
url: ${{ secrets.SLACK_WEBHOOK }}
|
114
|
+
token: ${{ secrets.GITHUB_TOKEN }}
|
data/CHANGELOG.md
CHANGED
@@ -1,7 +1,13 @@
|
|
1
1
|
## master
|
2
|
-
[full changelog](https://github.com/sue445/date_discreter/compare/v0.0.
|
2
|
+
[full changelog](https://github.com/sue445/date_discreter/compare/v0.0.4...master)
|
3
3
|
|
4
|
-
## 0.0.
|
4
|
+
## 0.0.4 (2021/11/19)
|
5
|
+
[full changelog](https://github.com/sue445/date_discreter/compare/v0.0.3...v0.0.4)
|
6
|
+
|
7
|
+
* Enable MFA requirement for gem releasing
|
8
|
+
* https://github.com/sue445/date_discreter/pull/34
|
9
|
+
|
10
|
+
## 0.0.3 (2015/11/17)
|
5
11
|
[full changelog](https://github.com/sue445/date_discreter/compare/v0.0.2...v0.0.3)
|
6
12
|
|
7
13
|
* Don't raise when target_times less than 2 counts
|
data/Gemfile
CHANGED
@@ -2,3 +2,32 @@ source 'https://rubygems.org'
|
|
2
2
|
|
3
3
|
# Specify your gem's dependencies in date_discreter.gemspec
|
4
4
|
gemspec
|
5
|
+
|
6
|
+
if Gem::Version.create(RUBY_VERSION) < Gem::Version.create("2.2.2")
|
7
|
+
gem "activesupport", "< 5.0.0"
|
8
|
+
end
|
9
|
+
|
10
|
+
if Gem::Version.create(RUBY_VERSION) < Gem::Version.create("2.2.0")
|
11
|
+
# NOTE: rake v13.0.0+ requires Ruby 2.2.0+
|
12
|
+
gem "rake", "< 13.0.0"
|
13
|
+
end
|
14
|
+
|
15
|
+
if Gem::Version.create(RUBY_VERSION) < Gem::Version.create("2.2.0")
|
16
|
+
# NOTE: minitest v5.12.1+ requires Ruby 2.2.0+
|
17
|
+
gem "minitest", "< 5.12.1"
|
18
|
+
end
|
19
|
+
|
20
|
+
if Gem::Version.create(RUBY_VERSION) < Gem::Version.create("2.4.0")
|
21
|
+
# NOTE: simplecov-html v0.11.0+ requires Ruby ~> 2.4
|
22
|
+
gem "simplecov-html", "< 0.11.0"
|
23
|
+
end
|
24
|
+
|
25
|
+
if Gem::Version.create(RUBY_VERSION) < Gem::Version.create("2.5.0")
|
26
|
+
# NOTE: docile v1.4.0+ requires Ruby 2.5.0+
|
27
|
+
gem "docile", "< 1.4.0"
|
28
|
+
end
|
29
|
+
|
30
|
+
if Gem::Version.create(RUBY_VERSION) < Gem::Version.create("2.3.0")
|
31
|
+
# NOTE: json v2.6.0+ requires Ruby 2.3.0+
|
32
|
+
gem "json", "< 2.6.0"
|
33
|
+
end
|
data/README.md
CHANGED
@@ -3,8 +3,7 @@
|
|
3
3
|
Check discrete of months, days and hours
|
4
4
|
|
5
5
|
[![Gem Version](https://badge.fury.io/rb/date_discreter.svg)](http://badge.fury.io/rb/date_discreter)
|
6
|
-
[![Build Status](https://
|
7
|
-
[![Dependency Status](https://gemnasium.com/sue445/date_discreter.svg)](https://gemnasium.com/sue445/date_discreter)
|
6
|
+
[![Build Status](https://github.com/sue445/date_discreter/workflows/test/badge.svg?branch=master)](https://github.com/sue445/date_discreter/actions?query=workflow%3Atest)
|
8
7
|
[![Code Climate](https://codeclimate.com/github/sue445/date_discreter/badges/gpa.svg)](https://codeclimate.com/github/sue445/date_discreter)
|
9
8
|
[![Coverage Status](https://img.shields.io/coveralls/sue445/date_discreter.svg)](https://coveralls.io/r/sue445/date_discreter)
|
10
9
|
|
data/date_discreter.gemspec
CHANGED
@@ -13,6 +13,11 @@ Gem::Specification.new do |spec|
|
|
13
13
|
spec.homepage = "https://github.com/sue445/date_discreter"
|
14
14
|
spec.license = "MIT"
|
15
15
|
|
16
|
+
spec.metadata["homepage_uri"] = spec.homepage
|
17
|
+
spec.metadata["source_code_uri"] = spec.homepage
|
18
|
+
spec.metadata["changelog_uri"] = "#{spec.homepage}/blob/master/CHANGELOG.md"
|
19
|
+
spec.metadata["rubygems_mfa_required"] = "true"
|
20
|
+
|
16
21
|
spec.files = `git ls-files -z`.split("\x0")
|
17
22
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
23
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
@@ -21,10 +26,10 @@ Gem::Specification.new do |spec|
|
|
21
26
|
spec.add_dependency 'activesupport'
|
22
27
|
|
23
28
|
spec.add_development_dependency "bundler", ">= 1.5"
|
24
|
-
spec.add_development_dependency "codeclimate-test-reporter"
|
25
29
|
spec.add_development_dependency "coveralls"
|
26
|
-
spec.add_development_dependency "rake"
|
30
|
+
spec.add_development_dependency "rake"
|
27
31
|
spec.add_development_dependency "rspec"
|
28
32
|
spec.add_development_dependency "rubydoctest", ">= 1.1.5"
|
33
|
+
spec.add_development_dependency "simplecov"
|
29
34
|
spec.add_development_dependency "yard"
|
30
35
|
end
|
data/spec/spec_helper.rb
CHANGED
@@ -1,12 +1,8 @@
|
|
1
|
-
if ENV["
|
1
|
+
if ENV["CI"]
|
2
2
|
require 'simplecov'
|
3
3
|
require 'coveralls'
|
4
|
-
require 'codeclimate-test-reporter'
|
5
4
|
|
6
|
-
SimpleCov.formatter = SimpleCov::Formatter
|
7
|
-
CodeClimate::TestReporter::Formatter,
|
8
|
-
Coveralls::SimpleCov::Formatter
|
9
|
-
]
|
5
|
+
SimpleCov.formatter = Coveralls::SimpleCov::Formatter
|
10
6
|
SimpleCov.start
|
11
7
|
end
|
12
8
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: date_discreter
|
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
|
- sue445
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-11-19 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: '1.5'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
42
|
+
name: coveralls
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - ">="
|
@@ -53,7 +53,7 @@ dependencies:
|
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
56
|
+
name: rake
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - ">="
|
@@ -67,47 +67,47 @@ dependencies:
|
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
70
|
+
name: rspec
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- - "
|
73
|
+
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '
|
75
|
+
version: '0'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- - "
|
80
|
+
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: '
|
82
|
+
version: '0'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
|
-
name:
|
84
|
+
name: rubydoctest
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
87
|
- - ">="
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version:
|
89
|
+
version: 1.1.5
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version:
|
96
|
+
version: 1.1.5
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
|
-
name:
|
98
|
+
name: simplecov
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
101
|
- - ">="
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version:
|
103
|
+
version: '0'
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
108
|
- - ">="
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version:
|
110
|
+
version: '0'
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: yard
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
@@ -130,11 +130,9 @@ extensions: []
|
|
130
130
|
extra_rdoc_files: []
|
131
131
|
files:
|
132
132
|
- ".coveralls.yml"
|
133
|
+
- ".github/workflows/test.yml"
|
133
134
|
- ".gitignore"
|
134
|
-
- ".hound.yml"
|
135
135
|
- ".rspec"
|
136
|
-
- ".tachikoma.yml"
|
137
|
-
- ".travis.yml"
|
138
136
|
- ".yardopts"
|
139
137
|
- CHANGELOG.md
|
140
138
|
- Gemfile
|
@@ -149,8 +147,12 @@ files:
|
|
149
147
|
homepage: https://github.com/sue445/date_discreter
|
150
148
|
licenses:
|
151
149
|
- MIT
|
152
|
-
metadata:
|
153
|
-
|
150
|
+
metadata:
|
151
|
+
homepage_uri: https://github.com/sue445/date_discreter
|
152
|
+
source_code_uri: https://github.com/sue445/date_discreter
|
153
|
+
changelog_uri: https://github.com/sue445/date_discreter/blob/master/CHANGELOG.md
|
154
|
+
rubygems_mfa_required: 'true'
|
155
|
+
post_install_message:
|
154
156
|
rdoc_options: []
|
155
157
|
require_paths:
|
156
158
|
- lib
|
@@ -165,12 +167,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
165
167
|
- !ruby/object:Gem::Version
|
166
168
|
version: '0'
|
167
169
|
requirements: []
|
168
|
-
|
169
|
-
|
170
|
-
signing_key:
|
170
|
+
rubygems_version: 3.2.22
|
171
|
+
signing_key:
|
171
172
|
specification_version: 4
|
172
173
|
summary: Check discrete of months, days and hours
|
173
174
|
test_files:
|
174
175
|
- spec/date_discreter_spec.rb
|
175
176
|
- spec/spec_helper.rb
|
176
|
-
has_rdoc:
|
data/.hound.yml
DELETED
@@ -1,25 +0,0 @@
|
|
1
|
-
Style/LineLength:
|
2
|
-
Description: 'Limit lines to 130 characters.'
|
3
|
-
Max: 130
|
4
|
-
Style/SpaceInsideParens:
|
5
|
-
Enabled: false
|
6
|
-
Style/SpaceBeforeBlockBraces:
|
7
|
-
Enabled: false
|
8
|
-
StringLiterals:
|
9
|
-
Enabled: false
|
10
|
-
Style/TrailingComma:
|
11
|
-
Enabled: false
|
12
|
-
Style/BlockComments:
|
13
|
-
Enabled: false
|
14
|
-
Style/NilComparison:
|
15
|
-
Enabled: false
|
16
|
-
Style/Documentation:
|
17
|
-
Enabled: false
|
18
|
-
Style/RegexpLiteral:
|
19
|
-
Enabled: false
|
20
|
-
Style/SignalException:
|
21
|
-
Enabled: false
|
22
|
-
Style/CaseEquality:
|
23
|
-
Enabled: false
|
24
|
-
Style/SpaceBeforeComma:
|
25
|
-
Enabled: false
|
data/.tachikoma.yml
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
strategy: 'bundler'
|
data/.travis.yml
DELETED
@@ -1,26 +0,0 @@
|
|
1
|
-
language: ruby
|
2
|
-
rvm:
|
3
|
-
- 1.9
|
4
|
-
- 2.0
|
5
|
-
- 2.1
|
6
|
-
- 2.2
|
7
|
-
- ruby-head
|
8
|
-
cache: bundler
|
9
|
-
bundler_args: "--jobs=2"
|
10
|
-
before_script:
|
11
|
-
- export CODECLIMATE_REPO_TOKEN=ba1cb6377edbaa3baf183aad543a1db02e0f2b75fe676fa8b9db2294850af609
|
12
|
-
- export COVERAGE=true
|
13
|
-
script:
|
14
|
-
- bundle exec rspec
|
15
|
-
- bundle exec rubydoctest README.md
|
16
|
-
branches:
|
17
|
-
only:
|
18
|
-
- master
|
19
|
-
notifications:
|
20
|
-
email: false
|
21
|
-
slack:
|
22
|
-
secure: dJhFmNRz7dtbnspVC0FYcdDhX/HAjTTbPRBa4GXtyDH5UUU9PqltcKfj2/ZG/28gktvO3Av1yoLP7sEAPNzkCSEjGMc5pT3hAeKub4WC/2OQ/eb19lBMupz3amJeZd7CWv6vHwYhyU2VFXpFa4AIn7WnR+XDHu7S3+ScQNJuz4E=
|
23
|
-
matrix:
|
24
|
-
allow_failures:
|
25
|
-
- rvm: ruby-head
|
26
|
-
sudo: false
|