djinni 1.0.2 → 1.1.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: dd658162d6f40ac5c5393014ad95a984d85b4c43
4
- data.tar.gz: 3dc7c3bc4c3de59ede8b49fd610e8521e96d0be4
3
+ metadata.gz: d0e5de083a469e14d986e68539dac0e6c060543b
4
+ data.tar.gz: 607034c51aa217e0702d83315a47fdbb0ca61c2d
5
5
  SHA512:
6
- metadata.gz: 86ab616ff2d6b4e3f5c3a9c4d40671aa159385e406d16e531aa8dc0b0475be19c15f24eb86430ce170eca071748bc0c97cef5371b975255c5fa5f3aee3317a15
7
- data.tar.gz: 9926ed26472681d6ac32f2545374b29e8a81a14de8729900005cd1f6597d9b8a9fb145c7804ddfc4bdfacb17c3537f59f5d9f5bf16fd9155da713adcaeb65c0a
6
+ metadata.gz: 3215e0d17e6a3c8a7db69f6884c6e3d9d8e7863ee28aeb0a80c58f4569c115c8678a6e8af5ad984946e8ec9c2be21bec0e39ddeb8c6d1df916c5ea9bd891442e
7
+ data.tar.gz: abe5457c0f36fafd7b2da519e9b4b38b9050cf9f7d071d783eb3921e59bfafbdb74c2be69ff37029e251d4c00e787dda8ce3b5608bf64a2012c6c31972371cc6
@@ -1,6 +1,6 @@
1
1
  require "djinni/error.rb"
2
2
 
3
- class Djinni::UnknownWishError < Djinni::Error
3
+ class Djinni::Error::UnknownWishError < Djinni::Error
4
4
  def initialize(clas = "")
5
5
  super("Unknown wish class #{clas}!")
6
6
  end
data/lib/djinni/error.rb CHANGED
@@ -1,2 +1,4 @@
1
1
  class Djinni::Error < RuntimeError
2
2
  end
3
+
4
+ require "djinni/error/unknown_wish_error"
data/lib/djinni.rb CHANGED
@@ -132,7 +132,7 @@ class Djinni
132
132
  begin
133
133
  wish = Object::const_get(clas).new
134
134
  rescue NameError => e
135
- raise Djinni::UnknownWishError.new(clas)
135
+ raise Error::UnknownWishError.new(clas)
136
136
  end
137
137
 
138
138
  return if (wish.nil?)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: djinni
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miles Whittaker
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-17 00:00:00.000000000 Z
11
+ date: 2015-10-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest
@@ -63,7 +63,7 @@ files:
63
63
  - lib/builtin/djinni_quit_wish.rb
64
64
  - lib/djinni.rb
65
65
  - lib/djinni/error.rb
66
- - lib/djinni/unknwon_wish_error.rb
66
+ - lib/djinni/error/unknown_wish_error.rb
67
67
  - lib/djinni/wish.rb
68
68
  homepage: http://mjwhitta.github.io/djinni
69
69
  licenses: