dagger 0.4.1 → 0.4.2

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: 84aef19ee4b595b72d8b1909e4b4aea37a6875d6
4
- data.tar.gz: 893de24af8328056b4ca7c06c31b998035fbe7c2
3
+ metadata.gz: dbe26ea3b30c0f151159b8bdc9a48acea0f24b37
4
+ data.tar.gz: 601cbcea87df3a8c13222859b4cf1250899d5354
5
5
  SHA512:
6
- metadata.gz: 0e748e4015ca49978dd78d29e6a7d3a088eafeba2d2acb840735118c50dd9b8c09e5d44f82ba144ce4dab70bd052c768a5b5a91c52ad5c721df0ace9baab6d55
7
- data.tar.gz: c5f5d06c3880232c7665f1d821fd2ef58d9656870075b5929693d6caac6a4c474efc1c2f27b4d03658faf67a488e9a23248db2de1cb0cdea740be707ff8fdc36
6
+ metadata.gz: a92365c53c1ebe65027ad80b1ddfdfffdbcca9b74fb30e43549b8ee42795351bad334619105e9d032f99b071c7ae3f52fc26b226ac75b0710352e2b7ce18264d
7
+ data.tar.gz: cfe2b4d7002a0897146b26e1caf998c9d57c10ca8b56c42b2a6e1dd18153c48c8bf816b38eb6091b4bb3106c82f67db327006d659c39efc5e3bb53d5ff563f03
@@ -27,6 +27,14 @@ module Dagger
27
27
 
28
28
  alias_method :status, :code
29
29
 
30
+ def success?
31
+ [200, 201].include?(code)
32
+ end
33
+
34
+ def redirect?
35
+ [301, 302, 303, 307].include?(code)
36
+ end
37
+
30
38
  def to_s
31
39
  body.to_s
32
40
  end
@@ -1,7 +1,7 @@
1
1
  module Dagger
2
2
  MAJOR = 0
3
3
  MINOR = 4
4
- PATCH = 1
4
+ PATCH = 2
5
5
 
6
6
  VERSION = [MAJOR, MINOR, PATCH].join('.')
7
7
  end
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: 0.4.1
4
+ version: 0.4.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: 2016-11-22 00:00:00.000000000 Z
11
+ date: 2016-11-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler