qiita 1.3.5 → 1.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.github/workflows/rspec.yml +18 -0
- data/.gitignore +1 -0
- data/CHANGELOG.md +7 -0
- data/README.md +1 -1
- data/lib/qiita/client.rb +1 -2
- data/lib/qiita/version.rb +1 -1
- data/qiita.gemspec +2 -2
- data/spec/qiita/client_spec.rb +6 -10
- metadata +14 -15
- data/.travis.yml +0 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 22cbd3660c75738dcc6e0deb7e30a314a180d6754a7cf7434db946786691cf48
|
4
|
+
data.tar.gz: d72d8fb1544e39dafeb783043abfa2c8ffbc7cc19a179b2096235288bcbba4cc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b7682b9e521423274816944a18f6a1e31a9c99e715a03d478fe7bb2b01ece78046be72d2bae406421fa384b6bc9bea7e44e43b343934d9ffd85a0819291b6cfb
|
7
|
+
data.tar.gz: 01f4ef21cd33a5aeb7174985ceb9018d7bde261badfa27bebdd70ae24c53d14924ccda8f54d416fe3c8cc35329181c726a41fbd80e2227753e3eff97b9779a02
|
@@ -0,0 +1,18 @@
|
|
1
|
+
name: RSpec
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
pull_request:
|
6
|
+
|
7
|
+
jobs:
|
8
|
+
rspec:
|
9
|
+
runs-on: ubuntu-latest
|
10
|
+
steps:
|
11
|
+
- uses: actions/checkout@v3
|
12
|
+
- uses: ruby/setup-ruby@v1
|
13
|
+
with:
|
14
|
+
ruby-version: '3.0.0'
|
15
|
+
bundler-cache: true
|
16
|
+
- run: gem install bundler -v '< 2.0'
|
17
|
+
- run: bundle install
|
18
|
+
- run: bundle exec rake spec
|
data/.gitignore
CHANGED
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
data/lib/qiita/client.rb
CHANGED
data/lib/qiita/version.rb
CHANGED
data/qiita.gemspec
CHANGED
@@ -22,10 +22,10 @@ Gem::Specification.new do |spec|
|
|
22
22
|
spec.add_dependency "rainbow"
|
23
23
|
spec.add_dependency "rouge"
|
24
24
|
spec.add_dependency "slop", "< 4.0.0"
|
25
|
-
spec.add_development_dependency "bundler", "~>
|
25
|
+
spec.add_development_dependency "bundler", "~> 2.2"
|
26
26
|
spec.add_development_dependency "json_schema"
|
27
27
|
spec.add_development_dependency "pry"
|
28
28
|
spec.add_development_dependency "rake"
|
29
|
-
spec.add_development_dependency "rspec"
|
29
|
+
spec.add_development_dependency "rspec"
|
30
30
|
spec.add_development_dependency "webmock", "1.20.4"
|
31
31
|
end
|
data/spec/qiita/client_spec.rb
CHANGED
@@ -49,7 +49,7 @@ describe Qiita::Client do
|
|
49
49
|
end
|
50
50
|
|
51
51
|
let(:client) do
|
52
|
-
described_class.new(options)
|
52
|
+
described_class.new(**options)
|
53
53
|
end
|
54
54
|
|
55
55
|
let(:options) do
|
@@ -116,11 +116,7 @@ describe Qiita::Client do
|
|
116
116
|
|
117
117
|
describe ".new" do
|
118
118
|
subject do
|
119
|
-
described_class.new(
|
120
|
-
end
|
121
|
-
|
122
|
-
let(:arguments) do
|
123
|
-
[options]
|
119
|
+
described_class.new(**options)
|
124
120
|
end
|
125
121
|
|
126
122
|
let(:options) do
|
@@ -133,9 +129,9 @@ describe Qiita::Client do
|
|
133
129
|
end
|
134
130
|
end
|
135
131
|
|
136
|
-
context "without any
|
137
|
-
let(:
|
138
|
-
|
132
|
+
context "without any options" do
|
133
|
+
let(:options) do
|
134
|
+
{}
|
139
135
|
end
|
140
136
|
include_examples "returns a Qiita::Client"
|
141
137
|
end
|
@@ -281,7 +277,7 @@ describe Qiita::Client do
|
|
281
277
|
end
|
282
278
|
|
283
279
|
let(:requested_url) do
|
284
|
-
"https://#{requested_host}#{
|
280
|
+
"https://#{requested_host}#{CGI.escape(path)}"
|
285
281
|
end
|
286
282
|
|
287
283
|
it "sends request with escaped path" do
|
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
|
+
version: 1.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryo Nakamura
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-10-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -114,14 +114,14 @@ dependencies:
|
|
114
114
|
requirements:
|
115
115
|
- - "~>"
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version: '
|
117
|
+
version: '2.2'
|
118
118
|
type: :development
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
122
|
- - "~>"
|
123
123
|
- !ruby/object:Gem::Version
|
124
|
-
version: '
|
124
|
+
version: '2.2'
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
126
|
name: json_schema
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
@@ -168,16 +168,16 @@ dependencies:
|
|
168
168
|
name: rspec
|
169
169
|
requirement: !ruby/object:Gem::Requirement
|
170
170
|
requirements:
|
171
|
-
- -
|
171
|
+
- - ">="
|
172
172
|
- !ruby/object:Gem::Version
|
173
|
-
version:
|
173
|
+
version: '0'
|
174
174
|
type: :development
|
175
175
|
prerelease: false
|
176
176
|
version_requirements: !ruby/object:Gem::Requirement
|
177
177
|
requirements:
|
178
|
-
- -
|
178
|
+
- - ">="
|
179
179
|
- !ruby/object:Gem::Version
|
180
|
-
version:
|
180
|
+
version: '0'
|
181
181
|
- !ruby/object:Gem::Dependency
|
182
182
|
name: webmock
|
183
183
|
requirement: !ruby/object:Gem::Requirement
|
@@ -192,7 +192,7 @@ dependencies:
|
|
192
192
|
- - '='
|
193
193
|
- !ruby/object:Gem::Version
|
194
194
|
version: 1.20.4
|
195
|
-
description:
|
195
|
+
description:
|
196
196
|
email:
|
197
197
|
- r7kamura@gmail.com
|
198
198
|
executables:
|
@@ -200,8 +200,8 @@ executables:
|
|
200
200
|
extensions: []
|
201
201
|
extra_rdoc_files: []
|
202
202
|
files:
|
203
|
+
- ".github/workflows/rspec.yml"
|
203
204
|
- ".gitignore"
|
204
|
-
- ".travis.yml"
|
205
205
|
- CHANGELOG.md
|
206
206
|
- Gemfile
|
207
207
|
- LICENSE.txt
|
@@ -228,7 +228,7 @@ files:
|
|
228
228
|
homepage: https://github.com/increments/qiita-rb
|
229
229
|
licenses: []
|
230
230
|
metadata: {}
|
231
|
-
post_install_message:
|
231
|
+
post_install_message:
|
232
232
|
rdoc_options: []
|
233
233
|
require_paths:
|
234
234
|
- lib
|
@@ -243,9 +243,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
243
243
|
- !ruby/object:Gem::Version
|
244
244
|
version: '0'
|
245
245
|
requirements: []
|
246
|
-
|
247
|
-
|
248
|
-
signing_key:
|
246
|
+
rubygems_version: 3.2.3
|
247
|
+
signing_key:
|
249
248
|
specification_version: 4
|
250
249
|
summary: A client library for Qiita API v2 written in Ruby.
|
251
250
|
test_files:
|
data/.travis.yml
DELETED