utm_tracker 1.0.3 → 1.0.5

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
  SHA256:
3
- metadata.gz: e5d7acabb9e4cc8648be1953f001bf32736ed12806a48772155ed10f5743c399
4
- data.tar.gz: 303f65379fb04273efcd991a40f5afaa4cf37e17a988df906c329b28b9971a93
3
+ metadata.gz: 4b29d0df59656a7d9f2c1f442d1ae3ef820499aaf92b74ad7da6d4a906987664
4
+ data.tar.gz: 106f0530fa2cbec9e0b30f391cb9a43c8d600da5e44be20a2dcda38c26e4435e
5
5
  SHA512:
6
- metadata.gz: 2d555985bbbe8034a8d44fe49f26ae2d99ad18063bdecfec8c8afb5c0a9766b6405059d7962aa70c5616d38e2e408f3eda2ff0b247fb4670cc57b1dbf4368b8f
7
- data.tar.gz: 5b3ccf830b729ede46b63a16317cdde2b8886c481ae40155ab06430d244e5c6d4ebe9cd4c006a43b0008706b2c9ea351e910a4cdef1c441d68553430779a4045
6
+ metadata.gz: eb6d771863180ddc223d5bc591788f2d049c9a3867200f9cd0717982ab7a081e45d257b480f79ba1e01a8d82d40ac106bc0fc93f5443f1dab7941ad1a5559b66
7
+ data.tar.gz: f80754d3183e2545bcfefcaad157d1fa13d734db8511436f04075ad07194407786836fa5c806e2de40d6addf373152e0c6a699f10177c4b3ad91aa3cc553fb13
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- utm_tracker (1.0.3)
4
+ utm_tracker (1.0.4)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -5,7 +5,7 @@ module UtmTracker
5
5
  protected
6
6
 
7
7
  def get_utm_data
8
- session[:utm_data] ||= {
8
+ session[:utm_data] = {
9
9
  source: params[:utm_source],
10
10
  medium: params[:utm_medium],
11
11
  content: params[:utm_content],
@@ -20,23 +20,23 @@ module UtmTracker
20
20
  private
21
21
 
22
22
  def utm_source
23
- utm[:utm_source] = utm_data['source'] if utm_data['source']
23
+ utm[:utm_source] = utm_data[:source] if utm_data[:source]
24
24
  end
25
25
 
26
26
  def utm_content
27
- utm[:utm_content] = utm_data['content'] if utm_data['content']
27
+ utm[:utm_content] = utm_data[:content] if utm_data[:content]
28
28
  end
29
29
 
30
30
  def utm_medium
31
- utm[:utm_medium] = utm_data['medium'] if utm_data['medium']
31
+ utm[:utm_medium] = utm_data[:medium] if utm_data[:medium]
32
32
  end
33
33
 
34
34
  def utm_campaign
35
- utm[:utm_campaign] = utm_data['campaign'] if utm_data['campaign']
35
+ utm[:utm_campaign] = utm_data[:campaign] if utm_data[:campaign]
36
36
  end
37
37
 
38
38
  def utm_term
39
- utm[:utm_term] = utm_data['term'] if utm_data['term']
39
+ utm[:utm_term] = utm_data[:term] if utm_data[:term]
40
40
  end
41
41
  end
42
42
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module UtmTracker
4
- VERSION = "1.0.3"
4
+ VERSION = "1.0.5"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: utm_tracker
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Levashov