dimus-biodiversity 0.5.10 → 0.5.11
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +10 -4
- data/VERSION +1 -1
- data/bin/nnparse +2 -1
- data/bin/parserver +14 -0
- data/biodiversity.gemspec +84 -0
- data/lib/biodiversity/parser.rb +11 -6
- data/lib/biodiversity/parser/scientific_name_canonical.rb +17 -17
- data/lib/biodiversity/parser/scientific_name_clean.rb +306 -306
- data/lib/biodiversity/parser/scientific_name_dirty.rb +55 -55
- data/spec/parser/scientific_name.spec.rb +12 -12
- metadata +5 -3
@@ -14,18 +14,18 @@ describe ScientificNameClean do
|
|
14
14
|
end
|
15
15
|
end
|
16
16
|
|
17
|
-
it 'should generate new test_file' do
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
end
|
17
|
+
# it 'should generate new test_file' do
|
18
|
+
# new_test = open(File.expand_path(dir + "../../spec/parser/test_data_new.txt"),'w')
|
19
|
+
# read_test_file do |y|
|
20
|
+
# if y[:comment]
|
21
|
+
# new_test.write y[:comment]
|
22
|
+
# else
|
23
|
+
# name = y[:name]
|
24
|
+
# jsn = json(y[:name])# rescue puts(y[:name])
|
25
|
+
# new_test.write("#{name}|#{jsn}\n")
|
26
|
+
# end
|
27
|
+
# end
|
28
|
+
# end
|
29
29
|
|
30
30
|
it 'should generate reasonable output if parser failed' do
|
31
31
|
sn = 'ddd sljlkj 3223452432'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dimus-biodiversity
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dmitry Mozzherin
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-08-
|
12
|
+
date: 2009-08-16 00:00:00 -07:00
|
13
13
|
default_executable: nnparse
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -49,6 +49,8 @@ files:
|
|
49
49
|
- Rakefile
|
50
50
|
- VERSION
|
51
51
|
- bin/nnparse
|
52
|
+
- bin/parserver
|
53
|
+
- biodiversity.gemspec
|
52
54
|
- conf/environment.rb
|
53
55
|
- lib/biodiversity.rb
|
54
56
|
- lib/biodiversity/guid.rb
|
@@ -95,7 +97,7 @@ requirements: []
|
|
95
97
|
rubyforge_project:
|
96
98
|
rubygems_version: 1.3.5
|
97
99
|
signing_key:
|
98
|
-
specification_version:
|
100
|
+
specification_version: 3
|
99
101
|
summary: Parser of scientific names
|
100
102
|
test_files:
|
101
103
|
- spec/biodiversity_spec.rb
|