chatwork 0.12.2 → 0.12.3
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 +89 -0
- data/CHANGELOG.md +7 -1
- data/README.md +1 -1
- data/chatwork.gemspec +7 -1
- data/lib/chatwork/version.rb +1 -1
- data/spec/spec_helper.rb +7 -2
- metadata +40 -22
- data/.travis.yml +0 -40
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5bb38c6cdbe4e1ad3c0b38bc21ac36ce00581a12b1b62db584be89157dc64cd5
|
4
|
+
data.tar.gz: 3bedf9754acd3114a6d5bf20a3b765e2c65d6085eaf3dec6ae45f3f829e4fbdb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 026e88dcf281567c670c133da00a5fafe5c4257efa257691042228e3da5f8d65089558123eaa2805479c3cf619968fc83f99dec73abd99a0381c7976d2c29ad3
|
7
|
+
data.tar.gz: d225e6749f569d69ee535548b5d442c7a7e94063a06b1107470abe1aec3fd868fc1d7229b65bf83eb3925fd16b38abe518e4b0329c6c1fc3d8a6b112f58368f1
|
@@ -0,0 +1,89 @@
|
|
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
|
+
RUBYOPT: -EUTF-8
|
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.4
|
30
|
+
- ruby:2.5
|
31
|
+
- ruby:2.6
|
32
|
+
- ruby:2.7
|
33
|
+
- ruby:3.0
|
34
|
+
- rubylang/ruby:master-nightly-bionic
|
35
|
+
gemfile:
|
36
|
+
- faraday_0
|
37
|
+
- faraday_1
|
38
|
+
include:
|
39
|
+
- ruby: rubylang/ruby:master-nightly-bionic
|
40
|
+
allow_failures: "true"
|
41
|
+
|
42
|
+
env:
|
43
|
+
BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile
|
44
|
+
|
45
|
+
steps:
|
46
|
+
- uses: actions/checkout@v2
|
47
|
+
with:
|
48
|
+
submodules: "true"
|
49
|
+
|
50
|
+
- name: Cache vendor/bundle
|
51
|
+
uses: actions/cache@v1
|
52
|
+
id: cache_gem
|
53
|
+
with:
|
54
|
+
path: vendor/bundle
|
55
|
+
key: v1-gem-${{ runner.os }}-${{ matrix.ruby }}-${{ github.sha }}
|
56
|
+
restore-keys: |
|
57
|
+
v1-gem-${{ runner.os }}-${{ matrix.ruby }}-
|
58
|
+
continue-on-error: ${{ matrix.allow_failures == 'true' }}
|
59
|
+
|
60
|
+
- name: bundle update
|
61
|
+
run: |
|
62
|
+
set -xe
|
63
|
+
bundle config path vendor/bundle
|
64
|
+
bundle update --jobs $(nproc) --retry 3
|
65
|
+
continue-on-error: ${{ matrix.allow_failures == 'true' }}
|
66
|
+
|
67
|
+
- run: bundle exec rspec
|
68
|
+
continue-on-error: ${{ matrix.allow_failures == 'true' }}
|
69
|
+
|
70
|
+
- name: Coveralls Parallel
|
71
|
+
uses: coverallsapp/github-action@master
|
72
|
+
with:
|
73
|
+
github-token: ${{ secrets.GITHUB_TOKEN }}
|
74
|
+
flag-name: run-${{ matrix.ruby }}-${{ matrix.gemfile }}
|
75
|
+
parallel: true
|
76
|
+
|
77
|
+
- run: bundle exec rubocop
|
78
|
+
continue-on-error: ${{ matrix.allow_failures == 'true' }}
|
79
|
+
if: matrix.ruby < 'ruby:3.0' # FIXME: remove this after upgrade rubocop
|
80
|
+
|
81
|
+
finish:
|
82
|
+
needs: test
|
83
|
+
runs-on: ubuntu-latest
|
84
|
+
steps:
|
85
|
+
- name: Coveralls Finished
|
86
|
+
uses: coverallsapp/github-action@master
|
87
|
+
with:
|
88
|
+
github-token: ${{ secrets.GITHUB_TOKEN }}
|
89
|
+
parallel-finished: true
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,12 @@
|
|
1
1
|
# Change Log
|
2
2
|
## Unreleased
|
3
|
-
[Full Changelog](https://github.com/asonas/chatwork-ruby/compare/v0.12.
|
3
|
+
[Full Changelog](https://github.com/asonas/chatwork-ruby/compare/v0.12.3...master)
|
4
|
+
|
5
|
+
## v0.12.3
|
6
|
+
[Full Changelog](https://github.com/asonas/chatwork-ruby/compare/v0.12.2...v0.12.3)
|
7
|
+
|
8
|
+
* Enable MFA requirement for gem releasing
|
9
|
+
* https://github.com/asonas/chatwork-ruby/pull/75
|
4
10
|
|
5
11
|
## v0.12.2
|
6
12
|
[Full Changelog](https://github.com/asonas/chatwork-ruby/compare/v0.12.1...v0.12.2)
|
data/README.md
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
Ruby bindings of ChatWork API
|
4
4
|
|
5
5
|
[![Gem Version](https://badge.fury.io/rb/chatwork.svg)](https://badge.fury.io/rb/chatwork)
|
6
|
-
[![Build Status](https://
|
6
|
+
[![Build Status](https://github.com/asonas/chatwork-ruby/workflows/test/badge.svg?branch=master)](https://github.com/asonas/chatwork-ruby/actions?query=workflow%3Atest)
|
7
7
|
[![Coverage Status](https://coveralls.io/repos/github/asonas/chatwork-ruby/badge.svg?branch=master)](https://coveralls.io/github/asonas/chatwork-ruby)
|
8
8
|
|
9
9
|
## Installation
|
data/chatwork.gemspec
CHANGED
@@ -12,6 +12,11 @@ Gem::Specification.new do |spec|
|
|
12
12
|
spec.homepage = "https://github.com/asonas/chatwork-ruby"
|
13
13
|
spec.license = "MIT"
|
14
14
|
|
15
|
+
spec.metadata["homepage_uri"] = spec.homepage
|
16
|
+
spec.metadata["source_code_uri"] = spec.homepage
|
17
|
+
spec.metadata["changelog_uri"] = "#{spec.homepage}/blob/master/CHANGELOG.md"
|
18
|
+
spec.metadata["rubygems_mfa_required"] = "true"
|
19
|
+
|
15
20
|
spec.files = `git ls-files`.split($INPUT_RECORD_SEPARATOR)
|
16
21
|
spec.executables = spec.files.grep(%r{^exe/}) {|f| File.basename(f) }
|
17
22
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
@@ -23,7 +28,6 @@ Gem::Specification.new do |spec|
|
|
23
28
|
|
24
29
|
spec.add_development_dependency "activesupport"
|
25
30
|
spec.add_development_dependency "bundler", ">= 1.3"
|
26
|
-
spec.add_development_dependency "coveralls"
|
27
31
|
spec.add_development_dependency "dotenv"
|
28
32
|
spec.add_development_dependency "faraday_curl"
|
29
33
|
spec.add_development_dependency "onkcop", "0.53.0.0"
|
@@ -33,6 +37,8 @@ Gem::Specification.new do |spec|
|
|
33
37
|
spec.add_development_dependency "rspec-parameterized"
|
34
38
|
spec.add_development_dependency "rubocop", "0.53.0"
|
35
39
|
spec.add_development_dependency "rubocop-rspec", "1.24.0"
|
40
|
+
spec.add_development_dependency "simplecov"
|
41
|
+
spec.add_development_dependency "simplecov-lcov"
|
36
42
|
spec.add_development_dependency "webmock"
|
37
43
|
spec.add_development_dependency "yard"
|
38
44
|
end
|
data/lib/chatwork/version.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
@@ -1,8 +1,13 @@
|
|
1
1
|
if ENV["CI"]
|
2
2
|
require "simplecov"
|
3
|
-
require "
|
3
|
+
require "simplecov-lcov"
|
4
4
|
|
5
|
-
SimpleCov.
|
5
|
+
SimpleCov::Formatter::LcovFormatter.config do |c|
|
6
|
+
c.single_report_path = "coverage/lcov.info"
|
7
|
+
c.report_with_single_file = true
|
8
|
+
end
|
9
|
+
|
10
|
+
SimpleCov.formatter = SimpleCov::Formatter::LcovFormatter
|
6
11
|
SimpleCov.start do
|
7
12
|
%w[spec].each do |ignore_path|
|
8
13
|
add_filter(ignore_path)
|
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chatwork
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.12.
|
4
|
+
version: 0.12.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- asonas
|
8
8
|
- sue445
|
9
|
-
autorequire:
|
9
|
+
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2021-11-19 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: faraday
|
@@ -81,20 +81,6 @@ dependencies:
|
|
81
81
|
- - ">="
|
82
82
|
- !ruby/object:Gem::Version
|
83
83
|
version: '1.3'
|
84
|
-
- !ruby/object:Gem::Dependency
|
85
|
-
name: coveralls
|
86
|
-
requirement: !ruby/object:Gem::Requirement
|
87
|
-
requirements:
|
88
|
-
- - ">="
|
89
|
-
- !ruby/object:Gem::Version
|
90
|
-
version: '0'
|
91
|
-
type: :development
|
92
|
-
prerelease: false
|
93
|
-
version_requirements: !ruby/object:Gem::Requirement
|
94
|
-
requirements:
|
95
|
-
- - ">="
|
96
|
-
- !ruby/object:Gem::Version
|
97
|
-
version: '0'
|
98
84
|
- !ruby/object:Gem::Dependency
|
99
85
|
name: dotenv
|
100
86
|
requirement: !ruby/object:Gem::Requirement
|
@@ -221,6 +207,34 @@ dependencies:
|
|
221
207
|
- - '='
|
222
208
|
- !ruby/object:Gem::Version
|
223
209
|
version: 1.24.0
|
210
|
+
- !ruby/object:Gem::Dependency
|
211
|
+
name: simplecov
|
212
|
+
requirement: !ruby/object:Gem::Requirement
|
213
|
+
requirements:
|
214
|
+
- - ">="
|
215
|
+
- !ruby/object:Gem::Version
|
216
|
+
version: '0'
|
217
|
+
type: :development
|
218
|
+
prerelease: false
|
219
|
+
version_requirements: !ruby/object:Gem::Requirement
|
220
|
+
requirements:
|
221
|
+
- - ">="
|
222
|
+
- !ruby/object:Gem::Version
|
223
|
+
version: '0'
|
224
|
+
- !ruby/object:Gem::Dependency
|
225
|
+
name: simplecov-lcov
|
226
|
+
requirement: !ruby/object:Gem::Requirement
|
227
|
+
requirements:
|
228
|
+
- - ">="
|
229
|
+
- !ruby/object:Gem::Version
|
230
|
+
version: '0'
|
231
|
+
type: :development
|
232
|
+
prerelease: false
|
233
|
+
version_requirements: !ruby/object:Gem::Requirement
|
234
|
+
requirements:
|
235
|
+
- - ">="
|
236
|
+
- !ruby/object:Gem::Version
|
237
|
+
version: '0'
|
224
238
|
- !ruby/object:Gem::Dependency
|
225
239
|
name: webmock
|
226
240
|
requirement: !ruby/object:Gem::Requirement
|
@@ -258,11 +272,11 @@ extensions: []
|
|
258
272
|
extra_rdoc_files: []
|
259
273
|
files:
|
260
274
|
- ".env.example"
|
275
|
+
- ".github/workflows/test.yml"
|
261
276
|
- ".gitignore"
|
262
277
|
- ".gitmodules"
|
263
278
|
- ".rspec"
|
264
279
|
- ".rubocop.yml"
|
265
|
-
- ".travis.yml"
|
266
280
|
- ".yardopts"
|
267
281
|
- CHANGELOG.md
|
268
282
|
- Gemfile
|
@@ -344,8 +358,12 @@ files:
|
|
344
358
|
homepage: https://github.com/asonas/chatwork-ruby
|
345
359
|
licenses:
|
346
360
|
- MIT
|
347
|
-
metadata:
|
348
|
-
|
361
|
+
metadata:
|
362
|
+
homepage_uri: https://github.com/asonas/chatwork-ruby
|
363
|
+
source_code_uri: https://github.com/asonas/chatwork-ruby
|
364
|
+
changelog_uri: https://github.com/asonas/chatwork-ruby/blob/master/CHANGELOG.md
|
365
|
+
rubygems_mfa_required: 'true'
|
366
|
+
post_install_message:
|
349
367
|
rdoc_options: []
|
350
368
|
require_paths:
|
351
369
|
- lib
|
@@ -360,8 +378,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
360
378
|
- !ruby/object:Gem::Version
|
361
379
|
version: '0'
|
362
380
|
requirements: []
|
363
|
-
rubygems_version: 3.
|
364
|
-
signing_key:
|
381
|
+
rubygems_version: 3.2.22
|
382
|
+
signing_key:
|
365
383
|
specification_version: 4
|
366
384
|
summary: Ruby bindings of ChatWork API
|
367
385
|
test_files:
|
data/.travis.yml
DELETED
@@ -1,40 +0,0 @@
|
|
1
|
-
sudo: false
|
2
|
-
language: ruby
|
3
|
-
rvm:
|
4
|
-
- 2.2
|
5
|
-
- 2.3
|
6
|
-
- 2.4
|
7
|
-
- 2.5
|
8
|
-
- 2.6
|
9
|
-
- 2.7
|
10
|
-
- ruby-head
|
11
|
-
gemfile:
|
12
|
-
- gemfiles/faraday_0.gemfile
|
13
|
-
- gemfiles/faraday_1.gemfile
|
14
|
-
bundler_args: "--jobs=2"
|
15
|
-
cache: bundler
|
16
|
-
before_install:
|
17
|
-
- travis_retry gem install bundler --no-document || travis_retry gem install bundler --no-document -v 1.17.3
|
18
|
-
script:
|
19
|
-
- RUBYOPT=$RSPEC_RUBYOPT bundle exec rake spec
|
20
|
-
- bundle exec rubocop
|
21
|
-
branches:
|
22
|
-
only:
|
23
|
-
- master
|
24
|
-
jobs:
|
25
|
-
allow_failures:
|
26
|
-
- rvm: ruby-head
|
27
|
-
exclude:
|
28
|
-
# faraday v1.0+ requires Ruby 2.3+
|
29
|
-
- rvm: 2.2
|
30
|
-
gemfile: gemfiles/faraday_1.gemfile
|
31
|
-
include:
|
32
|
-
- rvm: 2.6
|
33
|
-
env: RSPEC_RUBYOPT="--jit"
|
34
|
-
- rvm: 2.7
|
35
|
-
env: RSPEC_RUBYOPT="--jit"
|
36
|
-
- rvm: ruby-head
|
37
|
-
env: RSPEC_RUBYOPT="--jit"
|
38
|
-
env:
|
39
|
-
global:
|
40
|
-
secure: Ntdheemdu1GavPR/3kPfQg1tR13FTP0jE9KxsSKcG32VbIzM69l22OXXwYttFexMhA1dMNytv5bKGIszeiO+YjwzDXkcDHF7ZULc24epsGCOVfNax4g47Q+Lgt2kpAsx8V/8/SIpK7VeBhc2nPvhAKPjTZ8ddN2gLHk4wifLRFA=
|