emarsys-api 0.6.1 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: '02834cd454923b9c4b85d1af99b7adb9682edbd2'
4
- data.tar.gz: b309dd570291bb3304e105d3a9375eb34ac7a7ae
3
+ metadata.gz: '08264379ac1467362f530a758cfb7fd3c9c77c84'
4
+ data.tar.gz: 243557219fb2eb9697773e41fd9cbe57bbf32920
5
5
  SHA512:
6
- metadata.gz: de7a836cd0e7bfcb73732eed7204666a38f042c3c60ecbc802f91a64f5a8c6a9ab2143e6a4ebbf7b8e8d3d2055c5169d0d27850ef948b4c66e22145015623a3f
7
- data.tar.gz: 5a83e4635c43eeaabac9094deec9eea216c210a48ef196a0e4e5494cdd0b763db42c88ac950284eb4fb31a0b49019ff8cbaf9124c44b74ae05fdd17140aa8ec6
6
+ metadata.gz: e58e47d58b7765a54b399b25466e881e50fd4a79175cd5e1958d667fc4f0cff4e307fcc0039e8bb176d5a35c1918557c7d218fcaa190e58a9cc5f4eb11f3744c
7
+ data.tar.gz: acada9411c8e90efb8f8cd2715c6f11584aad35e6e9640a27d3f70b5c012d32391e29d6ddc8009ee62fe5ac15664fe3025d269cee07ad58124d7ca07e7451e10
data/.gitignore CHANGED
@@ -9,4 +9,5 @@
9
9
  /tmp/
10
10
 
11
11
  .idea
12
- .vscode
12
+ .vscode
13
+ .ruby-version
@@ -12,22 +12,22 @@ Metrics/ParameterLists:
12
12
  Max: 3
13
13
  CountKeywordArgs: false
14
14
 
15
- Style/IndentHash:
15
+ Layout/IndentHash:
16
16
  EnforcedStyle: consistent
17
17
 
18
- Style/IndentArray:
18
+ Layout/IndentArray:
19
19
  EnforcedStyle: consistent
20
20
 
21
21
  Style/FrozenStringLiteralComment:
22
22
  Enabled: false
23
23
 
24
- Style/EmptyLines:
24
+ Layout/EmptyLines:
25
25
  Enabled: false
26
26
 
27
- Style/EmptyLinesAroundClassBody:
27
+ Layout/EmptyLinesAroundClassBody:
28
28
  Enabled: false
29
29
 
30
- Style/MultilineOperationIndentation:
30
+ Layout/MultilineOperationIndentation:
31
31
  EnforcedStyle: indented
32
32
 
33
33
  Style/Documentation:
@@ -18,6 +18,14 @@ module Emarsys
18
18
  response.body
19
19
  end
20
20
 
21
+ def flippers(customer_id)
22
+ response = client.get("customers/#{customer_id}/flippers")
23
+ validate_response!(response)
24
+
25
+ response.body['flippers'].each_with_object({}) do |flipper, flippers|
26
+ flippers[flipper['id']] = flipper['is_on']
27
+ end
28
+ end
21
29
 
22
30
  private
23
31
 
@@ -1,5 +1,5 @@
1
1
  module Emarsys
2
2
  module Api
3
- VERSION = '0.6.1'.freeze
3
+ VERSION = '0.7.0'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: emarsys-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Istvan Demeter
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-11-09 00:00:00.000000000 Z
11
+ date: 2017-11-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: escher-keypool
@@ -146,7 +146,6 @@ files:
146
146
  - ".gitignore"
147
147
  - ".rspec"
148
148
  - ".rubocop.yml"
149
- - ".ruby-version"
150
149
  - ".travis.yml"
151
150
  - CODE_OF_CONDUCT.md
152
151
  - Gemfile
@@ -1 +0,0 @@
1
- 2.4.2