aboardly 0.1 → 0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aboardly/events.rb +5 -2
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1c2eeee890dfc9d8ededec6a19948f3eda8ce78f
|
4
|
+
data.tar.gz: 0052800f467ea9464726282952fd90f2310941f5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e30e2b637f20dbd8a27f3325d0a92538c523d9857e26632ff49f24241025ff2d1da3ead4fdd3bbe4e0c187e8c0d64c9ba504f1b59ce23d6b9bf1202d0485e229
|
7
|
+
data.tar.gz: fcae8ac794e379ad6e6aa300964283c9909e827b6579fcb17dc5d08b24ca6db19f37d7c9b64d58a7b0673addaf3d97176eb16f5bc32d81cebf1e25cc3d12bd5d
|
data/lib/aboardly/events.rb
CHANGED
@@ -6,8 +6,11 @@ class Customers
|
|
6
6
|
@base_url = base_url
|
7
7
|
end
|
8
8
|
|
9
|
-
def create(customer_id, event_name)
|
10
|
-
|
9
|
+
def create(customer_id, event_name, *properties)
|
10
|
+
if (properties.empty?)
|
11
|
+
properties = [{}]
|
12
|
+
end
|
13
|
+
options = {basic_auth: @auth, body: properties[0].to_json, :headers => { 'Content-Type' => 'application/json', 'Accept' => 'application/json'}}
|
11
14
|
self.class.post("#{@base_url}/customers/#{customer_id}/events/#{event_name}", options)
|
12
15
|
end
|
13
16
|
end
|
metadata
CHANGED
@@ -1,27 +1,27 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aboardly
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '0.
|
4
|
+
version: '0.2'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Serge Herkül
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-05-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ~>
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '0.13'
|
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: '0.13'
|
27
27
|
description: IFTTT for automated customer emailing
|
@@ -45,17 +45,17 @@ require_paths:
|
|
45
45
|
- lib
|
46
46
|
required_ruby_version: !ruby/object:Gem::Requirement
|
47
47
|
requirements:
|
48
|
-
- -
|
48
|
+
- - '>='
|
49
49
|
- !ruby/object:Gem::Version
|
50
50
|
version: '0'
|
51
51
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
52
52
|
requirements:
|
53
|
-
- -
|
53
|
+
- - '>='
|
54
54
|
- !ruby/object:Gem::Version
|
55
55
|
version: '0'
|
56
56
|
requirements: []
|
57
57
|
rubyforge_project:
|
58
|
-
rubygems_version: 2.
|
58
|
+
rubygems_version: 2.0.14.1
|
59
59
|
signing_key:
|
60
60
|
specification_version: 4
|
61
61
|
summary: Aboardly Client for Ruby applications
|