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 +4 -4
- data/lib/endicia_ruby/label_response.rb +1 -1
- data/lib/endicia_ruby/version.rb +1 -1
- data/spec/label_response_spec.rb +4 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 909cd4f3c761048f68f9fd5087c50e92b2ce5ee0
|
4
|
+
data.tar.gz: d78dba217fca9c2b75f197503b6be605cc58f6ee
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3191af9cfb5e4f7aed7e94826bf78c036960e8defc6bf516c5bbc208304e9842dce97c9b39b340be709f0d680a244c0c64f73a5914bf71c96024e88912065c0e
|
7
|
+
data.tar.gz: 24dbe4cfc1b4a494dda7a9346895d87c276d04bf43c6b99f5104950fb0643fd345bdbc81c33d48c59475401b2f9f64b9c4cb9642c69fe4be727ed8cc97cde0d8
|
data/lib/endicia_ruby/version.rb
CHANGED
data/spec/label_response_spec.rb
CHANGED
@@ -81,23 +81,23 @@ describe Endicia::LabelResponse do
|
|
81
81
|
end
|
82
82
|
end
|
83
83
|
end
|
84
|
-
describe "#
|
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.
|
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.
|
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.
|
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.
|
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-
|
12
|
+
date: 2014-11-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: nokogiri
|