factor 0.0.94 → 0.0.95

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.
Files changed (2) hide show
  1. data/lib/runtime/engine.rb +3 -3
  2. metadata +1 -1
@@ -27,9 +27,9 @@ module Factor
27
27
  # and the module inside must be camal cased to match
28
28
  # once loaded it is in the channel_modules Hash
29
29
  def load_channel filename
30
- file= filename.is_a?(String) ? File.new(filename) : filename
31
- require file
32
- channel_module_name = File.basename(file).gsub('.rb','').split('_').map{|ea| ea.capitalize}.join('')
30
+ filename = File.absolute_path(File.expand_path(filename.path)) if filename.is_a?(File) # just in case someone passes in a File not a String (i.e. me)
31
+ require filename
32
+ channel_module_name = File.basename(filename).gsub('.rb','').split('_').map{|ea| ea.capitalize}.join('')
33
33
  channel_module= self.class.const_get(channel_module_name)
34
34
  @channel_modules[channel_module.definition["module"]]=channel_module
35
35
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: factor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.94
4
+ version: 0.0.95
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: