out_put 2.1.0 → 2.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/out_put.rb +1 -1
- data/lib/out_put/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0fa621af6864a3226bfa1a8944da2ca54a374dce
|
4
|
+
data.tar.gz: 0f9f90ed280e01bfaf85b5bb479051fc4007f86d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3b5f222f84c0f577edde5fbf3036c83d1af7cd6fad38ca5778eb11f5b53091a275150ec8c0b397dece92f7a7e9e877228a99f90ded1aab74aa4fc45f0a0ff1e7
|
7
|
+
data.tar.gz: 5cc226748d1aaeea165b1049d0ebd25ec5933fcad06d6016049b7a769ea9aea3adc0dd5f473f23a0da8a64caf36f751945c2fa0a457984d21e5f2be1264f8195
|
data/Gemfile.lock
CHANGED
data/lib/out_put.rb
CHANGED
@@ -4,7 +4,7 @@ require 'out_put/config'
|
|
4
4
|
module OutPut
|
5
5
|
def output(code = 0, msg = '', only: nil, http: 200, **data)
|
6
6
|
if !code.is_a?(Integer) && code.respond_to?(:info)
|
7
|
-
code, msg,
|
7
|
+
code, msg, http, only = code.info.slice(:code, :msg, :http, :only).values
|
8
8
|
end
|
9
9
|
|
10
10
|
return render json: only, status: http if only.present?
|
data/lib/out_put/version.rb
CHANGED