protocol-http 0.16.1 → 0.16.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
  SHA256:
3
- metadata.gz: c4fa5196f58a86fe4786588d869824dfd39b8625ea924e032dbfaf58d6eafb0c
4
- data.tar.gz: 6a21906f09ad8d8eb99f92c5a9c24e3fd61b7afde6d42beeb6e0618a993f40a7
3
+ metadata.gz: 8780963e3d4d2047c5eaaa772ad17b06552e16a7d552163e2547e2efc135ba95
4
+ data.tar.gz: 8b84a92f87b1aa6d548bb5c55833935b860b762db547b741177681de951998dd
5
5
  SHA512:
6
- metadata.gz: e3c7feecbd956e6370093d9aee7039f0accca1a3ab598953bbe024f196b71539ac7dcf59e8b41afa088c07f6e06b42345e2e585bce67336900051f149ac4281d
7
- data.tar.gz: 4edc17d1969cecbee783a15924b4fad852603a2ca904208f0eb5ba6fd16cd35fb837324bbc47bb6a1e472088729bdb4a6c7070b6394f0e504b5a26f7a16f9307
6
+ metadata.gz: 70a2f05d40dfd70d7b27f8d1c0f9b52cd7bdec132c4dd45b56581827ee9cf1e6bb3edfc50c937a23bd72ae712eeb8f9a0502594adecef1b3d2cf07dcac6ea6f9
7
+ data.tar.gz: dd5d9697b59d893fd9c5cb94a7c84dc3f9e75a49754262aada2a4b0bb54b235165a7012215641728904247d23224d9a0bddab4e4f5eff86fc884d073a95df527
@@ -62,6 +62,10 @@ module Protocol
62
62
  @status and @status >= 300 && @status < 400
63
63
  end
64
64
 
65
+ def not_modified?
66
+ @status == 304
67
+ end
68
+
65
69
  def preserve_method?
66
70
  @status == 307 || @status == 308
67
71
  end
@@ -22,6 +22,6 @@
22
22
 
23
23
  module Protocol
24
24
  module HTTP
25
- VERSION = "0.16.1"
25
+ VERSION = "0.16.2"
26
26
  end
27
27
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: protocol-http
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.1
4
+ version: 0.16.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams