Skip to content
Browse files

working out dependencies

  • Loading branch information...
1 parent a8eac09 commit 3398d22d75d9336048cec4342605b57a5d0ee8fa @dimus dimus committed Aug 28, 2013
Showing with 38 additions and 34 deletions.
  1. +1 −14 Gemfile
  2. +14 −7 Gemfile.lock
  3. +2 −2 Rakefile
  4. +1 −2 bin/parserver
  5. +11 −2 biodiversity.gemspec
  6. +8 −0 lib/biodiversity.rb
  7. +1 −7 lib/biodiversity/version.rb
View
15 Gemfile
@@ -1,16 +1,3 @@
source 'https://rubygems.org'
-gem 'bundler' '~> 1.3'
-gem 'rake', '~> 10.1'
-gem 'treetop', '~> 1.4'
-gem 'parallel', '~> 0.7'
-gem 'unicode_utils', '~> 1.4'
-
-group :development do
- gem 'debugger', '~> 1.6'
-end
-
-group :test do
- gem 'rspec', '~> 2.14'
- gem 'rr', '~> 1.1'
-end
+gemspec
View
21 Gemfile.lock
@@ -1,3 +1,16 @@
+PATH
+ remote: .
+ specs:
+ biodiversity (3.1.3)
+ bundler (~> 1.3)
+ debugger (~> 1.6)
+ parallel (~> 0.7)
+ rake (~> 10.1)
+ rr (~> 1.1)
+ rspec (~> 2.14)
+ treetop (~> 1.4)
+ unicode_utils (~> 1.4)
+
GEM
remote: https://rubygems.org/
specs:
@@ -30,10 +43,4 @@ PLATFORMS
ruby
DEPENDENCIES
- debugger (~> 1.6)
- parallel (~> 0.7)
- rake (~> 10.1)
- rr (~> 1.1)
- rspec (~> 2.14)
- treetop (~> 1.4)
- unicode_utils (~> 1.4)
+ biodiversity!
View
4 Rakefile
@@ -1,5 +1,4 @@
-dir = File.dirname(__FILE__)
-require 'rake'
+require 'bundler/gem_tasks'
require 'rspec/core'
require 'rspec/core/rake_task'
@@ -10,6 +9,7 @@ RSpec::Core::RakeTask.new do |t|
end
task :tt do
+ dir = File.dirname(__FILE__)
['scientific_name_clean',
'scientific_name_dirty',
'scientific_name_canonical'].each do |f|
View
3 bin/parserver
@@ -1,8 +1,7 @@
#!/usr/bin/env ruby
-require 'rubygems'
require 'optparse'
require 'socket'
-require 'biodiversity' # Get sockets from stdlib
+require 'biodiversity'
DEFAULT_PORT = 4334
RUBY_VERSION_INT = RUBY_VERSION.split('.')[0..1].join('').to_i
View
13 biodiversity.gemspec
@@ -14,6 +14,15 @@ Gem::Specification.new do |s|
s.email = 'dmozzherin@gmail.com'
s.files = `git ls-files`.split("\n")
s.executables = ['nnparse', 'parserver']
- s.require_paths = ['lib', 'lib/biodiversity', 'lib/biodiversity/parser',
- 'lib/biodiversity/guid']
+ s.require_paths = ['lib']
+
+ s.add_dependency 'treetop', '~> 1.4'
+ s.add_dependency 'parallel', '~> 0.7'
+ s.add_dependency 'unicode_utils', '~> 1.4'
+
+ s.add_dependency 'bundler', '~> 1.3'
+ s.add_dependency 'rake', '~> 10.1'
+ s.add_dependency 'debugger','~> 1.6'
+ s.add_dependency 'rspec', '~> 2.14'
+ s.add_dependency 'rr', '~> 1.1'
end
View
8 lib/biodiversity.rb
@@ -5,3 +5,11 @@
require_relative 'biodiversity/parser'
require_relative 'biodiversity/guid'
+module Biodiversity
+ LSID_RESOLVER_URL = 'http://lsid.tdwg.org/'
+
+ def self.version
+ VERSION
+ end
+end
+
View
8 lib/biodiversity/version.rb
@@ -1,9 +1,3 @@
module Biodiversity
- VERSION = '3.1.2'
- LSID_RESOLVER_URL = 'http://lsid.tdwg.org/'
-
- def self.version
- VERSION
- end
-
+ VERSION = '3.1.3'
end

0 comments on commit 3398d22

Please sign in to comment.
Something went wrong with that request. Please try again.