ropen_pi 0.1.1 → 0.4.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/.devcontainer/Dockerfile +77 -0
- data/.devcontainer/base.Dockerfile +43 -0
- data/.devcontainer/devcontainer.json +46 -0
- data/.gitignore +1 -0
- data/.husky/.gitignore +1 -0
- data/.husky/commit-msg +4 -0
- data/.rspec +3 -0
- data/.rubocop.yml +4 -0
- data/.rubocop_todo.yml +133 -27
- data/Gemfile.lock +176 -119
- data/LICENSE +1 -1
- data/Makefile +42 -0
- data/README.md +7 -7
- data/examples/.envrc +2 -2
- data/examples/Gemfile +7 -10
- data/examples/Gemfile.lock +13 -9
- data/examples/docker-compose.yml +1 -5
- data/lib/generators/ropen_pi/install_generator.rb +7 -6
- data/lib/generators/ropen_pi/templates/ropen_pi_helper.rb +1 -1
- data/lib/ropen_pi/config_helper.rb +34 -17
- data/lib/ropen_pi/specs/configuration.rb +32 -28
- data/lib/ropen_pi/specs/example_group_helpers.rb +8 -5
- data/lib/ropen_pi/specs/request_factory.rb +3 -3
- data/lib/ropen_pi/specs/writer.rb +1 -3
- data/lib/ropen_pi/version.rb +1 -1
- data/package-lock.json +5403 -0
- data/package.json +59 -0
- data/ropen_pi.gemspec +7 -6
- metadata +50 -12
data/Gemfile.lock
CHANGED
@@ -1,177 +1,234 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
ropen_pi (0.
|
4
|
+
ropen_pi (0.4.0)
|
5
5
|
hashie
|
6
6
|
json-schema
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: https://rubygems.org/
|
10
10
|
specs:
|
11
|
-
actioncable (6.
|
12
|
-
actionpack (= 6.
|
11
|
+
actioncable (6.1.4.4)
|
12
|
+
actionpack (= 6.1.4.4)
|
13
|
+
activesupport (= 6.1.4.4)
|
13
14
|
nio4r (~> 2.0)
|
14
15
|
websocket-driver (>= 0.6.1)
|
15
|
-
actionmailbox (6.
|
16
|
-
actionpack (= 6.
|
17
|
-
activejob (= 6.
|
18
|
-
activerecord (= 6.
|
19
|
-
activestorage (= 6.
|
20
|
-
activesupport (= 6.
|
16
|
+
actionmailbox (6.1.4.4)
|
17
|
+
actionpack (= 6.1.4.4)
|
18
|
+
activejob (= 6.1.4.4)
|
19
|
+
activerecord (= 6.1.4.4)
|
20
|
+
activestorage (= 6.1.4.4)
|
21
|
+
activesupport (= 6.1.4.4)
|
21
22
|
mail (>= 2.7.1)
|
22
|
-
actionmailer (6.
|
23
|
-
actionpack (= 6.
|
24
|
-
actionview (= 6.
|
25
|
-
activejob (= 6.
|
23
|
+
actionmailer (6.1.4.4)
|
24
|
+
actionpack (= 6.1.4.4)
|
25
|
+
actionview (= 6.1.4.4)
|
26
|
+
activejob (= 6.1.4.4)
|
27
|
+
activesupport (= 6.1.4.4)
|
26
28
|
mail (~> 2.5, >= 2.5.4)
|
27
29
|
rails-dom-testing (~> 2.0)
|
28
|
-
actionpack (6.
|
29
|
-
actionview (= 6.
|
30
|
-
activesupport (= 6.
|
31
|
-
rack (~> 2.0, >= 2.0.
|
30
|
+
actionpack (6.1.4.4)
|
31
|
+
actionview (= 6.1.4.4)
|
32
|
+
activesupport (= 6.1.4.4)
|
33
|
+
rack (~> 2.0, >= 2.0.9)
|
32
34
|
rack-test (>= 0.6.3)
|
33
35
|
rails-dom-testing (~> 2.0)
|
34
36
|
rails-html-sanitizer (~> 1.0, >= 1.2.0)
|
35
|
-
actiontext (6.
|
36
|
-
actionpack (= 6.
|
37
|
-
activerecord (= 6.
|
38
|
-
activestorage (= 6.
|
39
|
-
activesupport (= 6.
|
37
|
+
actiontext (6.1.4.4)
|
38
|
+
actionpack (= 6.1.4.4)
|
39
|
+
activerecord (= 6.1.4.4)
|
40
|
+
activestorage (= 6.1.4.4)
|
41
|
+
activesupport (= 6.1.4.4)
|
40
42
|
nokogiri (>= 1.8.5)
|
41
|
-
actionview (6.
|
42
|
-
activesupport (= 6.
|
43
|
+
actionview (6.1.4.4)
|
44
|
+
activesupport (= 6.1.4.4)
|
43
45
|
builder (~> 3.1)
|
44
46
|
erubi (~> 1.4)
|
45
47
|
rails-dom-testing (~> 2.0)
|
46
48
|
rails-html-sanitizer (~> 1.1, >= 1.2.0)
|
47
|
-
activejob (6.
|
48
|
-
activesupport (= 6.
|
49
|
+
activejob (6.1.4.4)
|
50
|
+
activesupport (= 6.1.4.4)
|
49
51
|
globalid (>= 0.3.6)
|
50
|
-
activemodel (6.
|
51
|
-
activesupport (= 6.
|
52
|
-
activerecord (6.
|
53
|
-
activemodel (= 6.
|
54
|
-
activesupport (= 6.
|
55
|
-
activestorage (6.
|
56
|
-
actionpack (= 6.
|
57
|
-
activejob (= 6.
|
58
|
-
activerecord (= 6.
|
59
|
-
|
60
|
-
|
52
|
+
activemodel (6.1.4.4)
|
53
|
+
activesupport (= 6.1.4.4)
|
54
|
+
activerecord (6.1.4.4)
|
55
|
+
activemodel (= 6.1.4.4)
|
56
|
+
activesupport (= 6.1.4.4)
|
57
|
+
activestorage (6.1.4.4)
|
58
|
+
actionpack (= 6.1.4.4)
|
59
|
+
activejob (= 6.1.4.4)
|
60
|
+
activerecord (= 6.1.4.4)
|
61
|
+
activesupport (= 6.1.4.4)
|
62
|
+
marcel (~> 1.0.0)
|
63
|
+
mini_mime (>= 1.1.0)
|
64
|
+
activesupport (6.1.4.4)
|
61
65
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
62
|
-
i18n (>=
|
63
|
-
minitest (
|
64
|
-
tzinfo (~>
|
65
|
-
zeitwerk (~> 2.
|
66
|
-
addressable (2.
|
66
|
+
i18n (>= 1.6, < 2)
|
67
|
+
minitest (>= 5.1)
|
68
|
+
tzinfo (~> 2.0)
|
69
|
+
zeitwerk (~> 2.3)
|
70
|
+
addressable (2.8.0)
|
67
71
|
public_suffix (>= 2.0.2, < 5.0)
|
72
|
+
ast (2.4.2)
|
73
|
+
backport (1.2.0)
|
74
|
+
benchmark (0.2.0)
|
68
75
|
builder (3.2.4)
|
69
|
-
bump (0.
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
76
|
+
bump (0.10.0)
|
77
|
+
bundler-audit (0.9.0.1)
|
78
|
+
bundler (>= 1.2.0, < 3)
|
79
|
+
thor (~> 1.0)
|
80
|
+
byebug (11.1.3)
|
81
|
+
coderay (1.1.3)
|
82
|
+
concurrent-ruby (1.1.9)
|
83
|
+
crass (1.0.6)
|
84
|
+
diff-lcs (1.5.0)
|
85
|
+
e2mmap (0.1.0)
|
86
|
+
erubi (1.10.0)
|
87
|
+
globalid (1.0.0)
|
88
|
+
activesupport (>= 5.0)
|
89
|
+
hashie (5.0.0)
|
90
|
+
i18n (1.8.11)
|
80
91
|
concurrent-ruby (~> 1.0)
|
92
|
+
jaro_winkler (1.5.4)
|
81
93
|
json-schema (2.8.1)
|
82
94
|
addressable (>= 2.4)
|
83
|
-
|
95
|
+
kramdown (2.3.1)
|
96
|
+
rexml
|
97
|
+
kramdown-parser-gfm (1.1.0)
|
98
|
+
kramdown (~> 2.0)
|
99
|
+
loofah (2.13.0)
|
84
100
|
crass (~> 1.0.2)
|
85
101
|
nokogiri (>= 1.5.9)
|
86
102
|
mail (2.7.1)
|
87
103
|
mini_mime (>= 0.1.1)
|
88
|
-
marcel (0.
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
104
|
+
marcel (1.0.2)
|
105
|
+
method_source (1.0.0)
|
106
|
+
mini_mime (1.1.2)
|
107
|
+
mini_portile2 (2.7.1)
|
108
|
+
minitest (5.15.0)
|
109
|
+
nio4r (2.5.8)
|
110
|
+
nokogiri (1.13.1)
|
111
|
+
mini_portile2 (~> 2.7.0)
|
112
|
+
racc (~> 1.4)
|
113
|
+
parallel (1.21.0)
|
114
|
+
parser (3.1.0.0)
|
115
|
+
ast (~> 2.4.1)
|
116
|
+
pry (0.13.1)
|
117
|
+
coderay (~> 1.1)
|
118
|
+
method_source (~> 1.0)
|
119
|
+
pry-byebug (3.9.0)
|
102
120
|
byebug (~> 11.0)
|
103
|
-
pry (~> 0.
|
104
|
-
public_suffix (4.0.
|
105
|
-
|
121
|
+
pry (~> 0.13.0)
|
122
|
+
public_suffix (4.0.6)
|
123
|
+
racc (1.6.0)
|
124
|
+
rack (2.2.3)
|
106
125
|
rack-test (1.1.0)
|
107
126
|
rack (>= 1.0, < 3)
|
108
|
-
rails (6.
|
109
|
-
actioncable (= 6.
|
110
|
-
actionmailbox (= 6.
|
111
|
-
actionmailer (= 6.
|
112
|
-
actionpack (= 6.
|
113
|
-
actiontext (= 6.
|
114
|
-
actionview (= 6.
|
115
|
-
activejob (= 6.
|
116
|
-
activemodel (= 6.
|
117
|
-
activerecord (= 6.
|
118
|
-
activestorage (= 6.
|
119
|
-
activesupport (= 6.
|
120
|
-
bundler (>= 1.
|
121
|
-
railties (= 6.
|
127
|
+
rails (6.1.4.4)
|
128
|
+
actioncable (= 6.1.4.4)
|
129
|
+
actionmailbox (= 6.1.4.4)
|
130
|
+
actionmailer (= 6.1.4.4)
|
131
|
+
actionpack (= 6.1.4.4)
|
132
|
+
actiontext (= 6.1.4.4)
|
133
|
+
actionview (= 6.1.4.4)
|
134
|
+
activejob (= 6.1.4.4)
|
135
|
+
activemodel (= 6.1.4.4)
|
136
|
+
activerecord (= 6.1.4.4)
|
137
|
+
activestorage (= 6.1.4.4)
|
138
|
+
activesupport (= 6.1.4.4)
|
139
|
+
bundler (>= 1.15.0)
|
140
|
+
railties (= 6.1.4.4)
|
122
141
|
sprockets-rails (>= 2.0.0)
|
123
142
|
rails-dom-testing (2.0.3)
|
124
143
|
activesupport (>= 4.2.0)
|
125
144
|
nokogiri (>= 1.6)
|
126
|
-
rails-html-sanitizer (1.
|
145
|
+
rails-html-sanitizer (1.4.2)
|
127
146
|
loofah (~> 2.3)
|
128
|
-
railties (6.
|
129
|
-
actionpack (= 6.
|
130
|
-
activesupport (= 6.
|
147
|
+
railties (6.1.4.4)
|
148
|
+
actionpack (= 6.1.4.4)
|
149
|
+
activesupport (= 6.1.4.4)
|
131
150
|
method_source
|
132
|
-
rake (>= 0.
|
133
|
-
thor (
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
151
|
+
rake (>= 0.13)
|
152
|
+
thor (~> 1.0)
|
153
|
+
rainbow (3.1.1)
|
154
|
+
rake (13.0.6)
|
155
|
+
regexp_parser (2.2.0)
|
156
|
+
reverse_markdown (2.1.1)
|
157
|
+
nokogiri
|
158
|
+
rexml (3.2.5)
|
159
|
+
rspec (3.10.0)
|
160
|
+
rspec-core (~> 3.10.0)
|
161
|
+
rspec-expectations (~> 3.10.0)
|
162
|
+
rspec-mocks (~> 3.10.0)
|
163
|
+
rspec-core (3.10.1)
|
164
|
+
rspec-support (~> 3.10.0)
|
165
|
+
rspec-expectations (3.10.2)
|
142
166
|
diff-lcs (>= 1.2.0, < 2.0)
|
143
|
-
rspec-support (~> 3.
|
144
|
-
rspec-mocks (3.
|
167
|
+
rspec-support (~> 3.10.0)
|
168
|
+
rspec-mocks (3.10.2)
|
145
169
|
diff-lcs (>= 1.2.0, < 2.0)
|
146
|
-
rspec-support (~> 3.
|
147
|
-
rspec-support (3.
|
148
|
-
|
170
|
+
rspec-support (~> 3.10.0)
|
171
|
+
rspec-support (3.10.3)
|
172
|
+
rubocop (1.25.0)
|
173
|
+
parallel (~> 1.10)
|
174
|
+
parser (>= 3.1.0.0)
|
175
|
+
rainbow (>= 2.2.2, < 4.0)
|
176
|
+
regexp_parser (>= 1.8, < 3.0)
|
177
|
+
rexml
|
178
|
+
rubocop-ast (>= 1.15.1, < 2.0)
|
179
|
+
ruby-progressbar (~> 1.7)
|
180
|
+
unicode-display_width (>= 1.4.0, < 3.0)
|
181
|
+
rubocop-ast (1.15.1)
|
182
|
+
parser (>= 3.0.1.1)
|
183
|
+
ruby-progressbar (1.11.0)
|
184
|
+
solargraph (0.44.2)
|
185
|
+
backport (~> 1.2)
|
186
|
+
benchmark
|
187
|
+
bundler (>= 1.17.2)
|
188
|
+
diff-lcs (~> 1.4)
|
189
|
+
e2mmap
|
190
|
+
jaro_winkler (~> 1.5)
|
191
|
+
kramdown (~> 2.3)
|
192
|
+
kramdown-parser-gfm (~> 1.1)
|
193
|
+
parser (~> 3.0)
|
194
|
+
reverse_markdown (>= 1.0.5, < 3)
|
195
|
+
rubocop (>= 0.52)
|
196
|
+
thor (~> 1.0)
|
197
|
+
tilt (~> 2.0)
|
198
|
+
yard (~> 0.9, >= 0.9.24)
|
199
|
+
sprockets (4.0.2)
|
149
200
|
concurrent-ruby (~> 1.0)
|
150
201
|
rack (> 1, < 3)
|
151
|
-
sprockets-rails (3.2
|
152
|
-
actionpack (>=
|
153
|
-
activesupport (>=
|
202
|
+
sprockets-rails (3.4.2)
|
203
|
+
actionpack (>= 5.2)
|
204
|
+
activesupport (>= 5.2)
|
154
205
|
sprockets (>= 3.0.0)
|
155
|
-
thor (1.
|
156
|
-
|
157
|
-
tzinfo (
|
158
|
-
|
159
|
-
|
206
|
+
thor (1.2.1)
|
207
|
+
tilt (2.0.10)
|
208
|
+
tzinfo (2.0.4)
|
209
|
+
concurrent-ruby (~> 1.0)
|
210
|
+
unicode-display_width (2.1.0)
|
211
|
+
webrick (1.7.0)
|
212
|
+
websocket-driver (0.7.5)
|
160
213
|
websocket-extensions (>= 0.1.0)
|
161
|
-
websocket-extensions (0.1.
|
162
|
-
|
214
|
+
websocket-extensions (0.1.5)
|
215
|
+
yard (0.9.27)
|
216
|
+
webrick (~> 1.7.0)
|
217
|
+
zeitwerk (2.5.3)
|
163
218
|
|
164
219
|
PLATFORMS
|
165
220
|
ruby
|
166
221
|
|
167
222
|
DEPENDENCIES
|
168
223
|
bump
|
169
|
-
bundler (~> 2
|
224
|
+
bundler (~> 2)
|
225
|
+
bundler-audit
|
170
226
|
pry-byebug
|
171
|
-
rails (~> 6.
|
172
|
-
rake (~>
|
227
|
+
rails (~> 6.1.4.4)
|
228
|
+
rake (~> 13.0)
|
173
229
|
ropen_pi!
|
174
|
-
rspec (~> 3.
|
230
|
+
rspec (~> 3.10)
|
231
|
+
solargraph (= 0.44.2)
|
175
232
|
|
176
233
|
BUNDLED WITH
|
177
|
-
2.
|
234
|
+
2.2.32
|
data/LICENSE
CHANGED
data/Makefile
ADDED
@@ -0,0 +1,42 @@
|
|
1
|
+
################################################################################
|
2
|
+
# DEV-CONTAINER
|
3
|
+
|
4
|
+
devcon_init:
|
5
|
+
@echo 'init devcontainer'
|
6
|
+
make devcon_chown
|
7
|
+
npm install
|
8
|
+
npm audit fix
|
9
|
+
npx husky install
|
10
|
+
bundle check || bundle
|
11
|
+
|
12
|
+
devcon_chown:
|
13
|
+
sudo chown vscode:vscode -R /bundle
|
14
|
+
sudo chown vscode:vscode -R .
|
15
|
+
|
16
|
+
################################################################################
|
17
|
+
# RELEASE STUFF
|
18
|
+
|
19
|
+
minor:
|
20
|
+
bump minor
|
21
|
+
|
22
|
+
patch:
|
23
|
+
bump patch
|
24
|
+
|
25
|
+
major:
|
26
|
+
bump major
|
27
|
+
|
28
|
+
build:
|
29
|
+
gem build ropen_pi.gemspec
|
30
|
+
|
31
|
+
_VERSION=$(shell bump current | sed 's/Current version: //')
|
32
|
+
push: build
|
33
|
+
gem push ropen_pi-${_VERSION}.gem
|
34
|
+
|
35
|
+
################################################################################
|
36
|
+
# HELPER
|
37
|
+
|
38
|
+
lint:
|
39
|
+
rubocop
|
40
|
+
|
41
|
+
lint_fix:
|
42
|
+
rubocop -A
|
data/README.md
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
[](https://conventionalcommits.org)
|
2
|
+
|
1
3
|
# RopenPi
|
2
4
|
|
3
5
|
This is a fork of the [open-api-rswag gem](https://github.com/jdanielian/open-api-rswag).
|
@@ -9,11 +11,6 @@ In future releases this gem will provide a basic example of how this will look l
|
|
9
11
|
|
10
12
|
In the mean time this will remain a WIP :)
|
11
13
|
|
12
|
-
|
13
|
-
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/ropen_pi`. To experiment with that code, run `bin/console` for an interactive prompt.
|
14
|
-
|
15
|
-
TODO: Delete this and the text above, and describe your gem
|
16
|
-
|
17
14
|
## Installation
|
18
15
|
|
19
16
|
Add this line to your application's Gemfile:
|
@@ -40,9 +37,12 @@ TODO: Write usage instructions here
|
|
40
37
|
|
41
38
|
## Development
|
42
39
|
|
43
|
-
|
40
|
+
So you have decided to contribute?! This sounds great!
|
41
|
+
To make it super easy to start the only thing you have to have installed is Docker.
|
42
|
+
Then you can just use the batteries-included DevContainer for VSCode.
|
44
43
|
|
45
|
-
|
44
|
+
There is a lot of documentation on getting started with this kind of development.
|
45
|
+
If you are kind of new to this please make sure to read the offical [docs over at Microsoft](https://code.visualstudio.com/docs/remote/containers).
|
46
46
|
|
47
47
|
## Contributing
|
48
48
|
|
data/examples/.envrc
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#!/bin/bash
|
2
2
|
|
3
|
-
export SVC_SHORT="
|
3
|
+
export SVC_SHORT="rope-n-pi"
|
4
4
|
export SVC_NAME="${SVC_SHORT}-svc"
|
5
5
|
export SVC_DESCRIPTION="short description of: ${SVC_NAME}"
|
6
6
|
export SVC_HOST_NAME=${SVC_NAME}.localhost
|
@@ -11,4 +11,4 @@ export DB_USER="${SVC_NAME}_db_user"
|
|
11
11
|
export DB_PASSWORD="MegaUltimatelySafeHyperPassword-ButPleaseDONTuseME!"
|
12
12
|
export DB_EXPOSED_PORT=10654
|
13
13
|
export SWAGGER_ENDPOINT=https://${SVC_NAME}.localhost/api/v1/${SVC_SHORT}/describe
|
14
|
-
export RUBY_IMAGE_VERSION=2.7.
|
14
|
+
export RUBY_IMAGE_VERSION=2.7.4-slim-buster
|
data/examples/Gemfile
CHANGED
@@ -1,22 +1,19 @@
|
|
1
1
|
source 'https://rubygems.org'
|
2
2
|
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
|
3
3
|
|
4
|
-
|
5
|
-
|
6
|
-
gem '
|
7
|
-
gem '
|
8
|
-
gem '
|
9
|
-
gem 'bootsnap', '>= 1.4.2', require: false
|
10
|
-
gem 'rack-cors', '>= 1.0.6'
|
4
|
+
gem 'rails', '6.1.4.4'
|
5
|
+
gem 'pg', '1.2.3'
|
6
|
+
gem 'puma', '5.5.2'
|
7
|
+
gem 'bootsnap', '1.10.1', require: false
|
8
|
+
gem 'rack-cors', '1.1.1'
|
11
9
|
|
12
10
|
group :development do
|
13
11
|
gem 'spring'
|
14
|
-
gem 'spring-watcher-listen', '
|
12
|
+
gem 'spring-watcher-listen', '2.0.1'
|
15
13
|
end
|
16
14
|
|
17
15
|
group :development, :test do
|
18
|
-
gem '
|
19
|
-
gem 'listen', '>= 3.0.5', '< 3.2'
|
16
|
+
gem 'listen', '3.7.1'
|
20
17
|
gem 'factory_bot_rails'
|
21
18
|
gem 'rubocop', '~> 0.79.0', require: false
|
22
19
|
gem 'rubocop-rails', require: false
|
data/examples/Gemfile.lock
CHANGED
@@ -94,14 +94,17 @@ GEM
|
|
94
94
|
marcel (0.3.3)
|
95
95
|
mimemagic (~> 0.3.2)
|
96
96
|
method_source (0.9.2)
|
97
|
-
mimemagic (0.3.
|
97
|
+
mimemagic (0.3.10)
|
98
|
+
nokogiri (~> 1)
|
99
|
+
rake
|
98
100
|
mini_mime (1.0.2)
|
99
|
-
mini_portile2 (2.
|
101
|
+
mini_portile2 (2.6.1)
|
100
102
|
minitest (5.14.0)
|
101
103
|
msgpack (1.3.1)
|
102
|
-
nio4r (2.5.
|
103
|
-
nokogiri (1.
|
104
|
-
mini_portile2 (~> 2.
|
104
|
+
nio4r (2.5.8)
|
105
|
+
nokogiri (1.12.5)
|
106
|
+
mini_portile2 (~> 2.6.1)
|
107
|
+
racc (~> 1.4)
|
105
108
|
parallel (1.19.1)
|
106
109
|
parser (2.7.0.2)
|
107
110
|
ast (~> 2.4.0)
|
@@ -117,9 +120,10 @@ GEM
|
|
117
120
|
pry-stack_explorer (0.4.9.3)
|
118
121
|
binding_of_caller (>= 0.7)
|
119
122
|
pry (>= 0.9.11)
|
120
|
-
puma (4.3.
|
123
|
+
puma (4.3.9)
|
121
124
|
nio4r (~> 2.0)
|
122
|
-
|
125
|
+
racc (1.5.2)
|
126
|
+
rack (2.2.3)
|
123
127
|
rack-cors (1.1.1)
|
124
128
|
rack (>= 2.0.0)
|
125
129
|
rack-test (1.1.0)
|
@@ -202,7 +206,7 @@ GEM
|
|
202
206
|
unicode-display_width (1.6.0)
|
203
207
|
websocket-driver (0.7.1)
|
204
208
|
websocket-extensions (>= 0.1.0)
|
205
|
-
websocket-extensions (0.1.
|
209
|
+
websocket-extensions (0.1.5)
|
206
210
|
zeitwerk (2.2.2)
|
207
211
|
|
208
212
|
PLATFORMS
|
@@ -218,7 +222,7 @@ DEPENDENCIES
|
|
218
222
|
pry-byebug
|
219
223
|
pry-rails
|
220
224
|
pry-stack_explorer
|
221
|
-
puma (~> 4.3.
|
225
|
+
puma (~> 4.3.9)
|
222
226
|
rack-cors (>= 1.0.6)
|
223
227
|
rails (~> 6.0.0)
|
224
228
|
rspec-rails
|
data/examples/docker-compose.yml
CHANGED
@@ -11,10 +11,6 @@ x-shared-env: &shared
|
|
11
11
|
|
12
12
|
networks:
|
13
13
|
net__backend: ~
|
14
|
-
|
15
|
-
netext__traefik:
|
16
|
-
external: true
|
17
|
-
|
18
14
|
volumes:
|
19
15
|
# saves the gems as a mount that's used by docker
|
20
16
|
bundle: ~
|
@@ -51,7 +47,7 @@ services:
|
|
51
47
|
POSTGRES_USER: ${DB_USER}
|
52
48
|
POSTGRES_PASSWORD: ${DB_PASSWORD}
|
53
49
|
POSTGRES_DB: ${DB_NAME}
|
54
|
-
image: postgres:
|
50
|
+
image: postgres:12-alpine
|
55
51
|
networks:
|
56
52
|
- net__backend
|
57
53
|
ports:
|
@@ -1,11 +1,12 @@
|
|
1
1
|
require 'rails/generators'
|
2
|
+
module Generators
|
3
|
+
module RopenPi
|
4
|
+
class InstallGenerator < Rails::Generators::Base
|
5
|
+
source_root File.expand_path('templates', __dir__)
|
2
6
|
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
def add_open_api_helper
|
8
|
-
template('ropen_pi_helper.rb', 'spec/ropen_pi_helper.rb')
|
7
|
+
def add_open_api_helper
|
8
|
+
template('ropen_pi_helper.rb', 'spec/ropen_pi_helper.rb')
|
9
|
+
end
|
9
10
|
end
|
10
11
|
end
|
11
12
|
end
|