ruby_npm 0.1.0.pre.4 → 0.1.0.pre.5

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e75c704c75f98d8bd697d81b26fb18734acaecf0354500cb2fa30343d8a29ea6
4
- data.tar.gz: 2225b03171613b5bc7fa239bcc4b4c6dc78bfe6591de856024d7846464c52022
3
+ metadata.gz: ce491bb0461af039ab87e58c633f81038fa896566366305b7f03b3b86f0f5d04
4
+ data.tar.gz: 30395ff9775bd4152c6732faf64537416785923fc8fe3d9162a4e508a99cec43
5
5
  SHA512:
6
- metadata.gz: e6583aebca78abd89cff43cf2f365d81095f5a9f452dab09c8dafd3c786968708e8536052984b2c0ed7958784312c5fa7b659ee030e2e270a44a3176cac60b2a
7
- data.tar.gz: abcf86fcc58c3c0d9ea1e6c20f42f60a00bcc08d1013079bfc7be232ad1e6855f257d0a32da7f3b479b0ac16399a38fb48075289fd135737df2868a0988d83f5
6
+ metadata.gz: 3282e0ab171c6f3989a23ea776426b3f8d10c7f9680935ca7597de7a801b52f226e922c31e545810aa54112405ed55cfab9c9ee844412889acd9764c87ff6bf8
7
+ data.tar.gz: 13a971beafa8bf2384c508412f24a4b4b90dbe16df3e839a67e5b405329eb616c67dfd9ecf620d323d85b546f85964c786d1856b5aac8efda6840c7d119b7ad1
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)
4
+ ruby_npm (0.1.0.pre.5)
5
5
  immutable-struct (~> 2.4)
6
6
  lino (~> 3.0)
7
7
 
@@ -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',
@@ -36,6 +36,7 @@ module RubyNPM
36
36
  --save-exact
37
37
  --save-optional
38
38
  --save-peer
39
+ --save-prefix
39
40
  --save-prod
40
41
  ].freeze
41
42
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RubyNPM
4
- VERSION = '0.1.0.pre.4'
4
+ VERSION = '0.1.0.pre.5'
5
5
  end
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)
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
4
+ version: 0.1.0.pre.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - InfraBlocks Maintainers