micropub 0.0.4 → 0.0.5

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: c0709be3a6fa2b2476a227fe71963ae3c784ca52
4
- data.tar.gz: ae7c74e58285a7b2c87363f817aee4a5a075b390
3
+ metadata.gz: 0db7a3682304b5c26c85c72c1ffa361e3b9e342f
4
+ data.tar.gz: e73de8013d9a3a7531e1695b1f2b6c1f30133250
5
5
  SHA512:
6
- metadata.gz: 2f7c1edbd18df933334941ad938747cc761874a4194a26ea343c896685b69d35fe20bae4ee4cc34578a3348896ae61138d4ed0a0d64041d63068c5558d319f03
7
- data.tar.gz: b137dc258c754f6efdd581b8a4ade22a89bd330e60401123694539335596c64b9215f2cfbabb17e54e7cc2ff00f32a58dc6732894db4cf3a2dfdeb5a735c7d39
6
+ metadata.gz: 8dfe511ff7b30abbf7c8d75d14609b31aefda24edfbf379406d94ec4a7a6cf6416cbe17dfd608617870d8ff38f913a4e6cef447fdf98b4e5668f54898654dfdc
7
+ data.tar.gz: 6636fb2cad7b4aec5076751f3af73c830dfb232f7132dedfdd02e9f8ab82b7b889c39d3b370bee6f9fdb75ba428c6f3939715876c672b02dc651ed445900f1d7
@@ -6,5 +6,9 @@ module Micropub
6
6
  @body = response.body
7
7
  @location = response.headers["Location"]
8
8
  end
9
+
10
+ def successful?
11
+ (201...206).include? status
12
+ end
9
13
  end
10
14
  end
@@ -1,3 +1,3 @@
1
1
  module Micropub
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
@@ -18,4 +18,12 @@ describe Micropub::Response do
18
18
  expect(response.location).to eq "http://example.com/1"
19
19
  end
20
20
  end
21
+
22
+ describe "#successful?" do
23
+ context "when in the 200 range" do
24
+ it "is true" do
25
+ expect(response.successful?).to eq true
26
+ end
27
+ end
28
+ end
21
29
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: micropub
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shane Becker