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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: b73ed1f4e2345af8cc1b5d305efce642ae7451a1
4
- data.tar.gz: 4534157d78d340a0bee5bd598ce5d5618dbb7249
2
+ SHA256:
3
+ metadata.gz: 22cbd3660c75738dcc6e0deb7e30a314a180d6754a7cf7434db946786691cf48
4
+ data.tar.gz: d72d8fb1544e39dafeb783043abfa2c8ffbc7cc19a179b2096235288bcbba4cc
5
5
  SHA512:
6
- metadata.gz: f4e5c0360d7a975aa84659a8d1f2e187a4c83acfee2779ad21847b634846518022ecde8a2c20f6013e7981c13149c8a46f7e3d59d9bad4039ad5ea6075974c51
7
- data.tar.gz: 3c4d6e4ae5c5f77b1470b0e55fd8bcd17bdf692fbde77825d4f9cbb2cc7e667a7ef47d67cd782cc26380ae879757c85fa90fb67ad7e33f006f872ba0ad1e0f36
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
@@ -14,3 +14,4 @@ spec/reports
14
14
  test/tmp
15
15
  test/version_tmp
16
16
  tmp
17
+ /vendor/
data/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## Unreleased
2
+
3
+ ## v1.4.0
4
+
5
+ - Migrate CI/CD platform from Travis CI to GitHub Actions
6
+ - Requires Ruby 3.0.0 or higher
7
+
1
8
  ## v1.3.5
2
9
 
3
10
  - Add project reaction methods
data/README.md CHANGED
@@ -7,7 +7,7 @@ Qiita API v2 client library and CLI tool, written in Ruby.
7
7
 
8
8
  ## Install
9
9
 
10
- Note: requires Ruby 2.0.0 or higher.
10
+ Note: requires Ruby 3.0.0 or higher.
11
11
 
12
12
  ```bash
13
13
  gem install qiita
data/lib/qiita/client.rb CHANGED
@@ -1,4 +1,3 @@
1
- require "uri"
2
1
  require "qiita/resource_based_methods"
3
2
  require "qiita/version"
4
3
 
@@ -152,7 +151,7 @@ module Qiita
152
151
  Qiita::Response.new(
153
152
  connection.send(
154
153
  request_method,
155
- URI.escape(path),
154
+ path,
156
155
  params,
157
156
  headers,
158
157
  )
data/lib/qiita/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Qiita
2
- VERSION = "1.3.5"
2
+ VERSION = "1.4.0"
3
3
  end
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", "~> 1.6"
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", "2.14.1"
29
+ spec.add_development_dependency "rspec"
30
30
  spec.add_development_dependency "webmock", "1.20.4"
31
31
  end
@@ -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(*arguments)
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 arguments" do
137
- let(:arguments) do
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}#{URI.escape(path)}"
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.3.5
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: 2016-11-14 00:00:00.000000000 Z
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: '1.6'
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: '1.6'
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: 2.14.1
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: 2.14.1
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
- rubyforge_project:
247
- rubygems_version: 2.4.5.1
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
@@ -1,3 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - 2.3.1