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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f7c62d39c66e463239ff2c5cc4c66b868271758aa1e19fccdbc0fb25e446854b
4
- data.tar.gz: 3c52d0ce183cedb9cfeced27ec2a504abbbc0a1675f0109d7f7e557b1d32dff7
3
+ metadata.gz: a9a113d3d2c433bccc6c9ada4e8a5a02c0775774e442112476c109f7dcbe4ca3
4
+ data.tar.gz: bf0e665c8c987163110db90a32bf94c75b5bd3ab280525825b3560c3eadcff80
5
5
  SHA512:
6
- metadata.gz: fee84930a92e36cc9602a00daeaeb184990becdcb5e3dcffd0baa12d1454a5c5f5228844ca90a9fd1b5f3c27b47902ef5f0d587056d83bcbd1021f5074158cee
7
- data.tar.gz: f9e4c4741bb48cb5bb7b287bc56d3253c6f91825a9e028f52b1c2b36e7b94ae7bf3a63184327f5a5d7c20b71ee5956ed9f96709e37faf31cfe100cce35cc1bc4
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
@@ -1,3 +1,3 @@
1
1
  module RubyNative
2
- VERSION = "0.16.0"
2
+ VERSION = "0.17.1"
3
3
  end
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_native
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.0
4
+ version: 0.17.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joe Masilotti