dagger 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dagger/response.rb +4 -2
- data/lib/dagger/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 400789f6c3710c704d0336c5c68d287124d439e0
|
4
|
+
data.tar.gz: 87b3fab878972ef9acfab1d63b8f23e50ce78ddc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a665605c3ff2136a18b780b8bd641d652ebe6252359285a11f051de485fd8e289f065c335f1706ace41552a7dda5b79e5de068e4e360e7d7cb41ea7c652e6f38
|
7
|
+
data.tar.gz: f61b5b2517b2c52a325d631c121a8a8d203fd74fc2716a154ebffa3d09f93373962047b699faa34db70119e38ad07d894187bdfb9cec593b695afca16130fc17
|
data/lib/dagger/response.rb
CHANGED
@@ -21,16 +21,18 @@ module Dagger
|
|
21
21
|
super.to_i
|
22
22
|
end
|
23
23
|
|
24
|
+
alias_method :status, :code
|
25
|
+
|
24
26
|
def content_type
|
25
27
|
self['Content-Type']
|
26
28
|
end
|
27
29
|
|
28
|
-
alias_method :status, :code
|
29
|
-
|
30
30
|
def success?
|
31
31
|
[200, 201].include?(code)
|
32
32
|
end
|
33
33
|
|
34
|
+
alias_method :ok?, :success?
|
35
|
+
|
34
36
|
def redirect?
|
35
37
|
[301, 302, 303, 307].include?(code)
|
36
38
|
end
|
data/lib/dagger/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dagger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tomás Pollak
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-06-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|