samwise 0.2.5 → 0.2.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/samwise/error.rb +3 -0
- data/lib/samwise/version.rb +1 -1
- data/spec/protocol_spec.rb +11 -1
- 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: 8cedf0ddf4f864708ca96abba38a421d72d3b977
|
4
|
+
data.tar.gz: 4344f18276fb3ffad195a0ec646a81a4bb380ceb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ac6ef030f7aa3cdc9923893a0ebc2f030c0558d889771b0d91a27353f47a382b1db0b61b16f9696bab82292a72cede315503ca8f13e085ca87d74982bfb1d6a6
|
7
|
+
data.tar.gz: 1318c3ffc619e53dd9f4f7181c2324ce9d233f05dce845bfcf325780b1018a7860425c998a0b3e4811c9881bc4aafbc7c1b6ed5ca8f7c81543214fea7ed36103
|
data/lib/samwise/error.rb
CHANGED
data/lib/samwise/version.rb
CHANGED
data/spec/protocol_spec.rb
CHANGED
@@ -5,9 +5,19 @@ describe Samwise::Protocol do
|
|
5
5
|
let(:api_key) { '123456' }
|
6
6
|
let(:duns) { '0123456780000'}
|
7
7
|
|
8
|
-
it
|
8
|
+
it 'should create the URL for the DUNS API endpoint' do
|
9
9
|
duns_url = Samwise::Protocol.duns_url(duns: duns, api_key: api_key)
|
10
10
|
|
11
11
|
expect(duns_url).to be_a_valid_url
|
12
12
|
end
|
13
|
+
|
14
|
+
it 'should raise an ArgumentMissing error when arguments are missing' do
|
15
|
+
expect do
|
16
|
+
Samwise::Protocol.duns_url
|
17
|
+
end.to raise_error(Samwise::Error::ArgumentMissing)
|
18
|
+
|
19
|
+
expect do
|
20
|
+
Samwise::Protocol.sam_status_url
|
21
|
+
end.to raise_error(Samwise::Error::ArgumentMissing)
|
22
|
+
end
|
13
23
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: samwise
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alan deLevie
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-01-
|
11
|
+
date: 2016-01-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: codeclimate-test-reporter
|