ruby_npm 0.1.0.pre.10 → 0.1.0.pre.11

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a758943981ebb2ee68bee754f7d524f768877236dc560b8e4c641d85081f7435
4
- data.tar.gz: 0420ddea6fba92d44e4f2bd8eda5a8767a57513a788fb1b4d3cd89a89e8f9a5d
3
+ metadata.gz: cad093a253fb5d908013437b37e81d44f534f690e578d653a31cdbc2f9a75193
4
+ data.tar.gz: 67a2d7206231dde14cecd3d6f060ad3c3172fa475df05d025ff5114adcae2d71
5
5
  SHA512:
6
- metadata.gz: 312b5150d9d80f3a820d236778f8515dfd5b724fd14c32fa47691b3dcfb10b2ca443d90ba131312301ad2030909f11e3be7592e5116a2fb1030bd89aa3c0494a
7
- data.tar.gz: 90b6dfb0ff6ffbf44b02a7060ec269b000c7c0ad769aa085250798513664925e38d6d68c044987632a7d7da8d64985ae5be8553d36c048cbf278309af45d1667
6
+ metadata.gz: 6a96febb89b94c082b0160e5b4a6687584ef5f617817016adf66e3311c06d073310617f6c1f2a30e779c16dfd373284e8df7b8e7d719cf595d5e504e2f7f3c21
7
+ data.tar.gz: 2d15854744ec4674d7907990930dc9d63cf85e9b51d0c620b236a37c94555518c8bc7f29a658346c9a3e5827e9bcfa13b07cc7bcbe5ac71dc312ac8ee3fb5306
data/Gemfile.lock CHANGED
@@ -1,9 +1,9 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ruby_npm (0.1.0.pre.10)
4
+ ruby_npm (0.1.0.pre.11)
5
5
  immutable-struct (~> 2.4)
6
- lino (~> 3.0)
6
+ lino (= 3.2.0.pre.10)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
@@ -23,6 +23,7 @@ GEM
23
23
  ast (2.4.2)
24
24
  base64 (0.1.1)
25
25
  bigdecimal (3.1.4)
26
+ childprocess (5.0.0)
26
27
  coderay (1.1.3)
27
28
  colored2 (3.1.2)
28
29
  concurrent-ruby (1.2.2)
@@ -66,7 +67,8 @@ GEM
66
67
  immutable-struct (2.4.1)
67
68
  json (2.6.3)
68
69
  language_server-protocol (3.17.0.3)
69
- lino (3.1.0)
70
+ lino (3.2.0.pre.10)
71
+ childprocess (~> 5.0.0)
70
72
  hamster (~> 3.0)
71
73
  open4 (~> 1.3)
72
74
  listen (3.8.0)
@@ -50,9 +50,9 @@ module RubyNPM
50
50
 
51
51
  logger.debug("Running '#{command}'.")
52
52
  command.execute(
53
- stdin: stdin,
54
- stdout: stdout,
55
- stderr: stderr
53
+ stdin:,
54
+ stdout:,
55
+ stderr:
56
56
  )
57
57
  end
58
58
 
@@ -100,8 +100,8 @@ module RubyNPM
100
100
  end
101
101
 
102
102
  def build_option(value)
103
- option_type.new(name, value, separator: separator,
104
- placement: placement)
103
+ option_type.new(name, value, separator:,
104
+ placement:)
105
105
  end
106
106
 
107
107
  def build_value(value)
@@ -79,7 +79,7 @@ module RubyNPM
79
79
  include: '--include'
80
80
  }.map do |key, name|
81
81
  definition(
82
- name: name, option_type: :standard, value_type: :string,
82
+ name:, option_type: :standard, value_type: :string,
83
83
  repeatable: true,
84
84
  override_keys: { singular: false, plural: key }
85
85
  )
@@ -8,7 +8,7 @@ module RubyNPM
8
8
  :value
9
9
  )
10
10
  def initialize(name, value, **_opts)
11
- super(name: name, value: value)
11
+ super(name:, value:)
12
12
  end
13
13
 
14
14
  def apply(builder)
@@ -11,7 +11,7 @@ module RubyNPM
11
11
  )
12
12
  def initialize(name, value, **opts)
13
13
  super(
14
- name: name, value: value,
14
+ name:, value:,
15
15
  separator: opts[:separator],
16
16
  placement: opts[:placement]
17
17
  )
@@ -21,8 +21,8 @@ module RubyNPM
21
21
  builder.with_option(
22
22
  name,
23
23
  value.render,
24
- separator: separator,
25
- placement: placement
24
+ separator:,
25
+ placement:
26
26
  )
27
27
  end
28
28
  end
@@ -7,7 +7,7 @@ module RubyNPM
7
7
  module Values
8
8
  class Base < ImmutableStruct.new(:value)
9
9
  def initialize(value)
10
- super(value: value)
10
+ super(value:)
11
11
  end
12
12
  end
13
13
  end
@@ -7,7 +7,7 @@ module RubyNPM
7
7
  module Values
8
8
  class KeyValue < ImmutableStruct.new(:key, :value)
9
9
  def initialize(key, value)
10
- super(key: key, value: value)
10
+ super(key:, value:)
11
11
  end
12
12
 
13
13
  def resolve
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RubyNPM
4
- VERSION = '0.1.0.pre.10'
4
+ VERSION = '0.1.0.pre.11'
5
5
  end
data/lib/ruby_npm.rb CHANGED
@@ -66,7 +66,7 @@ module RubyNPM
66
66
  @binary = 'npm'
67
67
  @logger = default_logger
68
68
  @options = default_options
69
- @stdin = ''
69
+ @stdin = nil
70
70
  @stdout = $stdout
71
71
  @stderr = $stderr
72
72
  end
data/ruby_npm.gemspec CHANGED
@@ -36,10 +36,10 @@ Gem::Specification.new do |spec|
36
36
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
37
37
  spec.require_paths = ['lib']
38
38
 
39
- spec.required_ruby_version = '>= 2.7'
39
+ spec.required_ruby_version = '>= 3.1'
40
40
 
41
41
  spec.add_dependency 'immutable-struct', '~> 2.4'
42
- spec.add_dependency 'lino', '~> 3.0'
42
+ spec.add_dependency 'lino', '3.2.0.pre.10'
43
43
 
44
44
  spec.add_development_dependency 'bundler'
45
45
  spec.add_development_dependency 'faker'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_npm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.pre.10
4
+ version: 0.1.0.pre.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - InfraBlocks Maintainers
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-11-06 00:00:00.000000000 Z
11
+ date: 2024-07-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: immutable-struct
@@ -28,16 +28,16 @@ dependencies:
28
28
  name: lino
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: '3.0'
33
+ version: 3.2.0.pre.10
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - '='
39
39
  - !ruby/object:Gem::Version
40
- version: '3.0'
40
+ version: 3.2.0.pre.10
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -358,14 +358,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
358
358
  requirements:
359
359
  - - ">="
360
360
  - !ruby/object:Gem::Version
361
- version: '2.7'
361
+ version: '3.1'
362
362
  required_rubygems_version: !ruby/object:Gem::Requirement
363
363
  requirements:
364
364
  - - ">"
365
365
  - !ruby/object:Gem::Version
366
366
  version: 1.3.1
367
367
  requirements: []
368
- rubygems_version: 3.1.6
368
+ rubygems_version: 3.3.7
369
369
  signing_key:
370
370
  specification_version: 4
371
371
  summary: A simple Ruby wrapper for invoking NPM commands.