sewing_kit 0.97.0 → 0.97.1

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: 165ea38f784c715d991537238788162f9c3114b53e14f9dc66ddaa1dd35125a6
4
- data.tar.gz: cac29382b343831d60f85f6c8cdfd82c40b5f885d91ae9d3d233ac121670816c
3
+ metadata.gz: ae66d53ee5a35b745004c59d955e495c840af4c8204c8bcd6328e9a9acb0a87e
4
+ data.tar.gz: 31dd864b4cc05a7397fec4d1d1ce4fcb0c5b68b92af57ddabd942916c5444d24
5
5
  SHA512:
6
- metadata.gz: dc4bbee26d0d4752bc1c65a523fbe9ff2b2bc841125a46571ad4a90217d82a4e782e6adad8bc743a8e9d1468a321dc9c8b47abb1e1afb854c9a73e892f41e648
7
- data.tar.gz: 218818fe2e757d21e50fcdb369e28eca43b9c8b117aaf884c4428d2ba141d85171eea32836ff81a92fc0437ea3c1ba28a6fd5d34abd72b76bacc5ec6f39f1f83
6
+ metadata.gz: 3e7330810f9744170432fdd669f09bb528c9ecd862c9242049937dad4857bffaa2daa12d723b7c24d5076e1756517a90476f527172f342a32c8719ffc535121d
7
+ data.tar.gz: f7a7b8a02f408bb7a603e083f2638d8373cda0622e53540ffccee6a42f8456bdb1e36b3fd3a037e218d3e389a041cef31b24e03a0ff1891fb86cfc361ee5fe57
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module SewingKit
3
- VERSION = "0.97.0"
3
+ VERSION = "0.97.1"
4
4
  end
@@ -50,11 +50,13 @@ module SewingKit
50
50
 
51
51
  def command
52
52
  command_list = [
53
+ 'node',
54
+ heap_config,
53
55
  sewing_kit_bin,
54
56
  'dev',
55
57
  '--logLevel',
56
58
  log_level,
57
- ].concat(options)
59
+ ].compact.concat(options)
58
60
 
59
61
  if debug_mode?
60
62
  command_list.push(['--debug'])
@@ -63,13 +65,13 @@ module SewingKit
63
65
  command_list.join(' ')
64
66
  end
65
67
 
66
- def sewing_kit_bin
68
+ def heap_config
67
69
  heap_size = SewingKit.configuration.development_options[:heap]
68
- heap_config = if heap_size
69
- "node --max-old-space-size=#{heap_size} "
70
- end
70
+ return "--max-old-space-size=#{heap_size}" if heap_size
71
+ end
71
72
 
72
- bin = "#{heap_config}#{SewingKit.configuration.dev_server_sewing_kit_bin}"
73
+ def sewing_kit_bin
74
+ bin = SewingKit.configuration.dev_server_sewing_kit_bin
73
75
  raise NodeSewingKitNotInstalled unless File.exist?(bin)
74
76
  bin
75
77
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sewing_kit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.97.0
4
+ version: 0.97.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Sauve
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-12-02 00:00:00.000000000 Z
11
+ date: 2019-12-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties