ruby_native 0.16.0 → 0.17.1
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 +4 -4
- data/config/signals.yml +6 -0
- data/lib/ruby_native/version.rb +1 -1
- data/lib/ruby_native.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: a9a113d3d2c433bccc6c9ada4e8a5a02c0775774e442112476c109f7dcbe4ca3
|
|
4
|
+
data.tar.gz: bf0e665c8c987163110db90a32bf94c75b5bd3ab280525825b3560c3eadcff80
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 518187e2f0671bbfba76d1b9012ffb74244f53eef1c96ed2e30e1971128438196ff449b6bfb3d1681fcace412430625764ecc67dd9af49ce059fb7e117e2c345
|
|
7
|
+
data.tar.gz: 385d005b83652aedaa1dac4c0b629479f3f589cd43303089162bb7b18c8fcc4a5fb12622cc12d8e5d5ceff036581566fd5c528e3bc1fb5a63aff9bcb9f993b41
|
data/config/signals.yml
CHANGED
|
@@ -34,6 +34,9 @@ signals:
|
|
|
34
34
|
data-native-color:
|
|
35
35
|
since: "0.14.0"
|
|
36
36
|
helper: native_fab_tag
|
|
37
|
+
# The shell reads the prefixed form from builds made after 0.17.0; older builds read data-customer-id only.
|
|
38
|
+
data-native-customer-id:
|
|
39
|
+
since: "0.17.0"
|
|
37
40
|
data-native-destructive:
|
|
38
41
|
since: "0.14.0"
|
|
39
42
|
data-native-fab:
|
|
@@ -111,6 +114,9 @@ signals:
|
|
|
111
114
|
data-native-submit-button:
|
|
112
115
|
since: "0.4.0"
|
|
113
116
|
singleton: true
|
|
117
|
+
# The shell reads the prefixed form from builds made after 0.17.0; older builds read data-success-path only.
|
|
118
|
+
data-native-success-path:
|
|
119
|
+
since: "0.17.0"
|
|
114
120
|
data-native-tabs:
|
|
115
121
|
since: "0.1.2"
|
|
116
122
|
helper: native_tabs_tag
|
data/lib/ruby_native/version.rb
CHANGED
data/lib/ruby_native.rb
CHANGED
|
@@ -63,6 +63,7 @@ module RubyNative
|
|
|
63
63
|
backfill_tab_icons
|
|
64
64
|
backfill_error_icons
|
|
65
65
|
warn_on_duplicate_tab_keys
|
|
66
|
+
normalize_analytics
|
|
66
67
|
end
|
|
67
68
|
|
|
68
69
|
# config/ruby_native.yml is rendered as ERB before it is parsed, so a
|
|
@@ -277,4 +278,13 @@ module RubyNative
|
|
|
277
278
|
.reject(&:empty?)
|
|
278
279
|
.map { |path| path.start_with?("/") ? path : "/#{path}" }
|
|
279
280
|
end
|
|
281
|
+
|
|
282
|
+
# A non-boolean, even the string "false", fails the native config decode on both platforms.
|
|
283
|
+
def self.normalize_analytics
|
|
284
|
+
return unless self.config.key?(:analytics)
|
|
285
|
+
return if [true, false].include?(self.config[:analytics])
|
|
286
|
+
|
|
287
|
+
Rails.logger.warn("[RubyNative] analytics in config/ruby_native.yml must be true or false; ignoring it.")
|
|
288
|
+
self.config.delete(:analytics)
|
|
289
|
+
end
|
|
280
290
|
end
|