rack-json_schema 1.5.3 → 1.5.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 70e38b4eab95187d2cea6df66ed016359ee63c41a6d799f0869be1afc98d3f43
4
- data.tar.gz: 0a3c28a4c87c2f7bc919743ecfa4024c4b95a7f2af1eae69092bb3c8d6c883f8
3
+ metadata.gz: ce06bbcab6fe693bd6d4f1f03bb2d11b2af03bff953b5b6b7250caadf2e99842
4
+ data.tar.gz: e41e6794ef89f60a6a6c55891d995d6cf96ed0ac5a682dbee22807d6d5123559
5
5
  SHA512:
6
- metadata.gz: dd5955fe62d144704178caba3fbff9dcb890ea27d9f912e40b0008a3defd0a33db38a84eda83b97b3813add8dff77ce9efe5775be00813927c8b95da6ace0976
7
- data.tar.gz: a4af6c165d5c466da9a1469e3f4e512c56850cdb96563f8a6354e3cd1cb94a62d1655c78e84d385d7956c0addc2a59178d4724a38c2ab968c7e61de8668492a2
6
+ metadata.gz: c35cc8a1fab3dd7872fdadc7c8488e9c72ad230afb01f705aaae95483cbe4d45063a13085028c4242b7337477de7a84adcf3d18a86ec9365d112dafdab6d6b55
7
+ data.tar.gz: a2f8ed388dc27c368a6caa124d9580969edd36e3724384d93ec2489708de60985380b4f8c073a9c24f368b3b844011d6e65b4c071e1c65c20f67c5ff375137a9
data/.gitignore CHANGED
@@ -3,7 +3,6 @@
3
3
  .bundle
4
4
  .config
5
5
  .yardoc
6
- Gemfile.lock
7
6
  InstalledFiles
8
7
  _yardoc
9
8
  coverage
data/Gemfile.lock ADDED
@@ -0,0 +1,95 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ rack-json_schema (1.5.4)
5
+ erubis
6
+ jdoc (>= 0.4.4)
7
+ json_schema (~> 0.2)
8
+ rack
9
+
10
+ GEM
11
+ remote: https://rubygems.org/
12
+ specs:
13
+ activesupport (7.1.2)
14
+ base64
15
+ bigdecimal
16
+ concurrent-ruby (~> 1.0, >= 1.0.2)
17
+ connection_pool (>= 2.2.5)
18
+ drb
19
+ i18n (>= 1.6, < 2)
20
+ minitest (>= 5.1)
21
+ mutex_m
22
+ tzinfo (~> 2.0)
23
+ amazing_print (1.5.0)
24
+ base64 (0.2.0)
25
+ bigdecimal (3.1.5)
26
+ bond (0.5.1)
27
+ coderay (1.1.3)
28
+ concurrent-ruby (1.2.2)
29
+ connection_pool (2.4.1)
30
+ diff-lcs (1.5.0)
31
+ drb (2.2.0)
32
+ ruby2_keywords
33
+ erubis (2.7.0)
34
+ i18n (1.14.1)
35
+ concurrent-ruby (~> 1.0)
36
+ jdoc (0.4.4)
37
+ activesupport
38
+ erubis
39
+ json_schema
40
+ rack
41
+ redcarpet
42
+ json (2.7.1)
43
+ json_schema (0.21.0)
44
+ method_source (1.0.0)
45
+ minitest (5.21.1)
46
+ mutex_m (0.2.0)
47
+ pry (0.14.2)
48
+ coderay (~> 1.1)
49
+ method_source (~> 1.0)
50
+ rack (3.2.4)
51
+ rack-test (2.1.0)
52
+ rack (>= 1.3)
53
+ rake (13.1.0)
54
+ redcarpet (3.6.0)
55
+ rspec (3.12.0)
56
+ rspec-core (~> 3.12.0)
57
+ rspec-expectations (~> 3.12.0)
58
+ rspec-mocks (~> 3.12.0)
59
+ rspec-console (0.6.1)
60
+ bond
61
+ rspec-core (3.12.2)
62
+ rspec-support (~> 3.12.0)
63
+ rspec-expectations (3.12.3)
64
+ diff-lcs (>= 1.2.0, < 2.0)
65
+ rspec-support (~> 3.12.0)
66
+ rspec-json_matcher (0.2.0)
67
+ amazing_print
68
+ json
69
+ rspec-mocks (3.12.6)
70
+ diff-lcs (>= 1.2.0, < 2.0)
71
+ rspec-support (~> 3.12.0)
72
+ rspec-support (3.12.1)
73
+ ruby2_keywords (0.0.5)
74
+ shotgun (0.9.2)
75
+ rack (>= 1.0)
76
+ tzinfo (2.0.6)
77
+ concurrent-ruby (~> 1.0)
78
+
79
+ PLATFORMS
80
+ ruby
81
+ x86_64-linux
82
+
83
+ DEPENDENCIES
84
+ bundler (>= 1.5)
85
+ pry
86
+ rack-json_schema!
87
+ rack-test
88
+ rake
89
+ rspec (>= 2.14.1)
90
+ rspec-console
91
+ rspec-json_matcher
92
+ shotgun
93
+
94
+ BUNDLED WITH
95
+ 2.5.3
@@ -138,13 +138,15 @@ module Rack
138
138
 
139
139
  # @return [String] request body
140
140
  def body
141
- if instance_variable_defined?(:@body)
142
- @body
143
- else
141
+ return @body if instance_variable_defined?(:@body)
142
+
143
+ if request.body
144
144
  @body = request.body.read
145
145
  request.body.rewind
146
- @body
146
+ else
147
+ @body = ''
147
148
  end
149
+ @body
148
150
  end
149
151
 
150
152
  # @return [Hash] Request parameters decoded from JSON
@@ -1,5 +1,5 @@
1
1
  module Rack
2
2
  module JsonSchema
3
- VERSION = "1.5.3"
3
+ VERSION = "1.5.4"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-json_schema
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.3
4
+ version: 1.5.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryo Nakamura
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2024-01-16 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: erubis
@@ -178,7 +177,6 @@ dependencies:
178
177
  - - ">="
179
178
  - !ruby/object:Gem::Version
180
179
  version: '0'
181
- description:
182
180
  email:
183
181
  - r7kamura@gmail.com
184
182
  executables:
@@ -194,6 +192,7 @@ files:
194
192
  - ".gitignore"
195
193
  - CHANGELOG.md
196
194
  - Gemfile
195
+ - Gemfile.lock
197
196
  - LICENSE.txt
198
197
  - README.md
199
198
  - Rakefile
@@ -222,7 +221,6 @@ homepage: https://github.com/r7kamura/rack-json_schema
222
221
  licenses:
223
222
  - MIT
224
223
  metadata: {}
225
- post_install_message:
226
224
  rdoc_options: []
227
225
  require_paths:
228
226
  - lib
@@ -237,8 +235,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
237
235
  - !ruby/object:Gem::Version
238
236
  version: '0'
239
237
  requirements: []
240
- rubygems_version: 3.5.3
241
- signing_key:
238
+ rubygems_version: 3.6.9
242
239
  specification_version: 4
243
240
  summary: JSON Schema based Rack middlewares
244
241
  test_files: