fakeit 0.9.1 → 0.9.2

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: f48fecd4f45a0532ec3dd35f088d2b365c3fbbee815d7722bddc59c926088cce
4
- data.tar.gz: 1a8e59d4f67a4e952f7c31052815786b19884b5feed18ad281f6133ae585de1a
3
+ metadata.gz: b6a7f204912168334397f27d77e2c94a8b29a748b19c2e2e6d5b8aff656c1c88
4
+ data.tar.gz: 35140a1ac79a93701b7b9047aa641e4ae3eeca482ada20889d5a8eb2c26354e9
5
5
  SHA512:
6
- metadata.gz: 3685b6808f4b614c78e76f443e0698fbd01b2559b67bae344fc3bd9cf7a09b66ace980f36beb7837fd6a5263134c270695b568c63da6812ed613b1c667701710
7
- data.tar.gz: dc831a3a34658853679da5a0b5cfa54bbb947bc9a7ee11e0dc2c830f22b077d7534fe287633142e95db4782e8652c6ba24903d92a21a2752e4366e8695a88e5a
6
+ metadata.gz: 46497c7741b4e7e411260492b3c3d452ff0dbcd6ecce1177e7290646f945b5bb2f6bf19f21d80b3bcac4197623bb605be6f99d61223f25c1ff73bf0da69bd8e0
7
+ data.tar.gz: 14730bd843f9c48a0544435d48f297f8403b553a85a80eb7b882bdc41f92977a94f33205d8d8b5bb3ed35a8282edda6f5dbbe0efcd7a62fb7eee52d6b2ad4200
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## [v0.9.1](https://github.com/JustinFeng/fakeit/tree/v0.9.1) (2021-04-18)
4
+
5
+ [Full Changelog](https://github.com/JustinFeng/fakeit/compare/v0.9.0...v0.9.1)
6
+
7
+ **Fixed bugs:**
8
+
9
+ - Query parameter array [\#23](https://github.com/JustinFeng/fakeit/issues/23)
10
+
3
11
  ## [v0.9.0](https://github.com/JustinFeng/fakeit/tree/v0.9.0) (2021-03-18)
4
12
 
5
13
  [Full Changelog](https://github.com/JustinFeng/fakeit/compare/v0.8.1...v0.9.0)
data/Gemfile.lock CHANGED
@@ -1,9 +1,9 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fakeit (0.9.1)
5
- faker (= 2.13.0)
6
- openapi_parser (= 0.12.1)
4
+ fakeit (0.9.2)
5
+ faker (= 2.18.0)
6
+ openapi_parser (= 0.14.1)
7
7
  rack (~> 2.0)
8
8
  rack-cors (~> 1.0)
9
9
  rainbow (~> 3.0)
@@ -16,16 +16,16 @@ GEM
16
16
  specs:
17
17
  ast (2.4.2)
18
18
  byebug (11.1.3)
19
- concurrent-ruby (1.1.8)
19
+ concurrent-ruby (1.1.9)
20
20
  diff-lcs (1.4.4)
21
- docile (1.3.5)
22
- faker (2.13.0)
21
+ docile (1.4.0)
22
+ faker (2.18.0)
23
23
  i18n (>= 1.6, < 2)
24
- i18n (1.8.9)
24
+ i18n (1.8.10)
25
25
  concurrent-ruby (~> 1.0)
26
- openapi_parser (0.12.1)
26
+ openapi_parser (0.14.1)
27
27
  parallel (1.20.1)
28
- parser (3.0.0.0)
28
+ parser (3.0.2.0)
29
29
  ast (~> 2.4.1)
30
30
  rack (2.2.3)
31
31
  rack-cors (1.1.1)
@@ -33,10 +33,10 @@ GEM
33
33
  rack-test (1.1.0)
34
34
  rack (>= 1.0, < 3)
35
35
  rainbow (3.0.0)
36
- rake (13.0.3)
36
+ rake (13.0.6)
37
37
  regexp-examples (1.5.1)
38
38
  regexp_parser (2.1.1)
39
- rexml (3.2.4)
39
+ rexml (3.2.5)
40
40
  rspec (3.10.0)
41
41
  rspec-core (~> 3.10.0)
42
42
  rspec-expectations (~> 3.10.0)
@@ -50,27 +50,27 @@ GEM
50
50
  diff-lcs (>= 1.2.0, < 2.0)
51
51
  rspec-support (~> 3.10.0)
52
52
  rspec-support (3.10.2)
53
- rubocop (1.10.0)
53
+ rubocop (1.19.0)
54
54
  parallel (~> 1.10)
55
55
  parser (>= 3.0.0.0)
56
56
  rainbow (>= 2.2.2, < 4.0)
57
57
  regexp_parser (>= 1.8, < 3.0)
58
58
  rexml
59
- rubocop-ast (>= 1.2.0, < 2.0)
59
+ rubocop-ast (>= 1.9.1, < 2.0)
60
60
  ruby-progressbar (~> 1.7)
61
61
  unicode-display_width (>= 1.4.0, < 3.0)
62
- rubocop-ast (1.4.1)
63
- parser (>= 2.7.1.5)
64
- rubocop-rake (0.5.1)
65
- rubocop
62
+ rubocop-ast (1.10.0)
63
+ parser (>= 3.0.1.1)
64
+ rubocop-rake (0.6.0)
65
+ rubocop (~> 1.0)
66
66
  ruby-progressbar (1.11.0)
67
67
  simplecov (0.21.2)
68
68
  docile (~> 1.1)
69
69
  simplecov-html (~> 0.11)
70
70
  simplecov_json_formatter (~> 0.1)
71
71
  simplecov-html (0.12.3)
72
- simplecov_json_formatter (0.1.2)
73
- slop (4.8.2)
72
+ simplecov_json_formatter (0.1.3)
73
+ slop (4.9.1)
74
74
  unicode-display_width (2.0.0)
75
75
  webrick (1.7.0)
76
76
 
data/fakeit.gemspec CHANGED
@@ -33,8 +33,8 @@ Gem::Specification.new do |spec|
33
33
  spec.add_development_dependency 'rubocop-rake', '~> 0.5'
34
34
  spec.add_development_dependency 'simplecov', '~> 0.18'
35
35
 
36
- spec.add_dependency 'faker', '2.13.0'
37
- spec.add_dependency 'openapi_parser', '0.12.1'
36
+ spec.add_dependency 'faker', '2.18.0'
37
+ spec.add_dependency 'openapi_parser', '0.14.1'
38
38
  spec.add_dependency 'rack', '~> 2.0'
39
39
  spec.add_dependency 'rack-cors', '~> 1.0'
40
40
  spec.add_dependency 'rainbow', '~> 3.0'
@@ -2,22 +2,20 @@ module Fakeit
2
2
  module Openapi
3
3
  class << self
4
4
  def load(src)
5
- parse_method = parse_method(src)
6
-
7
5
  URI
8
6
  .open(src, &:read)
9
- .then(&parse_method)
7
+ .then { parse(src, _1) }
10
8
  .then(&OpenAPIParser.method(:parse))
11
9
  end
12
10
 
13
11
  private
14
12
 
15
- def parse_method(src)
13
+ def parse(src, content)
16
14
  case File.extname(src)
17
15
  when '.json'
18
- JSON.method(:parse)
16
+ JSON.parse(content)
19
17
  when '.yml', '.yaml'
20
- YAML.method(:safe_load)
18
+ YAML.safe_load(content, [Date, Time])
21
19
  else
22
20
  raise 'Invalid openapi specification file'
23
21
  end
@@ -1,3 +1,3 @@
1
1
  module Fakeit
2
- VERSION = '0.9.1'.freeze
2
+ VERSION = '0.9.2'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fakeit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.1
4
+ version: 0.9.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Feng
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-04-18 00:00:00.000000000 Z
11
+ date: 2021-08-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -128,28 +128,28 @@ dependencies:
128
128
  requirements:
129
129
  - - '='
130
130
  - !ruby/object:Gem::Version
131
- version: 2.13.0
131
+ version: 2.18.0
132
132
  type: :runtime
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
136
  - - '='
137
137
  - !ruby/object:Gem::Version
138
- version: 2.13.0
138
+ version: 2.18.0
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: openapi_parser
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
143
  - - '='
144
144
  - !ruby/object:Gem::Version
145
- version: 0.12.1
145
+ version: 0.14.1
146
146
  type: :runtime
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
150
  - - '='
151
151
  - !ruby/object:Gem::Version
152
- version: 0.12.1
152
+ version: 0.14.1
153
153
  - !ruby/object:Gem::Dependency
154
154
  name: rack
155
155
  requirement: !ruby/object:Gem::Requirement