fakeit 0.9.0 → 0.9.1

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
  SHA256:
3
- metadata.gz: dbb5973b840c21eddd94a398c62a312bbbf21dba4b06323ca4ab8bf2fd7318f4
4
- data.tar.gz: 3a2d30ed95aa61b39f68c3ddce26815ee7156f5a620a2fea097bf2d3466d5be6
3
+ metadata.gz: f48fecd4f45a0532ec3dd35f088d2b365c3fbbee815d7722bddc59c926088cce
4
+ data.tar.gz: 1a8e59d4f67a4e952f7c31052815786b19884b5feed18ad281f6133ae585de1a
5
5
  SHA512:
6
- metadata.gz: 35fe9c896913f0a946586ad4945960b01e3b665c1eb101d7265ec67bb1b3e59e91e224b72ef2d330455f770e6546d97d172f7d63a2849a16e3a94053196fbad0
7
- data.tar.gz: a0425724e4c9fb66f2feda3adc505c752b9b001ac8db6aee75715a20a06478434696bf4b082887b9c8e34470d029fdc7e88d236e32837307aa9ac0339dca34fe
6
+ metadata.gz: 3685b6808f4b614c78e76f443e0698fbd01b2559b67bae344fc3bd9cf7a09b66ace980f36beb7837fd6a5263134c270695b568c63da6812ed613b1c667701710
7
+ data.tar.gz: dc831a3a34658853679da5a0b5cfa54bbb947bc9a7ee11e0dc2c830f22b077d7534fe287633142e95db4782e8652c6ba24903d92a21a2752e4366e8695a88e5a
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Changelog
2
2
 
3
+ ## [v0.9.0](https://github.com/JustinFeng/fakeit/tree/v0.9.0) (2021-03-18)
4
+
5
+ [Full Changelog](https://github.com/JustinFeng/fakeit/compare/v0.8.1...v0.9.0)
6
+
7
+ **Implemented enhancements:**
8
+
9
+ - Experimental feature to support plain text and binary response, e.g. application/pdf
10
+
11
+ ## [v0.8.1](https://github.com/JustinFeng/fakeit/tree/v0.8.1) (2021-03-01)
12
+
13
+ [Full Changelog](https://github.com/JustinFeng/fakeit/compare/v0.8.0...v0.8.1)
14
+
15
+ **Fixed bugs:**
16
+
17
+ - Cannot load spec file from url [\#21](https://github.com/JustinFeng/fakeit/issues/21)
18
+
3
19
  ## [v0.8.0](https://github.com/JustinFeng/fakeit/tree/v0.8.0) (2021-02-27)
4
20
 
5
21
  [Full Changelog](https://github.com/JustinFeng/fakeit/compare/v0.7.1...v0.8.0)
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fakeit (0.9.0)
4
+ fakeit (0.9.1)
5
5
  faker (= 2.13.0)
6
6
  openapi_parser (= 0.12.1)
7
7
  rack (~> 2.0)
@@ -89,4 +89,4 @@ DEPENDENCIES
89
89
  simplecov (~> 0.18)
90
90
 
91
91
  BUNDLED WITH
92
- 2.2.11
92
+ 2.2.15
@@ -0,0 +1,12 @@
1
+ module OpenAPIParser
2
+ class SchemaValidator
3
+ class ArrayValidator
4
+ alias old_impl coerce_and_validate
5
+
6
+ def coerce_and_validate(value, schema, **keyword_args)
7
+ coerced_value = schema.parent.is_a?(OpenAPIParser::Schemas::Parameter) ? [*value] : value
8
+ old_impl(coerced_value, schema, **keyword_args)
9
+ end
10
+ end
11
+ end
12
+ end
@@ -1,3 +1,3 @@
1
1
  module Fakeit
2
- VERSION = '0.9.0'.freeze
2
+ VERSION = '0.9.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fakeit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Feng
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-03-18 00:00:00.000000000 Z
11
+ date: 2021-04-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -263,6 +263,7 @@ files:
263
263
  - lib/fakeit/app/options.rb
264
264
  - lib/fakeit/app/routes/config_route.rb
265
265
  - lib/fakeit/app/routes/openapi_route.rb
266
+ - lib/fakeit/core_extensions/array_validator.rb
266
267
  - lib/fakeit/core_extensions/reference.rb
267
268
  - lib/fakeit/core_extensions/schema.rb
268
269
  - lib/fakeit/logger.rb