Permalink
Browse files

Merge pull request #2 from louismullie/graphr-as-gem

Graphr as gem
  • Loading branch information...
2 parents 6294798 + 9bc561d commit 3e3badc0eb3e88a239ff854265f27c9a4aba1f80 @igrigorik committed Jul 26, 2012
Showing with 5 additions and 8 deletions.
  1. +1 −1 VERSION
  2. +3 −2 decisiontree.gemspec
  3. +1 −5 lib/decisiontree/id3_tree.rb
View
@@ -1 +1 @@
-0.3.1
+0.3.2
@@ -5,7 +5,7 @@
Gem::Specification.new do |s|
s.name = %q{decisiontree}
- s.version = "0.3.1"
+ s.version = "0.3.2"
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Ilya Grigorik"]
@@ -46,7 +46,8 @@ Gem::Specification.new do |s|
"examples/discrete-id3.rb",
"examples/simple.rb"
]
-
+ s.add_runtime_dependency "graphr"
+
if s.respond_to? :specification_version then
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
s.specification_version = 3
@@ -3,11 +3,7 @@
### Copyright (c) 2007 Ilya Grigorik <ilya AT igvita DOT com>
### Modifed at 2007 by José Ignacio Fernández <joseignacio.fernandez AT gmail DOT com>
-begin
- require 'graph/graphviz_dot'
-rescue LoadError
- STDERR.puts "graph/graphviz_dot not installed, graphing functionality not included."
-end
+require 'graphr'
class Object
def save_to_file(filename)

0 comments on commit 3e3badc

Please sign in to comment.