ruby_native 0.1.1 → 0.1.2
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/README.md +1 -1
- data/lib/generators/ruby_native/templates/ruby_native.yml +3 -0
- data/lib/ruby_native/version.rb +1 -1
- data/lib/ruby_native.rb +5 -1
- 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: '00576379773bb42c2d69e98cd880e81852ae7ec56c0428b13fea96c6bbc974cb'
|
|
4
|
+
data.tar.gz: eafeb8440ec88a7418577eefaccf5251e0c658f0b3ea0ccc89da809b0aba4710
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8126c66d154001be50aa69da1586b5981afc3d7d1154b8f1bcf1e186320b601aad3370d8294091c528216f0c8a154b077c929e687011108c403bb6e685dd8370
|
|
7
|
+
data.tar.gz: 628c3bef731601b5eb202ae4767f1ad7bf4610a429c1c880bc0945662e861b487c7b8123f04a44697dd9a0145f7d88cef14a66383a20d06a0f1d07226a7b31b4
|
data/README.md
CHANGED
|
@@ -93,7 +93,7 @@ Place helpers in the `<body>`, not the `<head>`.
|
|
|
93
93
|
- `native_app?` - true when the request comes from a Ruby Native app (checks user agent)
|
|
94
94
|
- `native_tabs_tag(enabled: true)` - shows the native tab bar.
|
|
95
95
|
- `native_push_tag` - requests push notification permission.
|
|
96
|
-
- `native_back_button_tag(text = nil, **options)` - renders a back button for Normal Mode. Hidden by default, shown when the native app sets `body.can-go-back`. Not needed in [Advanced Mode](https://rubynative.
|
|
96
|
+
- `native_back_button_tag(text = nil, **options)` - renders a back button for Normal Mode. Hidden by default, shown when the native app sets `body.can-go-back`. Not needed in [Advanced Mode](https://rubynative.com/docs/advanced-mode) where the system provides a native back button.
|
|
97
97
|
|
|
98
98
|
### Normal Mode
|
|
99
99
|
|
data/lib/ruby_native/version.rb
CHANGED
data/lib/ruby_native.rb
CHANGED
|
@@ -8,6 +8,10 @@ module RubyNative
|
|
|
8
8
|
|
|
9
9
|
def self.load_config
|
|
10
10
|
path = Rails.root.join("config", "ruby_native.yml")
|
|
11
|
-
|
|
11
|
+
return unless path.exist?
|
|
12
|
+
|
|
13
|
+
self.config = YAML.load_file(path).deep_symbolize_keys
|
|
14
|
+
self.config[:app] ||= {}
|
|
15
|
+
self.config[:app][:name] ||= "Ruby Native"
|
|
12
16
|
end
|
|
13
17
|
end
|