line_notify_client 1.0.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 33b7a3c966ce4988bca357dcaaf18e08efe82f4065da2e8a737b9ecdff5daf0c
4
- data.tar.gz: d9b12267a2265cf8263001e4c2c002e1ac843f3312669700e9d574f22e08b566
3
+ metadata.gz: f5ecdff193abbd6a6ba3afb2157016d6e81fadbc888c833ddb358e421ba5288e
4
+ data.tar.gz: c930d927eb1a9977c7641de6e64b385c645ef1d9c78ff7698b128f22248c8308
5
5
  SHA512:
6
- metadata.gz: b29f912a3cdcf243c49ce14af1fd0f0286fd66a2112f90b28691b0b2a2b74becbc80ab03e9a91c41deaa39b014bd12fe6635d18335f6bbc7b429f50a5e8c06c4
7
- data.tar.gz: c00b02f04756fdad7061ad426382ea3e261f1b29b8592fd628f54f3487a5dd8ff83cce2bf18a97622a320844ae673aa8ef91745cff1c4312a189e4978eb03f3e
6
+ metadata.gz: 9e0f16e8c56ef86d1aa25b5e634a0c775835fbd568ecb30fcca7ab2cda6831779c83c518dfc6b8d29b913d9adac234dc6d29450c3c522ff6d52d0004466e0697
7
+ data.tar.gz: e30328deed3ad2364fc05a48977c6bfda864ae483adf36afb38c583c4486dd63585e02762370f8aeb0307a25353a48d0842c1c8e81ed7c8ff6c70ec1dc02f1ef
@@ -0,0 +1,23 @@
1
+ name: CI
2
+
3
+ on: [pull_request]
4
+
5
+ jobs:
6
+ rspec:
7
+ name: Ruby ${{ matrix.ruby }}
8
+ runs-on: ubuntu-latest
9
+ strategy:
10
+ fail-fast: false
11
+ matrix:
12
+ ruby:
13
+ - "3.0"
14
+ - "3.1"
15
+ - "3.2"
16
+ steps:
17
+ - uses: actions/checkout@v3
18
+ - uses: ruby/setup-ruby@v1
19
+ with:
20
+ ruby-version: ${{ matrix.ruby }}
21
+ bundler-cache: true
22
+ - run: bundle install --jobs 4 --retry 3
23
+ - run: bundle exec rake spec
data/.gitignore CHANGED
@@ -45,7 +45,7 @@ build-iPhoneSimulator/
45
45
 
46
46
  # for a library or gem, you might want to ignore these files since the code is
47
47
  # intended to run in multiple environments; otherwise, check them in:
48
- # Gemfile.lock
48
+ Gemfile.lock
49
49
  # .ruby-version
50
50
  # .ruby-gemset
51
51
 
@@ -52,7 +52,7 @@ module LineNotifyClient
52
52
  def request(http_method, path, params, headers)
53
53
  faraday_response = connection.send(http_method, path, params, headers)
54
54
  LineNotify::Response.new(faraday_response)
55
- rescue Faraday::Error::TimeoutError => e
55
+ rescue Faraday::TimeoutError => e
56
56
  raise LineNotify::TimeoutError, e.message
57
57
  rescue Faraday::Error => e
58
58
  raise LineNotify::Error, e.message
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module LineNotify
4
- VERSION = '1.0.0'
4
+ VERSION = '1.1.0'
5
5
  end
@@ -1,7 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'faraday'
4
- require 'faraday_middleware'
5
4
 
6
5
  require 'line_notify_client/error'
7
6
  require 'line_notify_client/http_client'
@@ -19,10 +19,9 @@ Gem::Specification.new do |s|
19
19
  end
20
20
  s.require_paths = ["lib"]
21
21
 
22
- s.add_dependency 'faraday', '~> 0.13'
23
- s.add_dependency 'faraday_middleware', '~> 0.12'
22
+ s.add_dependency 'faraday', '>= 2', '< 3'
24
23
 
25
- s.add_development_dependency 'rake', '~> 10.0'
26
- s.add_development_dependency 'rspec', '~> 3.0'
24
+ s.add_development_dependency 'rake'
25
+ s.add_development_dependency 'rspec', '~> 3'
27
26
  s.add_development_dependency 'webmock'
28
27
  end
metadata CHANGED
@@ -1,71 +1,63 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: line_notify_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shojiro Yanagisawa
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-01-20 00:00:00.000000000 Z
11
+ date: 2023-10-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.13'
20
- type: :runtime
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - "~>"
19
+ version: '2'
20
+ - - "<"
25
21
  - !ruby/object:Gem::Version
26
- version: '0.13'
27
- - !ruby/object:Gem::Dependency
28
- name: faraday_middleware
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - "~>"
32
- - !ruby/object:Gem::Version
33
- version: '0.12'
22
+ version: '3'
34
23
  type: :runtime
35
24
  prerelease: false
36
25
  version_requirements: !ruby/object:Gem::Requirement
37
26
  requirements:
38
- - - "~>"
27
+ - - ">="
39
28
  - !ruby/object:Gem::Version
40
- version: '0.12'
29
+ version: '2'
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: '3'
41
33
  - !ruby/object:Gem::Dependency
42
34
  name: rake
43
35
  requirement: !ruby/object:Gem::Requirement
44
36
  requirements:
45
- - - "~>"
37
+ - - ">="
46
38
  - !ruby/object:Gem::Version
47
- version: '10.0'
39
+ version: '0'
48
40
  type: :development
49
41
  prerelease: false
50
42
  version_requirements: !ruby/object:Gem::Requirement
51
43
  requirements:
52
- - - "~>"
44
+ - - ">="
53
45
  - !ruby/object:Gem::Version
54
- version: '10.0'
46
+ version: '0'
55
47
  - !ruby/object:Gem::Dependency
56
48
  name: rspec
57
49
  requirement: !ruby/object:Gem::Requirement
58
50
  requirements:
59
51
  - - "~>"
60
52
  - !ruby/object:Gem::Version
61
- version: '3.0'
53
+ version: '3'
62
54
  type: :development
63
55
  prerelease: false
64
56
  version_requirements: !ruby/object:Gem::Requirement
65
57
  requirements:
66
58
  - - "~>"
67
59
  - !ruby/object:Gem::Version
68
- version: '3.0'
60
+ version: '3'
69
61
  - !ruby/object:Gem::Dependency
70
62
  name: webmock
71
63
  requirement: !ruby/object:Gem::Requirement
@@ -87,10 +79,10 @@ executables: []
87
79
  extensions: []
88
80
  extra_rdoc_files: []
89
81
  files:
82
+ - ".github/workflows/ci.yml"
90
83
  - ".gitignore"
91
84
  - ".rspec"
92
85
  - Gemfile
93
- - Gemfile.lock
94
86
  - LICENSE
95
87
  - README.md
96
88
  - Rakefile
@@ -104,7 +96,7 @@ homepage: https://github.com/Findy/line_notify_client
104
96
  licenses:
105
97
  - MIT
106
98
  metadata: {}
107
- post_install_message:
99
+ post_install_message:
108
100
  rdoc_options: []
109
101
  require_paths:
110
102
  - lib
@@ -119,9 +111,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
119
111
  - !ruby/object:Gem::Version
120
112
  version: '0'
121
113
  requirements: []
122
- rubyforge_project:
123
- rubygems_version: 2.7.6
124
- signing_key:
114
+ rubygems_version: 3.4.10
115
+ signing_key:
125
116
  specification_version: 4
126
117
  summary: LINE Notify API client library
127
118
  test_files: []
data/Gemfile.lock DELETED
@@ -1,64 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- line_notify_client (1.0.0)
5
- faraday (~> 0.13)
6
- faraday_middleware (~> 0.12)
7
-
8
- GEM
9
- remote: https://rubygems.org/
10
- specs:
11
- addressable (2.7.0)
12
- public_suffix (>= 2.0.2, < 5.0)
13
- byebug (10.0.2)
14
- coderay (1.1.2)
15
- crack (0.4.3)
16
- safe_yaml (~> 1.0.0)
17
- diff-lcs (1.3)
18
- faraday (0.17.3)
19
- multipart-post (>= 1.2, < 3)
20
- faraday_middleware (0.13.1)
21
- faraday (>= 0.7.4, < 1.0)
22
- hashdiff (1.0.0)
23
- method_source (0.9.2)
24
- multipart-post (2.1.1)
25
- pry (0.12.2)
26
- coderay (~> 1.1.0)
27
- method_source (~> 0.9.0)
28
- pry-byebug (3.6.0)
29
- byebug (~> 10.0)
30
- pry (~> 0.10)
31
- public_suffix (4.0.2)
32
- rake (10.5.0)
33
- rspec (3.9.0)
34
- rspec-core (~> 3.9.0)
35
- rspec-expectations (~> 3.9.0)
36
- rspec-mocks (~> 3.9.0)
37
- rspec-core (3.9.0)
38
- rspec-support (~> 3.9.0)
39
- rspec-expectations (3.9.0)
40
- diff-lcs (>= 1.2.0, < 2.0)
41
- rspec-support (~> 3.9.0)
42
- rspec-mocks (3.9.0)
43
- diff-lcs (>= 1.2.0, < 2.0)
44
- rspec-support (~> 3.9.0)
45
- rspec-support (3.9.0)
46
- safe_yaml (1.0.5)
47
- webmock (3.7.6)
48
- addressable (>= 2.3.6)
49
- crack (>= 0.3.2)
50
- hashdiff (>= 0.4.0, < 2.0.0)
51
-
52
- PLATFORMS
53
- ruby
54
-
55
- DEPENDENCIES
56
- byebug (~> 10.0)
57
- line_notify_client!
58
- pry-byebug
59
- rake (~> 10.0)
60
- rspec (~> 3.0)
61
- webmock
62
-
63
- BUNDLED WITH
64
- 2.0.2