human_error 1.12.0 → 1.13.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: 95b89af102ac1e3a09aa191a6f1ff89c559d6f30
4
- data.tar.gz: bfbc3350e58c6fc50e8f84c44e6cfaf148902c60
3
+ metadata.gz: 61e8a54c3abf9df5cacb6bcfb6702b8964dc6c32
4
+ data.tar.gz: 3449d88835d1b017f56a632f474384af2361cb81
5
5
  SHA512:
6
- metadata.gz: 3682e282875e029033df7d72421d950c40d0e2b2b7688859de50178ac28ddb3f0a16f945788c8831a564e05b634f67e49b1ced1c897334b7c721e291d96bbaa0
7
- data.tar.gz: 27ab2ccf59ac7d6a22b5463fd805f6c4921f701f68a319b56daea771cb0fdd27bd10f04a549903f0b7c4c75d0b2aaa61e91412f9430fbd55efa8885cc21a3648
6
+ metadata.gz: 2f2be721a2815a231526b6a2583cefac5c0545c2448b3d0c20344875c571775608fc36db656dfffc6f3d2e520d93ff556b041e0ad8126fbda57d834779262654
7
+ data.tar.gz: 23e785ed602cbc7871868ed959a88c55dc017f071086505e0b9acbc32f13d3da06f61c485d75d9e81a06ce8a6b4fc23373fc7d4df89aa14dd1910679cc4790f4
data/LICENSE ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2014 Jeff Felchner
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -15,6 +15,7 @@ class ErrorCodeDirectory
15
15
  'Apill::Errors::InvalidApiRequestError' => 1007,
16
16
  'HumanError::Errors::DuplicateAuthenticationError' => 1008,
17
17
  'HumanError::Errors::AssociationError' => 1009,
18
+ 'Apill::Errors::InvalidSubdomainError' => 1010,
18
19
  }
19
20
  end
20
21
  end
@@ -21,6 +21,10 @@ class ResourceNotFoundError < RequestError
21
21
  def friendly_message
22
22
  "Sorry! The #{resource_name} you tried to #{action} does not exist."
23
23
  end
24
+
25
+ def action
26
+ @action || 'access'
27
+ end
24
28
  end
25
29
  end
26
30
  end
@@ -15,6 +15,7 @@ class KnowledgebaseIdDirectory
15
15
  'Apill::Errors::InvalidApiRequestError' => '1234567890',
16
16
  'HumanError::Errors::DuplicateAuthenticationError' => '1234567890',
17
17
  'HumanError::Errors::AssociationError' => '1234567890',
18
+ 'Apill::Errors::InvalidSubdomainError' => '1234567890',
18
19
  }
19
20
  end
20
21
  end
@@ -1,3 +1,3 @@
1
1
  class HumanError
2
- VERSION = '1.12.0'
2
+ VERSION = '1.13.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: human_error
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.12.0
4
+ version: 1.13.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - jfelchner
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-30 00:00:00.000000000 Z
11
+ date: 2014-11-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 3.0.beta
19
+ version: '3.0'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 3.0.beta
26
+ version: '3.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rspectacular
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '0.37'
33
+ version: '0.50'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '0.37'
40
+ version: '0.50'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: codeclimate-test-reporter
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -56,9 +56,9 @@ description: ''
56
56
  email: accounts+git@thekompanee.com
57
57
  executables: []
58
58
  extensions: []
59
- extra_rdoc_files:
60
- - README.md
59
+ extra_rdoc_files: []
61
60
  files:
61
+ - LICENSE
62
62
  - README.md
63
63
  - Rakefile
64
64
  - lib/human_error.rb
@@ -92,11 +92,11 @@ files:
92
92
  - spec/lib/human_error/rescuable_resource_spec.rb
93
93
  - spec/lib/human_error_spec.rb
94
94
  homepage: https://github.com/thekompanee/human_error
95
- licenses: []
95
+ licenses:
96
+ - MIT
96
97
  metadata: {}
97
98
  post_install_message:
98
- rdoc_options:
99
- - "--charset = UTF-8"
99
+ rdoc_options: []
100
100
  require_paths:
101
101
  - lib
102
102
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -110,8 +110,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
110
110
  - !ruby/object:Gem::Version
111
111
  version: '0'
112
112
  requirements: []
113
- rubyforge_project: human_error
114
- rubygems_version: 2.3.0
113
+ rubyforge_project:
114
+ rubygems_version: 2.4.2
115
115
  signing_key:
116
116
  specification_version: 4
117
117
  summary: Common Error Extensions and Helpers
@@ -127,4 +127,3 @@ test_files:
127
127
  - spec/lib/human_error/errors/request_error_spec.rb
128
128
  - spec/lib/human_error/rescuable_resource_spec.rb
129
129
  - spec/lib/human_error_spec.rb
130
- has_rdoc: