qiita 1.4.0 → 1.5.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: 22cbd3660c75738dcc6e0deb7e30a314a180d6754a7cf7434db946786691cf48
4
- data.tar.gz: d72d8fb1544e39dafeb783043abfa2c8ffbc7cc19a179b2096235288bcbba4cc
3
+ metadata.gz: 6c95e3b4ffe3193ab201e7026dfc84fa9184ee123f665b80cb2eac0bf515c1e5
4
+ data.tar.gz: 6ef514489aa60a682d6a3dcb5b46668b79e96ec51f5d80640ffa21217e45820b
5
5
  SHA512:
6
- metadata.gz: b7682b9e521423274816944a18f6a1e31a9c99e715a03d478fe7bb2b01ece78046be72d2bae406421fa384b6bc9bea7e44e43b343934d9ffd85a0819291b6cfb
7
- data.tar.gz: 01f4ef21cd33a5aeb7174985ceb9018d7bde261badfa27bebdd70ae24c53d14924ccda8f54d416fe3c8cc35329181c726a41fbd80e2227753e3eff97b9779a02
6
+ metadata.gz: a492e3b885116aea56a295b39fa75e5b0570e424bbb35c86e0f4b4826e6cff93e19fbb459a3c6754e54c5cf90c3404e084a241a81fd8b2094a9f81d45b66eb43
7
+ data.tar.gz: ea68c79d9c99bfe5bb9b717a30f122f2400a68d015bb7ea9548f236d897e74aff6ade980ce9d5fdabd3c9c63163a5ea7854a90cac69c7535a009f3ba22a2ab48
data/CHANGELOG.md CHANGED
@@ -1,9 +1,13 @@
1
1
  ## Unreleased
2
2
 
3
+ ## v1.5.0
4
+
5
+ - Require Faraday v2
6
+
3
7
  ## v1.4.0
4
8
 
5
9
  - Migrate CI/CD platform from Travis CI to GitHub Actions
6
- - Requires Ruby 3.0.0 or higher
10
+ - Require Ruby 3.0.0 or higher
7
11
 
8
12
  ## v1.3.5
9
13
 
data/lib/qiita/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Qiita
2
- VERSION = "1.4.0"
2
+ VERSION = "1.5.0"
3
3
  end
data/lib/qiita.rb CHANGED
@@ -2,7 +2,6 @@ require "active_support/core_ext/object/blank"
2
2
  require "active_support/core_ext/string/inflections"
3
3
  require "active_support/core_ext/string/strip"
4
4
  require "faraday"
5
- require "faraday_middleware"
6
5
  require "json"
7
6
  require "rack/utils"
8
7
  require "rainbow"
data/qiita.gemspec CHANGED
@@ -16,8 +16,7 @@ Gem::Specification.new do |spec|
16
16
  spec.require_paths = ["lib"]
17
17
 
18
18
  spec.add_dependency "activesupport"
19
- spec.add_dependency "faraday", "~> 0.9"
20
- spec.add_dependency "faraday_middleware"
19
+ spec.add_dependency 'faraday', '>= 2', '< 3'
21
20
  spec.add_dependency "rack"
22
21
  spec.add_dependency "rainbow"
23
22
  spec.add_dependency "rouge"
@@ -27,5 +26,5 @@ Gem::Specification.new do |spec|
27
26
  spec.add_development_dependency "pry"
28
27
  spec.add_development_dependency "rake"
29
28
  spec.add_development_dependency "rspec"
30
- spec.add_development_dependency "webmock", "1.20.4"
29
+ spec.add_development_dependency "webmock"
31
30
  end
@@ -341,6 +341,10 @@ describe Qiita::Client do
341
341
  204
342
342
  end
343
343
 
344
+ let(:response_hash) do
345
+ nil
346
+ end
347
+
344
348
  include_examples "valid condition"
345
349
  include_examples "sends request with JSON-encoded body"
346
350
  end
@@ -362,6 +366,10 @@ describe Qiita::Client do
362
366
  204
363
367
  end
364
368
 
369
+ let(:response_hash) do
370
+ nil
371
+ end
372
+
365
373
  include_examples "valid condition"
366
374
  include_examples "sends request with URL query"
367
375
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: qiita
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryo Nakamura
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-10-13 00:00:00.000000000 Z
11
+ date: 2023-10-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -26,32 +26,24 @@ dependencies:
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: faraday
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - "~>"
32
- - !ruby/object:Gem::Version
33
- version: '0.9'
34
- type: :runtime
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - "~>"
39
- - !ruby/object:Gem::Version
40
- version: '0.9'
41
- - !ruby/object:Gem::Dependency
42
- name: faraday_middleware
43
29
  requirement: !ruby/object:Gem::Requirement
44
30
  requirements:
45
31
  - - ">="
46
32
  - !ruby/object:Gem::Version
47
- version: '0'
33
+ version: '2'
34
+ - - "<"
35
+ - !ruby/object:Gem::Version
36
+ version: '3'
48
37
  type: :runtime
49
38
  prerelease: false
50
39
  version_requirements: !ruby/object:Gem::Requirement
51
40
  requirements:
52
41
  - - ">="
53
42
  - !ruby/object:Gem::Version
54
- version: '0'
43
+ version: '2'
44
+ - - "<"
45
+ - !ruby/object:Gem::Version
46
+ version: '3'
55
47
  - !ruby/object:Gem::Dependency
56
48
  name: rack
57
49
  requirement: !ruby/object:Gem::Requirement
@@ -182,16 +174,16 @@ dependencies:
182
174
  name: webmock
183
175
  requirement: !ruby/object:Gem::Requirement
184
176
  requirements:
185
- - - '='
177
+ - - ">="
186
178
  - !ruby/object:Gem::Version
187
- version: 1.20.4
179
+ version: '0'
188
180
  type: :development
189
181
  prerelease: false
190
182
  version_requirements: !ruby/object:Gem::Requirement
191
183
  requirements:
192
- - - '='
184
+ - - ">="
193
185
  - !ruby/object:Gem::Version
194
- version: 1.20.4
186
+ version: '0'
195
187
  description:
196
188
  email:
197
189
  - r7kamura@gmail.com