power_api 0.2.0 → 2.0.2

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.
Files changed (85) hide show
  1. checksums.yaml +4 -4
  2. data/.circleci/config.yml +104 -0
  3. data/.circleci/setup-rubygems.sh +3 -0
  4. data/.rubocop.yml +0 -1
  5. data/.ruby-version +1 -1
  6. data/CHANGELOG.md +19 -1
  7. data/Gemfile +2 -0
  8. data/Gemfile.lock +189 -166
  9. data/README.md +365 -103
  10. data/app/controllers/power_api/base_controller.rb +0 -1
  11. data/app/helpers/power_api/application_helper.rb +57 -0
  12. data/bin/clean_test_app +2 -0
  13. data/lib/generators/power_api/controller/controller_generator.rb +27 -15
  14. data/lib/generators/power_api/exposed_api_config/USAGE +5 -0
  15. data/lib/generators/power_api/exposed_api_config/exposed_api_config_generator.rb +58 -0
  16. data/lib/generators/power_api/install/install_generator.rb +2 -44
  17. data/lib/generators/power_api/internal_api_config/USAGE +5 -0
  18. data/lib/generators/power_api/internal_api_config/internal_api_config_generator.rb +31 -0
  19. data/lib/generators/power_api/version/version_generator.rb +2 -2
  20. data/lib/power_api/engine.rb +6 -1
  21. data/lib/power_api/errors.rb +2 -0
  22. data/lib/power_api/generator_helper/active_record_resource.rb +10 -6
  23. data/lib/power_api/generator_helper/ams_helper.rb +5 -11
  24. data/lib/power_api/generator_helper/api_helper.rb +61 -0
  25. data/lib/power_api/generator_helper/controller_helper.rb +45 -15
  26. data/lib/power_api/generator_helper/routes_helper.rb +22 -7
  27. data/lib/power_api/generator_helper/rspec_controller_helper.rb +306 -0
  28. data/lib/power_api/generator_helper/swagger_helper.rb +14 -24
  29. data/lib/power_api/generator_helpers.rb +2 -1
  30. data/lib/power_api/version.rb +1 -1
  31. data/power_api.gemspec +3 -2
  32. data/spec/dummy/Rakefile +1 -1
  33. data/spec/dummy/app/assets/config/manifest.js +0 -2
  34. data/spec/dummy/app/controllers/api/base_controller.rb +2 -0
  35. data/spec/dummy/app/controllers/api/internal/base_controller.rb +5 -0
  36. data/spec/dummy/app/controllers/api/internal/blogs_controller.rb +36 -0
  37. data/spec/dummy/app/controllers/application_controller.rb +0 -1
  38. data/spec/dummy/app/{assets/javascripts → javascript/packs}/application.js +2 -0
  39. data/spec/dummy/app/jobs/application_job.rb +5 -0
  40. data/spec/dummy/app/serializers/api/internal/blog_serializer.rb +12 -0
  41. data/spec/dummy/app/views/layouts/application.html.erb +3 -2
  42. data/spec/dummy/bin/rails +2 -2
  43. data/spec/dummy/bin/rake +2 -2
  44. data/spec/dummy/bin/setup +7 -12
  45. data/spec/dummy/config/application.rb +12 -16
  46. data/spec/dummy/config/boot.rb +1 -1
  47. data/spec/dummy/config/cable.yml +2 -2
  48. data/spec/dummy/config/database.yml +8 -16
  49. data/spec/dummy/config/environment.rb +1 -1
  50. data/spec/dummy/config/environments/development.rb +28 -6
  51. data/spec/dummy/config/environments/production.rb +45 -16
  52. data/spec/dummy/config/environments/test.rb +24 -7
  53. data/spec/dummy/config/initializers/active_model_serializers.rb +1 -0
  54. data/spec/dummy/config/initializers/api_pagination.rb +32 -0
  55. data/spec/dummy/config/initializers/assets.rb +0 -2
  56. data/spec/dummy/config/initializers/backtrace_silencers.rb +4 -3
  57. data/spec/dummy/config/initializers/content_security_policy.rb +28 -0
  58. data/spec/dummy/config/initializers/filter_parameter_logging.rb +3 -1
  59. data/spec/dummy/config/initializers/permissions_policy.rb +11 -0
  60. data/spec/dummy/config/locales/en.yml +1 -1
  61. data/spec/dummy/config/puma.rb +14 -27
  62. data/spec/dummy/config/routes.rb +2 -7
  63. data/spec/dummy/config/storage.yml +34 -0
  64. data/spec/dummy/config.ru +2 -1
  65. data/spec/dummy/spec/helpers/power_api/application_helper_spec.rb +171 -0
  66. data/spec/dummy/spec/lib/power_api/generator_helper/ams_helper_spec.rb +50 -12
  67. data/spec/dummy/spec/lib/power_api/generator_helper/api_helper_spec.rb +115 -0
  68. data/spec/dummy/spec/lib/power_api/generator_helper/controller_helper_spec.rb +126 -34
  69. data/spec/dummy/spec/lib/power_api/generator_helper/routes_helper_spec.rb +29 -5
  70. data/spec/dummy/spec/lib/power_api/generator_helper/rspec_controller_helper_spec.rb +559 -0
  71. data/spec/dummy/spec/lib/power_api/generator_helper/swagger_helper_spec.rb +10 -20
  72. data/spec/dummy/spec/support/shared_examples/active_record_resource_atrributes.rb +22 -3
  73. metadata +114 -87
  74. data/.hound.yml +0 -4
  75. data/.travis.yml +0 -16
  76. data/app/controllers/concerns/api/versioned.rb +0 -36
  77. data/lib/power_api/generator_helper/version_helper.rb +0 -16
  78. data/spec/dummy/app/assets/javascripts/cable.js +0 -13
  79. data/spec/dummy/app/controllers/concerns/api/versioned_spec.rb +0 -64
  80. data/spec/dummy/bin/bundle +0 -3
  81. data/spec/dummy/bin/update +0 -29
  82. data/spec/dummy/bin/yarn +0 -11
  83. data/spec/dummy/config/secrets.yml +0 -32
  84. data/spec/dummy/config/spring.rb +0 -6
  85. data/spec/dummy/spec/lib/power_api/generator_helper/version_helper_spec.rb +0 -55
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c6d232bd68c004bbe28ff8a0feff4106c2a3f2257c5d12ab6b4249655ec415c7
4
- data.tar.gz: 70b0642b24c736dc1a2bad345c677e59e6072a9282b5f5fff609064cf8c7fe73
3
+ metadata.gz: 69e28961ce7f4b6c5920531144bf241684265838d3fe07f547d6d05f611935a6
4
+ data.tar.gz: 0d4591712d13b1116fe0905ef4e4dc147b60ecbb395e237204eb1013eceb70d3
5
5
  SHA512:
6
- metadata.gz: 6e652618b0f9bc1150bdf0b479420888a806a2063bba8f75d63f2d75c0a5d90319350e033f6f6bd6162a1ff87a9d675ec6c0688346e0f405f1ce5d4bbd62ca46
7
- data.tar.gz: 054f6630eb7bebacf19d835a19645c6f2ef9c5c2a5f4fb486d6ae6db8103c1e54e3cf252a08754c70b903ff5434c4ccfa5b6cc6b21dd9be88e0d25cfaf45c959
6
+ metadata.gz: bba5450490bd97068de2315f9240465a014712c31697d22e0941c0f61bef2e1df85ad7d80a3ee8313af7226162929e32d1f17be806046b0351ed1ca44794cafa
7
+ data.tar.gz: d47318d91d5c5e4083c0a51d3e755fa3d3e562a031d63810b31e7b739bbed68eb2c3185aa2d83541603d70ecf2b0489604fef5495d557e25a8f7333979ab4bbc
@@ -0,0 +1,104 @@
1
+ version: 2.1
2
+
3
+ env-vars: &env-vars
4
+ RAILS_ENV: test
5
+ NODE_ENV: test
6
+ BUNDLE_PATH: vendor/bundle
7
+
8
+ orbs:
9
+ ruby: circleci/ruby@0.1.2
10
+ browser-tools: circleci/browser-tools@1.1.3
11
+
12
+ executors:
13
+ main-executor:
14
+ parameters:
15
+ ruby-version:
16
+ description: "Ruby version"
17
+ default: "2.7"
18
+ type: string
19
+ docker:
20
+ - image: circleci/ruby:<<parameters.ruby-version>>-node
21
+ environment: *env-vars
22
+
23
+ commands:
24
+ setup:
25
+ description: checkout code and install dependencies
26
+ steps:
27
+ - checkout
28
+ - run:
29
+ name: Install bundle dependencies
30
+ command: |
31
+ BUNDLER_VERSION=$(cat Gemfile.lock | tail -1 | tr -d " ")
32
+ gem install bundler:$BUNDLER_VERSION
33
+ bundle _$(echo $BUNDLER_VERSION)_ install
34
+
35
+ jobs:
36
+ lint:
37
+ executor: main-executor
38
+ steps:
39
+ - setup
40
+ - run:
41
+ name: Install reviewdog
42
+ command: |
43
+ curl -sfL https://raw.githubusercontent.com/reviewdog/reviewdog/master/install.sh | sh -s -- -b ./bin
44
+ - run:
45
+ name: Get files to lint
46
+ command: |
47
+ mkdir tmp
48
+ git diff origin/master --name-only --diff-filter=d > tmp/files_to_lint
49
+ - run:
50
+ name: Run rubocop
51
+ shell: /bin/bash
52
+ command: |
53
+ cat tmp/files_to_lint | grep -E '.+\.(rb)$' | xargs bundle exec rubocop --force-exclusion \
54
+ | ./bin/reviewdog -reporter=github-pr-review -f=rubocop
55
+ test:
56
+ parameters:
57
+ ruby-version:
58
+ description: "Ruby version"
59
+ default: "2.7"
60
+ type: string
61
+ executor:
62
+ name: main-executor
63
+ ruby-version: <<parameters.ruby-version>>
64
+ steps:
65
+ - setup
66
+ - run:
67
+ name: Run Tests
68
+ command: |
69
+ RSPEC_JUNIT_ARGS="-r rspec_junit_formatter -f RspecJunitFormatter -o test_results/rspec.xml"
70
+ RSPEC_FORMAT_ARGS="-f progress --no-color -p 10"
71
+ bundle exec rspec ./spec $RSPEC_FORMAT_ARGS $RSPEC_JUNIT_ARGS
72
+ - store_test_results:
73
+ path: test_results
74
+ deploy:
75
+ executor: main-executor
76
+ steps:
77
+ - setup
78
+ - run:
79
+ name: Setup rubygems
80
+ command: bash .circleci/setup-rubygems.sh
81
+ - run:
82
+ name: Publish to rubygems
83
+ command: |
84
+ gem build power_api.gemspec
85
+ version_tag=$(git describe --tags)
86
+ gem push power_api-${version_tag#v}.gem
87
+
88
+ workflows:
89
+ version: 2
90
+ main:
91
+ jobs:
92
+ - lint:
93
+ context: org-global
94
+ - test:
95
+ matrix:
96
+ parameters:
97
+ ruby-version: ["2.6", "2.7"]
98
+ - deploy:
99
+ context: org-global
100
+ filters:
101
+ tags:
102
+ only: /.*/
103
+ branches:
104
+ ignore: /.*/
@@ -0,0 +1,3 @@
1
+ mkdir ~/.gem
2
+ echo -e "---\r\n:rubygems_api_key: $RUBYGEMS_API_KEY" > ~/.gem/credentials
3
+ chmod 0600 /home/circleci/.gem/credentials
data/.rubocop.yml CHANGED
@@ -197,7 +197,6 @@ Style/WordArray:
197
197
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#percent-w
198
198
  Enabled: false
199
199
  MinSize: 0
200
- WordRegex: !ruby/regexp /\A[\p{Word}]+\z/
201
200
  Metrics/AbcSize:
202
201
  Description: A calculated magnitude based on number of assignments, branches, and
203
202
  conditions.
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.5
1
+ 2.7
data/CHANGELOG.md CHANGED
@@ -2,9 +2,27 @@
2
2
  All notable changes to this project will be documented in this file.
3
3
  This project adheres to [Semantic Versioning](http://semver.org/).
4
4
 
5
+ ### v2.0.2
6
+
7
+ * Fix: change the way PowerApi::ApplicationHelper is loaded into host app.
8
+
9
+ ### v2.0.1
10
+
11
+ * Fix: trying to reference ApplicationController in wrong namespace.
12
+ ### v2.0.0
13
+
14
+ * Add API internal and exposed modes.
15
+ * Replace `json_api` with `json` adapter.
16
+ * Add view helper to serialize resources.
17
+
18
+ ### v1.0.0
19
+
20
+ * Replace travis with circleci.
21
+ * Use Rails 6 on Dummy app.
22
+
5
23
  ### v0.2.0
6
24
 
7
- - Add `controller-actions` option to generator
25
+ * Add `controller-actions` option to generator
8
26
  ### v0.1.0
9
27
 
10
28
  * Initial release.
data/Gemfile CHANGED
@@ -12,3 +12,5 @@ gemspec
12
12
 
13
13
  # To use a debugger
14
14
  # gem 'byebug', group: [:development, :test]
15
+
16
+ gem "api-pagination", "~> 4.8.2"
data/Gemfile.lock CHANGED
@@ -1,11 +1,11 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- power_api (0.2.0)
4
+ power_api (2.0.2)
5
5
  active_model_serializers (~> 0.10.0)
6
6
  api-pagination
7
7
  kaminari
8
- rails (>= 4.2.0)
8
+ rails (>= 6.0)
9
9
  ransack
10
10
  responders
11
11
  rswag-api
@@ -16,89 +16,106 @@ PATH
16
16
  GEM
17
17
  remote: https://rubygems.org/
18
18
  specs:
19
- actioncable (5.2.2.1)
20
- actionpack (= 5.2.2.1)
19
+ actioncable (6.1.4.4)
20
+ actionpack (= 6.1.4.4)
21
+ activesupport (= 6.1.4.4)
21
22
  nio4r (~> 2.0)
22
23
  websocket-driver (>= 0.6.1)
23
- actionmailer (5.2.2.1)
24
- actionpack (= 5.2.2.1)
25
- actionview (= 5.2.2.1)
26
- activejob (= 5.2.2.1)
24
+ actionmailbox (6.1.4.4)
25
+ actionpack (= 6.1.4.4)
26
+ activejob (= 6.1.4.4)
27
+ activerecord (= 6.1.4.4)
28
+ activestorage (= 6.1.4.4)
29
+ activesupport (= 6.1.4.4)
30
+ mail (>= 2.7.1)
31
+ actionmailer (6.1.4.4)
32
+ actionpack (= 6.1.4.4)
33
+ actionview (= 6.1.4.4)
34
+ activejob (= 6.1.4.4)
35
+ activesupport (= 6.1.4.4)
27
36
  mail (~> 2.5, >= 2.5.4)
28
37
  rails-dom-testing (~> 2.0)
29
- actionpack (5.2.2.1)
30
- actionview (= 5.2.2.1)
31
- activesupport (= 5.2.2.1)
32
- rack (~> 2.0)
38
+ actionpack (6.1.4.4)
39
+ actionview (= 6.1.4.4)
40
+ activesupport (= 6.1.4.4)
41
+ rack (~> 2.0, >= 2.0.9)
33
42
  rack-test (>= 0.6.3)
34
43
  rails-dom-testing (~> 2.0)
35
- rails-html-sanitizer (~> 1.0, >= 1.0.2)
36
- actionview (5.2.2.1)
37
- activesupport (= 5.2.2.1)
44
+ rails-html-sanitizer (~> 1.0, >= 1.2.0)
45
+ actiontext (6.1.4.4)
46
+ actionpack (= 6.1.4.4)
47
+ activerecord (= 6.1.4.4)
48
+ activestorage (= 6.1.4.4)
49
+ activesupport (= 6.1.4.4)
50
+ nokogiri (>= 1.8.5)
51
+ actionview (6.1.4.4)
52
+ activesupport (= 6.1.4.4)
38
53
  builder (~> 3.1)
39
54
  erubi (~> 1.4)
40
55
  rails-dom-testing (~> 2.0)
41
- rails-html-sanitizer (~> 1.0, >= 1.0.3)
42
- active_model_serializers (0.10.10)
43
- actionpack (>= 4.1, < 6.1)
44
- activemodel (>= 4.1, < 6.1)
56
+ rails-html-sanitizer (~> 1.1, >= 1.2.0)
57
+ active_model_serializers (0.10.13)
58
+ actionpack (>= 4.1, < 7.1)
59
+ activemodel (>= 4.1, < 7.1)
45
60
  case_transform (>= 0.2)
46
61
  jsonapi-renderer (>= 0.1.1.beta1, < 0.3)
47
- activejob (5.2.2.1)
48
- activesupport (= 5.2.2.1)
62
+ activejob (6.1.4.4)
63
+ activesupport (= 6.1.4.4)
49
64
  globalid (>= 0.3.6)
50
- activemodel (5.2.2.1)
51
- activesupport (= 5.2.2.1)
52
- activerecord (5.2.2.1)
53
- activemodel (= 5.2.2.1)
54
- activesupport (= 5.2.2.1)
55
- arel (>= 9.0)
56
- activestorage (5.2.2.1)
57
- actionpack (= 5.2.2.1)
58
- activerecord (= 5.2.2.1)
59
- marcel (~> 0.3.1)
60
- activesupport (5.2.2.1)
65
+ activemodel (6.1.4.4)
66
+ activesupport (= 6.1.4.4)
67
+ activerecord (6.1.4.4)
68
+ activemodel (= 6.1.4.4)
69
+ activesupport (= 6.1.4.4)
70
+ activestorage (6.1.4.4)
71
+ actionpack (= 6.1.4.4)
72
+ activejob (= 6.1.4.4)
73
+ activerecord (= 6.1.4.4)
74
+ activesupport (= 6.1.4.4)
75
+ marcel (~> 1.0.0)
76
+ mini_mime (>= 1.1.0)
77
+ activesupport (6.1.4.4)
61
78
  concurrent-ruby (~> 1.0, >= 1.0.2)
62
- i18n (>= 0.7, < 2)
63
- minitest (~> 5.1)
64
- tzinfo (~> 1.1)
65
- addressable (2.7.0)
79
+ i18n (>= 1.6, < 2)
80
+ minitest (>= 5.1)
81
+ tzinfo (~> 2.0)
82
+ zeitwerk (~> 2.3)
83
+ addressable (2.8.0)
66
84
  public_suffix (>= 2.0.2, < 5.0)
67
85
  api-pagination (4.8.2)
68
- arel (9.0.0)
69
- ast (2.4.0)
86
+ ast (2.4.2)
70
87
  bcrypt (3.1.16)
71
- builder (3.2.3)
88
+ builder (3.2.4)
72
89
  case_transform (0.2)
73
90
  activesupport
74
- coderay (1.1.2)
75
- concurrent-ruby (1.1.5)
76
- coveralls (0.8.22)
91
+ coderay (1.1.3)
92
+ concurrent-ruby (1.1.9)
93
+ coveralls (0.8.23)
77
94
  json (>= 1.8, < 3)
78
95
  simplecov (~> 0.16.1)
79
96
  term-ansicolor (~> 1.3)
80
- thor (~> 0.19.4)
97
+ thor (>= 0.19.4, < 2.0)
81
98
  tins (~> 1.6)
82
99
  crass (1.0.6)
83
- devise (4.7.3)
100
+ devise (4.8.1)
84
101
  bcrypt (~> 3.0)
85
102
  orm_adapter (~> 0.1)
86
103
  railties (>= 4.1.0)
87
104
  responders
88
105
  warden (~> 1.2.3)
89
- diff-lcs (1.3)
90
- docile (1.3.1)
91
- erubi (1.8.0)
92
- factory_bot (5.0.2)
93
- activesupport (>= 4.2.0)
94
- factory_bot_rails (5.0.1)
95
- factory_bot (~> 5.0.0)
96
- railties (>= 4.2.0)
97
- ffi (1.10.0)
98
- formatador (0.2.5)
99
- globalid (0.4.2)
100
- activesupport (>= 4.2.0)
101
- guard (2.15.0)
106
+ diff-lcs (1.4.4)
107
+ docile (1.4.0)
108
+ erubi (1.10.0)
109
+ factory_bot (6.2.0)
110
+ activesupport (>= 5.0.0)
111
+ factory_bot_rails (6.2.0)
112
+ factory_bot (~> 6.2.0)
113
+ railties (>= 5.0.0)
114
+ ffi (1.15.3)
115
+ formatador (0.3.0)
116
+ globalid (1.0.0)
117
+ activesupport (>= 5.0)
118
+ guard (2.17.0)
102
119
  formatador (>= 0.2.4)
103
120
  listen (>= 2.7, < 4.0)
104
121
  lumberjack (>= 1.0.12, < 2.0)
@@ -112,133 +129,133 @@ GEM
112
129
  guard (~> 2.1)
113
130
  guard-compat (~> 1.1)
114
131
  rspec (>= 2.99.0, < 4.0)
115
- i18n (1.6.0)
132
+ i18n (1.8.11)
116
133
  concurrent-ruby (~> 1.0)
117
134
  jaro_winkler (1.5.4)
118
- json (2.2.0)
135
+ json (2.5.1)
119
136
  json-schema (2.8.1)
120
137
  addressable (>= 2.4)
121
138
  jsonapi-renderer (0.2.2)
122
- kaminari (1.2.1)
139
+ kaminari (1.2.2)
123
140
  activesupport (>= 4.1.0)
124
- kaminari-actionview (= 1.2.1)
125
- kaminari-activerecord (= 1.2.1)
126
- kaminari-core (= 1.2.1)
127
- kaminari-actionview (1.2.1)
141
+ kaminari-actionview (= 1.2.2)
142
+ kaminari-activerecord (= 1.2.2)
143
+ kaminari-core (= 1.2.2)
144
+ kaminari-actionview (1.2.2)
128
145
  actionview
129
- kaminari-core (= 1.2.1)
130
- kaminari-activerecord (1.2.1)
146
+ kaminari-core (= 1.2.2)
147
+ kaminari-activerecord (1.2.2)
131
148
  activerecord
132
- kaminari-core (= 1.2.1)
133
- kaminari-core (1.2.1)
134
- listen (3.1.5)
135
- rb-fsevent (~> 0.9, >= 0.9.4)
136
- rb-inotify (~> 0.9, >= 0.9.7)
137
- ruby_dep (~> 1.2)
138
- loofah (2.4.0)
149
+ kaminari-core (= 1.2.2)
150
+ kaminari-core (1.2.2)
151
+ listen (3.5.1)
152
+ rb-fsevent (~> 0.10, >= 0.10.3)
153
+ rb-inotify (~> 0.9, >= 0.9.10)
154
+ loofah (2.13.0)
139
155
  crass (~> 1.0.2)
140
156
  nokogiri (>= 1.5.9)
141
- lumberjack (1.0.13)
157
+ lumberjack (1.2.8)
142
158
  mail (2.7.1)
143
159
  mini_mime (>= 0.1.1)
144
- marcel (0.3.3)
145
- mimemagic (~> 0.3.2)
146
- method_source (0.9.2)
147
- mimemagic (0.3.5)
148
- mini_mime (1.0.2)
149
- mini_portile2 (2.4.0)
150
- minitest (5.11.3)
160
+ marcel (1.0.2)
161
+ method_source (1.0.0)
162
+ mini_mime (1.1.2)
163
+ minitest (5.15.0)
151
164
  nenv (0.3.0)
152
- nio4r (2.5.4)
153
- nokogiri (1.10.9)
154
- mini_portile2 (~> 2.4.0)
155
- notiffany (0.1.1)
165
+ nio4r (2.5.8)
166
+ nokogiri (1.13.0-x86_64-darwin)
167
+ racc (~> 1.4)
168
+ nokogiri (1.13.0-x86_64-linux)
169
+ racc (~> 1.4)
170
+ notiffany (0.1.3)
156
171
  nenv (~> 0.1)
157
172
  shellany (~> 0.0)
158
173
  orm_adapter (0.5.0)
159
- parallel (1.19.1)
160
- parser (2.7.0.2)
161
- ast (~> 2.4.0)
162
- polyamorous (2.3.2)
163
- activerecord (>= 5.2.1)
164
- powerpack (0.1.2)
165
- pry (0.12.2)
166
- coderay (~> 1.1.0)
167
- method_source (~> 0.9.0)
174
+ parallel (1.20.1)
175
+ parser (3.0.1.1)
176
+ ast (~> 2.4.1)
177
+ powerpack (0.1.3)
178
+ pry (0.14.1)
179
+ coderay (~> 1.1)
180
+ method_source (~> 1.0)
168
181
  pry-rails (0.3.9)
169
182
  pry (>= 0.10.4)
170
- psych (3.1.0)
171
- public_suffix (4.0.1)
172
- rack (2.2.2)
183
+ psych (4.0.1)
184
+ public_suffix (4.0.6)
185
+ racc (1.6.0)
186
+ rack (2.2.3)
173
187
  rack-test (1.1.0)
174
188
  rack (>= 1.0, < 3)
175
- rails (5.2.2.1)
176
- actioncable (= 5.2.2.1)
177
- actionmailer (= 5.2.2.1)
178
- actionpack (= 5.2.2.1)
179
- actionview (= 5.2.2.1)
180
- activejob (= 5.2.2.1)
181
- activemodel (= 5.2.2.1)
182
- activerecord (= 5.2.2.1)
183
- activestorage (= 5.2.2.1)
184
- activesupport (= 5.2.2.1)
185
- bundler (>= 1.3.0)
186
- railties (= 5.2.2.1)
189
+ rails (6.1.4.4)
190
+ actioncable (= 6.1.4.4)
191
+ actionmailbox (= 6.1.4.4)
192
+ actionmailer (= 6.1.4.4)
193
+ actionpack (= 6.1.4.4)
194
+ actiontext (= 6.1.4.4)
195
+ actionview (= 6.1.4.4)
196
+ activejob (= 6.1.4.4)
197
+ activemodel (= 6.1.4.4)
198
+ activerecord (= 6.1.4.4)
199
+ activestorage (= 6.1.4.4)
200
+ activesupport (= 6.1.4.4)
201
+ bundler (>= 1.15.0)
202
+ railties (= 6.1.4.4)
187
203
  sprockets-rails (>= 2.0.0)
188
204
  rails-dom-testing (2.0.3)
189
205
  activesupport (>= 4.2.0)
190
206
  nokogiri (>= 1.6)
191
- rails-html-sanitizer (1.0.4)
192
- loofah (~> 2.2, >= 2.2.2)
193
- railties (5.2.2.1)
194
- actionpack (= 5.2.2.1)
195
- activesupport (= 5.2.2.1)
207
+ rails-html-sanitizer (1.4.2)
208
+ loofah (~> 2.3)
209
+ railties (6.1.4.4)
210
+ actionpack (= 6.1.4.4)
211
+ activesupport (= 6.1.4.4)
196
212
  method_source
197
- rake (>= 0.8.7)
198
- thor (>= 0.19.0, < 2.0)
213
+ rake (>= 0.13)
214
+ thor (~> 1.0)
199
215
  rainbow (3.0.0)
200
- rake (13.0.1)
201
- ransack (2.3.2)
202
- activerecord (>= 5.2.1)
203
- activesupport (>= 5.2.1)
216
+ rake (13.0.6)
217
+ ransack (2.5.0)
218
+ activerecord (>= 5.2.4)
219
+ activesupport (>= 5.2.4)
204
220
  i18n
205
- polyamorous (= 2.3.2)
206
- rb-fsevent (0.10.3)
207
- rb-inotify (0.10.0)
221
+ rb-fsevent (0.11.0)
222
+ rb-inotify (0.10.1)
208
223
  ffi (~> 1.0)
209
224
  responders (3.0.1)
210
225
  actionpack (>= 5.0)
211
226
  railties (>= 5.0)
212
- rspec (3.8.0)
213
- rspec-core (~> 3.8.0)
214
- rspec-expectations (~> 3.8.0)
215
- rspec-mocks (~> 3.8.0)
216
- rspec-core (3.8.0)
217
- rspec-support (~> 3.8.0)
218
- rspec-expectations (3.8.2)
227
+ rspec (3.10.0)
228
+ rspec-core (~> 3.10.0)
229
+ rspec-expectations (~> 3.10.0)
230
+ rspec-mocks (~> 3.10.0)
231
+ rspec-core (3.10.1)
232
+ rspec-support (~> 3.10.0)
233
+ rspec-expectations (3.10.1)
219
234
  diff-lcs (>= 1.2.0, < 2.0)
220
- rspec-support (~> 3.8.0)
221
- rspec-mocks (3.8.0)
235
+ rspec-support (~> 3.10.0)
236
+ rspec-mocks (3.10.2)
222
237
  diff-lcs (>= 1.2.0, < 2.0)
223
- rspec-support (~> 3.8.0)
224
- rspec-rails (3.8.2)
225
- actionpack (>= 3.0)
226
- activesupport (>= 3.0)
227
- railties (>= 3.0)
228
- rspec-core (~> 3.8.0)
229
- rspec-expectations (~> 3.8.0)
230
- rspec-mocks (~> 3.8.0)
231
- rspec-support (~> 3.8.0)
232
- rspec-support (3.8.0)
233
- rswag-api (2.2.0)
234
- railties (>= 3.1, < 6.1)
235
- rswag-specs (2.2.0)
236
- activesupport (>= 3.1, < 6.1)
238
+ rspec-support (~> 3.10.0)
239
+ rspec-rails (5.0.1)
240
+ actionpack (>= 5.2)
241
+ activesupport (>= 5.2)
242
+ railties (>= 5.2)
243
+ rspec-core (~> 3.10)
244
+ rspec-expectations (~> 3.10)
245
+ rspec-mocks (~> 3.10)
246
+ rspec-support (~> 3.10)
247
+ rspec-support (3.10.2)
248
+ rspec_junit_formatter (0.4.1)
249
+ rspec-core (>= 2, < 4, != 2.12.0)
250
+ rswag-api (2.5.1)
251
+ railties (>= 3.1, < 7.1)
252
+ rswag-specs (2.4.0)
253
+ activesupport (>= 3.1, < 7.0)
237
254
  json-schema (~> 2.2)
238
- railties (>= 3.1, < 6.1)
239
- rswag-ui (2.2.0)
240
- actionpack (>= 3.1, < 6.1)
241
- railties (>= 3.1, < 6.1)
255
+ railties (>= 3.1, < 7.0)
256
+ rswag-ui (2.5.1)
257
+ actionpack (>= 3.1, < 7.1)
258
+ railties (>= 3.1, < 7.1)
242
259
  rubocop (0.65.0)
243
260
  jaro_winkler (~> 1.5.1)
244
261
  parallel (~> 1.10)
@@ -250,8 +267,7 @@ GEM
250
267
  unicode-display_width (~> 1.4.0)
251
268
  rubocop-rspec (1.35.0)
252
269
  rubocop (>= 0.60.0)
253
- ruby-progressbar (1.10.1)
254
- ruby_dep (1.5.0)
270
+ ruby-progressbar (1.11.0)
255
271
  shellany (0.0.1)
256
272
  simple_token_authentication (1.17.0)
257
273
  actionmailer (>= 3.2.6, < 7)
@@ -265,18 +281,19 @@ GEM
265
281
  sprockets (4.0.2)
266
282
  concurrent-ruby (~> 1.0)
267
283
  rack (> 1, < 3)
268
- sprockets-rails (3.2.2)
269
- actionpack (>= 4.0)
270
- activesupport (>= 4.0)
284
+ sprockets-rails (3.4.2)
285
+ actionpack (>= 5.2)
286
+ activesupport (>= 5.2)
271
287
  sprockets (>= 3.0.0)
272
- sqlite3 (1.3.13)
288
+ sqlite3 (1.4.2)
289
+ sync (0.5.0)
273
290
  term-ansicolor (1.7.1)
274
291
  tins (~> 1.0)
275
- thor (0.19.4)
276
- thread_safe (0.3.6)
277
- tins (1.20.2)
278
- tzinfo (1.2.5)
279
- thread_safe (~> 0.1)
292
+ thor (1.2.1)
293
+ tins (1.29.1)
294
+ sync
295
+ tzinfo (2.0.4)
296
+ concurrent-ruby (~> 1.0)
280
297
  unicode-display_width (1.4.1)
281
298
  versionist (1.7.0)
282
299
  activesupport (>= 3)
@@ -284,15 +301,20 @@ GEM
284
301
  yard (~> 0.9.11)
285
302
  warden (1.2.9)
286
303
  rack (>= 2.0.9)
287
- websocket-driver (0.7.3)
304
+ webrick (1.7.0)
305
+ websocket-driver (0.7.5)
288
306
  websocket-extensions (>= 0.1.0)
289
307
  websocket-extensions (0.1.5)
290
- yard (0.9.25)
308
+ yard (0.9.27)
309
+ webrick (~> 1.7.0)
310
+ zeitwerk (2.5.3)
291
311
 
292
312
  PLATFORMS
293
- ruby
313
+ x86_64-darwin-20
314
+ x86_64-linux
294
315
 
295
316
  DEPENDENCIES
317
+ api-pagination (~> 4.8.2)
296
318
  coveralls
297
319
  factory_bot_rails
298
320
  guard-rspec
@@ -300,10 +322,11 @@ DEPENDENCIES
300
322
  pry
301
323
  pry-rails
302
324
  rspec-rails
325
+ rspec_junit_formatter
303
326
  rswag-specs
304
327
  rubocop (= 0.65.0)
305
328
  rubocop-rspec
306
- sqlite3 (~> 1.3.0)
329
+ sqlite3 (~> 1.4.2)
307
330
 
308
331
  BUNDLED WITH
309
- 1.17.3
332
+ 2.2.15