keepcon 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZDAzNjJhNzBjNDU5MWFiZTE4MDQ4YWE1NjAzNTIxYjBjNDc3M2FiNA==
4
+ NWYwZjk4ZTllYTVjNmM3ZjE1NGFiYzAyMTQ0Y2E0N2M2MGNiNDQ5Nw==
5
5
  data.tar.gz: !binary |-
6
- YTFiYTYyN2ZjNDNlYjFkZWY1MjVmMjQzOTQ2NzQ2M2ZiNDc3YmYwNw==
6
+ OGEwYmQxNmY3NDRlNTdjNmU4ZmIwZTJlN2ZiNzgxNWQ3ZmJkZWFiYw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MzAzNjhkZWE1NWI5M2Y4ODI1MGE4NGMxZDJhNGRhMjM2Mjc1NWM4YWJlNTg2
10
- NzhiNmU1YWEzZDBjNTU1NWNhZGU2YzZlZjk4NmRmMzlkNzE3MTMyNGQwZWJh
11
- MTcxOTNlNTExNzkzZTgxYTFlZTg4ZTk4MzczMmZkNDAyYWY3MTk=
9
+ MzNjZGFhZWRjYzNkNDQyMDc0ZTA5YTU4MmRlYTZhNjM4ODgzNTEzZGUzZjdm
10
+ ZGYwNDNhNjQwY2QxMWI1ODM0ZTc4NWEyODMxNGExZjQ5ZmZkM2ZjZGMyNDI3
11
+ MTU3NjdmY2FkNTJhYzhlNTdhYTk2NzlkMjhlMThjNmYyODQ0OWE=
12
12
  data.tar.gz: !binary |-
13
- MGQzOTJhYjQ1YTdmNjgzMzFiZGE5YzQwMGM0M2NkYTA2MGZjY2Q1Y2JmYzEz
14
- OTlkMDU0YjIxZWIwM2ZlNDMxNjFlYmVkMjcwMDk3MTNkZGU2MmZiYjc5MGNi
15
- OGM2OWIxNzU5ZDdhNjliZDBlYTZlNGYwYmNlNzkwNjE1OWFjMDQ=
13
+ MzM1NjJjZjRkZGY0Yzk2ZGViOGJlYmE2NDJlNzQ4MDdiOWEyYTI4ZDZiMjkw
14
+ ZDZhNmFkZDE4YWY5ZjE5ODEwMDVlYTM4NGFiZjU4YmMyMjU2OWI4OGEzODhk
15
+ ZTNkNmMzNWI5ODkyOGNlYTg2NWI2NTRjMWJkNDY5OGFlODNiM2I=
@@ -6,4 +6,4 @@ content:
6
6
  sync: '/synchronic/moderate'
7
7
  async: '/input/contentSet'
8
8
  response:
9
- async: '/output/contentSet?contextName=%{context_name}'
9
+ async: '/output/contentSet?contextName=%{context_name}&clientACK=true'
@@ -9,7 +9,7 @@ module Keepcon
9
9
  end
10
10
 
11
11
  def data
12
- @data ||= Hash.from_xml(body).first[1]
12
+ @data ||= (body.blank? && {}) || Hash.from_xml(body).first[1]
13
13
  end
14
14
  end
15
15
  end
@@ -1,4 +1,4 @@
1
1
  # encoding: utf-8
2
2
  module Keepcon
3
- VERSION = '0.2.0'
3
+ VERSION = '0.2.1'
4
4
  end
data/spec/client_spec.rb CHANGED
@@ -73,7 +73,8 @@ describe Keepcon::Client do
73
73
  let!(:faraday) { Faraday.new { |f| f.adapter :test, adapter } }
74
74
  let(:adapter) do
75
75
  Faraday::Adapter::Test::Stubs.new do |stub|
76
- stub.put('/output/contentSet?contextName=user', '', headers) do |_env|
76
+ uri = '/output/contentSet?contextName=user&clientACK=true'
77
+ stub.put(uri, '', headers) do |_env|
77
78
  [200, {}, 'all-results-body']
78
79
  end
79
80
  end
@@ -29,5 +29,11 @@ describe Keepcon::Entity::Response do
29
29
 
30
30
  it { is_expected.to include('status' => 'OK') }
31
31
  it { is_expected.to include('setId' => set_id) }
32
+
33
+ context 'when the body is empty' do
34
+ let(:body) { '' }
35
+
36
+ it { is_expected.to eq({}) }
37
+ end
32
38
  end
33
39
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: keepcon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shane O'Grady
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-08-12 00:00:00.000000000 Z
11
+ date: 2015-08-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: retryable-rb