tealium 1.0.2 → 1.0.3

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: 7d0433828d89253e76c2ae712f2569a25217893ad2beb08251dc738a12f235ae
4
- data.tar.gz: fce1fb9de7c14fcde166a6b481e143e05a82cc57fd1f42430d3dbd6c1a85fe9a
3
+ metadata.gz: 77960e2ff1395cb54b52e1c638559c95fef33d6b472653128a6bcd8a71f130b0
4
+ data.tar.gz: a5e6f98bd8335537477b7599e76aca9b5427113f29eccc897af232a80ede081b
5
5
  SHA512:
6
- metadata.gz: 8caabb9fcf3b627122462c40a27feeb19534ee929c834b2ece88306d4142812996d95cf57c1195c9d5cb7768afa53489f293ff710b5dea4018821c1ee00b762a
7
- data.tar.gz: 1890ed9d325825ad631e094c794acc222bd6f9d6af3d0b01c781e551cc1b80a59c635962302593b6840c7c86d23072bae75054a293a67a0b84a8b2d04099ac6b
6
+ metadata.gz: 478216433cf6cac8a07330264224c18af2fd066e4f8995c9676c2b252bbe3040f57e40b85104a7e7396eaa92bea80676f8bf9e11503465bb8c5b2de23fc3c984
7
+ data.tar.gz: e2c1ee549d45f07b6c1e169d242a4ad4db3af1e11a7cad9189e7af77afb5c5595ba0224ff28db1440cea7a70055ea2c2acefce7231307c6f0b4fa6f3a98f086d
data/lib/tealium.rb CHANGED
@@ -2,6 +2,7 @@ require 'tealium_collect'
2
2
 
3
3
  class Tealium
4
4
  attr_accessor :account, :profile, :datasource
5
+
5
6
  def initialize(account, profile, datasource = nil)
6
7
  @account = account
7
8
  @profile = profile
@@ -12,12 +13,9 @@ class Tealium
12
13
  data = Hash.new
13
14
  data[:tealium_account] = @account
14
15
  data[:tealium_profile] = @profile
15
-
16
- if (!@datasource.nil?)
17
- data[:tealium_datasource]
18
- end
19
-
16
+ data[:tealium_datasource] = @datasource if @datasource
20
17
  data[:tealium_event] = event_name
18
+
21
19
  payload = data.merge(custom_data)
22
20
  TealiumCollect.collect(payload)
23
21
  end
@@ -4,7 +4,7 @@ require 'json'
4
4
 
5
5
  class TealiumCollect
6
6
  LIBRARY_NAME = "ruby"
7
- LIBRARY_VERSION = "1.0.2"
7
+ LIBRARY_VERSION = "1.0.3"
8
8
 
9
9
  def self.collect(payload)
10
10
  uri = URI.parse("https://collect.tealiumiq.com/event")
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tealium
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tealium
@@ -38,7 +38,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
38
38
  - !ruby/object:Gem::Version
39
39
  version: '0'
40
40
  requirements: []
41
- rubygems_version: 3.0.3
41
+ rubygems_version: 3.0.3.1
42
42
  signing_key:
43
43
  specification_version: 4
44
44
  summary: Tealium Collect for Ruby