fakeit 0.9.0 → 0.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +16 -0
- data/Gemfile.lock +2 -2
- data/lib/fakeit/core_extensions/array_validator.rb +12 -0
- data/lib/fakeit/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f48fecd4f45a0532ec3dd35f088d2b365c3fbbee815d7722bddc59c926088cce
|
|
4
|
+
data.tar.gz: 1a8e59d4f67a4e952f7c31052815786b19884b5feed18ad281f6133ae585de1a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
@@ -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
|
data/lib/fakeit/version.rb
CHANGED
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.
|
|
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-
|
|
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
|