pragma-operation 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pragma/operation/base.rb +1 -1
- data/lib/pragma/operation/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: 3721ff3095c7adde870e9d879340f12d1aed3a90
|
4
|
+
data.tar.gz: 5a10bdd0eaeb67e0a3457fc2881eaef1b01eedcc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dfc63fb63cebc9737babfcdf3ee1bb831911c44460407432d23d3d173fb2f58743bd8cd6f15cf469c1d6b4c746c218a5cdf6e9a14205f1888f5582a01029c87f
|
7
|
+
data.tar.gz: 42b1fca36ece4067a9e31674edacdbf3b0c99560c4088961c990ef82e81f860bfe9f91f7087d47e3edc435dd7b0e5fee8bd6ab3540c284ce8cc002af6671f83a
|
@@ -123,7 +123,7 @@ module Pragma
|
|
123
123
|
# @param status [Integer|Symbol] an HTTP status code
|
124
124
|
# @param headers [Hash] HTTP headers
|
125
125
|
# @param resource [Object] an object responding to +#to_json+
|
126
|
-
def respond_with(status:
|
126
|
+
def respond_with(status: nil, headers: {}, resource: nil)
|
127
127
|
context.status = status
|
128
128
|
context.headers = headers.to_h
|
129
129
|
context.resource = resource
|