jets-cli 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +90 -86
- data/README.md +13 -2
- data/bin/jets +1 -2
- data/jets-cli.gemspec +2 -2
- data/lib/jets-cli.rb +3 -0
- data/lib/jets/cli/main.rb +25 -6
- data/lib/jets/cli/version.rb +1 -1
- metadata +7 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '069ea268253a413488acf77b2ffff85a018d817642e4a41aa507652a781d0219'
|
4
|
+
data.tar.gz: ad2ccd34f768dc097899ed3b0ee9acf4805d6d88e5614dec37c4df556327a5ac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a58993294154bb9bb1f675d9e8211f3ebf4af67c431a69bf7367dc9daa3353c440893ba31c290fcb288a25e97a38e3ce0d2cb3b3708dd377b3043fbb5940f61f
|
7
|
+
data.tar.gz: 41adac03e3e3b0674c8c8305e01700f0d80fbe38a504bc9a9b0e9052fb61e305225f143f4a35fe4276af2e7296fafc28ce20f61e1e8621860d417e04ad73e38f
|
data/Gemfile.lock
CHANGED
@@ -2,79 +2,83 @@ PATH
|
|
2
2
|
remote: ../jets-rubocop
|
3
3
|
specs:
|
4
4
|
jets-rubocop (0.1.0)
|
5
|
-
fuubar (
|
6
|
-
pry
|
7
|
-
rspec-instafail (
|
8
|
-
rspec_junit_formatter (
|
9
|
-
rubocop-rails
|
10
|
-
rubocop-rspec
|
5
|
+
fuubar (>= 2.5)
|
6
|
+
pry
|
7
|
+
rspec-instafail (>= 1.0)
|
8
|
+
rspec_junit_formatter (>= 0.4)
|
9
|
+
rubocop-rails
|
10
|
+
rubocop-rspec
|
11
11
|
standard (~> 0.3.0)
|
12
12
|
|
13
13
|
PATH
|
14
14
|
remote: .
|
15
15
|
specs:
|
16
|
-
jets-cli (0.1.
|
17
|
-
rails (~> 6.
|
16
|
+
jets-cli (0.1.1)
|
17
|
+
rails (~> 6.1)
|
18
18
|
thor (~> 1.0)
|
19
19
|
|
20
20
|
GEM
|
21
21
|
remote: https://rubygems.org/
|
22
22
|
specs:
|
23
|
-
actioncable (6.
|
24
|
-
actionpack (= 6.
|
23
|
+
actioncable (6.1.3.1)
|
24
|
+
actionpack (= 6.1.3.1)
|
25
|
+
activesupport (= 6.1.3.1)
|
25
26
|
nio4r (~> 2.0)
|
26
27
|
websocket-driver (>= 0.6.1)
|
27
|
-
actionmailbox (6.
|
28
|
-
actionpack (= 6.
|
29
|
-
activejob (= 6.
|
30
|
-
activerecord (= 6.
|
31
|
-
activestorage (= 6.
|
32
|
-
activesupport (= 6.
|
28
|
+
actionmailbox (6.1.3.1)
|
29
|
+
actionpack (= 6.1.3.1)
|
30
|
+
activejob (= 6.1.3.1)
|
31
|
+
activerecord (= 6.1.3.1)
|
32
|
+
activestorage (= 6.1.3.1)
|
33
|
+
activesupport (= 6.1.3.1)
|
33
34
|
mail (>= 2.7.1)
|
34
|
-
actionmailer (6.
|
35
|
-
actionpack (= 6.
|
36
|
-
actionview (= 6.
|
37
|
-
activejob (= 6.
|
35
|
+
actionmailer (6.1.3.1)
|
36
|
+
actionpack (= 6.1.3.1)
|
37
|
+
actionview (= 6.1.3.1)
|
38
|
+
activejob (= 6.1.3.1)
|
39
|
+
activesupport (= 6.1.3.1)
|
38
40
|
mail (~> 2.5, >= 2.5.4)
|
39
41
|
rails-dom-testing (~> 2.0)
|
40
|
-
actionpack (6.
|
41
|
-
actionview (= 6.
|
42
|
-
activesupport (= 6.
|
43
|
-
rack (~> 2.0, >= 2.0.
|
42
|
+
actionpack (6.1.3.1)
|
43
|
+
actionview (= 6.1.3.1)
|
44
|
+
activesupport (= 6.1.3.1)
|
45
|
+
rack (~> 2.0, >= 2.0.9)
|
44
46
|
rack-test (>= 0.6.3)
|
45
47
|
rails-dom-testing (~> 2.0)
|
46
48
|
rails-html-sanitizer (~> 1.0, >= 1.2.0)
|
47
|
-
actiontext (6.
|
48
|
-
actionpack (= 6.
|
49
|
-
activerecord (= 6.
|
50
|
-
activestorage (= 6.
|
51
|
-
activesupport (= 6.
|
49
|
+
actiontext (6.1.3.1)
|
50
|
+
actionpack (= 6.1.3.1)
|
51
|
+
activerecord (= 6.1.3.1)
|
52
|
+
activestorage (= 6.1.3.1)
|
53
|
+
activesupport (= 6.1.3.1)
|
52
54
|
nokogiri (>= 1.8.5)
|
53
|
-
actionview (6.
|
54
|
-
activesupport (= 6.
|
55
|
+
actionview (6.1.3.1)
|
56
|
+
activesupport (= 6.1.3.1)
|
55
57
|
builder (~> 3.1)
|
56
58
|
erubi (~> 1.4)
|
57
59
|
rails-dom-testing (~> 2.0)
|
58
60
|
rails-html-sanitizer (~> 1.1, >= 1.2.0)
|
59
|
-
activejob (6.
|
60
|
-
activesupport (= 6.
|
61
|
+
activejob (6.1.3.1)
|
62
|
+
activesupport (= 6.1.3.1)
|
61
63
|
globalid (>= 0.3.6)
|
62
|
-
activemodel (6.
|
63
|
-
activesupport (= 6.
|
64
|
-
activerecord (6.
|
65
|
-
activemodel (= 6.
|
66
|
-
activesupport (= 6.
|
67
|
-
activestorage (6.
|
68
|
-
actionpack (= 6.
|
69
|
-
activejob (= 6.
|
70
|
-
activerecord (= 6.
|
71
|
-
|
72
|
-
|
64
|
+
activemodel (6.1.3.1)
|
65
|
+
activesupport (= 6.1.3.1)
|
66
|
+
activerecord (6.1.3.1)
|
67
|
+
activemodel (= 6.1.3.1)
|
68
|
+
activesupport (= 6.1.3.1)
|
69
|
+
activestorage (6.1.3.1)
|
70
|
+
actionpack (= 6.1.3.1)
|
71
|
+
activejob (= 6.1.3.1)
|
72
|
+
activerecord (= 6.1.3.1)
|
73
|
+
activesupport (= 6.1.3.1)
|
74
|
+
marcel (~> 1.0.0)
|
75
|
+
mini_mime (~> 1.0.2)
|
76
|
+
activesupport (6.1.3.1)
|
73
77
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
74
|
-
i18n (>=
|
75
|
-
minitest (
|
76
|
-
tzinfo (~>
|
77
|
-
zeitwerk (~> 2.
|
78
|
+
i18n (>= 1.6, < 2)
|
79
|
+
minitest (>= 5.1)
|
80
|
+
tzinfo (~> 2.0)
|
81
|
+
zeitwerk (~> 2.3)
|
78
82
|
aruba (1.0.3)
|
79
83
|
childprocess (>= 2.0, < 5.0)
|
80
84
|
contracts (~> 0.16.0)
|
@@ -86,7 +90,7 @@ GEM
|
|
86
90
|
builder (3.2.4)
|
87
91
|
childprocess (4.0.0)
|
88
92
|
coderay (1.1.3)
|
89
|
-
concurrent-ruby (1.1.
|
93
|
+
concurrent-ruby (1.1.8)
|
90
94
|
contracts (0.16.0)
|
91
95
|
crass (1.0.6)
|
92
96
|
cucumber (5.2.0)
|
@@ -128,26 +132,25 @@ GEM
|
|
128
132
|
ruby-progressbar (~> 1.4)
|
129
133
|
globalid (0.4.2)
|
130
134
|
activesupport (>= 4.2.0)
|
131
|
-
i18n (1.8.
|
135
|
+
i18n (1.8.10)
|
132
136
|
concurrent-ruby (~> 1.0)
|
133
137
|
jaro_winkler (1.5.4)
|
134
|
-
loofah (2.
|
138
|
+
loofah (2.9.0)
|
135
139
|
crass (~> 1.0.2)
|
136
140
|
nokogiri (>= 1.5.9)
|
137
141
|
mail (2.7.1)
|
138
142
|
mini_mime (>= 0.1.1)
|
139
|
-
marcel (0.
|
140
|
-
mimemagic (~> 0.3.2)
|
143
|
+
marcel (1.0.0)
|
141
144
|
method_source (1.0.0)
|
142
145
|
middleware (0.1.0)
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
minitest (5.14.2)
|
146
|
+
mini_mime (1.0.3)
|
147
|
+
mini_portile2 (2.5.0)
|
148
|
+
minitest (5.14.4)
|
147
149
|
multi_test (0.1.2)
|
148
|
-
nio4r (2.5.
|
149
|
-
nokogiri (1.
|
150
|
-
mini_portile2 (~> 2.
|
150
|
+
nio4r (2.5.7)
|
151
|
+
nokogiri (1.11.2)
|
152
|
+
mini_portile2 (~> 2.5.0)
|
153
|
+
racc (~> 1.4)
|
151
154
|
parallel (1.20.1)
|
152
155
|
parser (2.7.2.0)
|
153
156
|
ast (~> 2.4.1)
|
@@ -159,35 +162,36 @@ GEM
|
|
159
162
|
pry (0.13.1)
|
160
163
|
coderay (~> 1.1)
|
161
164
|
method_source (~> 1.0)
|
165
|
+
racc (1.5.2)
|
162
166
|
rack (2.2.3)
|
163
167
|
rack-test (1.1.0)
|
164
168
|
rack (>= 1.0, < 3)
|
165
|
-
rails (6.
|
166
|
-
actioncable (= 6.
|
167
|
-
actionmailbox (= 6.
|
168
|
-
actionmailer (= 6.
|
169
|
-
actionpack (= 6.
|
170
|
-
actiontext (= 6.
|
171
|
-
actionview (= 6.
|
172
|
-
activejob (= 6.
|
173
|
-
activemodel (= 6.
|
174
|
-
activerecord (= 6.
|
175
|
-
activestorage (= 6.
|
176
|
-
activesupport (= 6.
|
177
|
-
bundler (>= 1.
|
178
|
-
railties (= 6.
|
169
|
+
rails (6.1.3.1)
|
170
|
+
actioncable (= 6.1.3.1)
|
171
|
+
actionmailbox (= 6.1.3.1)
|
172
|
+
actionmailer (= 6.1.3.1)
|
173
|
+
actionpack (= 6.1.3.1)
|
174
|
+
actiontext (= 6.1.3.1)
|
175
|
+
actionview (= 6.1.3.1)
|
176
|
+
activejob (= 6.1.3.1)
|
177
|
+
activemodel (= 6.1.3.1)
|
178
|
+
activerecord (= 6.1.3.1)
|
179
|
+
activestorage (= 6.1.3.1)
|
180
|
+
activesupport (= 6.1.3.1)
|
181
|
+
bundler (>= 1.15.0)
|
182
|
+
railties (= 6.1.3.1)
|
179
183
|
sprockets-rails (>= 2.0.0)
|
180
184
|
rails-dom-testing (2.0.3)
|
181
185
|
activesupport (>= 4.2.0)
|
182
186
|
nokogiri (>= 1.6)
|
183
187
|
rails-html-sanitizer (1.3.0)
|
184
188
|
loofah (~> 2.3)
|
185
|
-
railties (6.
|
186
|
-
actionpack (= 6.
|
187
|
-
activesupport (= 6.
|
189
|
+
railties (6.1.3.1)
|
190
|
+
actionpack (= 6.1.3.1)
|
191
|
+
activesupport (= 6.1.3.1)
|
188
192
|
method_source
|
189
193
|
rake (>= 0.8.7)
|
190
|
-
thor (
|
194
|
+
thor (~> 1.0)
|
191
195
|
rainbow (3.0.0)
|
192
196
|
rake (12.3.3)
|
193
197
|
rexml (3.2.4)
|
@@ -195,17 +199,17 @@ GEM
|
|
195
199
|
rspec-core (~> 3.10.0)
|
196
200
|
rspec-expectations (~> 3.10.0)
|
197
201
|
rspec-mocks (~> 3.10.0)
|
198
|
-
rspec-core (3.10.
|
202
|
+
rspec-core (3.10.1)
|
199
203
|
rspec-support (~> 3.10.0)
|
200
|
-
rspec-expectations (3.10.
|
204
|
+
rspec-expectations (3.10.1)
|
201
205
|
diff-lcs (>= 1.2.0, < 2.0)
|
202
206
|
rspec-support (~> 3.10.0)
|
203
207
|
rspec-instafail (1.0.0)
|
204
208
|
rspec
|
205
|
-
rspec-mocks (3.10.
|
209
|
+
rspec-mocks (3.10.2)
|
206
210
|
diff-lcs (>= 1.2.0, < 2.0)
|
207
211
|
rspec-support (~> 3.10.0)
|
208
|
-
rspec-support (3.10.
|
212
|
+
rspec-support (3.10.2)
|
209
213
|
rspec_junit_formatter (0.4.1)
|
210
214
|
rspec-core (>= 2, < 4, != 2.12.0)
|
211
215
|
rubocop (0.82.0)
|
@@ -237,10 +241,10 @@ GEM
|
|
237
241
|
rubocop-performance (~> 1.5.2)
|
238
242
|
sys-uname (1.2.2)
|
239
243
|
ffi (~> 1.1)
|
240
|
-
thor (1.0
|
244
|
+
thor (1.1.0)
|
241
245
|
thread_safe (0.3.6)
|
242
|
-
tzinfo (
|
243
|
-
|
246
|
+
tzinfo (2.0.4)
|
247
|
+
concurrent-ruby (~> 1.0)
|
244
248
|
unicode-display_width (1.7.0)
|
245
249
|
websocket-driver (0.7.3)
|
246
250
|
websocket-extensions (>= 0.1.0)
|
@@ -260,4 +264,4 @@ DEPENDENCIES
|
|
260
264
|
rspec (~> 3.0)
|
261
265
|
|
262
266
|
BUNDLED WITH
|
263
|
-
2.
|
267
|
+
2.2.15
|
data/README.md
CHANGED
@@ -22,7 +22,18 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
22
22
|
|
23
23
|
Bug reports and pull requests are welcome on GitHub at https://github.com/getjets/jets-cli.
|
24
24
|
|
25
|
-
|
26
25
|
## License
|
27
26
|
|
28
|
-
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
27
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
28
|
+
|
29
|
+
## Credits
|
30
|
+
|
31
|
+
Original inspiration for the Jets project comes from [Vladimir Dementyev's](https://github.com/palkan)
|
32
|
+
excellent presentation on component-based Rails monolith applications and his [Engems](https://github.com/palkan/engems)
|
33
|
+
showcase repository.
|
34
|
+
|
35
|
+
Code:
|
36
|
+
- [Engems](https://github.com/palkan/engems)
|
37
|
+
|
38
|
+
Talks:
|
39
|
+
- [Between monoliths and microservices](https://noti.st/palkan/VWPOSd/between-monoliths-and-microservices)
|
data/bin/jets
CHANGED
data/jets-cli.gemspec
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
require_relative "lib/jets/cli/version"
|
4
4
|
|
5
|
-
rails_version = "~> 6.
|
5
|
+
rails_version = "~> 6.1"
|
6
6
|
|
7
7
|
Gem::Specification.new do |spec|
|
8
8
|
spec.name = "jets-cli"
|
@@ -13,7 +13,7 @@ Gem::Specification.new do |spec|
|
|
13
13
|
spec.description = "Jets CLI for using Jets with your Rails application"
|
14
14
|
spec.homepage = "https://github.com/getjets/jets-cli"
|
15
15
|
spec.license = "MIT"
|
16
|
-
spec.required_ruby_version = Gem::Requirement.new(">=
|
16
|
+
spec.required_ruby_version = Gem::Requirement.new(">= 3.0.0")
|
17
17
|
|
18
18
|
spec.metadata["homepage_uri"] = spec.homepage
|
19
19
|
spec.metadata["source_code_uri"] = "https://github.com/getjets/jets-cli"
|
data/lib/jets-cli.rb
ADDED
data/lib/jets/cli/main.rb
CHANGED
@@ -55,24 +55,41 @@ module Jets
|
|
55
55
|
end
|
56
56
|
|
57
57
|
def method_missing(engine_or_gem, *args)
|
58
|
-
options =
|
58
|
+
options =
|
59
59
|
case engine_or_gem.to_s
|
60
60
|
when "all"
|
61
|
-
{
|
61
|
+
{all: true}
|
62
62
|
when "all-gems"
|
63
|
-
{
|
63
|
+
{all_gems: true}
|
64
64
|
when "all-engines"
|
65
|
-
{
|
65
|
+
{all_engines: true}
|
66
66
|
when *engines
|
67
|
-
{
|
67
|
+
{engine: engine_or_gem.to_s}
|
68
68
|
when *gems
|
69
|
-
{
|
69
|
+
{engine: engine_or_gem.to_s, gem: true}
|
70
70
|
end
|
71
71
|
|
72
72
|
return super if options.nil?
|
73
73
|
|
74
74
|
self.class.start(args, class_options: options)
|
75
75
|
end
|
76
|
+
|
77
|
+
def respond_to_missing?(engine_or_gem, *args)
|
78
|
+
case engine_or_gem.to_s
|
79
|
+
when "all"
|
80
|
+
true
|
81
|
+
when "all-gems"
|
82
|
+
true
|
83
|
+
when "all-engines"
|
84
|
+
true
|
85
|
+
when *engines
|
86
|
+
true
|
87
|
+
when *gems
|
88
|
+
true
|
89
|
+
else
|
90
|
+
false
|
91
|
+
end
|
92
|
+
end
|
76
93
|
|
77
94
|
private
|
78
95
|
|
@@ -101,6 +118,7 @@ module Jets
|
|
101
118
|
end
|
102
119
|
end
|
103
120
|
|
121
|
+
# rubocop:disable Lint/MixedRegexpCaptureTypes
|
104
122
|
def exec_command(*args)
|
105
123
|
if engine.nil? || engine.empty?
|
106
124
|
@engine = args.each do |arg|
|
@@ -117,6 +135,7 @@ module Jets
|
|
117
135
|
|
118
136
|
subshell(engine_root, *args)
|
119
137
|
end
|
138
|
+
# rubocop:enable Lint/MixedRegexpCaptureTypes
|
120
139
|
|
121
140
|
def subshell(dir, command, *args)
|
122
141
|
Bundler.with_original_env do
|
data/lib/jets/cli/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jets-cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lauri Jutila
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-04-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '6.
|
19
|
+
version: '6.1'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '6.
|
26
|
+
version: '6.1'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: thor
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -142,6 +142,7 @@ files:
|
|
142
142
|
- bin/jets
|
143
143
|
- bin/setup
|
144
144
|
- jets-cli.gemspec
|
145
|
+
- lib/jets-cli.rb
|
145
146
|
- lib/jets/cli.rb
|
146
147
|
- lib/jets/cli/exceptions.rb
|
147
148
|
- lib/jets/cli/main.rb
|
@@ -160,14 +161,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
160
161
|
requirements:
|
161
162
|
- - ">="
|
162
163
|
- !ruby/object:Gem::Version
|
163
|
-
version:
|
164
|
+
version: 3.0.0
|
164
165
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
165
166
|
requirements:
|
166
167
|
- - ">="
|
167
168
|
- !ruby/object:Gem::Version
|
168
169
|
version: '0'
|
169
170
|
requirements: []
|
170
|
-
rubygems_version: 3.
|
171
|
+
rubygems_version: 3.2.3
|
171
172
|
signing_key:
|
172
173
|
specification_version: 4
|
173
174
|
summary: Jets CLI
|