rack-app 10.0.0 → 11.0.0

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: 7b3058bb6d9204572e2c65f667ea438a8122a47463fb4403ce033f05bf026234
4
- data.tar.gz: 8948e893f2801919abce11a18b437530263dadb3111daa8a4fa3ec3a58fee66f
3
+ metadata.gz: 34010813828ea95f84bf7fb0958b0d2e8912e246891e8bbf46e7af1bea541f84
4
+ data.tar.gz: '0356991e9ef33ff15deb572465913d9dde5bf89a877e7895be02e00f0b28d90a'
5
5
  SHA512:
6
- metadata.gz: f0407ce827d7f76bbaa08b240977f985ce7f4eb77adc38ebb44e0e08cda29d2d873db29f351220d867cfa6bfd6d57dd244a1a07103466d01c052076a468c27a0
7
- data.tar.gz: 674026a697470157da4809c7270223e1177c662553f5d09a1c6260a979ed3cdec9e9233c8504ac0bdfdcff12b7b6cd7e4afb392e3596f5c45f42fe86bf343341
6
+ metadata.gz: 134584de369514bf63204d4700e0f0a79a316fa2b446cc29c3f6ed81484dbdda4babb9d7fd9da53e2d40bede390673ed77319e466c7ba8e67a64beb436117a6e
7
+ data.tar.gz: 59ed4ddd0c05094f5b608bdb6f237b9d0a80c194b13b4405d9e9482ed75f2f323f9b249564c8556cb31287b0afcb14ea95cab6e93a8b43ad8ed76c7890f6733a
data/VERSION CHANGED
@@ -1 +1 @@
1
- 10.0.0
1
+ 11.0.0
@@ -1,10 +1,9 @@
1
1
  module Rack::App::InstanceMethods::HTTPStatus
2
2
 
3
- def http_status!(code, desc=nil)
3
+ def http_status!(code, body=nil)
4
4
  raise unless code.is_a?(Integer)
5
5
  response.status = code
6
- response.write(desc || Rack::App::Constants::HTTP_STATUS_CODES[code] || raise)
7
- finish!
6
+ respond_with(body || Rack::App::Constants::HTTP_STATUS_CODES[code] || raise)
8
7
  end
9
8
 
10
9
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-app
3
3
  version: !ruby/object:Gem::Version
4
- version: 10.0.0
4
+ version: 11.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Luzsi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-09-11 00:00:00.000000000 Z
11
+ date: 2023-09-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler