ruby_npm 0.1.0.pre.4 → 0.1.0.pre.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/ruby_npm/options/definitions.rb +9 -0
- data/lib/ruby_npm/options/sets.rb +1 -0
- data/lib/ruby_npm/version.rb +1 -1
- data/lib/ruby_npm.rb +10 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ce491bb0461af039ab87e58c633f81038fa896566366305b7f03b3b86f0f5d04
|
4
|
+
data.tar.gz: 30395ff9775bd4152c6732faf64537416785923fc8fe3d9162a4e508a99cec43
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3282e0ab171c6f3989a23ea776426b3f8d10c7f9680935ca7597de7a801b52f226e922c31e545810aa54112405ed55cfab9c9ee844412889acd9764c87ff6bf8
|
7
|
+
data.tar.gz: 13a971beafa8bf2384c508412f24a4b4b90dbe16df3e839a67e5b405329eb616c67dfd9ecf620d323d85b546f85964c786d1856b5aac8efda6840c7d119b7ad1
|
data/Gemfile.lock
CHANGED
@@ -64,6 +64,15 @@ module RubyNPM
|
|
64
64
|
].flatten.freeze
|
65
65
|
|
66
66
|
DEPENDENCY_DEFINITIONS = [
|
67
|
+
# string options
|
68
|
+
%w[
|
69
|
+
--save-prefix
|
70
|
+
].map do |o|
|
71
|
+
definition(
|
72
|
+
name: o, option_type: :standard, value_type: :string
|
73
|
+
)
|
74
|
+
end,
|
75
|
+
|
67
76
|
# string repeatable options
|
68
77
|
{
|
69
78
|
omit: '--omit',
|
data/lib/ruby_npm/version.rb
CHANGED
data/lib/ruby_npm.rb
CHANGED
@@ -26,6 +26,16 @@ module RubyNPM
|
|
26
26
|
parameters, invocation_options)
|
27
27
|
end
|
28
28
|
|
29
|
+
def publish(parameters = {}, invocation_options = {})
|
30
|
+
exec(RubyNPM::Commands::Publish,
|
31
|
+
parameters, invocation_options)
|
32
|
+
end
|
33
|
+
|
34
|
+
def run_script(parameters = {}, invocation_options = {})
|
35
|
+
exec(RubyNPM::Commands::RunScript,
|
36
|
+
parameters, invocation_options)
|
37
|
+
end
|
38
|
+
|
29
39
|
private
|
30
40
|
|
31
41
|
def exec(command_class, parameters, invocation_options)
|