schemacop 3.0.5 → 3.0.6

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: 27400e248bfdb65fc7cc229fbbb625cfa68a1421996fc5cbbb3283eb82d28a1e
4
- data.tar.gz: 4b435374b7d2c0ce05e4410235995983dc0f96c8d6c21b69d88e80abdae7aed0
3
+ metadata.gz: db3239081f4731794b9e52be8901752fc9ed70ca8a0c6b0afaa148be11015f36
4
+ data.tar.gz: cdb44d05750c603be99188670833605da946f507ab726456ed49aa2422381e68
5
5
  SHA512:
6
- metadata.gz: 194c2f72fcadad2e311e1c96ca9bfd004e5f27c5d591bd1188a1fb177d56a75aa2670b50fddc07e7afaee99fd48f98195156a8f98a250485fd6a75a0ac57bda8
7
- data.tar.gz: 798a3dfaf53b6c2996e2799cc841bdf2172ef4ebd89c022c67a2d21424add61f1c0ef0c686e11c17b589b417961343f603012395e5510284573cb8a7e78a3468
6
+ metadata.gz: c64bf86004b0f5a0c7e52aa833d7b37efe267c993bd26fd7cadfa18891dbcc6375c89f0af68f91c168c0b83fa9e641dc5e3ec6b5121b9c67d8135956beec5a1d
7
+ data.tar.gz: f4c6d201ff95b6a1f2e0ebf6c6c447a0047ef72f39257b533420b64d5000573a6f4e58d2f95f5f4e0ba50397a8d8a76e7b08298d5338aff50ebce52bd73cacec
data/CHANGELOG.md CHANGED
@@ -1,14 +1,14 @@
1
1
  # Change log
2
2
 
3
- <!--
4
- ## master (unreleased)
3
+ ## 3.0.6 (2021-02-14)
5
4
 
6
- ### New features
7
-
8
- ### Bug fixes
5
+ * Remove option `json_format` from {Schemacop::Schema3.as_json as_json} again.
6
+ If you need to use the swagger format, use
7
+ {Schemacop::V3::Context.with_json_format} instead.
9
8
 
10
- ### Changes
11
- -->
9
+ * Rename `Schemacop::V3::Context.spawn_with` to
10
+ {Schemacop::V3::Context.with_json_format} and make keyword argument
11
+ `json_format` a positional argument.
12
12
 
13
13
  ## 3.0.5 (2021-02-14)
14
14
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.5
1
+ 3.0.6
@@ -14,8 +14,8 @@ module Schemacop
14
14
  root.validate(data)
15
15
  end
16
16
 
17
- def as_json(json_format: V3::Context::DEFAULT_JSON_FORMAT)
18
- Schemacop.context.spawn_with(json_format: json_format) { root.as_json }
17
+ def as_json
18
+ root.as_json
19
19
  end
20
20
  end
21
21
  end
@@ -17,7 +17,7 @@ module Schemacop
17
17
  ).freeze
18
18
  end
19
19
 
20
- def spawn_with(json_format: @json_format)
20
+ def with_json_format(json_format)
21
21
  prev_json_format = @json_format
22
22
  @json_format = json_format
23
23
  return yield
data/schemacop.gemspec CHANGED
@@ -1,9 +1,9 @@
1
1
  # -*- encoding: utf-8 -*-
2
- # stub: schemacop 3.0.5 ruby lib
2
+ # stub: schemacop 3.0.6 ruby lib
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "schemacop".freeze
6
- s.version = "3.0.5"
6
+ s.version = "3.0.6"
7
7
 
8
8
  s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
9
9
  s.require_paths = ["lib".freeze]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: schemacop
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.5
4
+ version: 3.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sitrox