jbuilder-schema 2.3.0 → 2.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +7 -7
- data/lib/jbuilder/schema/template.rb +4 -1
- data/lib/jbuilder/schema/version.rb +1 -1
- metadata +8 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7e54563767a015e7b3cb32a86f99155d08c90d317ad6c89f79d7634b3a428993
|
4
|
+
data.tar.gz: d65a34bc554e7d1416b5e9cb0fd0d32b1c26454506ec5148ad7343f001c0bce4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 11a516b42e9d28a515e504a59b5f51916d5e8ba74211dda0bad5eea11e0fae80af546e442e4b71274efce5bb555d2c5d6fd453ee342a966c03fa2f50f72e6fe0
|
7
|
+
data.tar.gz: a1f2a4c564bdb28b6a8ef72b5fc345fcaac03885cc8819763b9a61139b2ab468472a9ec7494b7a3c2bcab311092a754e8f30521ebbcd2c1807bc515814d371f1
|
data/Gemfile.lock
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
jbuilder-schema (2.3.
|
4
|
+
jbuilder-schema (2.3.1)
|
5
5
|
jbuilder
|
6
|
-
rails (>= 5.0.0)
|
6
|
+
rails (>= 5.0.0, < 7.1.0)
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: https://rubygems.org/
|
@@ -105,7 +105,7 @@ GEM
|
|
105
105
|
minitest (5.20.0)
|
106
106
|
mocha (2.1.0)
|
107
107
|
ruby2_keywords (>= 0.0.5)
|
108
|
-
net-imap (0.
|
108
|
+
net-imap (0.4.0)
|
109
109
|
date
|
110
110
|
net-protocol
|
111
111
|
net-pop (0.1.2)
|
@@ -119,7 +119,7 @@ GEM
|
|
119
119
|
mini_portile2 (~> 2.8.2)
|
120
120
|
racc (~> 1.4)
|
121
121
|
parallel (1.23.0)
|
122
|
-
parser (3.2.2.
|
122
|
+
parser (3.2.2.4)
|
123
123
|
ast (~> 2.4.1)
|
124
124
|
racc
|
125
125
|
racc (1.7.1)
|
@@ -158,7 +158,7 @@ GEM
|
|
158
158
|
rake (13.0.6)
|
159
159
|
regexp_parser (2.8.1)
|
160
160
|
rexml (3.2.6)
|
161
|
-
rubocop (1.56.
|
161
|
+
rubocop (1.56.4)
|
162
162
|
base64 (~> 0.1.1)
|
163
163
|
json (~> 2.3)
|
164
164
|
language_server-protocol (>= 3.17.0)
|
@@ -195,11 +195,11 @@ GEM
|
|
195
195
|
timeout (0.4.0)
|
196
196
|
tzinfo (2.0.6)
|
197
197
|
concurrent-ruby (~> 1.0)
|
198
|
-
unicode-display_width (2.
|
198
|
+
unicode-display_width (2.5.0)
|
199
199
|
websocket-driver (0.7.6)
|
200
200
|
websocket-extensions (>= 0.1.0)
|
201
201
|
websocket-extensions (0.1.5)
|
202
|
-
zeitwerk (2.6.
|
202
|
+
zeitwerk (2.6.12)
|
203
203
|
|
204
204
|
PLATFORMS
|
205
205
|
ruby
|
@@ -111,7 +111,10 @@ class Jbuilder::Schema
|
|
111
111
|
# TODO: Find where it is being used
|
112
112
|
_render_active_model_partial model
|
113
113
|
else
|
114
|
-
|
114
|
+
local = options.except(:partial, :as, :collection, :cached, :schema).first
|
115
|
+
as = options[:as] || ((local.is_a?(::Array) && local.size == 2 && local.first.is_a?(::Symbol) && local.last.is_a?(::Object)) ? local.first.to_s : nil)
|
116
|
+
|
117
|
+
_set_ref(as&.to_s || partial || model, array: collection&.any?)
|
115
118
|
end
|
116
119
|
end
|
117
120
|
|
@@ -1,4 +1,4 @@
|
|
1
1
|
# We can't use the standard `Jbuilder::Schema::VERSION =` because
|
2
2
|
# `Jbuilder` isn't a regular module namespace, but a class …which also loads Active Support.
|
3
3
|
# So we use trickery, and assign the proper version once `jbuilder/schema.rb` is loaded.
|
4
|
-
JBUILDER_SCHEMA_VERSION = "2.3.
|
4
|
+
JBUILDER_SCHEMA_VERSION = "2.3.1"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jbuilder-schema
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.3.
|
4
|
+
version: 2.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yuri Sidorov
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-10-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jbuilder
|
@@ -31,6 +31,9 @@ dependencies:
|
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: 5.0.0
|
34
|
+
- - "<"
|
35
|
+
- !ruby/object:Gem::Version
|
36
|
+
version: 7.1.0
|
34
37
|
type: :runtime
|
35
38
|
prerelease: false
|
36
39
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -38,6 +41,9 @@ dependencies:
|
|
38
41
|
- - ">="
|
39
42
|
- !ruby/object:Gem::Version
|
40
43
|
version: 5.0.0
|
44
|
+
- - "<"
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: 7.1.0
|
41
47
|
description: Generate JSON Schema from Jbuilder files
|
42
48
|
email:
|
43
49
|
- hey@yurisidorov.com
|