sewing_kit 0.96.0 → 0.97.0

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: f4c9a4d05fadcda6b90c207bb14c7652c1e16725be38391f53ba66b2af982550
4
- data.tar.gz: 7848dba3af77dcf21232061744a33afe61a7e6ed5a67a46ffdaf5c0ce04c7fb1
3
+ metadata.gz: 165ea38f784c715d991537238788162f9c3114b53e14f9dc66ddaa1dd35125a6
4
+ data.tar.gz: cac29382b343831d60f85f6c8cdfd82c40b5f885d91ae9d3d233ac121670816c
5
5
  SHA512:
6
- metadata.gz: 820de0241ba40a9735a6aca803b2c74adda0ae2575541e5975a0ea28adb3c9c660564e50f184cb39fbb4e51828f29e00e8815acdd6a863a89b5c29a79ccaff34
7
- data.tar.gz: 247dda76a13df81da377d05810508abb6d722e95809d462c4679c734173a3d1b86760ac4f75aab2bb36b78e677da776dd57b6d2af822faaa6c112e19642b64fd
6
+ metadata.gz: dc4bbee26d0d4752bc1c65a523fbe9ff2b2bc841125a46571ad4a90217d82a4e782e6adad8bc743a8e9d1468a321dc9c8b47abb1e1afb854c9a73e892f41e648
7
+ data.tar.gz: 218818fe2e757d21e50fcdb369e28eca43b9c8b117aaf884c4428d2ba141d85171eea32836ff81a92fc0437ea3c1ba28a6fd5d34abd72b76bacc5ec6f39f1f83
data/README.md CHANGED
@@ -66,7 +66,7 @@ SewingKit.configure do |config|
66
66
 
67
67
  # Disable source maps (very large apps may need to builds sans source maps to
68
68
  # reduce development mode's memory usage)
69
- config.development_options[:source_maps] = false
69
+ config.development_options[:source_maps] = 'off'
70
70
  end
71
71
  ```
72
72
 
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module SewingKit
3
- VERSION = "0.96.0"
3
+ VERSION = "0.97.0"
4
4
  end
@@ -83,12 +83,12 @@ module SewingKit
83
83
  end
84
84
 
85
85
  def options
86
- development_options = SewingKit.configuration.development_options
87
- return [] unless development_options
86
+ development_options = SewingKit.configuration.development_options || {}
87
+ focus = focus_sections
88
88
 
89
89
  development_options
90
90
  .reject { |key| key == :heap }
91
- .map { |key, value| ["--#{key}", value] }.flatten
91
+ .map { |key, value| ["--#{key.to_s.tr('_', '-')}", value] }.flatten + focus.flatten
92
92
  end
93
93
 
94
94
  def log_level_from_rails
@@ -107,6 +107,14 @@ module SewingKit
107
107
  def debug_mode?
108
108
  !ENV['SK_DEBUG'].nil?
109
109
  end
110
+
111
+ def focus_sections
112
+ return [] if ENV['SK_FOCUS'].nil?
113
+
114
+ ENV['SK_FOCUS']
115
+ .split(',')
116
+ .map { |section| ["--focus", section] }
117
+ end
110
118
  end
111
119
  end
112
120
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sewing_kit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.96.0
4
+ version: 0.97.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Sauve