google_holiday_calendar 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/test.yml +97 -0
- data/CHANGELOG.md +7 -1
- data/Gemfile +24 -0
- data/README.md +1 -1
- data/google_holiday_calendar.gemspec +6 -1
- data/lib/google_holiday_calendar/version.rb +1 -1
- metadata +12 -8
- data/.travis.yml +0 -32
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 533f91bc51a0c47f008a02ec3d621897e6405a92394e65c46b9d96fa7c750b66
|
4
|
+
data.tar.gz: a0806bbe8f27b01226cebbff992551991bf9e227c4f4916ac3a114641328542f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8b52fcd6983253189a12aa198e2aacfedc85e4711c2697fb0190cb8caeb4cb8476c6d6a2f5ab2af9abc6cb18fde0d55a4901800a8210cbe7983dfd4718abd486
|
7
|
+
data.tar.gz: '05841d7af8d193e6445335f2aafc0597ae1f0b099719b03fc90aa2805d8554c8806de1e78c753c6e9d8885e9c16855e82618de180deccc06a869ae3fdb997e50'
|
@@ -0,0 +1,97 @@
|
|
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: Run test
|
65
|
+
run: |
|
66
|
+
set -xe
|
67
|
+
bundle exec rspec
|
68
|
+
continue-on-error: ${{ matrix.allow_failures == 'true' }}
|
69
|
+
|
70
|
+
- name: Slack Notification (not success)
|
71
|
+
uses: lazy-actions/slatify@master
|
72
|
+
if: "! success()"
|
73
|
+
continue-on-error: true
|
74
|
+
with:
|
75
|
+
job_name: ${{ format('*build* ({0})', matrix.ruby) }}
|
76
|
+
type: ${{ job.status }}
|
77
|
+
icon_emoji: ":octocat:"
|
78
|
+
url: ${{ secrets.SLACK_WEBHOOK }}
|
79
|
+
token: ${{ secrets.GITHUB_TOKEN }}
|
80
|
+
|
81
|
+
notify:
|
82
|
+
needs:
|
83
|
+
- test
|
84
|
+
|
85
|
+
runs-on: ubuntu-latest
|
86
|
+
|
87
|
+
steps:
|
88
|
+
- name: Slack Notification (success)
|
89
|
+
uses: lazy-actions/slatify@master
|
90
|
+
if: always()
|
91
|
+
continue-on-error: true
|
92
|
+
with:
|
93
|
+
job_name: '*build*'
|
94
|
+
type: ${{ job.status }}
|
95
|
+
icon_emoji: ":octocat:"
|
96
|
+
url: ${{ secrets.SLACK_WEBHOOK }}
|
97
|
+
token: ${{ secrets.GITHUB_TOKEN }}
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,11 @@
|
|
1
1
|
## master
|
2
|
-
[full changelog](http://github.com/sue445/google_holiday_calendar/compare/v0.1.
|
2
|
+
[full changelog](http://github.com/sue445/google_holiday_calendar/compare/v0.1.2...master)
|
3
|
+
|
4
|
+
## v0.1.2
|
5
|
+
[full changelog](http://github.com/sue445/google_holiday_calendar/compare/v0.1.1...v0.1.2)
|
6
|
+
|
7
|
+
* Enable MFA requirement for gem releasing
|
8
|
+
* https://github.com/sue445/google_holiday_calendar/pull/37
|
3
9
|
|
4
10
|
## v0.1.1
|
5
11
|
[full changelog](http://github.com/sue445/google_holiday_calendar/compare/v0.1.0...v0.1.1)
|
data/Gemfile
CHANGED
@@ -11,4 +11,28 @@ if Gem::Version.create(RUBY_VERSION) < Gem::Version.create("2.1.0")
|
|
11
11
|
group :test do
|
12
12
|
gem "public_suffix", "< 3.0.0"
|
13
13
|
end
|
14
|
+
|
15
|
+
# NOTE: rexml v3.2.5+ requires Ruby 2.1.0+
|
16
|
+
# https://github.com/ruby/rexml/compare/v3.2.4...v3.2.5#diff-f8c7cdefc29090ed525a2be70411ce741d4124853cf6425db7d18a6ea3bb9bb3R515
|
17
|
+
gem "rexml", "< 3.2.5"
|
18
|
+
end
|
19
|
+
|
20
|
+
if Gem::Version.create(RUBY_VERSION) < Gem::Version.create("2.2.0")
|
21
|
+
# NOTE: rake v13.0.0+ requires Ruby 2.2.0+
|
22
|
+
gem "rake", "< 13.0.0"
|
23
|
+
end
|
24
|
+
|
25
|
+
if Gem::Version.create(RUBY_VERSION) < Gem::Version.create("2.2.0")
|
26
|
+
# NOTE: minitest v5.12.1+ requires Ruby 2.2.0+
|
27
|
+
gem "minitest", "< 5.12.1"
|
28
|
+
end
|
29
|
+
|
30
|
+
if Gem::Version.create(RUBY_VERSION) < Gem::Version.create("2.5.0")
|
31
|
+
# NOTE: docile 1.4.0+ requires Ruby 2.5.0+
|
32
|
+
gem "docile", "< 1.4.0"
|
33
|
+
end
|
34
|
+
|
35
|
+
if Gem::Version.create(RUBY_VERSION) < Gem::Version.create("2.3.0")
|
36
|
+
# NOTE: json v2.6.0+ requires Ruby 2.3.0+
|
37
|
+
gem "json", "< 2.6.0"
|
14
38
|
end
|
data/README.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# GoogleHolidayCalendar
|
2
2
|
|
3
3
|
[![Gem Version](https://badge.fury.io/rb/google_holiday_calendar.png)](http://badge.fury.io/rb/google_holiday_calendar)
|
4
|
-
[![Build Status](https://
|
4
|
+
[![Build Status](https://github.com/sue445/google_holiday_calendar/workflows/test/badge.svg?branch=master)](https://github.com/sue445/google_holiday_calendar/actions?query=workflow%3Atest)
|
5
5
|
[![Coverage Status](https://coveralls.io/repos/sue445/google_holiday_calendar/badge.png)](https://coveralls.io/r/sue445/google_holiday_calendar)
|
6
6
|
[![Code Climate](https://codeclimate.com/github/sue445/google_holiday_calendar.png)](https://codeclimate.com/github/sue445/google_holiday_calendar)
|
7
7
|
|
@@ -13,11 +13,16 @@ Gem::Specification.new do |spec|
|
|
13
13
|
spec.homepage = "https://github.com/sue445/google_holiday_calendar"
|
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.required_ruby_version = '>= 2.0.0'
|
17
22
|
|
18
23
|
# Specify which files should be added to the gem when it is released.
|
19
24
|
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
20
|
-
spec.files = Dir.chdir(File.expand_path(
|
25
|
+
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
|
21
26
|
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features|img)/}) }
|
22
27
|
end
|
23
28
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google_holiday_calendar
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
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
|
@@ -159,9 +159,9 @@ extensions: []
|
|
159
159
|
extra_rdoc_files: []
|
160
160
|
files:
|
161
161
|
- ".coveralls.yml"
|
162
|
+
- ".github/workflows/test.yml"
|
162
163
|
- ".gitignore"
|
163
164
|
- ".rspec"
|
164
|
-
- ".travis.yml"
|
165
165
|
- ".yardopts"
|
166
166
|
- CHANGELOG.md
|
167
167
|
- Gemfile
|
@@ -176,8 +176,12 @@ files:
|
|
176
176
|
homepage: https://github.com/sue445/google_holiday_calendar
|
177
177
|
licenses:
|
178
178
|
- MIT
|
179
|
-
metadata:
|
180
|
-
|
179
|
+
metadata:
|
180
|
+
homepage_uri: https://github.com/sue445/google_holiday_calendar
|
181
|
+
source_code_uri: https://github.com/sue445/google_holiday_calendar
|
182
|
+
changelog_uri: https://github.com/sue445/google_holiday_calendar/blob/master/CHANGELOG.md
|
183
|
+
rubygems_mfa_required: 'true'
|
184
|
+
post_install_message:
|
181
185
|
rdoc_options: []
|
182
186
|
require_paths:
|
183
187
|
- lib
|
@@ -192,8 +196,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
192
196
|
- !ruby/object:Gem::Version
|
193
197
|
version: '0'
|
194
198
|
requirements: []
|
195
|
-
rubygems_version: 3.
|
196
|
-
signing_key:
|
199
|
+
rubygems_version: 3.2.22
|
200
|
+
signing_key:
|
197
201
|
specification_version: 4
|
198
202
|
summary: Get holidays via Google Calendar.
|
199
203
|
test_files: []
|
data/.travis.yml
DELETED
@@ -1,32 +0,0 @@
|
|
1
|
-
language: ruby
|
2
|
-
rvm:
|
3
|
-
- 2.0
|
4
|
-
- 2.1
|
5
|
-
- 2.2
|
6
|
-
- 2.3
|
7
|
-
- 2.4
|
8
|
-
- 2.5
|
9
|
-
- 2.6
|
10
|
-
- ruby-head
|
11
|
-
cache: bundler
|
12
|
-
before_install:
|
13
|
-
- travis_retry gem update --system || travis_retry gem update --system 2.7.8
|
14
|
-
- travis_retry gem install bundler --no-document || travis_retry gem install bundler --no-document -v 1.17.3
|
15
|
-
script:
|
16
|
-
- bundle exec rspec
|
17
|
-
branches:
|
18
|
-
only:
|
19
|
-
- master
|
20
|
-
notifications:
|
21
|
-
email: false
|
22
|
-
slack:
|
23
|
-
secure: LFMFNHkB88zWrcjwRstw7Ri+pKVndjkz11H8r73GbrJOL76Lt4llVsraYLRrCnx859kRZul4SjbUIlYsRl28Wv2IJmIhvDnK9n5gX4nSbEfjrZGsaMOmJhY8MxazM4757TFEY6ugzwRD3hzWKEK6bIY6nRu5KAFaZhPjDbSaEpA=
|
24
|
-
matrix:
|
25
|
-
allow_failures:
|
26
|
-
- rvm: ruby-head
|
27
|
-
include:
|
28
|
-
- rvm: 2.6
|
29
|
-
env: RUBYOPT="--jit"
|
30
|
-
- rvm: ruby-head
|
31
|
-
env: RUBYOPT="--jit"
|
32
|
-
sudo: false
|