lifecycle_api 1.1.5 → 1.1.6
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 +4 -4
- data/.gitignore +1 -0
- data/bin/console +1 -1
- data/example.rb +20 -1
- data/lib/lifecycle_api/configuration.rb +2 -0
- data/lib/lifecycle_api/lifecycle.rb +2 -2
- data/lib/lifecycle_api/version.rb +1 -1
- metadata +2 -3
- data/.DS_Store +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5e15fdb651be1c92fbe3a4f148ba81b7a08fe677
|
|
4
|
+
data.tar.gz: 05a5632ec214c41e7efae0e269fb3346dd88f0ea
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 01c002dbf501ae4d915a783602f7b0521928e19e838950cd056001afcd46382d8c8ab7c37429bdc5944e383bee0a14a17b8886efd773254f39e933b75983acc8
|
|
7
|
+
data.tar.gz: 0e4cb15cec053b6bece0fd77ee34667ee5ffefe920d71e9bd6ed0dc7fe0990ef893937c27ce3014e33e53b071294e475a0d59e27d78c13680a18ce4bdc19030a
|
data/.gitignore
CHANGED
data/bin/console
CHANGED
data/example.rb
CHANGED
|
@@ -1 +1,20 @@
|
|
|
1
|
-
|
|
1
|
+
require 'lifecycle_api'
|
|
2
|
+
|
|
3
|
+
def example
|
|
4
|
+
# initialize
|
|
5
|
+
lifecycle = Lifecycle::Client.new '07fd3326118474520dc18baf'
|
|
6
|
+
# to identify
|
|
7
|
+
params = {:unique_id => "1234",
|
|
8
|
+
:first_name => "Nathan",
|
|
9
|
+
:last_name => "Mooney",
|
|
10
|
+
:email_address => "someone@getvenn.io",
|
|
11
|
+
:phone_number => "12345678913"
|
|
12
|
+
}.to_json
|
|
13
|
+
|
|
14
|
+
lifecycle.identify params
|
|
15
|
+
|
|
16
|
+
# to track
|
|
17
|
+
lifecycle.track 'event_id', 'unique_id'
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
example
|
|
@@ -32,6 +32,8 @@ module Lifecycle
|
|
|
32
32
|
def configure
|
|
33
33
|
yield self
|
|
34
34
|
end
|
|
35
|
+
# implement a method that returns all the configuration values inside the Lifecycle module
|
|
36
|
+
# this seems unessasary TODO: refactor/remove this method
|
|
35
37
|
def options
|
|
36
38
|
Hash[ * VALID_CONFIG_KEYS.map { |key| [key, send(key)] }.flatten ]
|
|
37
39
|
end
|
|
@@ -27,7 +27,7 @@ module Lifecycle
|
|
|
27
27
|
response.headers # Response headers
|
|
28
28
|
response.body # Parsed body
|
|
29
29
|
response.raw_body # Unparsed body
|
|
30
|
-
return response
|
|
30
|
+
return response #dealing with this return is not in the documentation
|
|
31
31
|
end
|
|
32
32
|
def track(event_id, unique_id)
|
|
33
33
|
# response = Unirest.post "http://lifecycle.io/v1/track",
|
|
@@ -38,7 +38,7 @@ module Lifecycle
|
|
|
38
38
|
response.headers # Response headers
|
|
39
39
|
response.body # Parsed body
|
|
40
40
|
response.raw_body # Unparsed body
|
|
41
|
-
return response
|
|
41
|
+
return response #dealing with this return is not in the documentation
|
|
42
42
|
end
|
|
43
43
|
end
|
|
44
44
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: lifecycle_api
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.1.
|
|
4
|
+
version: 1.1.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jake Mooney
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-08-
|
|
11
|
+
date: 2015-08-13 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -115,7 +115,6 @@ executables: []
|
|
|
115
115
|
extensions: []
|
|
116
116
|
extra_rdoc_files: []
|
|
117
117
|
files:
|
|
118
|
-
- ".DS_Store"
|
|
119
118
|
- ".coveralls.yml"
|
|
120
119
|
- ".gitignore"
|
|
121
120
|
- ".rspec"
|
data/.DS_Store
DELETED
|
Binary file
|