human_error 2.0.0beta3 → 2.0.0beta4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/human_error/version.rb +1 -1
- data/lib/human_error.rb +2 -2
- 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: 9aac9f10a553ddfd7ae0e709b61a4665ed42b11a
|
4
|
+
data.tar.gz: e0638dfb2c3826bcf2e12b1a2dc4d80cfbc1f65b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 10c586d814db279ac12c0e92fa03f1072b71db6a0f298fa016e4f9c526784a748b911c2c9e972543d83e24201d5b0886f5d46b8f4b5b2dd0c976783b19027010
|
7
|
+
data.tar.gz: 797367b8c9c492e150626b36a138ec9fa478f89d5faafb57188491d110aa0eeedbe66dc9b1b389b1846737ba6e7f5a5059172e27d33bda3a69485a70096830c5
|
data/lib/human_error/version.rb
CHANGED
data/lib/human_error.rb
CHANGED
@@ -11,7 +11,7 @@ class HumanError
|
|
11
11
|
yield configuration if block_given?
|
12
12
|
end
|
13
13
|
|
14
|
-
def fetch(error_type
|
14
|
+
def fetch(error_type)
|
15
15
|
Object.const_get("HumanError::Errors::#{error_type}")
|
16
16
|
end
|
17
17
|
|
@@ -27,7 +27,7 @@ class HumanError
|
|
27
27
|
end
|
28
28
|
|
29
29
|
def raise(error_type, **args)
|
30
|
-
error = fetch(error_type
|
30
|
+
error = fetch(error_type).new(**args)
|
31
31
|
|
32
32
|
Kernel.raise error
|
33
33
|
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: 2.0.
|
4
|
+
version: 2.0.0beta4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- jfelchner
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-04-
|
11
|
+
date: 2015-04-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|