emarsys-api 0.6.1 → 0.7.0
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 +2 -1
- data/.rubocop.yml +5 -5
- data/lib/emarsys/api/services.rb +8 -0
- data/lib/emarsys/api/version.rb +1 -1
- metadata +2 -3
- data/.ruby-version +0 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz: '
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: '08264379ac1467362f530a758cfb7fd3c9c77c84'
|
|
4
|
+
data.tar.gz: 243557219fb2eb9697773e41fd9cbe57bbf32920
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e58e47d58b7765a54b399b25466e881e50fd4a79175cd5e1958d667fc4f0cff4e307fcc0039e8bb176d5a35c1918557c7d218fcaa190e58a9cc5f4eb11f3744c
|
|
7
|
+
data.tar.gz: acada9411c8e90efb8f8cd2715c6f11584aad35e6e9640a27d3f70b5c012d32391e29d6ddc8009ee62fe5ac15664fe3025d269cee07ad58124d7ca07e7451e10
|
data/.gitignore
CHANGED
data/.rubocop.yml
CHANGED
|
@@ -12,22 +12,22 @@ Metrics/ParameterLists:
|
|
|
12
12
|
Max: 3
|
|
13
13
|
CountKeywordArgs: false
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
Layout/IndentHash:
|
|
16
16
|
EnforcedStyle: consistent
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
Layout/IndentArray:
|
|
19
19
|
EnforcedStyle: consistent
|
|
20
20
|
|
|
21
21
|
Style/FrozenStringLiteralComment:
|
|
22
22
|
Enabled: false
|
|
23
23
|
|
|
24
|
-
|
|
24
|
+
Layout/EmptyLines:
|
|
25
25
|
Enabled: false
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
Layout/EmptyLinesAroundClassBody:
|
|
28
28
|
Enabled: false
|
|
29
29
|
|
|
30
|
-
|
|
30
|
+
Layout/MultilineOperationIndentation:
|
|
31
31
|
EnforcedStyle: indented
|
|
32
32
|
|
|
33
33
|
Style/Documentation:
|
data/lib/emarsys/api/services.rb
CHANGED
|
@@ -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
|
|
data/lib/emarsys/api/version.rb
CHANGED
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.
|
|
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-
|
|
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
|
data/.ruby-version
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
2.4.2
|