Permalink
Browse files

making biodiversity gem compatible with ruby 1.9.1

  • Loading branch information...
1 parent 0458daa commit ce89450694d5dd0eb610872c78c3b3ce74bcb109 @dimus dimus committed Mar 28, 2009
View
@@ -4,7 +4,7 @@ require 'rake'
$LOAD_PATH.unshift(File.join(dir, 'vendor', 'rspec', 'lib'))
require 'spec/rake/spectask'
-Gem::manage_gems
+#Gem::manage_gems
require 'rake/gempackagetask'
task :default => :spec
View
@@ -4,7 +4,7 @@ gem 'dimus-biodiversity' rescue gem 'biodiversity'
$LOAD_PATH.unshift(File.expand_path(File.dirname(__FILE__) + "/../lib"))
require 'biodiversity'
-require 'json/ext'
+require 'json'
if ARGV.empty?
puts "Usage:\n\nnnparse file_with_scientific_names [output_file]\n\ndefault output_file is parsed.json\n\n"
View
@@ -1,6 +1,6 @@
Gem::Specification.new do |s|
s.name = 'biodiversity'
- s.version = '0.0.9'
+ s.version = '0.0.10'
s.date = '2008-10-21'
s.summary = "scientific species name parser\n\nExecutable is nnparse"
@@ -13,7 +13,7 @@ Gem::Specification.new do |s|
s.has_rdoc = false
s.add_dependency 'treetop', ['>= 1.2.4']
- s.add_dependency 'json', ['>= 1.1.3']
+ #s.add_dependency 'json', ['>= 1.1.3']
s.bindir = "bin"
s.executable = %w(nnparse)
View
@@ -1,2 +1,3 @@
+
#Constants
LSID_RESOLVER_URL = "http://lsid.tdwg.org/"
@@ -1,2 +1,3 @@
+# encoding: UTF-8
dir = File.dirname(__FILE__)
require File.join(dir, *%w[parser scientific_name])
Oops, something went wrong.

0 comments on commit ce89450

Please sign in to comment.