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 +4 -4
- data/README.md +1 -1
- data/lib/fitting/request.rb +1 -1
- data/lib/fitting/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 687724fcdc1df94e6f43ead5dd7d07a2847c4957
|
4
|
+
data.tar.gz: 86bbae4ea5919bd2b846b35430b2d55c976c037a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
|
data/lib/fitting/request.rb
CHANGED
@@ -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
|
data/lib/fitting/version.rb
CHANGED
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.
|
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
|
11
|
+
date: 2017-04-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json-schema
|