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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 540a84f3da57329c8f0e963e0d64b4a6309b1406
4
- data.tar.gz: f2472ff93a1bcbc69601826a5ba83159a8f09434
3
+ metadata.gz: 5e15fdb651be1c92fbe3a4f148ba81b7a08fe677
4
+ data.tar.gz: 05a5632ec214c41e7efae0e269fb3346dd88f0ea
5
5
  SHA512:
6
- metadata.gz: 7de57345237a07c4d411459cc1343ec263a1363e8f9566835f51ecff692bff46aa19a6765c7e688e4c7b840fbbce082cad287e938ce05d69255380b469370592
7
- data.tar.gz: 47d9bad9064047d9ba9b778e71de4f4fe1f58d32e4f1063852211e585428aaee067fed1035a911f479acbd40ec8d71b5a90c96f4020901b411fb30a46a7285cc
6
+ metadata.gz: 01c002dbf501ae4d915a783602f7b0521928e19e838950cd056001afcd46382d8c8ab7c37429bdc5944e383bee0a14a17b8886efd773254f39e933b75983acc8
7
+ data.tar.gz: 0e4cb15cec053b6bece0fd77ee34667ee5ffefe920d71e9bd6ed0dc7fe0990ef893937c27ce3014e33e53b071294e475a0d59e27d78c13680a18ce4bdc19030a
data/.gitignore CHANGED
@@ -7,3 +7,4 @@
7
7
  /pkg/
8
8
  /spec/reports/
9
9
  /tmp/
10
+ **/.DS_Store
data/bin/console CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
3
  require "bundler/setup"
4
- require "lifecycle/api"
4
+ require "lifecycle_api"
5
5
 
6
6
  # You can add fixtures and/or initialization code here to make experimenting
7
7
  # with your gem easier. You can also use a different console, if you like.
data/example.rb CHANGED
@@ -1 +1,20 @@
1
- puts "Hello World!";
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
@@ -1,3 +1,3 @@
1
1
  module Lifecycle
2
- VERSION = "1.1.5"
2
+ VERSION = "1.1.6"
3
3
  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.5
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-12 00:00:00.000000000 Z
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