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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/json/schema/subset/dsl.rb +5 -1
- data/lib/json/schema/subset/dsl/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6c575628c2ad4a7d78e05febfa7ce1b71d94a1712c4ef0c42c6a7b7f504b44a1
|
4
|
+
data.tar.gz: fa4027748636a4b07849952209a354388eeed33072da2a7d529c32d0093eec98
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5554d8228b22de81d432ed7a7e9282857ac02b35d7161e97c45be627c6381dac2500690a45c1c66597b689bf63cdc3e92c87126068d0c876948b4bf29fc10645
|
7
|
+
data.tar.gz: d045c76dd2ee21dc0577913cca16154f9ac5e039ee59f590cc7c57f86a08e94ded75c8595651a5015e6a4447ce1fd2a60bbafd77b8867b6fd11a0f11121629cf
|
data/CHANGELOG.md
CHANGED
@@ -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
|
-
|
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
|
|
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.
|
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
|
+
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.
|
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:
|