g5_foundation_client 0.0.8 → 0.0.9

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: ee5b38c956c0df7d76098a167757cfb0ad5b156a
4
- data.tar.gz: 1b13637bfaba09aa70df1733c89d8dc662333144
3
+ metadata.gz: f8e214f0f67d36fd31d92bb83d32e0e1933af173
4
+ data.tar.gz: 172efea40e91283f48b3ee5a8fee665aca96b515
5
5
  SHA512:
6
- metadata.gz: fda59208298cc93d577b5014ab871f60cefef040e240c026a7bba3cc2360eacc983db8be30361429fa4a1b6160e3b919e7a053fe7fd15cda8efcf375971b277f
7
- data.tar.gz: 41a77f8a3730a2835eb491e67527160cb73e41d1db1a7eab5a9604baa127a5146f42aa17e1fe8ccdf5fae40135b9e3659ca8ca5bfc8e9a73a992ccbc9b10f2c0
6
+ metadata.gz: 503b09dd21ed7ac3d67b212101e99cad2d904985352ce2fc954c01b6645dcf52d8ec408824a5366a6da7e08b91bbab1df857e2048e7a5f5b5c6a48956d129818
7
+ data.tar.gz: 957ac5530821e4c0572559d0eed5ef4ff71c1a4ff2502da469f91a44d3f9095311aad53de4129d62b7e5d0fb08ceda71f56d20ce2e3ad13f88e133cdbe3c98e6
@@ -11,11 +11,10 @@ module G5FoundationClient
11
11
  def self.access_token
12
12
  @access_token ||= G5AuthenticationClient::Client.new.get_access_token
13
13
  end
14
-
15
- class RecordNotFoundException < Exception
16
- end
17
14
  end
18
15
 
16
+ require 'g5_foundation_client/error'
17
+ require 'g5_foundation_client/record_not_found_exception'
19
18
  require 'g5_foundation_client/fetcher'
20
19
 
21
20
  require 'g5_foundation_client/models/findable_by_uid'
@@ -0,0 +1,3 @@
1
+ class G5FoundationClient::Error < StandardError
2
+
3
+ end
@@ -15,7 +15,7 @@ class G5FoundationClient::Fetcher
15
15
  "Couldn't find record at URL '#{url}'"
16
16
  )
17
17
  else
18
- raise Exception.new(
18
+ raise G5FoundationClient::Error.new(
19
19
  "I got an unexpected response code '#{response.response.code}'"
20
20
  )
21
21
  end
@@ -1,2 +1,2 @@
1
- class G5FoundationClient::RecordNotFoundException < StandardError
1
+ class G5FoundationClient::RecordNotFoundException < G5FoundationClient::Error
2
2
  end
@@ -1,3 +1,3 @@
1
1
  module G5FoundationClient
2
- VERSION = "0.0.8"
2
+ VERSION = '0.0.9'
3
3
  end
@@ -36,6 +36,7 @@ describe G5FoundationClient::Fetcher do
36
36
 
37
37
  it "explodes violently" do
38
38
  expect { fetch }.to raise_error(/418/)
39
+ expect { fetch }.to raise_error(G5FoundationClient::Error)
39
40
  end
40
41
  end
41
42
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: g5_foundation_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Don Petersen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-09 00:00:00.000000000 Z
11
+ date: 2014-10-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -138,6 +138,7 @@ files:
138
138
  - Rakefile
139
139
  - g5_foundation_client.gemspec
140
140
  - lib/g5_foundation_client.rb
141
+ - lib/g5_foundation_client/error.rb
141
142
  - lib/g5_foundation_client/fetcher.rb
142
143
  - lib/g5_foundation_client/models/client.rb
143
144
  - lib/g5_foundation_client/models/findable_by_uid.rb