solidus_trackers 1.0.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5b7a0f480c282d319eb7dc00f41e4e84ac53cae7
4
- data.tar.gz: d53c602fd20d8d44e5cd9db25d022a5bfc3ef751
3
+ metadata.gz: cb84cc47ab88c3c6ed37583c335beecfc948ab79
4
+ data.tar.gz: 30ca74ef6184be218b9feafd8d72dda3beb93f46
5
5
  SHA512:
6
- metadata.gz: d2ccf4f6e55ca4d55007556ce88b4ba50d224f8ea9e6247d39f172534131b3400b9e11d18652149e20c3d6bce44c4c1a15a4ac2da7d7a53fc0b06b43b4f75871
7
- data.tar.gz: 6f10cdee4452ae915956ab7bb2d47d7d0cda954cd5bff8811c4483a6192f165da8770e214db5cef5a1f11aac293f9c3e2b09b1a1c8b6acba0020c7739c75c717
6
+ metadata.gz: 1659fded4b749ac47fa08b782c6403dafb2c4264abb1cd58d08052d706eab202d056a7df6b6b372aec765838caae86d75f0535127ee0b04b839f7b4982694835
7
+ data.tar.gz: 8114de7d000117eec856d59a38a83178172303968746fdc68715cedc4a6f519f4b6f9d67e4d432ccbf7258a4077d919dd67a8454d56d08baf36b524d3c2d5577
data/README.md CHANGED
@@ -32,7 +32,7 @@ bundle
32
32
  bundle exec rake
33
33
  ```
34
34
 
35
- When testing your applications integration with this extension you may use it's factories.
35
+ When testing your application's integration with this extension you may use its factories.
36
36
  Simply add this require statement to your spec_helper:
37
37
 
38
38
  ```ruby
@@ -1,7 +1,8 @@
1
1
  class Spree::Tracker < ActiveRecord::Base
2
2
  belongs_to :store
3
3
 
4
- def self.current(store)
4
+ def self.current(store = nil)
5
+ return if !store
5
6
  if store.is_a?(Spree::Store)
6
7
  Spree::Tracker.where(active: true, store_id: store).first
7
8
  else
@@ -1,4 +1,4 @@
1
- <% if tracker = Spree::Tracker.current %>
1
+ <% if tracker = Spree::Tracker.current(current_store) %>
2
2
  <script>
3
3
  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
4
4
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
@@ -1,3 +1,3 @@
1
1
  module SolidusTracker
2
- VERSION = '1.0.0'
2
+ VERSION = '1.1.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: solidus_trackers
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Conlin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-09-22 00:00:00.000000000 Z
11
+ date: 2017-05-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: solidus_core
@@ -237,7 +237,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
237
237
  version: '0'
238
238
  requirements: []
239
239
  rubyforge_project:
240
- rubygems_version: 2.5.1
240
+ rubygems_version: 2.6.10
241
241
  signing_key:
242
242
  specification_version: 4
243
243
  summary: Provides analytic trackers for solidus