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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cf2ccae2b99c2511f9e6370a4259e29e54e808d4
4
- data.tar.gz: 0bf2dea8ad2f94b9256a26a907b35cc8bfadc3e4
3
+ metadata.gz: 400789f6c3710c704d0336c5c68d287124d439e0
4
+ data.tar.gz: 87b3fab878972ef9acfab1d63b8f23e50ce78ddc
5
5
  SHA512:
6
- metadata.gz: b23eb25b661ab2989e4d9bb7405dc33c8638a88cbbe031ff5de69e41b64e56cd162778b4cd0ced865ecc53875d97ea9c2ca4c621cb7008ac8db292fe7e183022
7
- data.tar.gz: b1763ef646a7ae325b73b05e850789530d00a811d692ae113a3f25c02c8788d6e684144a46140390557337f202ff0284498a0c0eab56d6179396b77f06e8a889
6
+ metadata.gz: a665605c3ff2136a18b780b8bd641d652ebe6252359285a11f051de485fd8e289f065c335f1706ace41552a7dda5b79e5de068e4e360e7d7cb41ea7c652e6f38
7
+ data.tar.gz: f61b5b2517b2c52a325d631c121a8a8d203fd74fc2716a154ebffa3d09f93373962047b699faa34db70119e38ad07d894187bdfb9cec593b695afca16130fc17
@@ -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
@@ -1,7 +1,7 @@
1
1
  module Dagger
2
2
  MAJOR = 1
3
3
  MINOR = 0
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: 1.0.1
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-05-09 00:00:00.000000000 Z
11
+ date: 2018-06-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler