fitting 1.6.1 → 1.6.2

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: c4da6330584b695ce8964a021a89fbf7e5d6c73e
4
- data.tar.gz: 5972f7305b5eaf446e738d6bf3d68dda0772c804
3
+ metadata.gz: 687724fcdc1df94e6f43ead5dd7d07a2847c4957
4
+ data.tar.gz: 86bbae4ea5919bd2b846b35430b2d55c976c037a
5
5
  SHA512:
6
- metadata.gz: 14b06b29a08066358392409e23dd9813d6a8fdaede35aa7b975356064266be5e32d6a0ed3f27931f80c636a884252cc8c972a40b0c1f227804768d5c4a3171b4
7
- data.tar.gz: 8200a2a160af99edf0b163157f0db626241361100770e2915cb19f39b622efe43bf8cd26560f00b25b04d6b46e21d1235552543b856296b5e30240a2cf041979
6
+ metadata.gz: 94369cc36505eaa4fc30b70cea9583ad445508cee603f80151a263667cb6081c143bd2fa8ef05d3c83d5abe62f81034d166accd4cf45337f71deb10cd62c3913
7
+ data.tar.gz: c3579f89a6ddf00adb0b24140edb570cb8fee0cb86445149edc0099ce92c3f35836940079b2d41ccdefdd608062c3bbd60447e54cd140b40b0852a2d9c4264cc
data/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  [![Build Status](https://travis-ci.org/funbox/fitting.svg?branch=master)](https://travis-ci.org/funbox/fitting)
4
4
 
5
- This gem will help you implement your API in strict accordance to the documentation in [API Bluprint](https://apiblueprint.org/) format.
5
+ This gem will help you implement your API in strict accordance to the documentation in [API Blueprint](https://apiblueprint.org/) format.
6
6
  To do this, when you run your RSpec tests on controllers, it automatically searches for the corresponding json-schemas in the documentation and then validates responses with them.
7
7
 
8
8
  ## Installation
@@ -4,7 +4,7 @@ module Fitting
4
4
  class Request
5
5
  def initialize(env_request, tomogram)
6
6
  @method = env_request.request_method
7
- @path = env_request.env['PATH_INFO']
7
+ @path = env_request.env['PATH_INFO'] || env_request.fullpath
8
8
  @body = env_request.env['action_dispatch.request.request_parameters']
9
9
  @schema = tomogram.find_request(method: @method, path: @path)
10
10
  @fully_validate = JSON::Validator.fully_validate(@schema['request'], @body) if @schema
@@ -1,3 +1,3 @@
1
1
  module Fitting
2
- VERSION = '1.6.1'.freeze
2
+ VERSION = '1.6.2'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fitting
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.1
4
+ version: 1.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - d.efimov
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-03-29 00:00:00.000000000 Z
11
+ date: 2017-04-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json-schema