hyperion_http 0.3.0 → 0.5.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: 747cd659ba382e3ea9438440afec453cb26b8896
4
- data.tar.gz: 4aef37878c21330999d96f8f29451c892dd8359b
3
+ metadata.gz: e3bd10bd7cea98830da2b676efba1a80adba83c9
4
+ data.tar.gz: 16385d656757d9c325a2a388f89c0d1e688ed920
5
5
  SHA512:
6
- metadata.gz: ed81d32fc7841590b149ee116fff863c26447624bf08f265a236bc06de34a93c4205fb2797da91f6732eed50538ac1f9d131cad4aa85f32af7b9febf0a267207
7
- data.tar.gz: 6b8cc99d7517756273cfdbde316cc888bc4496d725aac003aacd8e127a98d02724a74514d72bb1a58af1902bc7e11c1aac2bbed6a164698782c7f04571e62e87
6
+ metadata.gz: e4dc321c4b89ffb9029e88e7f3393cd79162cbb07f9500c969b603cb70ea7514e4947444070292b3c686c44a766aeee83b2c8c06cb4786ce0ea67ad5f55cfa3c
7
+ data.tar.gz: 8766676236d1a9eb42768df79d4c45c5d9a0eada6aec79092dcc7501eac49ce4cb84e4aa7291df4762590de5871dac3f1dccc5564c650ce4dc4506e41eb02858
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = 'hyperion_http'
7
- spec.version = '0.3.0'
7
+ spec.version = '0.5.0'
8
8
  spec.authors = ['Indigo BioAutomation, Inc.']
9
9
  spec.email = ['pwinton@indigobio.com']
10
10
  spec.summary = 'Ruby REST client'
@@ -27,7 +27,7 @@ Gem::Specification.new do |spec|
27
27
  spec.add_runtime_dependency 'abstractivator', '~> 0.0'
28
28
  spec.add_runtime_dependency 'activesupport'
29
29
  spec.add_runtime_dependency 'immutable_struct', '~> 1.1'
30
- spec.add_runtime_dependency 'oj', '~> 2.12'
30
+ spec.add_runtime_dependency 'oj', '~> 3.0'
31
31
  spec.add_runtime_dependency 'typhoeus', '~> 0.7'
32
32
  spec.add_runtime_dependency 'rack'
33
33
  spec.add_runtime_dependency 'logatron'
@@ -57,9 +57,8 @@ class Hyperion
57
57
 
58
58
  def oj_options
59
59
  {
60
- mode: :compat,
60
+ mode: :rails,
61
61
  time_format: :xmlschema, # xmlschema == iso8601
62
- use_to_json: false,
63
62
  second_precision: 3,
64
63
  bigdecimal_load: :float
65
64
  }
@@ -5,9 +5,14 @@ require 'hyperion_test'
5
5
  # as an argument or as a function of the request (using the block).
6
6
  #
7
7
  # @param [RestRoute] route The route to handle
8
- # @param [Hash, String] return_value The data to return in response to a request
8
+ # @param [Hash, String, rack_response] return_value The data to return in response to a request
9
9
  # @yield [Hyperion::FakeServer::Request] Yields a request object containing the deserialized request body
10
10
  # @yieldreturn [Hash, String, rack_response] The data to return in response to a request
11
+ #
12
+ # The structure of a rack response is specified at http://rack.github.io
13
+ # Hyperion loosens these requirements a little. For instance, the headers
14
+ # hash may be nil, and the body does not need to be wrapped in an array.
15
+ # See kim_spec.rb for details. The massaging is done in FakeServer#massage_response.
11
16
  def fake_route(route, return_value=nil, &block)
12
17
  if return_value && block
13
18
  fail 'cannot provide both a return_value and block'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hyperion_http
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Indigo BioAutomation, Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-09-22 00:00:00.000000000 Z
11
+ date: 2017-05-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -142,14 +142,14 @@ dependencies:
142
142
  requirements:
143
143
  - - "~>"
144
144
  - !ruby/object:Gem::Version
145
- version: '2.12'
145
+ version: '3.0'
146
146
  type: :runtime
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
150
  - - "~>"
151
151
  - !ruby/object:Gem::Version
152
- version: '2.12'
152
+ version: '3.0'
153
153
  - !ruby/object:Gem::Dependency
154
154
  name: typhoeus
155
155
  requirement: !ruby/object:Gem::Requirement