applinks 0.0.3 → 0.0.4
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/app/views/applinks/_head.html.erb +0 -0
- data/app/views/applinks/head.html.erb +0 -0
- data/lib/applinks/helper.rb +6 -12
- data/lib/applinks/version.rb +1 -1
- metadata +3 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4ea1cddf5dc7ec3f8088c8ff6dbd7d9ecb9faefd
|
|
4
|
+
data.tar.gz: fa7fc5f4afbe9ac00c4c3ccbb01da71d72fb0d2f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f6c9ab160ac36f95708f2a5613a724b8c0cef4482d9478916b684f4594bf2a21bafbc547c8eab38d170b66156e2016afe00238c86401a640e85931b225092ae1
|
|
7
|
+
data.tar.gz: aafed1b953e930925a59a10208e1097ef1ad62bfb18a7ffb3ce43f16ab03cdc65feccb38424f49963a5944def9bf3a23296e6925c0a1c1f49f83739b9bf99eb1
|
|
File without changes
|
|
File without changes
|
data/lib/applinks/helper.rb
CHANGED
|
@@ -1,17 +1,15 @@
|
|
|
1
1
|
require 'erb'
|
|
2
2
|
|
|
3
3
|
module Applinks
|
|
4
|
-
|
|
5
|
-
class Helper
|
|
6
|
-
|
|
4
|
+
module Helper
|
|
7
5
|
def demo_data
|
|
8
6
|
{
|
|
9
|
-
ios:{
|
|
7
|
+
ios: {
|
|
10
8
|
url: 'applinks://docs',
|
|
11
9
|
app_store_id: '12345',
|
|
12
10
|
app_name: 'App Links'
|
|
13
11
|
},
|
|
14
|
-
android:{
|
|
12
|
+
android: {
|
|
15
13
|
url: 'applinks://docs',
|
|
16
14
|
package: 'org.applinks',
|
|
17
15
|
app_name: 'App Links'
|
|
@@ -19,12 +17,9 @@ module Applinks
|
|
|
19
17
|
}
|
|
20
18
|
end
|
|
21
19
|
|
|
22
|
-
def
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
ActionView::Base.new(templates_dir).render \
|
|
26
|
-
:file => template_file,
|
|
27
|
-
:locals => {applinks: data }
|
|
20
|
+
def applinks(data = demo_data, template = 'applinks/head')
|
|
21
|
+
render(:partial => template,
|
|
22
|
+
:locals => {applinks: data})
|
|
28
23
|
end
|
|
29
24
|
|
|
30
25
|
# def applinks_header data
|
|
@@ -39,5 +34,4 @@ module Applinks
|
|
|
39
34
|
# eos
|
|
40
35
|
# end
|
|
41
36
|
end
|
|
42
|
-
|
|
43
37
|
end
|
data/lib/applinks/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: applinks
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Stuart Jones
|
|
@@ -150,6 +150,8 @@ files:
|
|
|
150
150
|
- LICENSE.txt
|
|
151
151
|
- README.md
|
|
152
152
|
- Rakefile
|
|
153
|
+
- app/views/applinks/_head.html.erb
|
|
154
|
+
- app/views/applinks/head.html.erb
|
|
153
155
|
- applinks.gemspec
|
|
154
156
|
- lib/applinks.rb
|
|
155
157
|
- lib/applinks/helper.rb
|