json_schema-faker 0.6.2 → 0.6.3

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: a4f6fbdc7ca4c32a0a702ccfb5736acbcdefc121f6498deebd896ab80e1d723e
4
- data.tar.gz: 7891a2f2e045b2e12bbb2d0766bd5fb0ee852665d814d2b72da16990b25596bb
3
+ metadata.gz: 825732f967f977c99909ab3e10c9f9436d666f38091dca7dffdd1e87578a15aa
4
+ data.tar.gz: 571940be85e56f8d730219ab8863fba0febe0e3c9dcf6e81f14271515c90dda1
5
5
  SHA512:
6
- metadata.gz: 53041ee71b24a655fb688813223f21ebb441cb829610421f322fd5a3470ed4ccc53b208ee48b798033f03812f04012569d826f1011fcc9cb9f80f9d723aa691f
7
- data.tar.gz: 14b6f30ccb927e521aaf129c856ba1e2396a289a250dd9c2a63c876e154772343a7dab4a9ec4062f00f211752773c043874377364018f53a7e620668a27f7e11
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.2
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.safe_email
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.2
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: 2023-02-06 00:00:00.000000000 Z
11
+ date: 2024-01-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json_schema