samwise 0.2.5 → 0.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4aa8c4c1e02846436dac40e2f00b1cfc75517939
4
- data.tar.gz: 9f44efd3d45b1ef9217b52b450454109b32f6471
3
+ metadata.gz: 8cedf0ddf4f864708ca96abba38a421d72d3b977
4
+ data.tar.gz: 4344f18276fb3ffad195a0ec646a81a4bb380ceb
5
5
  SHA512:
6
- metadata.gz: 1e9b219f3fec18e5681b94bf4a25f68fe82f32a7a9b963a391b27e9e66f0d70e28c605af14bbdf73a4786cc6d209894d1b4eb58e4341657e7767c6a32cf8330e
7
- data.tar.gz: b16d17b4bc55de2aa45076daf37bfd19fac72b8b2274f94dab32dc9ec95239285c7a4df6ff53163e251b1ac2d51c996bc2c0f0fad35296d832ac269c6ccbad97
6
+ metadata.gz: ac6ef030f7aa3cdc9923893a0ebc2f030c0558d889771b0d91a27353f47a382b1db0b61b16f9696bab82292a72cede315503ca8f13e085ca87d74982bfb1d6a6
7
+ data.tar.gz: 1318c3ffc619e53dd9f4f7181c2324ce9d233f05dce845bfcf325780b1018a7860425c998a0b3e4811c9881bc4aafbc7c1b6ed5ca8f7c81543214fea7ed36103
@@ -5,5 +5,8 @@ module Samwise
5
5
  super(message)
6
6
  end
7
7
  end
8
+
9
+ class ArgumentMissing < StandardError
10
+ end
8
11
  end
9
12
  end
@@ -1,3 +1,3 @@
1
1
  module Samwise
2
- VERSION = "0.2.5"
2
+ VERSION = '0.2.6'
3
3
  end
@@ -5,9 +5,19 @@ describe Samwise::Protocol do
5
5
  let(:api_key) { '123456' }
6
6
  let(:duns) { '0123456780000'}
7
7
 
8
- it "should create the URL for the DUNS API endpoint" do
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.5
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-08 00:00:00.000000000 Z
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