biodiversity 0.6.0 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/VERSION +1 -1
- data/lib/biodiversity/parser/scientific_name_dirty.treetop +6 -6
- metadata +17 -5
data/Rakefile
CHANGED
@@ -27,7 +27,7 @@ begin
|
|
27
27
|
gem.authors = ["Dmitry Mozzherin"]
|
28
28
|
gem.has_rdoc = false
|
29
29
|
gem.bindir = 'bin'
|
30
|
-
gem.executables = ['nnparse']
|
30
|
+
gem.executables = ['nnparse', 'parserver']
|
31
31
|
gem.add_dependency('treetop')
|
32
32
|
gem.add_dependency('json') if RUBY_VERSION.split(".")[0..1].join('').to_i < 19
|
33
33
|
gem.add_development_dependency "rspec"
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.6.
|
1
|
+
0.6.1
|
@@ -115,7 +115,7 @@ grammar ScientificNameDirty
|
|
115
115
|
end
|
116
116
|
|
117
117
|
rule latin_word
|
118
|
-
a:[a-z
|
118
|
+
a:[a-z\-ëæœàâåãäáçčéèíìïňññóòôøõöúùüŕřŗššşž] b:valid_name_letters {
|
119
119
|
def value
|
120
120
|
res = ''
|
121
121
|
text_value.split('').each do |l|
|
@@ -123,14 +123,14 @@ grammar ScientificNameDirty
|
|
123
123
|
l = 'oe' if l == 'œ'
|
124
124
|
res << l
|
125
125
|
end
|
126
|
-
res.tr('
|
127
|
-
'
|
126
|
+
res.tr('àâåãäáçčéèíìïňññóòôøõöúùüŕřŗššşž',
|
127
|
+
'aaaaaacceeiiinnnoooooouuurrrsssz')
|
128
128
|
end
|
129
129
|
}
|
130
130
|
end
|
131
131
|
|
132
132
|
rule valid_name_letters
|
133
|
-
[a-z
|
133
|
+
[a-z\-ëæœàâåãäáçčéèíìïňññóòôøõöúùüŕřŗššşž]+ {
|
134
134
|
def value
|
135
135
|
res = ''
|
136
136
|
text_value.split('').each do |l|
|
@@ -138,8 +138,8 @@ grammar ScientificNameDirty
|
|
138
138
|
l = 'oe' if l == 'œ'
|
139
139
|
res << l
|
140
140
|
end
|
141
|
-
res.tr('
|
142
|
-
'
|
141
|
+
res.tr('àâåãäáçčéèíìïňññóòôøõöúùüŕřŗššşž',
|
142
|
+
'aaaaaacceeiiinnnoooooouuurrrsssz')
|
143
143
|
end
|
144
144
|
}
|
145
145
|
end
|
metadata
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: biodiversity
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
+
hash: 5
|
4
5
|
prerelease: false
|
5
6
|
segments:
|
6
7
|
- 0
|
7
8
|
- 6
|
8
|
-
-
|
9
|
-
version: 0.6.
|
9
|
+
- 1
|
10
|
+
version: 0.6.1
|
10
11
|
platform: ruby
|
11
12
|
authors:
|
12
13
|
- Dmitry Mozzherin
|
@@ -14,16 +15,18 @@ autorequire:
|
|
14
15
|
bindir: bin
|
15
16
|
cert_chain: []
|
16
17
|
|
17
|
-
date: 2010-
|
18
|
-
default_executable:
|
18
|
+
date: 2010-05-20 00:00:00 -04:00
|
19
|
+
default_executable:
|
19
20
|
dependencies:
|
20
21
|
- !ruby/object:Gem::Dependency
|
21
22
|
name: treetop
|
22
23
|
prerelease: false
|
23
24
|
requirement: &id001 !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
24
26
|
requirements:
|
25
27
|
- - ">="
|
26
28
|
- !ruby/object:Gem::Version
|
29
|
+
hash: 3
|
27
30
|
segments:
|
28
31
|
- 0
|
29
32
|
version: "0"
|
@@ -33,9 +36,11 @@ dependencies:
|
|
33
36
|
name: json
|
34
37
|
prerelease: false
|
35
38
|
requirement: &id002 !ruby/object:Gem::Requirement
|
39
|
+
none: false
|
36
40
|
requirements:
|
37
41
|
- - ">="
|
38
42
|
- !ruby/object:Gem::Version
|
43
|
+
hash: 3
|
39
44
|
segments:
|
40
45
|
- 0
|
41
46
|
version: "0"
|
@@ -45,9 +50,11 @@ dependencies:
|
|
45
50
|
name: rspec
|
46
51
|
prerelease: false
|
47
52
|
requirement: &id003 !ruby/object:Gem::Requirement
|
53
|
+
none: false
|
48
54
|
requirements:
|
49
55
|
- - ">="
|
50
56
|
- !ruby/object:Gem::Version
|
57
|
+
hash: 3
|
51
58
|
segments:
|
52
59
|
- 0
|
53
60
|
version: "0"
|
@@ -57,6 +64,7 @@ description: Tools for biodiversity informatics
|
|
57
64
|
email: dmozzherin@gmail.com
|
58
65
|
executables:
|
59
66
|
- nnparse
|
67
|
+
- parserver
|
60
68
|
extensions: []
|
61
69
|
|
62
70
|
extra_rdoc_files:
|
@@ -99,23 +107,27 @@ rdoc_options:
|
|
99
107
|
require_paths:
|
100
108
|
- lib
|
101
109
|
required_ruby_version: !ruby/object:Gem::Requirement
|
110
|
+
none: false
|
102
111
|
requirements:
|
103
112
|
- - ">="
|
104
113
|
- !ruby/object:Gem::Version
|
114
|
+
hash: 3
|
105
115
|
segments:
|
106
116
|
- 0
|
107
117
|
version: "0"
|
108
118
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
119
|
+
none: false
|
109
120
|
requirements:
|
110
121
|
- - ">="
|
111
122
|
- !ruby/object:Gem::Version
|
123
|
+
hash: 3
|
112
124
|
segments:
|
113
125
|
- 0
|
114
126
|
version: "0"
|
115
127
|
requirements: []
|
116
128
|
|
117
129
|
rubyforge_project:
|
118
|
-
rubygems_version: 1.3.
|
130
|
+
rubygems_version: 1.3.7
|
119
131
|
signing_key:
|
120
132
|
specification_version: 3
|
121
133
|
summary: Parser of scientific names
|