chatwork 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/dependabot.yml +10 -0
- data/.github/workflows/test.yml +10 -25
- data/CHANGELOG.md +6 -0
- data/chatwork.gemspec +1 -1
- data/lib/chatwork/base_client.rb +1 -8
- data/lib/chatwork/multipart.rb +0 -2
- data/lib/chatwork/version.rb +1 -1
- metadata +6 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 585f2c778d77f3260712b3ad3eaa0e318e78d8904fa96cb8d72774579357710f
|
4
|
+
data.tar.gz: 48b488cb2609d54b4df6c6a393e24332636c5443feadd65ee03abced689af352
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 03fa686ba7691e4bd5ba8ab9a2bdb39fdc9543c8cbf552ec34c0a8c8188ee54fad0d85f29dcb103f887c5c774f56482ba6ce4be759610f139c5818839dd70291
|
7
|
+
data.tar.gz: 1e24ff095ea983bad035f3d55ff9b94fc12f19fc6cd6563a7addf58f8a023c62ce9d102597fe67e8abf91b9cec1caafc3596acab74f3f8dc0e52e41f7cb2c422
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# c.f. https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
|
2
|
+
version: 2
|
3
|
+
|
4
|
+
updates:
|
5
|
+
- package-ecosystem: github-actions
|
6
|
+
directory: /
|
7
|
+
schedule:
|
8
|
+
interval: weekly
|
9
|
+
assignees:
|
10
|
+
- sue445
|
data/.github/workflows/test.yml
CHANGED
@@ -12,58 +12,44 @@ on:
|
|
12
12
|
schedule:
|
13
13
|
- cron: "0 10 * * 5" # JST 19:00 (Fri)
|
14
14
|
|
15
|
-
env:
|
16
|
-
RUBYOPT: -EUTF-8
|
17
|
-
|
18
15
|
jobs:
|
19
16
|
test:
|
20
17
|
runs-on: ubuntu-latest
|
21
18
|
|
22
|
-
container: ${{ matrix.ruby }}
|
23
|
-
|
24
19
|
strategy:
|
25
20
|
fail-fast: false
|
26
21
|
|
27
22
|
matrix:
|
28
23
|
ruby:
|
29
|
-
-
|
30
|
-
-
|
31
|
-
-
|
32
|
-
-
|
33
|
-
-
|
24
|
+
- "2.6"
|
25
|
+
- "2.7"
|
26
|
+
- "3.0"
|
27
|
+
- "3.1"
|
28
|
+
- "3.2"
|
29
|
+
- "3.3"
|
34
30
|
gemfile:
|
35
31
|
- faraday_2
|
36
|
-
include:
|
37
|
-
- ruby: rubylang/ruby:master-nightly-bionic
|
38
|
-
allow_failures: "true"
|
39
32
|
|
40
33
|
env:
|
41
34
|
BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile
|
42
35
|
|
43
36
|
steps:
|
44
|
-
- uses: actions/checkout@
|
37
|
+
- uses: actions/checkout@v4
|
45
38
|
with:
|
46
39
|
submodules: "true"
|
47
40
|
|
48
|
-
-
|
49
|
-
uses: actions/cache@v1
|
50
|
-
id: cache_gem
|
41
|
+
- uses: ruby/setup-ruby@v1
|
51
42
|
with:
|
52
|
-
|
53
|
-
|
54
|
-
restore-keys: |
|
55
|
-
v1-gem-${{ runner.os }}-${{ matrix.ruby }}-
|
56
|
-
continue-on-error: ${{ matrix.allow_failures == 'true' }}
|
43
|
+
ruby-version: ${{ matrix.ruby }}
|
44
|
+
bundler-cache: true
|
57
45
|
|
58
46
|
- name: bundle update
|
59
47
|
run: |
|
60
48
|
set -xe
|
61
49
|
bundle config path vendor/bundle
|
62
50
|
bundle update --jobs $(nproc) --retry 3
|
63
|
-
continue-on-error: ${{ matrix.allow_failures == 'true' }}
|
64
51
|
|
65
52
|
- run: bundle exec rspec
|
66
|
-
continue-on-error: ${{ matrix.allow_failures == 'true' }}
|
67
53
|
|
68
54
|
- name: Coveralls Parallel
|
69
55
|
uses: coverallsapp/github-action@master
|
@@ -73,7 +59,6 @@ jobs:
|
|
73
59
|
parallel: true
|
74
60
|
|
75
61
|
- run: bundle exec rubocop
|
76
|
-
continue-on-error: ${{ matrix.allow_failures == 'true' }}
|
77
62
|
|
78
63
|
finish:
|
79
64
|
needs: test
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,12 @@
|
|
2
2
|
## Unreleased
|
3
3
|
[Full Changelog](https://github.com/asonas/chatwork-ruby/compare/v1.0.0...master)
|
4
4
|
|
5
|
+
## v1.0.1
|
6
|
+
[Full Changelog](https://github.com/asonas/chatwork-ruby/compare/v1.0.1...v1.0.0)
|
7
|
+
|
8
|
+
* Fix NoMethodError: undefined method `mime_type=' for ChatWork::Multipart:Class with faraday-multipart v1.1.0+
|
9
|
+
* https://github.com/asonas/chatwork-ruby/pull/90
|
10
|
+
|
5
11
|
## v1.0.0
|
6
12
|
[Full Changelog](https://github.com/asonas/chatwork-ruby/compare/v0.12.3...v1.0.0)
|
7
13
|
|
data/chatwork.gemspec
CHANGED
@@ -26,7 +26,7 @@ Gem::Specification.new do |spec|
|
|
26
26
|
|
27
27
|
spec.add_dependency "faraday", ">= 2.0.0"
|
28
28
|
spec.add_dependency "faraday-mashify"
|
29
|
-
spec.add_dependency "faraday-multipart"
|
29
|
+
spec.add_dependency "faraday-multipart", ">= 1.1.0"
|
30
30
|
|
31
31
|
spec.add_development_dependency "activesupport"
|
32
32
|
spec.add_development_dependency "bundler", ">= 1.3"
|
data/lib/chatwork/base_client.rb
CHANGED
@@ -33,16 +33,9 @@ module ChatWork
|
|
33
33
|
|
34
34
|
Faraday::Connection::METHODS.each do |method|
|
35
35
|
define_method(method) do |url, args = {}, &block|
|
36
|
-
faraday_errors =
|
37
|
-
if Gem::Version.create(Faraday::VERSION) >= Gem::Version.create("1.0.0")
|
38
|
-
[Faraday::ClientError, Faraday::ServerError]
|
39
|
-
else
|
40
|
-
[Faraday::Error::ClientError]
|
41
|
-
end
|
42
|
-
|
43
36
|
begin
|
44
37
|
response = @conn.__send__(method, @api_version + url, args.compact)
|
45
|
-
rescue
|
38
|
+
rescue Faraday::ClientError, Faraday::ServerError => e
|
46
39
|
raise ChatWork::APIConnectionError.faraday_error(e)
|
47
40
|
end
|
48
41
|
payload = handle_response(response)
|
data/lib/chatwork/multipart.rb
CHANGED
data/lib/chatwork/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chatwork
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- asonas
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2024-12-18 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: faraday
|
@@ -45,14 +45,14 @@ dependencies:
|
|
45
45
|
requirements:
|
46
46
|
- - ">="
|
47
47
|
- !ruby/object:Gem::Version
|
48
|
-
version:
|
48
|
+
version: 1.1.0
|
49
49
|
type: :runtime
|
50
50
|
prerelease: false
|
51
51
|
version_requirements: !ruby/object:Gem::Requirement
|
52
52
|
requirements:
|
53
53
|
- - ">="
|
54
54
|
- !ruby/object:Gem::Version
|
55
|
-
version:
|
55
|
+
version: 1.1.0
|
56
56
|
- !ruby/object:Gem::Dependency
|
57
57
|
name: activesupport
|
58
58
|
requirement: !ruby/object:Gem::Requirement
|
@@ -286,6 +286,7 @@ extensions: []
|
|
286
286
|
extra_rdoc_files: []
|
287
287
|
files:
|
288
288
|
- ".env.example"
|
289
|
+
- ".github/dependabot.yml"
|
289
290
|
- ".github/workflows/test.yml"
|
290
291
|
- ".gitignore"
|
291
292
|
- ".gitmodules"
|
@@ -390,7 +391,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
390
391
|
- !ruby/object:Gem::Version
|
391
392
|
version: '0'
|
392
393
|
requirements: []
|
393
|
-
rubygems_version: 3.
|
394
|
+
rubygems_version: 3.5.22
|
394
395
|
signing_key:
|
395
396
|
specification_version: 4
|
396
397
|
summary: Ruby bindings of ChatWork API
|