ruby_native 0.14.0 → 0.14.3

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: 9ba0a91ec78db490b4baf13e77f7b412d4f2f344cddbb2ad5ef8f09b28254459
4
- data.tar.gz: 25ca1ff3cecb136ba1f98146fd6f3a21447462c4e92167b55d4bd6bd940ded44
3
+ metadata.gz: 20484032681be68def5c45552a5ac02502f3f3eaf63e69b7cc5fffbd785177cc
4
+ data.tar.gz: d6e34e9592f9ec3f4a14ad739c1f468c5f81d75784411742e2cd317a3c57a093
5
5
  SHA512:
6
- metadata.gz: cb3a1b0cf45efe647d2cc5794bfafb6c1aec60549ace2a0e8109118d573b4ec72ebf2d5fdfd4ea090c12b32049feed77de6b8992a529b1da4d4f80024e260fe8
7
- data.tar.gz: 99c67fa20a4ee36f5a311d5fe43e3ba0b4ae6cc5df867ff3decdc41681da30a79c319290821b06903b60d12467a897bcf5909db00fdbf651c41e463254a42ea0
6
+ metadata.gz: e34b666cebd831fc7ed1946090dc68562807a1bbc524f86781af3b56f46f318394104e745270ab7914778ccf471caeb495b92912fa62152760b7bcf1d1d0e912
7
+ data.tar.gz: 5de7b5d12c50b1bb6c48bbdf333847da2b4ae0b20730beb4c3f3bd7059b1dc3d1225ec1e34f9afe0dbf167b3f76aa04d46aed1e9395f6985e16ddcf4e8a0cbcb
@@ -69,6 +69,9 @@ appearance:
69
69
  # foreground_color: "#FFFFFF"
70
70
  # tab_bar:
71
71
  # background_color: "#1E293B"
72
+ # # Icon and label color. Defaults to the theme's, with tint_color on the
73
+ # # selected tab. Set this and unselected tabs dim to 60% of it.
74
+ # foreground_color: "#FFFFFF"
72
75
 
73
76
  # Show a launch splash while the first screen loads. It holds your launch icon
74
77
  # and background_color in frame, with a spinner, until the web content paints.
@@ -2,16 +2,17 @@ module RubyNative
2
2
  module NativeDetection
3
3
  extend ActiveSupport::Concern
4
4
 
5
- # Matches "Ruby Native iOS/5.2/35 iOS/26.5.2 RubyNative/0.12.5". The build and
6
- # OS groups are optional: apps built before the UA carried them send only
7
- # "Ruby Native iOS/5.2", and the optional group keeps the OS capture from
8
- # swallowing that app version.
9
- SIGNATURE = %r{Ruby Native (?:iOS|Android)/([\d.]+)(?:/([\d.]+) (?:iOS|Android)/([\d.]+))?}
5
+ # Matches "Ruby Native iOS/5.2/35 iOS/26.5.2/23F79 RubyNative/0.12.5". The
6
+ # build, OS, and OS build groups are optional: apps built before the UA
7
+ # carried them send only "Ruby Native iOS/5.2" (or later "... iOS/26.5.2"
8
+ # without the OS build), and the optional groups keep the OS capture from
9
+ # swallowing the app version.
10
+ SIGNATURE = %r{Ruby Native (?:iOS|Android)/([\d.]+)(?:/([\d.]+) (?:iOS|Android)/([\d.]+)(?:/([\w.]+))?)?}
10
11
 
11
12
  included do
12
13
  if respond_to?(:helper_method)
13
14
  helper_method :native_app?, :native_version, :native_platform,
14
- :native_app_version, :native_app_build, :native_os_version
15
+ :native_app_version, :native_app_build, :native_os_version, :native_os_build
15
16
  end
16
17
  end
17
18
 
@@ -49,5 +50,11 @@ module RubyNative
49
50
  def native_os_version
50
51
  request.user_agent.to_s[SIGNATURE, 3]
51
52
  end
53
+
54
+ # The device's OS build, like "23F79" (iOS) or "UQ1A.240205.004" (Android).
55
+ # Nil for web browsers and apps built before the User-Agent carried it.
56
+ def native_os_build
57
+ request.user_agent.to_s[SIGNATURE, 4]
58
+ end
52
59
  end
53
60
  end
@@ -1,3 +1,3 @@
1
1
  module RubyNative
2
- VERSION = "0.14.0"
2
+ VERSION = "0.14.3"
3
3
  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.14.0
4
+ version: 0.14.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joe Masilotti