fakeit 0.7.0 → 0.7.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: 60b523cb9a2c8cea3454b35cace650d51f2bf8e2ed8e53e07b0f35ffe45c9288
4
- data.tar.gz: a3340dafc8607d5de8e9cb7f00c9b60679e7f84bdd2161f8d8607dad2e6089b3
3
+ metadata.gz: 93f26471f33c1f3a90dc3f473be8bdf790b14e8f737102b48d743c2fe95f6753
4
+ data.tar.gz: 17bb12387546a8e9239d2e219b19e84ec7e2736c6de831dfe9e6618038f9517e
5
5
  SHA512:
6
- metadata.gz: cfab31deab5494ae69b2adeecec85efff46d69104ad71ce0d637e4809a492bb7ac45062d8a73e5cd4adb34ad347ac798fecd05f4a1b3b00bab37a3b44adab511
7
- data.tar.gz: c4ef907db3d2df3de0fed6bf5a54b904969b080f312951665b6cfe863c4c10ecf2f3d1e7bf5b712d668878aa2b9b3b1dda7539da927ac9cabea005fec2528509
6
+ metadata.gz: fd1c8a33d1b58047aec06abce511450ca57044d0928af3e4ed5c6b5a55ce54c2d299d3a9ed9fde1e83315129a0c37aafc1f5783cd843b8c9d1705327c0a0557c
7
+ data.tar.gz: 6d9f737bc7b52fd7f497efeb20a88958e9f865b9466213b68f439f6a41a52ec07df56b2ebb09fe536971ab0196de62ebc16ae6b151037a5fe73e1ca5ab985d87
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Changelog
2
2
 
3
+ ## [v0.7.0](https://github.com/JustinFeng/fakeit/tree/v0.7.0) (2020-10-22)
4
+
5
+ [Full Changelog](https://github.com/JustinFeng/fakeit/compare/v0.6.3...v0.7.0)
6
+
7
+ **Implemented enhancements:**
8
+
9
+ - Supported change mock server behaviour on the fly
10
+ - Allowed to redirect console log to a file
11
+
3
12
  ## [v0.6.3](https://github.com/JustinFeng/fakeit/tree/v0.6.3) (2020-09-11)
4
13
 
5
14
  [Full Changelog](https://github.com/JustinFeng/fakeit/compare/v0.6.2...v0.6.3)
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fakeit (0.7.0)
4
+ fakeit (0.7.1)
5
5
  faker (= 2.13.0)
6
6
  openapi_parser (= 0.12.1)
7
7
  rack (~> 2.0)
data/README.md CHANGED
@@ -81,11 +81,15 @@ Update config:
81
81
  Request and response:
82
82
  ```json
83
83
  {
84
- 'permissive' => false,
85
- 'use_example' => true,
86
- 'static' => false,
87
- 'static_types' => ['integer'],
88
- 'static_properties' => ['id']
84
+ "permissive": false,
85
+ "use_example": true,
86
+ "static": false,
87
+ "static_types": [
88
+ "integer"
89
+ ],
90
+ "static_properties": [
91
+ "id"
92
+ ]
89
93
  }
90
94
  ```
91
95
 
@@ -0,0 +1,11 @@
1
+ require 'fakeit/openapi/schema'
2
+
3
+ module OpenAPIParser
4
+ module Schemas
5
+ class Reference
6
+ def to_example(_)
7
+ raise Fakeit::Openapi::ReferenceError, "Invalid $ref at \"#{ref}\""
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,6 @@
1
+ module Fakeit
2
+ module Openapi
3
+ class ReferenceError < StandardError
4
+ end
5
+ end
6
+ end
@@ -1,3 +1,3 @@
1
1
  module Fakeit
2
- VERSION = '0.7.0'.freeze
2
+ VERSION = '0.7.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.7.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Feng
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-10-22 00:00:00.000000000 Z
11
+ date: 2021-02-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -235,6 +235,7 @@ files:
235
235
  - lib/fakeit/app/options.rb
236
236
  - lib/fakeit/app/routes/config_route.rb
237
237
  - lib/fakeit/app/routes/openapi_route.rb
238
+ - lib/fakeit/core_extensions/reference.rb
238
239
  - lib/fakeit/core_extensions/schema.rb
239
240
  - lib/fakeit/logger.rb
240
241
  - lib/fakeit/middleware/recorder.rb
@@ -246,6 +247,7 @@ files:
246
247
  - lib/fakeit/openapi/example/string_example.rb
247
248
  - lib/fakeit/openapi/loader.rb
248
249
  - lib/fakeit/openapi/operation.rb
250
+ - lib/fakeit/openapi/reference_error.rb
249
251
  - lib/fakeit/openapi/schema.rb
250
252
  - lib/fakeit/openapi/specification.rb
251
253
  - lib/fakeit/validation/validation_error.rb
@@ -255,7 +257,7 @@ homepage: https://github.com/JustinFeng/fakeit
255
257
  licenses:
256
258
  - MIT
257
259
  metadata: {}
258
- post_install_message:
260
+ post_install_message:
259
261
  rdoc_options: []
260
262
  require_paths:
261
263
  - lib
@@ -270,8 +272,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
270
272
  - !ruby/object:Gem::Version
271
273
  version: '0'
272
274
  requirements: []
273
- rubygems_version: 3.1.4
274
- signing_key:
275
+ rubygems_version: 3.1.2
276
+ signing_key:
275
277
  specification_version: 4
276
278
  summary: Create mock server from Openapi specification
277
279
  test_files: []