json-schema-subset-dsl 1.2.0 → 1.3.0

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: 5aab5735b6f1fc77fb82cf833b565b7394f064177e0d2608e492de7a66be9bcb
4
- data.tar.gz: 95ba200fe739435cae6cbc89c1a7a4f663c80ac9c0701c593acfdffc7fa6f6c8
3
+ metadata.gz: 6c575628c2ad4a7d78e05febfa7ce1b71d94a1712c4ef0c42c6a7b7f504b44a1
4
+ data.tar.gz: fa4027748636a4b07849952209a354388eeed33072da2a7d529c32d0093eec98
5
5
  SHA512:
6
- metadata.gz: 4b248c05fcc4eb39f9a06550fd11952cc801ba49552c50611b4c77432740528bd7bfd1f23cc9e361e4e4197a63467d08a01b81c40b8a00847c44fc36e3a96f67
7
- data.tar.gz: 3706692a8b802c78d7666be4042e2b9f0ea2ec62f7901c31da62a26ea34b8fe4f92079cb0af32770da2afa12cd09fd527bdf0e7890b4ee81ce640589e5a8942c
6
+ metadata.gz: 5554d8228b22de81d432ed7a7e9282857ac02b35d7161e97c45be627c6381dac2500690a45c1c66597b689bf63cdc3e92c87126068d0c876948b4bf29fc10645
7
+ data.tar.gz: d045c76dd2ee21dc0577913cca16154f9ac5e039ee59f590cc7c57f86a08e94ded75c8595651a5015e6a4447ce1fd2a60bbafd77b8867b6fd11a0f11121629cf
@@ -1,5 +1,9 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 1.3.0
4
+
5
+ - add: additionalPropeties support
6
+
3
7
  ## 1.2.0
4
8
 
5
9
  - add: reference_name option
@@ -77,7 +77,11 @@ module Json
77
77
 
78
78
  def method_missing(name, *args, &block)
79
79
  if name.to_s.end_with?("!")
80
- @params[name[0...-1]] = args[0]
80
+ if block_given?
81
+ @params[name[0...-1]] = DSL.new(options: @options, &block).compile!
82
+ else
83
+ @params[name[0...-1]] = args[0]
84
+ end
81
85
  return
82
86
  end
83
87
 
@@ -2,7 +2,7 @@ module Json
2
2
  module Schema
3
3
  module Subset
4
4
  class DSL
5
- VERSION = "1.2.0".freeze
5
+ VERSION = "1.3.0".freeze
6
6
  end
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: json-schema-subset-dsl
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Narazaka
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-11-30 00:00:00.000000000 Z
11
+ date: 2019-12-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -182,7 +182,7 @@ metadata:
182
182
  homepage_uri: https://github.com/Narazaka/json-schema-subset-dsl
183
183
  source_code_uri: https://github.com/Narazaka/json-schema-subset-dsl.git
184
184
  changelog_uri: https://github.com/Narazaka/json-schema-subset-dsl/blob/master/CHANGELOG.md
185
- documentation_uri: https://www.rubydoc.info/gems/json-schema-subset-dsl/1.2.0
185
+ documentation_uri: https://www.rubydoc.info/gems/json-schema-subset-dsl/1.3.0
186
186
  post_install_message:
187
187
  rdoc_options: []
188
188
  require_paths: