mparticle 1.0.0 → 1.0.1

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: ca3e0ee524d0b95fd3534b5a03d809ff605171eb
4
- data.tar.gz: 8de4e9d9ee00daeabe689b29a6d755554b5cbda6
3
+ metadata.gz: c3a500669bcb575d013b84d54a5702ec6d8d0c4a
4
+ data.tar.gz: acaa38ca1397230af6c6a721aa1bc5fd85108b97
5
5
  SHA512:
6
- metadata.gz: f6081300e374d42ba3c0f74e1214d75f0757b037bb366581dbd435912760f0e1ed92848a67b07da8952a689552563e4972b827d50a84c8db263d82bb0c4c34d4
7
- data.tar.gz: 02ac2a7897727924bcd57af06124f4d6050e4fbfab90d4a9a906a8af6eee43b4c6b86e21655fa621f4f9db7ed629093033226a68c6ff86b69a3541ff188f2c87
6
+ metadata.gz: fbe52683f15e24c42d2dd87c695dbc6124225a01de45a6eae88bf0767560c1ac77a6d4e61a42916cfbf8c9ef4d56d332fcbbd4891d98aaf086fb1384dff9224e
7
+ data.tar.gz: a05ca3423993b539a7a83476fb12061c6bc6bf8f024c43a8082692ec14a66d2a47ce7ef1bd2b04182eea4b58a751377c3db137a6a911aa99054fe485d0968d0d
data/README.md CHANGED
@@ -42,11 +42,15 @@ api_instance = MParticle::EventsApi.new(config)
42
42
  batch = MParticle::Batch.new
43
43
  batch.environment = 'development'
44
44
 
45
+ user_identities = MParticle::UserIdentities.new
46
+ user_identities.customerid = '12345'
47
+
45
48
  app_event = MParticle::AppEvent.new
46
49
  app_event.event_name = 'Test event'
47
50
  app_event.custom_event_type = 'navigation'
48
51
 
49
52
  batch.events = [MParticle::SessionStartEvent.new, app_event, MParticle::SessionEndEvent.new]
53
+ batch.user_identities = user_identities
50
54
 
51
55
  begin
52
56
 
Binary file
Binary file
Binary file
data/example/main.rb CHANGED
@@ -12,11 +12,16 @@ api_instance = MParticle::EventsApi.new(config)
12
12
  batch = MParticle::Batch.new
13
13
  batch.environment = 'development'
14
14
 
15
+ user_identities = MParticle::UserIdentities.new
16
+ user_identities.customerid = '12345'
17
+
15
18
  app_event = MParticle::AppEvent.new
16
19
  app_event.event_name = 'Test event'
17
20
  app_event.custom_event_type = 'navigation'
21
+ app_event.custom_attributes = { 'Test key' => 'Test value' }
18
22
 
19
23
  batch.events = [MParticle::SessionStartEvent.new, app_event, MParticle::SessionEndEvent.new]
24
+ batch.user_identities = user_identities
20
25
 
21
26
  begin
22
27
  # send events
@@ -110,7 +110,7 @@ module MParticle
110
110
  end
111
111
 
112
112
  if attributes.has_key?(:'custom_attributes')
113
- if (value = attributes[:'custom_attributes']).is_a?(Array)
113
+ if (value = attributes[:'custom_attributes']).is_a?(Hash)
114
114
  self.custom_attributes = value
115
115
  end
116
116
  end
data/mparticle.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "mparticle"
3
- s.version = "1.0.0"
3
+ s.version = "1.0.1"
4
4
  s.platform = Gem::Platform::RUBY
5
5
  s.authors = ["mParticle Inc."]
6
6
  s.email = ["support@mparticle.com"]
metadata CHANGED
@@ -1,53 +1,53 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mparticle
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - mParticle Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-03-16 00:00:00.000000000 Z
11
+ date: 2018-03-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.0'
20
- - - '>='
20
+ - - ">="
21
21
  - !ruby/object:Gem::Version
22
22
  version: 1.0.1
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
- - - ~>
27
+ - - "~>"
28
28
  - !ruby/object:Gem::Version
29
29
  version: '1.0'
30
- - - '>='
30
+ - - ">="
31
31
  - !ruby/object:Gem::Version
32
32
  version: 1.0.1
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: json
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
- - - ~>
37
+ - - "~>"
38
38
  - !ruby/object:Gem::Version
39
39
  version: '1.8'
40
- - - '>='
40
+ - - ">="
41
41
  - !ruby/object:Gem::Version
42
42
  version: 1.8.3
43
43
  type: :runtime
44
44
  prerelease: false
45
45
  version_requirements: !ruby/object:Gem::Requirement
46
46
  requirements:
47
- - - ~>
47
+ - - "~>"
48
48
  - !ruby/object:Gem::Version
49
49
  version: '1.8'
50
- - - '>='
50
+ - - ">="
51
51
  - !ruby/object:Gem::Version
52
52
  version: 1.8.3
53
53
  description: Use this client to send your data into the mParticle platform.
@@ -92,10 +92,11 @@ files:
92
92
  - docs/ShoppingCart.md
93
93
  - docs/SourceInformation.md
94
94
  - docs/UserIdentities.md
95
+ - example/.main.rb.swn
96
+ - example/.main.rb.swo
97
+ - example/.main.rb.swp
95
98
  - example/main.rb
96
- - lib/.DS_Store
97
99
  - lib/mparticle.rb
98
- - lib/mparticle/.DS_Store
99
100
  - lib/mparticle/api/events_api.rb
100
101
  - lib/mparticle/api_client.rb
101
102
  - lib/mparticle/api_error.rb
@@ -145,19 +146,18 @@ require_paths:
145
146
  - lib
146
147
  required_ruby_version: !ruby/object:Gem::Requirement
147
148
  requirements:
148
- - - '>='
149
+ - - ">="
149
150
  - !ruby/object:Gem::Version
150
151
  version: '1.9'
151
152
  required_rubygems_version: !ruby/object:Gem::Requirement
152
153
  requirements:
153
- - - '>='
154
+ - - ">="
154
155
  - !ruby/object:Gem::Version
155
156
  version: '0'
156
157
  requirements: []
157
158
  rubyforge_project:
158
- rubygems_version: 2.0.14.1
159
+ rubygems_version: 2.5.2
159
160
  signing_key:
160
161
  specification_version: 4
161
162
  summary: Ruby client for the mParticle platform
162
163
  test_files: []
163
- has_rdoc:
data/lib/.DS_Store DELETED
Binary file
Binary file