sinarey 1.0.6 → 1.0.7
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 +5 -5
- data/lib/sinarey/base.rb +2 -2
- data/lib/sinarey/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 2cf1672c04ed2989c747633b14b7d3fc7d86a061ce5a8ebaaf3e909c3efd8ad6
|
|
4
|
+
data.tar.gz: 7b921573cbe52d4e8d2b34872d54175b17e6a07f9d9c3726fe2d1c808c3504c5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7ac59ac392767974d1c1ca6e6f65e8a8ce7bd6b46369247088e28417d1301fd769872eed45e5ac0a9e3ff2356c19433ae17178c43dd78199ee8e897fc1ec7f2f
|
|
7
|
+
data.tar.gz: 94099a2d251fc61431021937b0713331e1104be92145a47ce6a7ce5ed26dff3bd0ff623482bfa263f99f1f7d856bc69244746e4fca43558989c5a3942e635324
|
data/lib/sinarey/base.rb
CHANGED
|
@@ -252,8 +252,8 @@ module Sinatra
|
|
|
252
252
|
# Run the block with 'throw :halt' support and apply result to the response.
|
|
253
253
|
def invoke
|
|
254
254
|
res = catch(:halt) { yield }
|
|
255
|
-
res = [res] if
|
|
256
|
-
if Array === res and
|
|
255
|
+
res = [res] if Integer === res or String === res
|
|
256
|
+
if Array === res and Integer === res.first
|
|
257
257
|
res = res.dup
|
|
258
258
|
status(res.shift)
|
|
259
259
|
body(res.pop)
|
data/lib/sinarey/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sinarey
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.7
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jeffrey
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2019-02-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: sinatra
|
|
@@ -62,7 +62,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
62
62
|
version: '0'
|
|
63
63
|
requirements: []
|
|
64
64
|
rubyforge_project:
|
|
65
|
-
rubygems_version: 2.
|
|
65
|
+
rubygems_version: 2.7.8
|
|
66
66
|
signing_key:
|
|
67
67
|
specification_version: 4
|
|
68
68
|
summary: Sinarey, use for large rack project.
|