ruby_npm 0.1.0.pre.2 → 0.1.0.pre.3
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/Gemfile.lock +13 -13
- data/lib/ruby_npm/commands/base.rb +1 -1
- data/lib/ruby_npm/commands/run_script.rb +45 -0
- data/lib/ruby_npm/commands.rb +1 -0
- data/lib/ruby_npm/options/definitions.rb +6 -5
- data/lib/ruby_npm/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 237ebd0f181a703bb4eab351730cebbda23dcb98925fa807b07e34d35e2f3252
|
4
|
+
data.tar.gz: c27b634150d240bb86034e7c69a582b00426f9e7d1aae732a1464293711dea40
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 70d379c15bc4163adccdeb05fd083a57ce80808ae4d73da8025bf70ffe219e425d6d0747c52b88db2d765c72b6346451f03860c721d15d9aded0c2fc43167428
|
7
|
+
data.tar.gz: b142252fd0bcdc4a5608352d265302c2f75975e8e116a6b7997d493c9e4df4821b6d342295392a9cf3241c1e54e18ce47d0ed53b03f92651355a174b58ec82c2
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
ruby_npm (0.1.0.pre.
|
4
|
+
ruby_npm (0.1.0.pre.3)
|
5
5
|
immutable-struct (~> 2.4)
|
6
6
|
lino (~> 3.0)
|
7
7
|
|
@@ -59,12 +59,12 @@ GEM
|
|
59
59
|
rb-inotify (~> 0.9, >= 0.9.10)
|
60
60
|
lumberjack (1.2.8)
|
61
61
|
method_source (1.0.0)
|
62
|
-
minitest (5.
|
62
|
+
minitest (5.17.0)
|
63
63
|
nenv (0.3.0)
|
64
64
|
notiffany (0.1.3)
|
65
65
|
nenv (~> 0.1)
|
66
66
|
shellany (~> 0.0)
|
67
|
-
octokit (
|
67
|
+
octokit (6.0.1)
|
68
68
|
faraday (>= 1, < 3)
|
69
69
|
sawyer (~> 0.9)
|
70
70
|
open4 (1.3.4)
|
@@ -85,15 +85,15 @@ GEM
|
|
85
85
|
rake_factory (0.31.0)
|
86
86
|
activesupport (>= 4)
|
87
87
|
rake (~> 13.0)
|
88
|
-
rake_github (0.
|
88
|
+
rake_github (0.11.0)
|
89
89
|
colored2 (~> 3.1)
|
90
|
-
octokit (
|
90
|
+
octokit (>= 4.16, < 7.0)
|
91
91
|
rake_factory (~> 0.23)
|
92
92
|
sshkey (~> 2.0)
|
93
|
-
rake_gpg (0.
|
94
|
-
rake_factory (
|
95
|
-
ruby_gpg2 (
|
96
|
-
rake_ssh (0.
|
93
|
+
rake_gpg (0.18.0)
|
94
|
+
rake_factory (~> 0.23)
|
95
|
+
ruby_gpg2 (~> 0.6)
|
96
|
+
rake_ssh (0.8.0)
|
97
97
|
colored2 (~> 3.1)
|
98
98
|
rake_factory (~> 0.23)
|
99
99
|
sshkey (~> 2.0)
|
@@ -115,17 +115,17 @@ GEM
|
|
115
115
|
diff-lcs (>= 1.2.0, < 2.0)
|
116
116
|
rspec-support (~> 3.12.0)
|
117
117
|
rspec-support (3.12.0)
|
118
|
-
rubocop (1.
|
118
|
+
rubocop (1.42.0)
|
119
119
|
json (~> 2.3)
|
120
120
|
parallel (~> 1.10)
|
121
121
|
parser (>= 3.1.2.1)
|
122
122
|
rainbow (>= 2.2.2, < 4.0)
|
123
123
|
regexp_parser (>= 1.8, < 3.0)
|
124
124
|
rexml (>= 3.2.5, < 4.0)
|
125
|
-
rubocop-ast (>= 1.
|
125
|
+
rubocop-ast (>= 1.24.1, < 2.0)
|
126
126
|
ruby-progressbar (~> 1.7)
|
127
127
|
unicode-display_width (>= 1.4.0, < 3.0)
|
128
|
-
rubocop-ast (1.24.
|
128
|
+
rubocop-ast (1.24.1)
|
129
129
|
parser (>= 3.1.1.0)
|
130
130
|
rubocop-rake (0.6.0)
|
131
131
|
rubocop (~> 1.0)
|
@@ -182,4 +182,4 @@ DEPENDENCIES
|
|
182
182
|
yard
|
183
183
|
|
184
184
|
BUNDLED WITH
|
185
|
-
2.4.
|
185
|
+
2.4.2
|
@@ -74,7 +74,7 @@ module RubyNPM
|
|
74
74
|
.for_command(@binary)
|
75
75
|
.with_environment_variables(environment)
|
76
76
|
.with_options_after_subcommands
|
77
|
-
.with_option_separator('
|
77
|
+
.with_option_separator(' ')
|
78
78
|
.with_appliables(@options.resolve(options, parameters))
|
79
79
|
.with_subcommands(subcommands)
|
80
80
|
.with_arguments(arguments(parameters).compact.flatten).build
|
@@ -0,0 +1,45 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative 'base'
|
4
|
+
|
5
|
+
module RubyNPM
|
6
|
+
module Commands
|
7
|
+
class RunScript < Base
|
8
|
+
# @!visibility private
|
9
|
+
def subcommands
|
10
|
+
%w[run-script]
|
11
|
+
end
|
12
|
+
|
13
|
+
# @!visibility private
|
14
|
+
# rubocop:disable Metrics/MethodLength
|
15
|
+
def options
|
16
|
+
%w[
|
17
|
+
--color
|
18
|
+
--foreground-scripts
|
19
|
+
--if-present
|
20
|
+
--ignore-scripts
|
21
|
+
--include-workspace-root
|
22
|
+
--json
|
23
|
+
--loglevel
|
24
|
+
--logs-dir
|
25
|
+
--logs-max
|
26
|
+
--parseable
|
27
|
+
--quiet
|
28
|
+
--script-shell
|
29
|
+
--silent
|
30
|
+
--verbose
|
31
|
+
--workspace
|
32
|
+
--workspaces
|
33
|
+
] + super
|
34
|
+
end
|
35
|
+
# rubocop:enable Metrics/MethodLength
|
36
|
+
|
37
|
+
def arguments(parameters)
|
38
|
+
script_arguments =
|
39
|
+
parameters[:arguments] ? ['--'] + parameters[:arguments] : []
|
40
|
+
|
41
|
+
[parameters[:script]] + script_arguments
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
data/lib/ruby_npm/commands.rb
CHANGED
@@ -15,7 +15,7 @@ module RubyNPM
|
|
15
15
|
}.map do |key, name|
|
16
16
|
definition(
|
17
17
|
name: name, option_type: :standard, value_type: :string,
|
18
|
-
repeatable: true,
|
18
|
+
repeatable: true,
|
19
19
|
override_keys: { singular: false, plural: key }
|
20
20
|
)
|
21
21
|
end,
|
@@ -32,8 +32,7 @@ module RubyNPM
|
|
32
32
|
--workspace
|
33
33
|
].map do |o|
|
34
34
|
definition(
|
35
|
-
name: o, option_type: :standard, value_type: :string
|
36
|
-
separator: ' '
|
35
|
+
name: o, option_type: :standard, value_type: :string
|
37
36
|
)
|
38
37
|
end,
|
39
38
|
|
@@ -56,12 +55,15 @@ module RubyNPM
|
|
56
55
|
--fund
|
57
56
|
--global
|
58
57
|
--global-style
|
58
|
+
--if-present
|
59
59
|
--ignore-scripts
|
60
60
|
--include-workspace-root
|
61
61
|
--install-links
|
62
|
+
--json
|
62
63
|
--legacy-bundling
|
63
64
|
--package-lock
|
64
65
|
--package-lock-only
|
66
|
+
--parseable
|
65
67
|
--production
|
66
68
|
--save
|
67
69
|
--save-bundle
|
@@ -73,8 +75,7 @@ module RubyNPM
|
|
73
75
|
--strict-peer-deps
|
74
76
|
].map do |o|
|
75
77
|
definition(
|
76
|
-
name: o, option_type: :standard, value_type: :boolean
|
77
|
-
separator: ' '
|
78
|
+
name: o, option_type: :standard, value_type: :boolean
|
78
79
|
)
|
79
80
|
end
|
80
81
|
].flatten.freeze
|
data/lib/ruby_npm/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby_npm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.0.pre.
|
4
|
+
version: 0.1.0.pre.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- InfraBlocks Maintainers
|
@@ -295,6 +295,7 @@ files:
|
|
295
295
|
- lib/ruby_npm/commands.rb
|
296
296
|
- lib/ruby_npm/commands/base.rb
|
297
297
|
- lib/ruby_npm/commands/install.rb
|
298
|
+
- lib/ruby_npm/commands/run_script.rb
|
298
299
|
- lib/ruby_npm/errors.rb
|
299
300
|
- lib/ruby_npm/errors/execution_error.rb
|
300
301
|
- lib/ruby_npm/options.rb
|