endicia_ruby 0.1.0 → 0.2.0

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: 069bc5090abdcefa20260fd618036ac0f9438a03
4
- data.tar.gz: fa9e5f2e9957c1f2712a04f2b033859b75553185
3
+ metadata.gz: 909cd4f3c761048f68f9fd5087c50e92b2ce5ee0
4
+ data.tar.gz: d78dba217fca9c2b75f197503b6be605cc58f6ee
5
5
  SHA512:
6
- metadata.gz: 6940cb6f90dbdf668bab142075a394c54eef47a63ee3546fee998883c54e6ffdfcac2a9865837b85922de36123d23c4cc1b68ee86117b0236cbdede7146ef4de
7
- data.tar.gz: fba952cd0c7e4dbd5d8f2ec8d2b6d11d9998c99dde58ee0f5d88af2c9993a729b1e991639b2ead1cb8461292cfd8a682ae0b166aaea6c135024f80aa3275f86d
6
+ metadata.gz: 3191af9cfb5e4f7aed7e94826bf78c036960e8defc6bf516c5bbc208304e9842dce97c9b39b340be709f0d680a244c0c64f73a5914bf71c96024e88912065c0e
7
+ data.tar.gz: 24dbe4cfc1b4a494dda7a9346895d87c276d04bf43c6b99f5104950fb0643fd345bdbc81c33d48c59475401b2f9f64b9c4cb9642c69fe4be727ed8cc97cde0d8
@@ -38,7 +38,7 @@ module Endicia
38
38
  end
39
39
 
40
40
  # True if this result represents a successful label response
41
- def success?
41
+ def label_generated?
42
42
  status && status.to_i == 0
43
43
  end
44
44
 
@@ -1,3 +1,3 @@
1
1
  module Endicia
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.0"
3
3
  end
@@ -81,23 +81,23 @@ describe Endicia::LabelResponse do
81
81
  end
82
82
  end
83
83
  end
84
- describe "#success?" do
84
+ describe "#label_generated?" do
85
85
  let(:status) { nil }
86
86
  subject(:label_response) { described_class.new(OpenStruct.new(body: "<foo></foo>", LabelRequestResponse: {"Status" => status})) }
87
87
 
88
88
  context "when '0'" do
89
89
  let(:status) { "0" }
90
- specify { expect(label_response.success?).to eq(true) }
90
+ specify { expect(label_response.label_generated?).to eq(true) }
91
91
  end
92
92
 
93
93
  context "when 0" do
94
94
  let(:status) { 0 }
95
- specify { expect(label_response.success?).to eq(true) }
95
+ specify { expect(label_response.label_generated?).to eq(true) }
96
96
  end
97
97
 
98
98
  context "when not 0" do
99
99
  let(:status) { "1234" }
100
- specify { expect(label_response.success?).to eq(false) }
100
+ specify { expect(label_response.label_generated?).to eq(false) }
101
101
  end
102
102
  end
103
103
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: endicia_ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jon Dean
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-10-28 00:00:00.000000000 Z
12
+ date: 2014-11-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: nokogiri