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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ad398b2fc422b49ad21e9e5fd35edfa270b83b44
4
- data.tar.gz: 490fbfa380570698a46d96d7eef489dafdde6025
3
+ metadata.gz: 4ea1cddf5dc7ec3f8088c8ff6dbd7d9ecb9faefd
4
+ data.tar.gz: fa7fc5f4afbe9ac00c4c3ccbb01da71d72fb0d2f
5
5
  SHA512:
6
- metadata.gz: 047cc1775cb064d7781a58dc4dcc6c6e2aa6ddb246a5b5636dd98abf2b0284a892c1d4d11f5fe719afcffc4248c69afb8352ee8d8cf0da4a97afbf97c1a950e5
7
- data.tar.gz: 377eaf951c830768e327391f5d74dcc1772aca65a4b5ef71f418b8cc03c1ecb9f29597a07d311339c6e6156351aa8b9f6d49933c431708792fe04aee9c07bbec
6
+ metadata.gz: f6c9ab160ac36f95708f2a5613a724b8c0cef4482d9478916b684f4594bf2a21bafbc547c8eab38d170b66156e2016afe00238c86401a640e85931b225092ae1
7
+ data.tar.gz: aafed1b953e930925a59a10208e1097ef1ad62bfb18a7ffb3ce43f16ab03cdc65feccb38424f49963a5944def9bf3a23296e6925c0a1c1f49f83739b9bf99eb1
File without changes
File without changes
@@ -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 self.render data = demo_data, template = 'applinks_default'
23
- templates_dir = "#{Rails.root}/app/lib/applinks"
24
- template_file = "#{template}.html.erb"
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
@@ -1,6 +1,6 @@
1
1
 
2
2
  module Applinks
3
3
 
4
- VERSION = '0.0.3'
4
+ VERSION = '0.0.4'
5
5
 
6
6
  end
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.3
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