aboardly 0.1 → 0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/aboardly/events.rb +5 -2
  3. metadata +7 -7
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: adb2aad98dd729c4d2b4a338701b524cc56c400d
4
- data.tar.gz: cd724d7f98183686ffb51a251ed21a7e0527803f
3
+ metadata.gz: 1c2eeee890dfc9d8ededec6a19948f3eda8ce78f
4
+ data.tar.gz: 0052800f467ea9464726282952fd90f2310941f5
5
5
  SHA512:
6
- metadata.gz: f6ef3b748e663e1de700eff5c2bb7b41a144883e92a0264c8b2245f85262cff38e17cd29434c3c5df3a7259c85d9dc59537a2446a40240c72df027999cccf695
7
- data.tar.gz: 8821420042aef10f9f9599e4b40d67108ce1b15a2b869953a3f5c5c6c10503dc41fe3ba1df9cf1c0aae46d1cdcf55339dd374d8d7767689b98835669eb21f278
6
+ metadata.gz: e30e2b637f20dbd8a27f3325d0a92538c523d9857e26632ff49f24241025ff2d1da3ead4fdd3bbe4e0c187e8c0d64c9ba504f1b59ce23d6b9bf1202d0485e229
7
+ data.tar.gz: fcae8ac794e379ad6e6aa300964283c9909e827b6579fcb17dc5d08b24ca6db19f37d7c9b64d58a7b0673addaf3d97176eb16f5bc32d81cebf1e25cc3d12bd5d
@@ -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
- options = {basic_auth: @auth}
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.1'
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: 2015-07-05 00:00:00.000000000 Z
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.4.5
58
+ rubygems_version: 2.0.14.1
59
59
  signing_key:
60
60
  specification_version: 4
61
61
  summary: Aboardly Client for Ruby applications