fedux_org-stdlib 0.0.13 → 0.0.14
Sign up to get free protection for your applications and to get access to all the features.
@@ -27,8 +27,10 @@ module FeduxOrg
|
|
27
27
|
raise FeduxOrg::Stdlib::Models::Exceptions::ExceptionNeedsToBeImplemented, "Exception \"#{library_name}::Exceptions::Invalid#{model_name}\" does not exist."
|
28
28
|
end
|
29
29
|
|
30
|
-
def check_klass( klass ,
|
31
|
-
|
30
|
+
def check_klass( klass , *methods)
|
31
|
+
methods.flatten.each do |m|
|
32
|
+
raise exception_for_model, "A valid \"#{model_name}\"-class needs to respond to \"#{ m }\"." unless klass.new.respond_to? m
|
33
|
+
end
|
32
34
|
end
|
33
35
|
|
34
36
|
def build_class_constant(name)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fedux_org-stdlib
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.14
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-06-
|
12
|
+
date: 2013-06-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|