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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 65f5bfdecabf2182e2a8426a80945ce3ac481475
4
- data.tar.gz: c4c02e35713cb342dd9547e66873af66ebfcf647
3
+ metadata.gz: 9aac9f10a553ddfd7ae0e709b61a4665ed42b11a
4
+ data.tar.gz: e0638dfb2c3826bcf2e12b1a2dc4d80cfbc1f65b
5
5
  SHA512:
6
- metadata.gz: 4ddb6597d4e73eb78553a4f855336aea5cb8a3af441d2d5563de05c292100bacbdbef3047297a3a4792606802bbe90c62e52656f1e480dca5822a6cbc29fb49b
7
- data.tar.gz: 17471de34359dbe7ebc2e261658cf0037af8924c721ed701667bded4d77ef9e38ab3087a22b5fc1914b1983d475ada4c244a52e36df1970c18c0d1a97e8d4707
6
+ metadata.gz: 10c586d814db279ac12c0e92fa03f1072b71db6a0f298fa016e4f9c526784a748b911c2c9e972543d83e24201d5b0886f5d46b8f4b5b2dd0c976783b19027010
7
+ data.tar.gz: 797367b8c9c492e150626b36a138ec9fa478f89d5faafb57188491d110aa0eeedbe66dc9b1b389b1846737ba6e7f5a5059172e27d33bda3a69485a70096830c5
@@ -1,3 +1,3 @@
1
1
  class HumanError
2
- VERSION = '2.0.0beta3'
2
+ VERSION = '2.0.0beta4'
3
3
  end
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, **_args)
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, **args)
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.0beta3
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-10 00:00:00.000000000 Z
11
+ date: 2015-04-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec