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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c9cc3f159d5a1cdb53f843060574ad40fa6023854633df6ab08c23628246f926
4
- data.tar.gz: bfc390268391502cc285da1011e2b17263829d1a92daf33bf40256ebe90f57a3
3
+ metadata.gz: '00576379773bb42c2d69e98cd880e81852ae7ec56c0428b13fea96c6bbc974cb'
4
+ data.tar.gz: eafeb8440ec88a7418577eefaccf5251e0c658f0b3ea0ccc89da809b0aba4710
5
5
  SHA512:
6
- metadata.gz: 7638386535366c20bb57eac4b339d1c6df136d172efbebbda30acf5a1de8d12fdf4b5bb1bb8c8cb0b3a0a8fdd8f43792dfa9fbee6831450efe4aa67f50e7fc52
7
- data.tar.gz: 4bbd9674f45483760079c09476650c8bec90f693bdca2632d59fd8a2865a154c9fd26174110ad7a248d36cd20320e7cffbd73dcab71f07b278c3468a6353c32b
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.dev/docs/advanced-mode) where the system provides a native back button.
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
 
@@ -1,3 +1,6 @@
1
+ app:
2
+ mode: normal # normal or advanced
3
+
1
4
  appearance:
2
5
  tint_color: "#007AFF"
3
6
  background_color: "#FFFFFF"
@@ -1,3 +1,3 @@
1
1
  module RubyNative
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
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
- self.config = YAML.load_file(path).deep_symbolize_keys if path.exist?
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
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.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joe Masilotti