vayacondios-client 0.2.6 → 0.2.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -8,18 +8,14 @@ class Vayacondios
8
8
  def wrap_contents(contents) {contents: contents} end
9
9
  def extract_contents(document) document['contents'] end
10
10
  def extract_response(document) document['contents'] end
11
- def proper_request(document)
12
- document.is_a? Hash and document.fetch('_json', {}).is_a? Hash
13
- end
11
+ def proper_request(document) true end
14
12
  end
15
13
 
16
14
  class LegacyContentsHandler
17
15
  def wrap_contents(contents) contents end
18
- def extract_contents(document) document.fetch('_json', {}) end
16
+ def extract_contents(document) document end
19
17
  def extract_response(document) document end
20
- def proper_request(document)
21
- document.is_a? Array or document.fetch('_json', {}).is_a? Array
22
- end
18
+ def proper_request(document) true end
23
19
  end
24
20
 
25
21
  @@legacy_switch = nil
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vayacondios-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6
4
+ version: 0.2.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2013-07-19 00:00:00.000000000 Z
15
+ date: 2013-08-08 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: configliere
@@ -143,7 +143,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
143
143
  version: '0'
144
144
  segments:
145
145
  - 0
146
- hash: 194549325422885470
146
+ hash: -518626051439720039
147
147
  required_rubygems_version: !ruby/object:Gem::Requirement
148
148
  none: false
149
149
  requirements:
@@ -152,7 +152,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
152
152
  version: '0'
153
153
  segments:
154
154
  - 0
155
- hash: 194549325422885470
155
+ hash: -518626051439720039
156
156
  requirements: []
157
157
  rubyforge_project:
158
158
  rubygems_version: 1.8.25