rrx_api 0.1.0 → 8.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.
- checksums.yaml +4 -4
- data/.rspec +1 -1
- data/Gemfile +3 -4
- data/Gemfile.lock +126 -117
- data/README.md +1 -1
- data/app/controllers/rrx_api/health_controller.rb +33 -0
- data/app/models/rrx_api/record.rb +10 -0
- data/config/routes.rb +13 -0
- data/lib/generators/rrx_api/base.rb +95 -0
- data/lib/generators/rrx_api/docker_generator.rb +19 -0
- data/lib/generators/rrx_api/github_generator.rb +83 -0
- data/lib/generators/rrx_api/install_generator.rb +120 -0
- data/lib/generators/rrx_api/templates/docker/Dockerfile.tt +1 -0
- data/lib/generators/rrx_api/templates/github/build/workflows/build.yml.tt +71 -0
- data/lib/generators/rrx_api/templates/github/deploy/workflows/deploy.yml.tt +62 -0
- data/lib/generators/rrx_api/templates/terraform/aws/iam.tf.tt +37 -0
- data/lib/generators/rrx_api/templates/terraform/aws/main.tf.tt +44 -0
- data/lib/generators/rrx_api/templates/terraform/aws/service.tf.tt +67 -0
- data/lib/generators/rrx_api/terraform_generator.rb +76 -0
- data/lib/rrx_api/engine.rb +88 -0
- data/lib/rrx_api/version.rb +3 -2
- data/lib/rrx_api.rb +1 -1
- metadata +63 -31
- data/.idea/.gitignore +0 -8
- data/.idea/inspectionProfiles/Project_Default.xml +0 -6
- data/.idea/modules.xml +0 -8
- data/.idea/rrx_api.iml +0 -255
- data/.idea/vcs.xml +0 -6
- data/exe/rrx_api_setup +0 -37
- data/exe/sources/config/initializers/cors.rb +0 -21
- data/exe/sources/config/initializers/generators.rb +0 -6
- data/lib/rrx_api/railtie.rb +0 -44
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rrx_api
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 8.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Dan Drew
|
|
8
8
|
autorequire:
|
|
9
|
-
bindir:
|
|
9
|
+
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2025-11-17 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: actionpack-action_caching
|
|
@@ -70,16 +70,16 @@ dependencies:
|
|
|
70
70
|
name: jbuilder
|
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
|
72
72
|
requirements:
|
|
73
|
-
- - "
|
|
73
|
+
- - "~>"
|
|
74
74
|
- !ruby/object:Gem::Version
|
|
75
|
-
version: '
|
|
75
|
+
version: '2.13'
|
|
76
76
|
type: :runtime
|
|
77
77
|
prerelease: false
|
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
|
79
79
|
requirements:
|
|
80
|
-
- - "
|
|
80
|
+
- - "~>"
|
|
81
81
|
- !ruby/object:Gem::Version
|
|
82
|
-
version: '
|
|
82
|
+
version: '2.13'
|
|
83
83
|
- !ruby/object:Gem::Dependency
|
|
84
84
|
name: kaminari
|
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -128,28 +128,42 @@ dependencies:
|
|
|
128
128
|
requirements:
|
|
129
129
|
- - "~>"
|
|
130
130
|
- !ruby/object:Gem::Version
|
|
131
|
-
version:
|
|
131
|
+
version: 8.0.2
|
|
132
132
|
type: :runtime
|
|
133
133
|
prerelease: false
|
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
|
135
135
|
requirements:
|
|
136
136
|
- - "~>"
|
|
137
137
|
- !ruby/object:Gem::Version
|
|
138
|
-
version:
|
|
138
|
+
version: 8.0.2
|
|
139
139
|
- !ruby/object:Gem::Dependency
|
|
140
|
-
name:
|
|
140
|
+
name: rrx_config
|
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|
|
142
142
|
requirements:
|
|
143
|
-
- - "
|
|
143
|
+
- - "~>"
|
|
144
144
|
- !ruby/object:Gem::Version
|
|
145
|
-
version:
|
|
145
|
+
version: 8.0.2
|
|
146
146
|
type: :runtime
|
|
147
147
|
prerelease: false
|
|
148
148
|
version_requirements: !ruby/object:Gem::Requirement
|
|
149
149
|
requirements:
|
|
150
|
-
- - "
|
|
150
|
+
- - "~>"
|
|
151
151
|
- !ruby/object:Gem::Version
|
|
152
|
-
version:
|
|
152
|
+
version: 8.0.2
|
|
153
|
+
- !ruby/object:Gem::Dependency
|
|
154
|
+
name: rrx_logging
|
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
|
156
|
+
requirements:
|
|
157
|
+
- - "~>"
|
|
158
|
+
- !ruby/object:Gem::Version
|
|
159
|
+
version: 8.0.2
|
|
160
|
+
type: :runtime
|
|
161
|
+
prerelease: false
|
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
163
|
+
requirements:
|
|
164
|
+
- - "~>"
|
|
165
|
+
- !ruby/object:Gem::Version
|
|
166
|
+
version: 8.0.2
|
|
153
167
|
- !ruby/object:Gem::Dependency
|
|
154
168
|
name: rswag-api
|
|
155
169
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -179,7 +193,7 @@ dependencies:
|
|
|
179
193
|
- !ruby/object:Gem::Version
|
|
180
194
|
version: '0'
|
|
181
195
|
- !ruby/object:Gem::Dependency
|
|
182
|
-
name:
|
|
196
|
+
name: thor
|
|
183
197
|
requirement: !ruby/object:Gem::Requirement
|
|
184
198
|
requirements:
|
|
185
199
|
- - ">="
|
|
@@ -193,7 +207,7 @@ dependencies:
|
|
|
193
207
|
- !ruby/object:Gem::Version
|
|
194
208
|
version: '0'
|
|
195
209
|
- !ruby/object:Gem::Dependency
|
|
196
|
-
name:
|
|
210
|
+
name: tzinfo-data
|
|
197
211
|
requirement: !ruby/object:Gem::Requirement
|
|
198
212
|
requirements:
|
|
199
213
|
- - ">="
|
|
@@ -207,13 +221,13 @@ dependencies:
|
|
|
207
221
|
- !ruby/object:Gem::Version
|
|
208
222
|
version: '0'
|
|
209
223
|
- !ruby/object:Gem::Dependency
|
|
210
|
-
name:
|
|
224
|
+
name: generator_spec
|
|
211
225
|
requirement: !ruby/object:Gem::Requirement
|
|
212
226
|
requirements:
|
|
213
227
|
- - ">="
|
|
214
228
|
- !ruby/object:Gem::Version
|
|
215
229
|
version: '0'
|
|
216
|
-
type: :
|
|
230
|
+
type: :development
|
|
217
231
|
prerelease: false
|
|
218
232
|
version_requirements: !ruby/object:Gem::Requirement
|
|
219
233
|
requirements:
|
|
@@ -221,7 +235,7 @@ dependencies:
|
|
|
221
235
|
- !ruby/object:Gem::Version
|
|
222
236
|
version: '0'
|
|
223
237
|
- !ruby/object:Gem::Dependency
|
|
224
|
-
name:
|
|
238
|
+
name: sqlite3
|
|
225
239
|
requirement: !ruby/object:Gem::Requirement
|
|
226
240
|
requirements:
|
|
227
241
|
- - ">="
|
|
@@ -234,20 +248,28 @@ dependencies:
|
|
|
234
248
|
- - ">="
|
|
235
249
|
- !ruby/object:Gem::Version
|
|
236
250
|
version: '0'
|
|
251
|
+
- !ruby/object:Gem::Dependency
|
|
252
|
+
name: rrx_dev
|
|
253
|
+
requirement: !ruby/object:Gem::Requirement
|
|
254
|
+
requirements:
|
|
255
|
+
- - "~>"
|
|
256
|
+
- !ruby/object:Gem::Version
|
|
257
|
+
version: 8.0.2
|
|
258
|
+
type: :development
|
|
259
|
+
prerelease: false
|
|
260
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
261
|
+
requirements:
|
|
262
|
+
- - "~>"
|
|
263
|
+
- !ruby/object:Gem::Version
|
|
264
|
+
version: 8.0.2
|
|
237
265
|
description:
|
|
238
266
|
email:
|
|
239
267
|
- dan.drew@hotmail.com
|
|
240
|
-
executables:
|
|
241
|
-
- rrx_api_setup
|
|
268
|
+
executables: []
|
|
242
269
|
extensions: []
|
|
243
270
|
extra_rdoc_files: []
|
|
244
271
|
files:
|
|
245
272
|
- ".editorconfig"
|
|
246
|
-
- ".idea/.gitignore"
|
|
247
|
-
- ".idea/inspectionProfiles/Project_Default.xml"
|
|
248
|
-
- ".idea/modules.xml"
|
|
249
|
-
- ".idea/rrx_api.iml"
|
|
250
|
-
- ".idea/vcs.xml"
|
|
251
273
|
- ".rspec"
|
|
252
274
|
- ".rubocop.yml"
|
|
253
275
|
- CODE_OF_CONDUCT.md
|
|
@@ -257,12 +279,22 @@ files:
|
|
|
257
279
|
- README.md
|
|
258
280
|
- Rakefile
|
|
259
281
|
- app/controllers/rrx_api/controller.rb
|
|
282
|
+
- app/controllers/rrx_api/health_controller.rb
|
|
260
283
|
- app/models/rrx_api/record.rb
|
|
261
|
-
-
|
|
262
|
-
-
|
|
263
|
-
-
|
|
284
|
+
- config/routes.rb
|
|
285
|
+
- lib/generators/rrx_api/base.rb
|
|
286
|
+
- lib/generators/rrx_api/docker_generator.rb
|
|
287
|
+
- lib/generators/rrx_api/github_generator.rb
|
|
288
|
+
- lib/generators/rrx_api/install_generator.rb
|
|
289
|
+
- lib/generators/rrx_api/templates/docker/Dockerfile.tt
|
|
290
|
+
- lib/generators/rrx_api/templates/github/build/workflows/build.yml.tt
|
|
291
|
+
- lib/generators/rrx_api/templates/github/deploy/workflows/deploy.yml.tt
|
|
292
|
+
- lib/generators/rrx_api/templates/terraform/aws/iam.tf.tt
|
|
293
|
+
- lib/generators/rrx_api/templates/terraform/aws/main.tf.tt
|
|
294
|
+
- lib/generators/rrx_api/templates/terraform/aws/service.tf.tt
|
|
295
|
+
- lib/generators/rrx_api/terraform_generator.rb
|
|
264
296
|
- lib/rrx_api.rb
|
|
265
|
-
- lib/rrx_api/
|
|
297
|
+
- lib/rrx_api/engine.rb
|
|
266
298
|
- lib/rrx_api/version.rb
|
|
267
299
|
- sig/rrx_api.rbs
|
|
268
300
|
homepage: https://github.com/rails-rrx/rrx_api
|
|
@@ -286,7 +318,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
286
318
|
- !ruby/object:Gem::Version
|
|
287
319
|
version: '0'
|
|
288
320
|
requirements: []
|
|
289
|
-
rubygems_version: 3.4.
|
|
321
|
+
rubygems_version: 3.4.19
|
|
290
322
|
signing_key:
|
|
291
323
|
specification_version: 4
|
|
292
324
|
summary: Ruby on Rails core API support
|
data/.idea/.gitignore
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
<component name="InspectionProjectProfileManager">
|
|
2
|
-
<profile version="1.0">
|
|
3
|
-
<option name="myName" value="Project Default" />
|
|
4
|
-
<inspection_tool class="RbsMissingTypeSignature" enabled="false" level="WEAK WARNING" enabled_by_default="false" />
|
|
5
|
-
</profile>
|
|
6
|
-
</component>
|
data/.idea/modules.xml
DELETED
data/.idea/rrx_api.iml
DELETED
|
@@ -1,255 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<module type="RUBY_MODULE" version="4">
|
|
3
|
-
<component name="ModuleRunConfigurationManager">
|
|
4
|
-
<shared />
|
|
5
|
-
</component>
|
|
6
|
-
<component name="NewModuleRootManager">
|
|
7
|
-
<content url="file://$MODULE_DIR$">
|
|
8
|
-
<sourceFolder url="file://$MODULE_DIR$/features" isTestSource="true" />
|
|
9
|
-
<sourceFolder url="file://$MODULE_DIR$/spec" isTestSource="true" />
|
|
10
|
-
<sourceFolder url="file://$MODULE_DIR$/test" isTestSource="true" />
|
|
11
|
-
</content>
|
|
12
|
-
<orderEntry type="jdk" jdkName="Remote-asdf: ruby-3.2.2 (-p53" jdkType="RUBY_SDK" />
|
|
13
|
-
<orderEntry type="sourceFolder" forTests="false" />
|
|
14
|
-
<orderEntry type="module-library">
|
|
15
|
-
<library name="rrx_dev (v0.1.0) [path][gem]" type="rubylib">
|
|
16
|
-
<properties>
|
|
17
|
-
<option name="version" value="4" />
|
|
18
|
-
</properties>
|
|
19
|
-
<CLASSES>
|
|
20
|
-
<root url="file://$MODULE_DIR$/../rrx_dev/bin" />
|
|
21
|
-
<root url="file://$MODULE_DIR$/../rrx_dev/exe" />
|
|
22
|
-
<root url="file://$MODULE_DIR$/../rrx_dev/lib" />
|
|
23
|
-
<root url="file://$MODULE_DIR$/../rrx_dev/pkg" />
|
|
24
|
-
<root url="file://$MODULE_DIR$/../rrx_dev/sig" />
|
|
25
|
-
<root url="file://$MODULE_DIR$/../rrx_dev/.git" />
|
|
26
|
-
<root url="file://$MODULE_DIR$/../rrx_dev/spec" />
|
|
27
|
-
<root url="file://$MODULE_DIR$/../rrx_dev/.idea" />
|
|
28
|
-
<root url="file://$MODULE_DIR$/../rrx_dev/config" />
|
|
29
|
-
</CLASSES>
|
|
30
|
-
<JAVADOC />
|
|
31
|
-
<SOURCES>
|
|
32
|
-
<root url="file://$MODULE_DIR$/../rrx_dev/bin" />
|
|
33
|
-
<root url="file://$MODULE_DIR$/../rrx_dev/exe" />
|
|
34
|
-
<root url="file://$MODULE_DIR$/../rrx_dev/lib" />
|
|
35
|
-
<root url="file://$MODULE_DIR$/../rrx_dev/pkg" />
|
|
36
|
-
<root url="file://$MODULE_DIR$/../rrx_dev/sig" />
|
|
37
|
-
<root url="file://$MODULE_DIR$/../rrx_dev/.git" />
|
|
38
|
-
<root url="file://$MODULE_DIR$/../rrx_dev/spec" />
|
|
39
|
-
<root url="file://$MODULE_DIR$/../rrx_dev/.idea" />
|
|
40
|
-
<root url="file://$MODULE_DIR$/../rrx_dev/config" />
|
|
41
|
-
</SOURCES>
|
|
42
|
-
<excluded>
|
|
43
|
-
<root url="file://$MODULE_DIR$/../rrx_dev/bin" />
|
|
44
|
-
<root url="file://$MODULE_DIR$/../rrx_dev/exe" />
|
|
45
|
-
<root url="file://$MODULE_DIR$/../rrx_dev/pkg" />
|
|
46
|
-
<root url="file://$MODULE_DIR$/../rrx_dev/.git" />
|
|
47
|
-
<root url="file://$MODULE_DIR$/../rrx_dev/spec" />
|
|
48
|
-
<root url="file://$MODULE_DIR$/../rrx_dev/.idea" />
|
|
49
|
-
</excluded>
|
|
50
|
-
</library>
|
|
51
|
-
</orderEntry>
|
|
52
|
-
<orderEntry type="module-library">
|
|
53
|
-
<library name="rrx_logging (v0.1.0) [path][gem]" type="rubylib">
|
|
54
|
-
<properties>
|
|
55
|
-
<option name="version" value="4" />
|
|
56
|
-
</properties>
|
|
57
|
-
<CLASSES>
|
|
58
|
-
<root url="file://$MODULE_DIR$/../rrx_logging/bin" />
|
|
59
|
-
<root url="file://$MODULE_DIR$/../rrx_logging/lib" />
|
|
60
|
-
<root url="file://$MODULE_DIR$/../rrx_logging/pkg" />
|
|
61
|
-
<root url="file://$MODULE_DIR$/../rrx_logging/sig" />
|
|
62
|
-
<root url="file://$MODULE_DIR$/../rrx_logging/.git" />
|
|
63
|
-
<root url="file://$MODULE_DIR$/../rrx_logging/spec" />
|
|
64
|
-
<root url="file://$MODULE_DIR$/../rrx_logging/.idea" />
|
|
65
|
-
</CLASSES>
|
|
66
|
-
<JAVADOC />
|
|
67
|
-
<SOURCES>
|
|
68
|
-
<root url="file://$MODULE_DIR$/../rrx_logging/bin" />
|
|
69
|
-
<root url="file://$MODULE_DIR$/../rrx_logging/lib" />
|
|
70
|
-
<root url="file://$MODULE_DIR$/../rrx_logging/pkg" />
|
|
71
|
-
<root url="file://$MODULE_DIR$/../rrx_logging/sig" />
|
|
72
|
-
<root url="file://$MODULE_DIR$/../rrx_logging/.git" />
|
|
73
|
-
<root url="file://$MODULE_DIR$/../rrx_logging/spec" />
|
|
74
|
-
<root url="file://$MODULE_DIR$/../rrx_logging/.idea" />
|
|
75
|
-
</SOURCES>
|
|
76
|
-
<excluded>
|
|
77
|
-
<root url="file://$MODULE_DIR$/../rrx_logging/bin" />
|
|
78
|
-
<root url="file://$MODULE_DIR$/../rrx_logging/pkg" />
|
|
79
|
-
<root url="file://$MODULE_DIR$/../rrx_logging/.git" />
|
|
80
|
-
<root url="file://$MODULE_DIR$/../rrx_logging/spec" />
|
|
81
|
-
<root url="file://$MODULE_DIR$/../rrx_logging/.idea" />
|
|
82
|
-
</excluded>
|
|
83
|
-
</library>
|
|
84
|
-
</orderEntry>
|
|
85
|
-
<orderEntry type="library" scope="PROVIDED" name="actioncable (v7.1.2, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
86
|
-
<orderEntry type="library" scope="PROVIDED" name="actionmailbox (v7.1.2, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
87
|
-
<orderEntry type="library" scope="PROVIDED" name="actionmailer (v7.1.2, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
88
|
-
<orderEntry type="library" scope="PROVIDED" name="actionpack (v7.1.2, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
89
|
-
<orderEntry type="library" scope="PROVIDED" name="actionpack-action_caching (v1.2.2, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
90
|
-
<orderEntry type="library" scope="PROVIDED" name="actiontext (v7.1.2, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
91
|
-
<orderEntry type="library" scope="PROVIDED" name="actionview (v7.1.2, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
92
|
-
<orderEntry type="library" scope="PROVIDED" name="active_record_query_trace (v1.8.2, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
93
|
-
<orderEntry type="library" scope="PROVIDED" name="activejob (v7.1.2, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
94
|
-
<orderEntry type="library" scope="PROVIDED" name="activemodel (v7.1.2, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
95
|
-
<orderEntry type="library" scope="PROVIDED" name="activerecord (v7.1.2, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
96
|
-
<orderEntry type="library" scope="PROVIDED" name="activestorage (v7.1.2, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
97
|
-
<orderEntry type="library" scope="PROVIDED" name="activesupport (v7.1.2, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
98
|
-
<orderEntry type="library" scope="PROVIDED" name="addressable (v2.8.6, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
99
|
-
<orderEntry type="library" scope="PROVIDED" name="ast (v2.4.2, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
100
|
-
<orderEntry type="library" scope="PROVIDED" name="base64 (v0.2.0, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
101
|
-
<orderEntry type="library" scope="PROVIDED" name="bigdecimal (v3.1.5, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
102
|
-
<orderEntry type="library" scope="PROVIDED" name="binding_of_caller (v1.0.0, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
103
|
-
<orderEntry type="library" scope="PROVIDED" name="bootsnap (v1.17.0, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
104
|
-
<orderEntry type="library" scope="PROVIDED" name="builder (v3.2.4, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
105
|
-
<orderEntry type="library" scope="PROVIDED" name="bundler (v2.4.10, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
106
|
-
<orderEntry type="library" scope="PROVIDED" name="coderay (v1.1.3, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
107
|
-
<orderEntry type="library" scope="PROVIDED" name="concurrent-ruby (v1.2.2, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
108
|
-
<orderEntry type="library" scope="PROVIDED" name="connection_pool (v2.4.1, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
109
|
-
<orderEntry type="library" scope="PROVIDED" name="crass (v1.0.6, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
110
|
-
<orderEntry type="library" scope="PROVIDED" name="date (v3.3.4, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
111
|
-
<orderEntry type="library" scope="PROVIDED" name="debug (v1.9.1, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
112
|
-
<orderEntry type="library" scope="PROVIDED" name="debug_inspector (v1.2.0, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
113
|
-
<orderEntry type="library" scope="PROVIDED" name="diff-lcs (v1.5.0, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
114
|
-
<orderEntry type="library" scope="PROVIDED" name="drb (v2.2.0, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
115
|
-
<orderEntry type="library" scope="PROVIDED" name="erubi (v1.12.0, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
116
|
-
<orderEntry type="library" scope="PROVIDED" name="factory_bot (v6.4.5, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
117
|
-
<orderEntry type="library" scope="PROVIDED" name="factory_bot_rails (v6.4.3, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
118
|
-
<orderEntry type="library" scope="PROVIDED" name="faraday (v1.10.3, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
119
|
-
<orderEntry type="library" scope="PROVIDED" name="faraday-em_http (v1.0.0, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
120
|
-
<orderEntry type="library" scope="PROVIDED" name="faraday-em_synchrony (v1.0.0, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
121
|
-
<orderEntry type="library" scope="PROVIDED" name="faraday-excon (v1.1.0, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
122
|
-
<orderEntry type="library" scope="PROVIDED" name="faraday-httpclient (v1.0.1, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
123
|
-
<orderEntry type="library" scope="PROVIDED" name="faraday-multipart (v1.0.4, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
124
|
-
<orderEntry type="library" scope="PROVIDED" name="faraday-net_http (v1.0.1, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
125
|
-
<orderEntry type="library" scope="PROVIDED" name="faraday-net_http_persistent (v1.2.0, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
126
|
-
<orderEntry type="library" scope="PROVIDED" name="faraday-patron (v1.0.0, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
127
|
-
<orderEntry type="library" scope="PROVIDED" name="faraday-rack (v1.0.0, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
128
|
-
<orderEntry type="library" scope="PROVIDED" name="faraday-retry (v1.0.3, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
129
|
-
<orderEntry type="library" scope="PROVIDED" name="faraday_middleware (v1.2.0, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
130
|
-
<orderEntry type="library" scope="PROVIDED" name="ffi (v1.16.3, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
131
|
-
<orderEntry type="library" scope="PROVIDED" name="globalid (v1.2.1, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
132
|
-
<orderEntry type="library" scope="PROVIDED" name="i18n (v1.14.1, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
133
|
-
<orderEntry type="library" scope="PROVIDED" name="io-console (v0.7.1, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
134
|
-
<orderEntry type="library" scope="PROVIDED" name="irb (v1.11.0, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
135
|
-
<orderEntry type="library" scope="PROVIDED" name="jbuilder (v2.11.5, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
136
|
-
<orderEntry type="library" scope="PROVIDED" name="json (v2.7.1, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
137
|
-
<orderEntry type="library" scope="PROVIDED" name="json-schema (v4.1.1, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
138
|
-
<orderEntry type="library" scope="PROVIDED" name="kaminari (v1.2.2, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
139
|
-
<orderEntry type="library" scope="PROVIDED" name="kaminari-actionview (v1.2.2, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
140
|
-
<orderEntry type="library" scope="PROVIDED" name="kaminari-activerecord (v1.2.2, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
141
|
-
<orderEntry type="library" scope="PROVIDED" name="kaminari-core (v1.2.2, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
142
|
-
<orderEntry type="library" scope="PROVIDED" name="language_server-protocol (v3.17.0.3, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
143
|
-
<orderEntry type="library" scope="PROVIDED" name="listen (v3.8.0, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
144
|
-
<orderEntry type="library" scope="PROVIDED" name="loofah (v2.22.0, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
145
|
-
<orderEntry type="library" scope="PROVIDED" name="mail (v2.8.1, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
146
|
-
<orderEntry type="library" scope="PROVIDED" name="marcel (v1.0.2, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
147
|
-
<orderEntry type="library" scope="PROVIDED" name="mini_mime (v1.1.5, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
148
|
-
<orderEntry type="library" scope="PROVIDED" name="minitest (v5.20.0, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
149
|
-
<orderEntry type="library" scope="PROVIDED" name="msgpack (v1.7.2, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
150
|
-
<orderEntry type="library" scope="PROVIDED" name="multipart-post (v2.3.0, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
151
|
-
<orderEntry type="library" scope="PROVIDED" name="mutex_m (v0.2.0, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
152
|
-
<orderEntry type="library" scope="PROVIDED" name="net-imap (v0.4.9, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
153
|
-
<orderEntry type="library" scope="PROVIDED" name="net-pop (v0.1.2, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
154
|
-
<orderEntry type="library" scope="PROVIDED" name="net-protocol (v0.2.2, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
155
|
-
<orderEntry type="library" scope="PROVIDED" name="net-smtp (v0.4.0, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
156
|
-
<orderEntry type="library" scope="PROVIDED" name="nio4r (v2.7.0, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
157
|
-
<orderEntry type="library" scope="PROVIDED" name="nokogiri (v1.16.0, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
158
|
-
<orderEntry type="library" scope="PROVIDED" name="parallel (v1.24.0, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
159
|
-
<orderEntry type="library" scope="PROVIDED" name="parser (v3.2.2.4, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
160
|
-
<orderEntry type="library" scope="PROVIDED" name="proc_to_ast (v0.1.0, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
161
|
-
<orderEntry type="library" scope="PROVIDED" name="psych (v5.1.2, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
162
|
-
<orderEntry type="library" scope="PROVIDED" name="public_suffix (v5.0.4, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
163
|
-
<orderEntry type="library" scope="PROVIDED" name="puma (v6.4.0, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
164
|
-
<orderEntry type="library" scope="PROVIDED" name="racc (v1.7.3, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
165
|
-
<orderEntry type="library" scope="PROVIDED" name="rack (v3.0.8, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
166
|
-
<orderEntry type="library" scope="PROVIDED" name="rack-cors (v2.0.1, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
167
|
-
<orderEntry type="library" scope="PROVIDED" name="rack-session (v2.0.0, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
168
|
-
<orderEntry type="library" scope="PROVIDED" name="rack-test (v2.1.0, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
169
|
-
<orderEntry type="library" scope="PROVIDED" name="rackup (v2.1.0, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
170
|
-
<orderEntry type="library" scope="PROVIDED" name="rails (v7.1.2, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
171
|
-
<orderEntry type="library" scope="PROVIDED" name="rails-dom-testing (v2.2.0, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
172
|
-
<orderEntry type="library" scope="PROVIDED" name="rails-healthcheck (v1.4.0, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
173
|
-
<orderEntry type="library" scope="PROVIDED" name="rails-html-sanitizer (v1.6.0, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
174
|
-
<orderEntry type="library" scope="PROVIDED" name="railties (v7.1.2, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
175
|
-
<orderEntry type="library" scope="PROVIDED" name="rainbow (v3.1.1, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
176
|
-
<orderEntry type="library" scope="PROVIDED" name="rake (v13.1.0, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
177
|
-
<orderEntry type="library" scope="PROVIDED" name="rb-fsevent (v0.11.2, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
178
|
-
<orderEntry type="library" scope="PROVIDED" name="rb-inotify (v0.10.1, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
179
|
-
<orderEntry type="library" scope="PROVIDED" name="rdoc (v6.6.2, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
180
|
-
<orderEntry type="library" scope="PROVIDED" name="regexp_parser (v2.8.3, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
181
|
-
<orderEntry type="library" scope="PROVIDED" name="reline (v0.4.1, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
182
|
-
<orderEntry type="library" scope="PROVIDED" name="rexml (v3.2.6, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
183
|
-
<orderEntry type="library" scope="PROVIDED" name="rrx_config (v0.1.0, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
184
|
-
<orderEntry type="library" scope="PROVIDED" name="rspec (v3.12.0, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
185
|
-
<orderEntry type="library" scope="PROVIDED" name="rspec-core (v3.12.2, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
186
|
-
<orderEntry type="library" scope="PROVIDED" name="rspec-expectations (v3.12.3, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
187
|
-
<orderEntry type="library" scope="PROVIDED" name="rspec-mocks (v3.12.6, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
188
|
-
<orderEntry type="library" scope="PROVIDED" name="rspec-parameterized (v1.0.0, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
189
|
-
<orderEntry type="library" scope="PROVIDED" name="rspec-parameterized-core (v1.0.0, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
190
|
-
<orderEntry type="library" scope="PROVIDED" name="rspec-parameterized-table_syntax (v1.0.1, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
191
|
-
<orderEntry type="library" scope="PROVIDED" name="rspec-rails (v6.1.0, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
192
|
-
<orderEntry type="library" scope="PROVIDED" name="rspec-support (v3.12.1, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
193
|
-
<orderEntry type="library" scope="PROVIDED" name="rswag-api (v2.13.0, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
194
|
-
<orderEntry type="library" scope="PROVIDED" name="rswag-specs (v2.13.0, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
195
|
-
<orderEntry type="library" scope="PROVIDED" name="rswag-ui (v2.13.0, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
196
|
-
<orderEntry type="library" scope="PROVIDED" name="rubocop (v1.59.0, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
197
|
-
<orderEntry type="library" scope="PROVIDED" name="rubocop-ast (v1.30.0, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
198
|
-
<orderEntry type="library" scope="PROVIDED" name="rubocop-rails (v2.23.1, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
199
|
-
<orderEntry type="library" scope="PROVIDED" name="ruby-progressbar (v1.13.0, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
200
|
-
<orderEntry type="library" scope="PROVIDED" name="spring (v4.1.3, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
201
|
-
<orderEntry type="library" scope="PROVIDED" name="sqlite3 (v1.7.0, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
202
|
-
<orderEntry type="library" scope="PROVIDED" name="stringio (v3.1.0, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
203
|
-
<orderEntry type="library" scope="PROVIDED" name="thor (v1.3.0, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
204
|
-
<orderEntry type="library" scope="PROVIDED" name="timeout (v0.4.1, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
205
|
-
<orderEntry type="library" scope="PROVIDED" name="tzinfo (v2.0.6, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
206
|
-
<orderEntry type="library" scope="PROVIDED" name="tzinfo-data (v1.2023.4, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
207
|
-
<orderEntry type="library" scope="PROVIDED" name="unicode-display_width (v2.5.0, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
208
|
-
<orderEntry type="library" scope="PROVIDED" name="unparser (v0.6.10, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
209
|
-
<orderEntry type="library" scope="PROVIDED" name="webrick (v1.8.1, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
210
|
-
<orderEntry type="library" scope="PROVIDED" name="websocket-driver (v0.7.6, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
211
|
-
<orderEntry type="library" scope="PROVIDED" name="websocket-extensions (v0.1.5, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
212
|
-
<orderEntry type="library" scope="PROVIDED" name="zeitwerk (v2.6.12, Remote-asdf: ruby-3.2.2 (-p53) [gem]" level="application" />
|
|
213
|
-
</component>
|
|
214
|
-
<component name="RakeTasksCache">
|
|
215
|
-
<option name="myRootTask">
|
|
216
|
-
<RakeTaskImpl id="rake">
|
|
217
|
-
<subtasks>
|
|
218
|
-
<RakeTaskImpl description="Build rrx_api-0.1.0.gem into the pkg directory" fullCommand="build" id="build" />
|
|
219
|
-
<RakeTaskImpl id="build">
|
|
220
|
-
<subtasks>
|
|
221
|
-
<RakeTaskImpl description="Generate SHA512 checksum if rrx_api-0.1.0.gem into the checksums directory" fullCommand="build:checksum" id="checksum" />
|
|
222
|
-
</subtasks>
|
|
223
|
-
</RakeTaskImpl>
|
|
224
|
-
<RakeTaskImpl description="Remove any temporary products" fullCommand="clean" id="clean" />
|
|
225
|
-
<RakeTaskImpl description="Remove any generated files" fullCommand="clobber" id="clobber" />
|
|
226
|
-
<RakeTaskImpl description="Build and install rrx_api-0.1.0.gem into system gems" fullCommand="install" id="install" />
|
|
227
|
-
<RakeTaskImpl id="install">
|
|
228
|
-
<subtasks>
|
|
229
|
-
<RakeTaskImpl description="Build and install rrx_api-0.1.0.gem into system gems without network access" fullCommand="install:local" id="local" />
|
|
230
|
-
</subtasks>
|
|
231
|
-
</RakeTaskImpl>
|
|
232
|
-
<RakeTaskImpl description="Create tag v0.1.0 and build and push rrx_api-0.1.0.gem to rubygems.org" fullCommand="release[remote]" id="release[remote]" />
|
|
233
|
-
<RakeTaskImpl description="Run RuboCop" fullCommand="rubocop" id="rubocop" />
|
|
234
|
-
<RakeTaskImpl id="rubocop">
|
|
235
|
-
<subtasks>
|
|
236
|
-
<RakeTaskImpl description="Autocorrect RuboCop offenses (only when it's safe)" fullCommand="rubocop:autocorrect" id="autocorrect" />
|
|
237
|
-
<RakeTaskImpl description="Autocorrect RuboCop offenses (safe and unsafe)" fullCommand="rubocop:autocorrect_all" id="autocorrect_all" />
|
|
238
|
-
<RakeTaskImpl description="" fullCommand="rubocop:auto_correct" id="auto_correct" />
|
|
239
|
-
</subtasks>
|
|
240
|
-
</RakeTaskImpl>
|
|
241
|
-
<RakeTaskImpl description="Run RSpec code examples" fullCommand="spec" id="spec" />
|
|
242
|
-
<RakeTaskImpl description="" fullCommand="default" id="default" />
|
|
243
|
-
<RakeTaskImpl description="" fullCommand="release" id="release" />
|
|
244
|
-
<RakeTaskImpl id="release">
|
|
245
|
-
<subtasks>
|
|
246
|
-
<RakeTaskImpl description="" fullCommand="release:guard_clean" id="guard_clean" />
|
|
247
|
-
<RakeTaskImpl description="" fullCommand="release:rubygem_push" id="rubygem_push" />
|
|
248
|
-
<RakeTaskImpl description="" fullCommand="release:source_control_push" id="source_control_push" />
|
|
249
|
-
</subtasks>
|
|
250
|
-
</RakeTaskImpl>
|
|
251
|
-
</subtasks>
|
|
252
|
-
</RakeTaskImpl>
|
|
253
|
-
</option>
|
|
254
|
-
</component>
|
|
255
|
-
</module>
|
data/.idea/vcs.xml
DELETED
data/exe/rrx_api_setup
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env ruby
|
|
2
|
-
require 'rubygems'
|
|
3
|
-
require 'thor'
|
|
4
|
-
require 'pathname'
|
|
5
|
-
|
|
6
|
-
class Setup < Thor
|
|
7
|
-
include Thor::Actions
|
|
8
|
-
|
|
9
|
-
default_command :app
|
|
10
|
-
|
|
11
|
-
#noinspection RubyMismatchedArgumentType
|
|
12
|
-
source_root Pathname(__dir__).join('sources')
|
|
13
|
-
|
|
14
|
-
desc 'app', 'Setup a new API app'
|
|
15
|
-
def app
|
|
16
|
-
rrx_dev
|
|
17
|
-
update_base_classes
|
|
18
|
-
rails
|
|
19
|
-
end
|
|
20
|
-
|
|
21
|
-
private
|
|
22
|
-
|
|
23
|
-
def rails
|
|
24
|
-
directory 'config/initializers'
|
|
25
|
-
end
|
|
26
|
-
|
|
27
|
-
def rrx_dev
|
|
28
|
-
run 'bundle exec rrx_dev_setup app'
|
|
29
|
-
end
|
|
30
|
-
|
|
31
|
-
def update_base_classes
|
|
32
|
-
gsub_file 'app/models/application_record.rb', /ApplicationRecord.*/, 'ApplicationRecord < RrxApi::Record'
|
|
33
|
-
gsub_file 'app/controllers/application_controller.rb', /ApplicationController.*/, 'ApplicationController < RrxApi::Controller'
|
|
34
|
-
end
|
|
35
|
-
end
|
|
36
|
-
|
|
37
|
-
Setup.start
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
require 'rack/cors'
|
|
2
|
-
|
|
3
|
-
LOCALHOST_PATTERN = /\Ahttp:\/\/localhost(?::\d{4})?\z/.freeze
|
|
4
|
-
|
|
5
|
-
Rails.application.config.middleware.insert_before 0, Rack::Cors do
|
|
6
|
-
allow do
|
|
7
|
-
origins do |source, env|
|
|
8
|
-
if Rails.env.development?
|
|
9
|
-
LOCALHOST_PATTERN.match? source
|
|
10
|
-
else
|
|
11
|
-
# TODO
|
|
12
|
-
true
|
|
13
|
-
end
|
|
14
|
-
end
|
|
15
|
-
|
|
16
|
-
resource '*',
|
|
17
|
-
headers: :any,
|
|
18
|
-
credentials: true,
|
|
19
|
-
methods: [:get, :post, :put, :patch, :delete, :options, :head]
|
|
20
|
-
end
|
|
21
|
-
end
|
data/lib/rrx_api/railtie.rb
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
require 'rails'
|
|
2
|
-
require 'active_model/railtie'
|
|
3
|
-
require 'active_record/railtie'
|
|
4
|
-
require 'action_controller/railtie'
|
|
5
|
-
require 'action_text/engine'
|
|
6
|
-
require 'action_view/railtie'
|
|
7
|
-
require 'jbuilder'
|
|
8
|
-
require 'rack/cors'
|
|
9
|
-
require 'actionpack/action_caching'
|
|
10
|
-
|
|
11
|
-
module RrxApi
|
|
12
|
-
class Railtie < ::Rails::Engine
|
|
13
|
-
initializer 'rrx.api_docs_config', before: :load_config_initializers do |_app|
|
|
14
|
-
Rails.configuration.api_docs = { 'API' => 'swagger.yaml' }
|
|
15
|
-
end
|
|
16
|
-
|
|
17
|
-
initializer 'rrx.api_docs', after: :load_config_initializers do |app|
|
|
18
|
-
# Setup Swagger endpoints if docs exist
|
|
19
|
-
if swagger_root?
|
|
20
|
-
require 'rswag/api'
|
|
21
|
-
require 'rswag/ui'
|
|
22
|
-
|
|
23
|
-
Rswag::Api.configure do |c|
|
|
24
|
-
c.swagger_root = Rails.root.join('swagger')
|
|
25
|
-
end
|
|
26
|
-
Rswag::Ui.configure do |c|
|
|
27
|
-
app.config.api_docs.each_pair do |name, file|
|
|
28
|
-
c.swagger_endpoint "/api-docs/#{file}", name
|
|
29
|
-
end
|
|
30
|
-
end
|
|
31
|
-
end
|
|
32
|
-
end
|
|
33
|
-
|
|
34
|
-
private
|
|
35
|
-
|
|
36
|
-
def swagger_root
|
|
37
|
-
@swagger_root ||= Rails.root.join('swagger')
|
|
38
|
-
end
|
|
39
|
-
|
|
40
|
-
def swagger_root?
|
|
41
|
-
swagger_root.exist?
|
|
42
|
-
end
|
|
43
|
-
end
|
|
44
|
-
end
|