liquid-google-analytics 1.0.1 → 1.0.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
  SHA1:
3
- metadata.gz: 3b87c5f0ba2e916864709d1bd76a801445ecf26b
4
- data.tar.gz: c987b922fd596109709a602f7780f534505757fa
3
+ metadata.gz: c7c273aa60e52b1088e7b169a0303d266a0f7d3f
4
+ data.tar.gz: 477623cbe78725cb3c9270a36a349950643fdf59
5
5
  SHA512:
6
- metadata.gz: 61206479ea1b83ec406fd891473227c62cff29ea9dccad2e953d4725185a7643f9263671cd796c6273e38c1055f1beea7ede45844695f00ebbffe94a81c27d75
7
- data.tar.gz: 636b0000bef95c2e8654ff54953dc34ff45965eac329cf383852631260d437fdc079982d57dee3827f150a8ac6f4e077b32d2c189512605b74b7fc14b5cc23b5
6
+ metadata.gz: aa7ad8424e9ffc9144b5e7a9745059799cc9faba2a927d41a98247731c2936b78fb333d2aa0b19bdd176416a7b42b1aa10c4f367b5cc326f42d22b1dd7e1d685
7
+ data.tar.gz: 662152dbf0b1058fb57fa5a74727b2ceb1593c8a49a7ba3d1ef5c8f7c17bef8a81095d4eed16cc577456526499dee651514a6be1439c4b184c8d971d9005b7f4
data/README.md CHANGED
@@ -1 +1,46 @@
1
- # Liquid Google Analytics Tag
1
+ # Liquid Google Analytics Tag
2
+
3
+ This plugin helps generate Google Analytics code snippet easily as a Liquid Tag call
4
+
5
+ ### Installation
6
+
7
+ This plugin is available as a [RubyGem](https://rubygems.org/gems/liquid-google-analytics/)
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```
12
+ gem 'liquid-google-analytics'
13
+ ```
14
+
15
+ And then execute the `bundle install` command to install the gem.
16
+
17
+ Alternatively, you can also manually install the gem using the following command:
18
+
19
+ ```
20
+ $ gem install liquid-google-analytics
21
+ ```
22
+
23
+ For Jekyll Users, after the plugin has been installed successfully, add the following lines to your _config.yml in order to tell Jekyll to use the plugin:
24
+
25
+ ```yaml
26
+ gems:
27
+ - liquid-google-analytics
28
+ ```
29
+
30
+ ### Usage
31
+
32
+ You need to use `google_analytics` as liquid tag and pass the Tracking Code as parameter shown below
33
+
34
+ ```
35
+ {{ google_analytics UA-12345 }}
36
+ ```
37
+
38
+ ### Contribute
39
+
40
+ Fork this repository, make your changes and then issue a pull request. If you find bugs or have new ideas that you do not want to implement yourself, file a bug report.
41
+
42
+ ### Copyright
43
+
44
+ Copyright (c) 2015 Rohan Sakhale
45
+
46
+ License: MIT
@@ -16,7 +16,7 @@ module Liquid
16
16
 
17
17
  def initialize(tag_name, tracking_code, tokens)
18
18
  super
19
- @tracking_code = tracking_code.to_s
19
+ @tracking_code = tracking_code.to_s.strip
20
20
  end
21
21
 
22
22
  def render(context)
@@ -1,6 +1,6 @@
1
1
 
2
2
  module Liquid
3
3
  class GoogleAnalytics
4
- VERSION = "1.0.1".freeze
4
+ VERSION = "1.0.2".freeze
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: liquid-google-analytics
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rohan Sakhale