stuka 0.1.4 → 0.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 713af881deea4f6fc2dcee7bd1cf495c4a8e4973
4
- data.tar.gz: 341afc11d62f9a19ba2833b6b3889ebf777bdc9d
3
+ metadata.gz: c390d54e53f4a0d89d530847b7b4cc158185cf34
4
+ data.tar.gz: 90789d2c05b02994080e5bd92d1c1b9a543dda52
5
5
  SHA512:
6
- metadata.gz: 954a7f0abbd1099369cb489faa5f07f5ac150140672f07d06cb9097dfdc2fff93d27491a1af4cf5a04bb88a7f0727babb231512d2a5e4dfcfee936694c054697
7
- data.tar.gz: 51a01332472b02c812b90bd239e792eba47f2833ec637cbfd832b872341d9f4202c3564c890dae9bbb625dc61888bbf6cca2ff726ce0a3afdc544bb8417c6c7b
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("Actions#{class_namespace}::#{class_name}")
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("Actions::#{class_namespace}::#{class_name}")
21
+ clazz = Object.const_get("#{action_modules.join("::")}::#{class_namespace}::#{class_name}")
20
22
  end
21
23
  clazz.new(process)
22
24
  end
@@ -1,3 +1,3 @@
1
1
  module Stuka
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  end
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
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-05 00:00:00.000000000 Z
11
+ date: 2014-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler