fathom 0.3.6 → 0.3.7

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.6
1
+ 0.3.7
@@ -6,7 +6,7 @@ require File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'fathom')
6
6
  =end
7
7
  class Fathom::DataNode < Fathom::Node
8
8
 
9
- include NumericMethods
9
+ include Fathom::NumericMethods
10
10
 
11
11
  def initialize(opts={})
12
12
  super(opts)
@@ -55,7 +55,7 @@ class Fathom::MCNode < Fathom::Node
55
55
  # Assumes the same value description for all samples taken
56
56
  def assert_nodes
57
57
  @samples.each do |key, values|
58
- node = DataNode.new(:name => key, :values => values)
58
+ node = Fathom::DataNode.new(:name => key, :values => values)
59
59
  add_child(node)
60
60
  # self.class.define_summary_method(key)
61
61
  end
data/lib/fathom/node.rb CHANGED
@@ -91,7 +91,7 @@ class Fathom::Node
91
91
  end
92
92
 
93
93
  def add_accessor_for_node(node)
94
- return false unless node.is_a?(Node) and node.name_sym
94
+ return false unless node.respond_to?(:name_sym) and node.name_sym
95
95
  return false if self.respond_to?(node.name_sym)
96
96
  (class << self; self; end).module_eval do
97
97
  define_method node.name_sym do
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fathom
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
4
+ hash: 29
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 6
10
- version: 0.3.6
9
+ - 7
10
+ version: 0.3.7
11
11
  platform: ruby
12
12
  authors:
13
13
  - David