ruby_native 0.9.2 → 0.9.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: 9b2ce922165f55b3cb27cdac92845dff657ed2ef0b404c85634dc41e151fe116
4
- data.tar.gz: 47cf4144895b3049c2f73f2c59a3d250c09190e7571dbab98a431256dfdae3b4
3
+ metadata.gz: bea37c1e721c525bee3535c67771d53969d46eca1458cbdf3948c5b6cb7c1bcc
4
+ data.tar.gz: 63963d9b8707c01862cc9a603e0a26baf8ae91eb4f84a84404c955b1a1e0742b
5
5
  SHA512:
6
- metadata.gz: 616e74c90c38fda0fc9f51503369ae44f66e2659ffbc02f9279c7591817f40f57ca435ba554e8c53d099a9f0fe9db5edf7769965683bb60d0028500af9699284
7
- data.tar.gz: 52bbeccb5a2b802796f11a6b259d5f24ab76380467b850ec3e8dbd68a462dd076f7eb94f3bea45d2660b6b1556051b37a36433e4167585f46329397e060f242b
6
+ metadata.gz: 0e97a991d0bc54079de18af9be52f4bc7e3df3e57229047a1c424e7ea89329db48a1d8f3715cd3cdd37ef026afbc01185985192fc6d7dabf7d3d7d8ea869237b
7
+ data.tar.gz: 31c81f18e641df0c60f6b1f97e3c5f8086dd7f9962353655b71a3fb935050e3be8853491c1a4b0fae0af55371ba10fab566fb5d66ef23f1e6dd98af6ae21e919
@@ -89,6 +89,7 @@ Use these in your layouts and views:
89
89
  - `native_tabs_tag` renders a signal element that tells the app to show the tab bar. Only include it on pages where tabs should appear.
90
90
  - `native_form_tag` marks the page as a form. The app uses this to skip form pages when navigating back.
91
91
  - `native_push_tag` requests push notification permission from the user.
92
+ - `native_review_tag` asks the app to show the App Store rating prompt when the page loads. The system throttles how often the prompt appears (and shows nothing in TestFlight builds), so it is safe to render on any page where a review would be welcome. It is automatically suppressed during App Store screenshot runs.
92
93
 
93
94
  Signal elements are hidden `<div>` tags. Place them in the `<body>`, not the `<head>`.
94
95
 
@@ -73,6 +73,18 @@ module RubyNative
73
73
  data
74
74
  end
75
75
 
76
+ # Renders a signal element that asks the app to request an App Store
77
+ # rating from the user. The system decides whether to actually show the
78
+ # prompt (Apple throttles it to a few times per year), so it is safe to
79
+ # render this on any page where a review would be welcome, like a
80
+ # confirmation screen after the user finishes something worthwhile.
81
+ #
82
+ # See Apple's docs on requesting App Store reviews:
83
+ # https://developer.apple.com/documentation/storekit/requesting-app-store-reviews
84
+ def native_review_tag
85
+ tag.div(data: { native_review: true }, hidden: true)
86
+ end
87
+
76
88
  # Picks the right icon name for the current native platform. Accepts the
77
89
  # single `icon:` form (applied to every platform) and/or the `icons:` hash
78
90
  # form (`{ ios: "...", android: "..." }`). When both are given, a matching
@@ -1,3 +1,3 @@
1
1
  module RubyNative
2
- VERSION = "0.9.2"
2
+ VERSION = "0.9.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.9.2
4
+ version: 0.9.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joe Masilotti