stuka 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/stuka/external/action_finder.rb +4 -2
- data/lib/stuka/version.rb +1 -1
- 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: c390d54e53f4a0d89d530847b7b4cc158185cf34
|
4
|
+
data.tar.gz: 90789d2c05b02994080e5bd92d1c1b9a543dda52
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2fe276f89dbf01a1273035270a61149e2de9048aefad79b6dbf2f495934b33dbb354619cf515b7f48ede2c5d56db20b991b21e4a04f77b0d622f2315bb63b6e8
|
7
|
+
data.tar.gz: a454782d199cf65b5835bb63336f628480c9aa0ff17d9077e6d7326a128e94948a2d7cbe7b2e2c15277396f6ba3bea1212af723fec016f4dc0f0bb35a00f3a10
|
@@ -1,6 +1,7 @@
|
|
1
1
|
require 'stuka/external/unknown_action'
|
2
2
|
require 'stuka/config/stuka_paths'
|
3
3
|
require 'stuka/monkeypatch/string_patch'
|
4
|
+
require 'stuka/config/template_config'
|
4
5
|
|
5
6
|
module Stuka::External
|
6
7
|
|
@@ -10,13 +11,14 @@ module Stuka::External
|
|
10
11
|
namespace, name = action.split "::"
|
11
12
|
class_namespace = namespace.camelcase_notation
|
12
13
|
class_name = name.camelcase_notation
|
14
|
+
action_modules = Stuka::TemplateConfig.action_module_namespaces
|
13
15
|
begin
|
14
|
-
clazz = Object.const_get("
|
16
|
+
clazz = Object.const_get("#{action_modules.join("::")}::#{class_namespace}::#{class_name}")
|
15
17
|
rescue NameError
|
16
18
|
file_path = "#{Stuka::StukaPaths.actions_source_path}/#{namespace}/#{name}"
|
17
19
|
raise Stuka::External::UnknownAction.new(action) unless File.file?("#{file_path}.rb")
|
18
20
|
require_relative file_path
|
19
|
-
clazz = Object.const_get("
|
21
|
+
clazz = Object.const_get("#{action_modules.join("::")}::#{class_namespace}::#{class_name}")
|
20
22
|
end
|
21
23
|
clazz.new(process)
|
22
24
|
end
|
data/lib/stuka/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stuka
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Sljukic
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-11-
|
11
|
+
date: 2014-11-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|