gtm_rails 0.1.2 → 0.2.0

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: ca62efa0e49e6c7ebd47fcaab3a30b274ccdfd4b
4
- data.tar.gz: d3ab7efd19d64b1704297f1dcc248e76c851b2a0
3
+ metadata.gz: 7ebecb7c0ee8d1e42937cea26c9b8dee71aceb4a
4
+ data.tar.gz: d3a8047d61135c3e651ba8354c26857146f3f79d
5
5
  SHA512:
6
- metadata.gz: 4d17414d5bfcc16e7c9b0720fd03f8dc4e6fca3195ed46e59d906c02a5d71ed539b3c4b19270d3da6d658c388e3e9622ddb43d54e69460d554fb2094796b3edf
7
- data.tar.gz: ac64cc4254d034065d0fef7b30b419f989f00b134ca9eed02b21602241c7c1bd3cf186de7de7cf9a5ad7c074b96df718e7212fc77321425769bed2179c005123
6
+ metadata.gz: c29eaf431e4214ebaacdee22565f66b22ba696706474d0e88c468a68dc9cd3bd895141ac8ca63030b603393dd9854da08a521cb9f8bdcba486d023b5ebf3d8d0
7
+ data.tar.gz: 66627a0e7f378729db98a0e7c52aef1efb1014ff28de37532c62a930149643a3ca54a180bab6b1a6484eec111aafde6b89306e9d3de8206a2e706e6a131069ca
data/README.md CHANGED
@@ -27,14 +27,14 @@ $ gem install gtm_rails
27
27
  Create `config/google_tag_manager.yml` in your Rails application.
28
28
 
29
29
  ```yaml
30
- development:
31
- - foo: GTM-YourGtmId1
32
- - bar: GTM-YourGtmId2
33
- - baz: GTM-YourGtmId3
30
+ staging:
31
+ foo: GTM-YourGtmId1
32
+ bar: GTM-YourGtmId2
33
+ baz: GTM-YourGtmId3
34
34
  production:
35
- - foo: GTM-YourGtmId4
36
- - bar: GTM-YourGtmId5
37
- - baz: GTM-YourGtmId6
35
+ foo: GTM-YourGtmId4
36
+ bar: GTM-YourGtmId5
37
+ baz: GTM-YourGtmId6
38
38
  ```
39
39
 
40
40
  The above is a sample. `foo`, `bar`, `baz` are arbitrary label names.
@@ -5,11 +5,7 @@ module GtmRails
5
5
 
6
6
  loader = ::GtmRails::YamlLoader.new
7
7
 
8
- gtms = loader.load[(ENV['RAILS_ENV'] || 'development')] || []
9
-
10
- GtmRails::Config.gtm = gtms.each_with_object({}.with_indifferent_access) {|gtm, ret|
11
- ret[gtm.keys.first] = gtm.values.first
12
- }
8
+ GtmRails::Config.gtm = (loader.load[ENV['RAILS_ENV']] || {}).with_indifferent_access
13
9
 
14
10
  ActionView::Base.send :include, GtmRails::Helper
15
11
  end
@@ -1,3 +1,3 @@
1
1
  module GtmRails
2
- VERSION = '0.1.2'
2
+ VERSION = '0.2.0'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gtm_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Koichi ITO
@@ -16,42 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 4.2.0
20
- type: :development
19
+ version: 4.1.0
20
+ type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: 4.2.0
27
- - !ruby/object:Gem::Dependency
28
- name: rspec-rails
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - ">="
32
- - !ruby/object:Gem::Version
33
- version: 3.0.0
34
- type: :development
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - ">="
39
- - !ruby/object:Gem::Version
40
- version: 3.0.0
41
- - !ruby/object:Gem::Dependency
42
- name: sqlite3
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - ">="
46
- - !ruby/object:Gem::Version
47
- version: '0'
48
- type: :development
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - ">="
53
- - !ruby/object:Gem::Version
54
- version: '0'
26
+ version: 4.1.0
55
27
  description: Simply embed Google Tag Manager container snippet into Rails application
56
28
  email: koic.ito@gmail.com
57
29
  executables: []