json_schema-faker 0.6.2 → 0.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -3
- data/VERSION +1 -1
- data/lib/json_schema/faker/formats.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 825732f967f977c99909ab3e10c9f9436d666f38091dca7dffdd1e87578a15aa
|
|
4
|
+
data.tar.gz: 571940be85e56f8d730219ab8863fba0febe0e3c9dcf6e81f14271515c90dda1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f4d8bd7a1b5591e7952d19845b2bcafdaeb76a2973c1cea6beb53e1eb4b20531315f45c867be1e9457412082e62ba5ddd1e29ac3b4a9a30b9b951ae51c5b316f
|
|
7
|
+
data.tar.gz: d34567b9bc89aeab2df034e8228a1403ac72a6381962e22b416337b7c8b8fa7ee4afcdfad2b8c7d5d783252627cb0b4eb7fbe632ab570637b37d384d2a2c1d1e
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
## 0.6.3
|
|
2
|
+
|
|
3
|
+
- Fixed
|
|
4
|
+
- #18
|
|
5
|
+
|
|
1
6
|
## 0.6.2
|
|
2
7
|
|
|
3
8
|
- Fixed
|
|
@@ -6,13 +11,13 @@
|
|
|
6
11
|
## 0.6.1
|
|
7
12
|
|
|
8
13
|
- Fixed
|
|
9
|
-
- hint-example descending
|
|
14
|
+
- hint-example descending
|
|
10
15
|
|
|
11
16
|
## 0.6.0
|
|
12
17
|
|
|
13
18
|
- Added
|
|
14
|
-
- support of default faker against format
|
|
15
|
-
- support for copying format in take_logical_and_of_schema
|
|
19
|
+
- support of default faker against format
|
|
20
|
+
- support for copying format in take_logical_and_of_schema
|
|
16
21
|
|
|
17
22
|
## 0.5.2
|
|
18
23
|
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.6.
|
|
1
|
+
0.6.3
|
|
@@ -16,7 +16,7 @@ class JsonSchema::Faker
|
|
|
16
16
|
def email(schema, hint: nil, position: nil)
|
|
17
17
|
raise "invalid schema given" unless schema.format == "email"
|
|
18
18
|
|
|
19
|
-
(hint && hint[:example]) || ::Faker::Internet.
|
|
19
|
+
(hint && hint[:example]) || ::Faker::Internet.email
|
|
20
20
|
end
|
|
21
21
|
|
|
22
22
|
# https://tools.ietf.org/html/rfc2606
|
|
@@ -53,7 +53,7 @@ class JsonSchema::Faker
|
|
|
53
53
|
raise "invalid schema given" unless schema.format == "uri"
|
|
54
54
|
|
|
55
55
|
# TODO: urn
|
|
56
|
-
(hint && hint[:example]) || ::Faker::Internet.url(safe_domain)
|
|
56
|
+
(hint && hint[:example]) || ::Faker::Internet.url(host: safe_domain)
|
|
57
57
|
end
|
|
58
58
|
|
|
59
59
|
protected def safe_domain
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: json_schema-faker
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.6.
|
|
4
|
+
version: 0.6.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- okitan
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2024-01-03 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: json_schema
|