customerio 2.2.0 → 2.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,17 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 977087d789ae0127e8eef651a1546f88db71f3ce
4
- data.tar.gz: 49fa6e8a7bf05b10c5c1c1390efcb9d21381a45b
2
+ !binary "U0hBMjU2":
3
+ metadata.gz: !binary |-
4
+ NGJmMGRlMjNmNzZmNzFiZDI5NjM4YzRhNTczOWY1MzUzY2Y1MzVhMmMwZDg3
5
+ YTcyNTM4NDY5MjM4OTBiOTNlOA==
6
+ data.tar.gz: !binary |-
7
+ NDE5YWFjYmM4NjQxYWU2YThhZDNhYzM0ZDdmOTU2OWExNWZmODM4YjEwY2Ri
8
+ ZTZlOWIzNzU5ZDUyZmY4ZDg5Yg==
5
9
  SHA512:
6
- metadata.gz: 84ac7dfbc050d453a25c01e66abb5262b906c73420cebad93c624221d1abf3ff0048aca072e31b2f30ec039bb86b441248ade79821973a8ec0e8dbd57511c11e
7
- data.tar.gz: 8abcb4cfa1ba074d8c28d1f2fda6668175e13e49d8133c352a51641938b297cfcd73f39e05658650a3d5763758ff60b6355dbb1cdfc440de5753b471fc4621fa
10
+ metadata.gz: !binary |-
11
+ MDkxMTRkNGZjYWQyYjIzZjEwODM2YzQxN2Y4YzVmZmZiOWE5YmU3NjUwYzdi
12
+ Zjg5NzE2ZDg1YWI0YTg2MDY5NTkzM2QwOWNlNTAwN2U3MThmODMwODU5YTVi
13
+ YzA1ZmM2OTFmYzVkNWIxMjhhMGViNjhhODQ1ZWJkODIxODlhODg=
14
+ data.tar.gz: !binary |-
15
+ YjNiNTRlZTNkMjg2NGEwNjNiZmEyMTQyZWZhNTMyYjgxZDI1MDkxOGM4MDI1
16
+ NjRlY2U4OTBmMTM0ZTM1ZDU5M2FkNjJjNjE2ZjhmZTRiMzE0ZmE1MWJkMTQx
17
+ NDE1MDNhMWYzYmFmZTBlMTJlZDU5OGQzOGQwYjM5ZWNkMGZhOTU=
@@ -1,52 +1,57 @@
1
- ## Customerio 2.2.0 - Oct 18, 2018 ##
1
+ ## Customerio 2.2.1 - Mar 23, 2020
2
+
3
+ - Add license to gemspec [#55](https://github.com/customerio/customerio-ruby/pull/55)
4
+ - Bubble up error message [#51](https://github.com/customerio/customerio-ruby/pull/51)
5
+
6
+ ## Customerio 2.2.0 - Oct 18, 2018
2
7
 
3
8
  Add support for manual segments [#52](https://github.com/customerio/customerio-ruby/pull/52)
4
9
 
5
- ## Customerio 2.1.0 - May 22, 2018 ##
10
+ ## Customerio 2.1.0 - May 22, 2018
6
11
 
7
12
  Added support for the suppress / unsuppress methods [#49](https://github.com/customerio/customerio-ruby/pull/49)
8
13
 
9
- ## Customerio 2.0.0 - Apr 10, 2018 ##
14
+ ## Customerio 2.0.0 - Apr 10, 2018
10
15
 
11
16
  With this release we have dropped the support for ruby 1.8.7.
12
17
 
13
- * Support new add and remove device endpoints for push notifications [#47](https://github.com/customerio/customerio-ruby/pull/47)
18
+ - Support new add and remove device endpoints for push notifications [#47](https://github.com/customerio/customerio-ruby/pull/47)
14
19
 
15
- ## Customerio 1.0.0 - Mar 15, 2016 ##
20
+ ## Customerio 1.0.0 - Mar 15, 2016
16
21
 
17
22
  There is a slight breaking change in this release. If you are depending on the HTTP response object included in the InvalidResponse exception (introduced in 0.6.1), note that it is now a `Net::HTTPBadRequest`.
18
23
 
19
- * Remove HTTParty dependency, use Net::HTTP instead. [#42](https://github.com/customerio/customerio-ruby/pull/42)
24
+ - Remove HTTParty dependency, use Net::HTTP instead. [#42](https://github.com/customerio/customerio-ruby/pull/42)
20
25
 
21
- * Update test suite to use webmock, to increase confidence that we're not changing our HTTP requests [#41](https://github.com/customerio/customerio-ruby/pull/41)
26
+ - Update test suite to use webmock, to increase confidence that we're not changing our HTTP requests [#41](https://github.com/customerio/customerio-ruby/pull/41)
22
27
 
23
- ## Customerio 0.7.0 - Mar 2, 2016 ##
28
+ ## Customerio 0.7.0 - Mar 2, 2016
24
29
 
25
- * Add new method for tracking anonymous events: `anonymous_track`. See README for more details. Many thanks to @sdawson for this contribution! [#36](https://github.com/customerio/customerio-ruby/pull/36)
30
+ - Add new method for tracking anonymous events: `anonymous_track`. See README for more details. Many thanks to @sdawson for this contribution! [#36](https://github.com/customerio/customerio-ruby/pull/36)
26
31
 
27
- * Use JSON encoding by default. [#37](https://github.com/customerio/customerio-ruby/pull/37)
32
+ - Use JSON encoding by default. [#37](https://github.com/customerio/customerio-ruby/pull/37)
28
33
 
29
- If you want to stick with form-encoding for your integration, you must add `:json => false` to your Customerio::Client initializer. Like this:
34
+ If you want to stick with form-encoding for your integration, you must add `:json => false` to your Customerio::Client initializer. Like this:
30
35
 
31
- ```ruby
32
- customerio = Customerio::Client.new("YOUR SITE ID", "YOUR API SECRET KEY", :json => false)
33
- ```
36
+ ```ruby
37
+ customerio = Customerio::Client.new("YOUR SITE ID", "YOUR API SECRET KEY", :json => false)
38
+ ```
34
39
 
35
- ## Customerio 0.6.1 - Oct 8, 2015 ##
40
+ ## Customerio 0.6.1 - Oct 8, 2015
36
41
 
37
- * Include HTTP response as an attribute on the InvalidResponse exception to help with debugging failed API requests. For example:
42
+ - Include HTTP response as an attribute on the InvalidResponse exception to help with debugging failed API requests. For example:
38
43
 
39
- ```ruby
40
- begin
41
- $customerio.track(1, 'event', { :test => 'testing' })
42
- rescue => e
43
- puts e.message
44
- puts e.response.status
45
- puts e.response.body
46
- end
47
- ```
44
+ ```ruby
45
+ begin
46
+ $customerio.track(1, 'event', { :test => 'testing' })
47
+ rescue => e
48
+ puts e.message
49
+ puts e.response.status
50
+ puts e.response.body
51
+ end
52
+ ```
48
53
 
49
- ## Customerio 0.6.0 - Oct 6, 2015 ##
54
+ ## Customerio 0.6.0 - Oct 6, 2015
50
55
 
51
56
  Deprecation warning: we are going to switch to JSON encoding by default for the next release. The current default is form-encoding. This will probably not affect you, unless you rely on how form-encoding arrays work.
52
57
 
@@ -58,46 +63,46 @@ customerio = Customerio::Client.new("YOUR SITE ID", "YOUR API SECRET KEY", :json
58
63
 
59
64
  Other fixes and improvements, with many thanks to the community contributors:
60
65
 
61
- * Added HTTP timeout of 10 seconds (@stayhero)
62
- * Added JSON support for events (@kemper)
63
- * Convert attribute keys to symbols (@joshnabbott)
66
+ - Added HTTP timeout of 10 seconds (@stayhero)
67
+ - Added JSON support for events (@kemper)
68
+ - Convert attribute keys to symbols (@joshnabbott)
64
69
 
65
- ## Customerio 0.5.0 - Mar 28, 2014 ##
70
+ ## Customerio 0.5.0 - Mar 28, 2014
66
71
 
67
- * Added flag to send body encoded as JSON, rather than the default form encoding.
72
+ - Added flag to send body encoded as JSON, rather than the default form encoding.
68
73
 
69
- ## Customerio 0.5.0 - Apr 8, 2013 ##
74
+ ## Customerio 0.5.0 - Apr 8, 2013
70
75
 
71
- * Removed deprecated methods around using a customer object. All calls simply take a hash of attributes now.
72
- * Added ability to set a timestamp on a tracked event. Useful for backfilling past events.
76
+ - Removed deprecated methods around using a customer object. All calls simply take a hash of attributes now.
77
+ - Added ability to set a timestamp on a tracked event. Useful for backfilling past events.
73
78
 
74
- ## Customerio 0.4.1 - Feb 18, 2013 ##
79
+ ## Customerio 0.4.1 - Feb 18, 2013
75
80
 
76
- * Bug fixes related to the 4.0 change.
81
+ - Bug fixes related to the 4.0 change.
77
82
 
78
- ## Customerio 0.4.0 - Feb 18, 2013 ##
83
+ ## Customerio 0.4.0 - Feb 18, 2013
79
84
 
80
- * Added support for deleting customers.
85
+ - Added support for deleting customers.
81
86
 
82
- ## Customerio 0.3.0 - Dec 28, 2012 ##
87
+ ## Customerio 0.3.0 - Dec 28, 2012
83
88
 
84
- * Now raise an error if an API call doesn't respond with a 200 response code
85
- * Removed dependency on ActiveSupport
89
+ - Now raise an error if an API call doesn't respond with a 200 response code
90
+ - Removed dependency on ActiveSupport
86
91
 
87
- ## Customerio 0.2.0 - Nov 21, 2012 ##
92
+ ## Customerio 0.2.0 - Nov 21, 2012
88
93
 
89
- * Allow raw hashes to be passed into `identify` and `track` methods rather than a customer object.
90
- * Passing a customer object has been depreciated.
91
- * Customizing ids with `Customerio::Client.id` block is deprecated.
94
+ - Allow raw hashes to be passed into `identify` and `track` methods rather than a customer object.
95
+ - Passing a customer object has been depreciated.
96
+ - Customizing ids with `Customerio::Client.id` block is deprecated.
92
97
 
93
- ## Customerio 0.1.0 - Nov 15, 2012 ##
98
+ ## Customerio 0.1.0 - Nov 15, 2012
94
99
 
95
- * Allow tracking of anonymous events.
100
+ - Allow tracking of anonymous events.
96
101
 
97
- ## Customerio 0.0.3 - Nov 5, 2012 ##
102
+ ## Customerio 0.0.3 - Nov 5, 2012
98
103
 
99
- * Bump httparty dependency to the latest version.
104
+ - Bump httparty dependency to the latest version.
100
105
 
101
- ## Customerio 0.0.2 - May 22, 2012 ##
106
+ ## Customerio 0.0.2 - May 22, 2012
102
107
 
103
- * First release.
108
+ - First release.
@@ -7,6 +7,7 @@ Gem::Specification.new do |gem|
7
7
  gem.description = "A ruby client for the Customer.io event API."
8
8
  gem.summary = "A ruby client for the Customer.io event API."
9
9
  gem.homepage = "http://customer.io"
10
+ gem.license = "MIT"
10
11
 
11
12
  gem.files = `git ls-files`.split($\)
12
13
  gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
@@ -13,7 +13,7 @@ module Customerio
13
13
  attr_reader :response
14
14
 
15
15
  def initialize(message, response)
16
- @message = message
16
+ super(message)
17
17
  @response = response
18
18
  end
19
19
  end
@@ -1,3 +1,3 @@
1
1
  module Customerio
2
- VERSION = "2.2.0"
2
+ VERSION = "2.2.1"
3
3
  end
metadata CHANGED
@@ -1,41 +1,41 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: customerio
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0
4
+ version: 2.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Allison
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-10-18 00:00:00.000000000 Z
11
+ date: 2020-03-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: multi_json
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
  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
26
  version: '1.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ~>
32
32
  - !ruby/object:Gem::Version
33
33
  version: '10.5'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ~>
39
39
  - !ruby/object:Gem::Version
40
40
  version: '10.5'
41
41
  - !ruby/object:Gem::Dependency
@@ -70,28 +70,28 @@ dependencies:
70
70
  name: addressable
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - "~>"
73
+ - - ~>
74
74
  - !ruby/object:Gem::Version
75
75
  version: 2.3.6
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - "~>"
80
+ - - ~>
81
81
  - !ruby/object:Gem::Version
82
82
  version: 2.3.6
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: json
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ">="
87
+ - - ! '>='
88
88
  - !ruby/object:Gem::Version
89
89
  version: '0'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - ">="
94
+ - - ! '>='
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  description: A ruby client for the Customer.io event API.
@@ -101,8 +101,8 @@ executables: []
101
101
  extensions: []
102
102
  extra_rdoc_files: []
103
103
  files:
104
- - ".gitignore"
105
- - ".travis.yml"
104
+ - .gitignore
105
+ - .travis.yml
106
106
  - CHANGELOG.markdown
107
107
  - Gemfile
108
108
  - LICENSE
@@ -116,7 +116,8 @@ files:
116
116
  - spec/client_spec.rb
117
117
  - spec/spec_helper.rb
118
118
  homepage: http://customer.io
119
- licenses: []
119
+ licenses:
120
+ - MIT
120
121
  metadata: {}
121
122
  post_install_message:
122
123
  rdoc_options: []
@@ -124,21 +125,20 @@ require_paths:
124
125
  - lib
125
126
  required_ruby_version: !ruby/object:Gem::Requirement
126
127
  requirements:
127
- - - ">="
128
+ - - ! '>='
128
129
  - !ruby/object:Gem::Version
129
130
  version: '0'
130
131
  required_rubygems_version: !ruby/object:Gem::Requirement
131
132
  requirements:
132
- - - ">="
133
+ - - ! '>='
133
134
  - !ruby/object:Gem::Version
134
135
  version: '0'
135
136
  requirements: []
136
137
  rubyforge_project:
137
- rubygems_version: 2.5.1
138
+ rubygems_version: 2.7.7
138
139
  signing_key:
139
140
  specification_version: 4
140
141
  summary: A ruby client for the Customer.io event API.
141
142
  test_files:
142
143
  - spec/client_spec.rb
143
144
  - spec/spec_helper.rb
144
- has_rdoc: