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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cfe49bd74dc6b5bd2ecd57c23f198e9e508d024e
4
- data.tar.gz: f4803fdb613ff6b3453ee218d1c9fcc66eea5051
3
+ metadata.gz: 0fa621af6864a3226bfa1a8944da2ca54a374dce
4
+ data.tar.gz: 0f9f90ed280e01bfaf85b5bb479051fc4007f86d
5
5
  SHA512:
6
- metadata.gz: f7d6f4e328f15e0ee282f2ee0499550ace14b59fc5752f97a4a880a10ffa8d237dfe5bc7ea499125a41fcd9727cc9064886b2c3798bd954b43af3d0cd2577775
7
- data.tar.gz: db0b8ab7835fb4c92a11578770cec0a44637ca0a170d619297f9614411a8892570c9c539a1b0f9329c930744953c762ee2e41da05e3bd86d0a0c550d755133fb
6
+ metadata.gz: 3b5f222f84c0f577edde5fbf3036c83d1af7cd6fad38ca5778eb11f5b53091a275150ec8c0b397dece92f7a7e9e877228a99f90ded1aab74aa4fc45f0a0ff1e7
7
+ data.tar.gz: 5cc226748d1aaeea165b1049d0ebd25ec5933fcad06d6016049b7a769ea9aea3adc0dd5f473f23a0da8a64caf36f751945c2fa0a457984d21e5f2be1264f8195
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- out_put (2.1.0)
4
+ out_put (2.1.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
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, only, http = code.info.slice(:code, :msg, :only, :http).values
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?
@@ -1,3 +1,3 @@
1
1
  module OutPut
2
- VERSION = '2.1.0'
2
+ VERSION = '2.1.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: out_put
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - zhandao