my_api_client 0.20.0 → 0.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.circleci/config.yml +34 -18
- data/.github/dependabot.yml +32 -0
- data/.rubocop.yml +10 -10
- data/.rubocop_todo.yml +2 -2
- data/CHANGELOG.md +215 -249
- data/Gemfile.lock +54 -57
- data/README.jp.md +36 -34
- data/README.md +391 -8
- data/example/api_clients/application_api_client.rb +1 -1
- data/gemfiles/rails_5.0.gemfile +1 -0
- data/gemfiles/rails_5.1.gemfile +1 -0
- data/gemfiles/rails_5.2.gemfile +1 -0
- data/gemfiles/rails_6.0.gemfile +1 -0
- data/gemfiles/rails_7.0.gemfile +15 -0
- data/lib/generators/rails/templates/api_client.rb.erb +3 -5
- data/lib/generators/rspec/templates/api_client_spec.rb.erb +0 -8
- data/lib/my_api_client/errors/network_error.rb +3 -3
- data/lib/my_api_client/errors.rb +2 -2
- data/lib/my_api_client/integrations/bugsnag.rb +2 -2
- data/lib/my_api_client/rspec/matchers/be_handled_as_an_error.rb +3 -3
- data/lib/my_api_client/rspec/stub.rb +11 -7
- data/lib/my_api_client/version.rb +1 -1
- data/my_api/Gemfile +1 -1
- data/my_api/Gemfile.lock +100 -99
- data/my_api/app/controllers/pagination_controller.rb +1 -1
- data/my_api/public/index.html +2 -2
- data/my_api/spec/spec_helper.rb +1 -1
- data/my_api_client.gemspec +4 -1
- data/rails_app/rails_5.2/Gemfile.lock +70 -64
- data/rails_app/rails_6.0/Gemfile +1 -0
- data/rails_app/rails_6.0/Gemfile.lock +92 -94
- data/rails_app/rails_6.1/Gemfile +2 -2
- data/rails_app/rails_6.1/Gemfile.lock +91 -95
- data/rails_app/rails_6.1/Rakefile +3 -1
- data/rails_app/rails_6.1/bin/bundle +28 -20
- data/rails_app/rails_6.1/bin/rails +4 -2
- data/rails_app/rails_6.1/bin/rake +4 -2
- data/rails_app/rails_6.1/bin/setup +3 -1
- data/rails_app/rails_6.1/config.ru +3 -1
- data/rails_app/rails_7.0/Gemfile +13 -0
- data/rails_app/rails_7.0/Gemfile.lock +210 -0
- data/rails_app/rails_7.0/README.md +24 -0
- data/rails_app/rails_7.0/Rakefile +8 -0
- data/rails_app/rails_7.0/app/controllers/application_controller.rb +4 -0
- data/rails_app/rails_7.0/app/models/application_record.rb +5 -0
- data/rails_app/rails_7.0/bin/bundle +122 -0
- data/rails_app/rails_7.0/bin/rails +6 -0
- data/rails_app/rails_7.0/bin/rake +6 -0
- data/rails_app/rails_7.0/bin/setup +35 -0
- data/rails_app/rails_7.0/config/application.rb +41 -0
- data/rails_app/rails_7.0/config/boot.rb +5 -0
- data/rails_app/rails_7.0/config/credentials.yml.enc +1 -0
- data/rails_app/rails_7.0/config/database.yml +25 -0
- data/rails_app/rails_7.0/config/environment.rb +7 -0
- data/rails_app/rails_7.0/config/environments/development.rb +58 -0
- data/rails_app/rails_7.0/config/environments/production.rb +70 -0
- data/rails_app/rails_7.0/config/environments/test.rb +52 -0
- data/rails_app/rails_7.0/config/initializers/cors.rb +17 -0
- data/rails_app/rails_7.0/config/initializers/filter_parameter_logging.rb +8 -0
- data/rails_app/rails_7.0/config/initializers/inflections.rb +17 -0
- data/rails_app/rails_7.0/config/locales/en.yml +33 -0
- data/rails_app/rails_7.0/config/routes.rb +8 -0
- data/rails_app/rails_7.0/config.ru +8 -0
- data/rails_app/rails_7.0/db/seeds.rb +8 -0
- data/rails_app/rails_7.0/public/robots.txt +1 -0
- data/rails_app/rails_7.0/spec/rails_helper.rb +14 -0
- data/rails_app/rails_7.0/spec/spec_helper.rb +13 -0
- metadata +36 -6
- data/.dependabot/config.yml +0 -34
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1bb356bb66e525d2980381826847669f7393ee2d3cc5c97691af823045e44396
|
4
|
+
data.tar.gz: f91f20e3fbcaf40211593be9ee722aa4bb0b270071784476f8a806c675af2f36
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1bf2454a9a0d0ae0bc9e706d20f75016c59dd307942eb8ae28b3a0cfd0dc8d3964deb1eb097945c92eeb841c949bf0d670d34f2d979f50bdb6f7a2d332333823
|
7
|
+
data.tar.gz: b5fb69885d68fc31bd06e11c743d2b9b2044bab403e3b0eb9f67421d44587813095677ec41ea657844ead2325ab71a8b5edead53be8051e38602c64c47755e4f
|
data/.circleci/config.yml
CHANGED
@@ -12,37 +12,37 @@ references:
|
|
12
12
|
- &ruby_version
|
13
13
|
ruby_version:
|
14
14
|
type: enum
|
15
|
-
enum: &ruby_version_enum [
|
16
|
-
default:
|
15
|
+
enum: &ruby_version_enum ["2.7", "3.0", "3.1"]
|
16
|
+
default: "3.1"
|
17
17
|
- &rails_version
|
18
18
|
rails_version:
|
19
19
|
type: enum
|
20
|
-
enum: &rails_version_enum [
|
21
|
-
default:
|
20
|
+
enum: &rails_version_enum ["5.2", "6.0", "6.1", "7.0"]
|
21
|
+
default: "7.0"
|
22
22
|
- &bundler_options
|
23
23
|
bundler_options:
|
24
24
|
type: string
|
25
|
-
default:
|
25
|
+
default: ""
|
26
26
|
|
27
27
|
executors:
|
28
28
|
api_executor:
|
29
29
|
parameters:
|
30
30
|
<<: *ruby_version
|
31
31
|
docker:
|
32
|
-
- image:
|
32
|
+
- image: cimg/ruby:<< parameters.ruby_version >>
|
33
33
|
working_directory: ~/repo/my_api
|
34
34
|
gem_executor:
|
35
35
|
parameters:
|
36
36
|
<<: *ruby_version
|
37
37
|
docker:
|
38
|
-
|
38
|
+
- image: cimg/ruby:<< parameters.ruby_version >>
|
39
39
|
working_directory: ~/repo
|
40
40
|
rails_executor:
|
41
41
|
parameters:
|
42
42
|
<<: *ruby_version
|
43
43
|
<<: *rails_version
|
44
44
|
docker:
|
45
|
-
|
45
|
+
- image: cimg/ruby:<< parameters.ruby_version >>
|
46
46
|
working_directory: ~/repo/rails_app/rails_<< parameters.rails_version >>
|
47
47
|
|
48
48
|
commands:
|
@@ -109,7 +109,7 @@ commands:
|
|
109
109
|
name: Run RuboCop
|
110
110
|
command: bundle exec rubocop
|
111
111
|
yardoc:
|
112
|
-
description:
|
112
|
+
description: "Generate YARDoc"
|
113
113
|
steps:
|
114
114
|
- run: bundle exec yardoc -o ./yardoc
|
115
115
|
- store_artifacts:
|
@@ -125,7 +125,7 @@ commands:
|
|
125
125
|
- run:
|
126
126
|
name: Rubocop Challenge
|
127
127
|
command: |
|
128
|
-
gem install rubocop_challenger
|
128
|
+
gem install rubocop_challenger
|
129
129
|
rubocop_challenger go --email=ryz310@gmail.com --name=ryz310
|
130
130
|
release:
|
131
131
|
description: Release to RubyGems.org
|
@@ -175,6 +175,10 @@ commands:
|
|
175
175
|
parameters:
|
176
176
|
<<: *rails_version
|
177
177
|
steps:
|
178
|
+
- run:
|
179
|
+
name: "[Workaround] See: https://obel.hatenablog.jp/entry/20210831/1630350000"
|
180
|
+
command: |
|
181
|
+
sudo ln -s /usr/lib/x86_64-linux-gnu/libffi.so.7.1.0 /usr/lib/x86_64-linux-gnu/libffi.so.6
|
178
182
|
- run:
|
179
183
|
name: Generate new API client files
|
180
184
|
command: |
|
@@ -248,7 +252,7 @@ jobs:
|
|
248
252
|
- code-climate/install
|
249
253
|
- code-climate/sum-coverage:
|
250
254
|
input: codeclimate.*.json
|
251
|
-
parts:
|
255
|
+
parts: 20
|
252
256
|
- code-climate/upload-coverage
|
253
257
|
rubocop:
|
254
258
|
executor: gem_executor
|
@@ -282,10 +286,20 @@ workflows:
|
|
282
286
|
parameters:
|
283
287
|
ruby_version: *ruby_version_enum
|
284
288
|
rails_version: *rails_version_enum
|
285
|
-
bundler_options: [
|
289
|
+
bundler_options: ["--with integrations", "--without integrations"]
|
286
290
|
exclude:
|
287
|
-
- ruby_version:
|
288
|
-
rails_version:
|
291
|
+
- ruby_version: "3.0"
|
292
|
+
rails_version: "5.2"
|
293
|
+
bundler_options: "--with integrations"
|
294
|
+
- ruby_version: "3.0"
|
295
|
+
rails_version: "5.2"
|
296
|
+
bundler_options: "--without integrations"
|
297
|
+
- ruby_version: "3.1"
|
298
|
+
rails_version: "5.2"
|
299
|
+
bundler_options: "--with integrations"
|
300
|
+
- ruby_version: "3.1"
|
301
|
+
rails_version: "5.2"
|
302
|
+
bundler_options: "--without integrations"
|
289
303
|
- verify_generator:
|
290
304
|
name: verify_generator_on_ruby_<< matrix.ruby_version >>_and_rails_<< matrix.rails_version >>
|
291
305
|
matrix:
|
@@ -293,10 +307,12 @@ workflows:
|
|
293
307
|
ruby_version: *ruby_version_enum
|
294
308
|
rails_version: *rails_version_enum
|
295
309
|
exclude:
|
296
|
-
- ruby_version:
|
297
|
-
rails_version:
|
310
|
+
- ruby_version: "3.0"
|
311
|
+
rails_version: "5.2"
|
312
|
+
- ruby_version: "3.1"
|
313
|
+
rails_version: "5.2"
|
298
314
|
- test_api:
|
299
|
-
ruby_version:
|
315
|
+
ruby_version: "2.7" # Jets supports only Ruby 2.x
|
300
316
|
- rubocop
|
301
317
|
- yardoc
|
302
318
|
- upload-coverage:
|
@@ -333,7 +349,7 @@ workflows:
|
|
333
349
|
# only: [master]
|
334
350
|
# jobs:
|
335
351
|
# - deploy_api:
|
336
|
-
# ruby_version: '
|
352
|
+
# ruby_version: '3.0'
|
337
353
|
# - build_gem:
|
338
354
|
# requires: [deploy_api]
|
339
355
|
|
@@ -0,0 +1,32 @@
|
|
1
|
+
version: 2
|
2
|
+
updates:
|
3
|
+
- package-ecosystem: bundler
|
4
|
+
directory: "/"
|
5
|
+
schedule:
|
6
|
+
interval: daily
|
7
|
+
time: "08:00"
|
8
|
+
timezone: Japan
|
9
|
+
open-pull-requests-limit: 10
|
10
|
+
reviewers:
|
11
|
+
- ryz310
|
12
|
+
assignees:
|
13
|
+
- ryz310
|
14
|
+
labels:
|
15
|
+
- dependabot
|
16
|
+
ignore:
|
17
|
+
- dependency-name: rubocop
|
18
|
+
versions:
|
19
|
+
- 1.9.0
|
20
|
+
- package-ecosystem: bundler
|
21
|
+
directory: "/my_api"
|
22
|
+
schedule:
|
23
|
+
interval: daily
|
24
|
+
time: "08:00"
|
25
|
+
timezone: Japan
|
26
|
+
open-pull-requests-limit: 10
|
27
|
+
reviewers:
|
28
|
+
- ryz310
|
29
|
+
assignees:
|
30
|
+
- ryz310
|
31
|
+
labels:
|
32
|
+
- dependabot
|
data/.rubocop.yml
CHANGED
@@ -5,7 +5,7 @@ require:
|
|
5
5
|
inherit_from: .rubocop_todo.yml
|
6
6
|
|
7
7
|
AllCops:
|
8
|
-
TargetRubyVersion: 2.
|
8
|
+
TargetRubyVersion: 2.7
|
9
9
|
NewCops: enable
|
10
10
|
Exclude:
|
11
11
|
- rails_app/**/*
|
@@ -18,10 +18,10 @@ Layout/LineLength:
|
|
18
18
|
|
19
19
|
Metrics/BlockLength:
|
20
20
|
Exclude:
|
21
|
-
-
|
22
|
-
-
|
23
|
-
-
|
24
|
-
-
|
21
|
+
- "my_api_client.gemspec"
|
22
|
+
- "lib/my_api_client/rspec/matchers/**/*"
|
23
|
+
- "spec/**/*"
|
24
|
+
- "my_api/spec/**/*"
|
25
25
|
|
26
26
|
Metrics/MethodLength:
|
27
27
|
Max: 15
|
@@ -39,17 +39,17 @@ Style/TrailingCommaInHashLiteral:
|
|
39
39
|
|
40
40
|
RSpec/DescribeClass:
|
41
41
|
Exclude:
|
42
|
-
-
|
43
|
-
-
|
42
|
+
- "spec/integrations/api_clients/**/*"
|
43
|
+
- "spec/lib/my_api_client/rspec/matchers/**/*"
|
44
44
|
|
45
45
|
RSpec/ExampleLength:
|
46
46
|
Max: 10
|
47
47
|
|
48
48
|
RSpec/FilePath:
|
49
49
|
Exclude:
|
50
|
-
-
|
51
|
-
-
|
52
|
-
-
|
50
|
+
- "spec/lib/my_api_client/integrations/**/*"
|
51
|
+
- "spec/lib/my_api_client/errors/**/*"
|
52
|
+
- "spec/lib/my_api_client/rspec/**/*"
|
53
53
|
|
54
54
|
RSpec/NestedGroups:
|
55
55
|
Max: 5
|
data/.rubocop_todo.yml
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# This configuration was generated by
|
2
2
|
# `rubocop --auto-gen-config`
|
3
|
-
# on
|
3
|
+
# on 2022-06-06 23:31:13 UTC using RuboCop version 1.30.1.
|
4
4
|
# The point is for the user to remove these configuration records
|
5
5
|
# one by one as the offenses are removed from the code base.
|
6
6
|
# Note that changes in the inspected code, or installation of new
|
@@ -24,7 +24,7 @@ Lint/MissingSuper:
|
|
24
24
|
- 'lib/my_api_client/sleeper.rb'
|
25
25
|
|
26
26
|
# Offense count: 6
|
27
|
-
# Configuration parameters: EnforcedStyle, CheckMethodNames, CheckSymbols, AllowedIdentifiers.
|
27
|
+
# Configuration parameters: EnforcedStyle, CheckMethodNames, CheckSymbols, AllowedIdentifiers, AllowedPatterns.
|
28
28
|
# SupportedStyles: snake_case, normalcase, non_integer
|
29
29
|
# AllowedIdentifiers: capture3, iso8601, rfc1123_date, rfc822, rfc2822, rfc3339
|
30
30
|
Naming/VariableNumber:
|