dimus-biodiversity 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/README.rdoc +36 -0
  2. metadata +6 -10
data/README.rdoc CHANGED
@@ -0,0 +1,36 @@
1
+ = Biodiversity
2
+
3
+ Parses species scientific name and breaks it into elements.
4
+
5
+ == Installation
6
+
7
+ To install gem you need RubyGems >= 1.2.0
8
+
9
+ $ gem sources -a http://gems.github.com (you only have to do this once)
10
+ $ sudo gem install dimus-biodiversity
11
+
12
+ == Example usage
13
+
14
+ * You can parse file with species names from command line. File should contain one scientific name per line
15
+
16
+ nnparser file_with_names
17
+
18
+ * You can use it as a library
19
+
20
+ require 'biodiversity'
21
+
22
+ parser = ScientificNameParser.new
23
+
24
+ # to parse a scientific name
25
+ parser.parse("Plantago major")
26
+
27
+ # to clean name up
28
+ parser.parse(" Plantago major ").value
29
+
30
+ # to get only cleaned up latin part of the name
31
+ parser.parse("Pseudocercospora dendrobii (H.C. Burnett) U. Braun & Crous 2003").canonical
32
+
33
+ # to get detailed information about elements of the name
34
+ parser.parse("Pseudocercospora dendrobii (H.C. Burnett 1883) U. Braun & Crous 2003").details
35
+
36
+
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.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dmitry Mozzherin
@@ -27,9 +27,8 @@ executables: []
27
27
 
28
28
  extensions: []
29
29
 
30
- extra_rdoc_files:
31
- - README.rdoc
32
- - LICENSE
30
+ extra_rdoc_files: []
31
+
33
32
  files:
34
33
  - LICENSE
35
34
  - README.rdoc
@@ -43,14 +42,11 @@ files:
43
42
  - lib/biodiversity/parser.rb
44
43
  - lib/biodiversity.rb
45
44
  - bin/nnparse
46
- has_rdoc: true
45
+ has_rdoc: false
47
46
  homepage: http://github.com/dimus/biodiversity/wikis
48
47
  post_install_message:
49
- rdoc_options:
50
- - --main
51
- - README.rdoc
52
- - --inline-source
53
- - --charset=UTF-8
48
+ rdoc_options: []
49
+
54
50
  require_paths:
55
51
  - lib
56
52
  required_ruby_version: !ruby/object:Gem::Requirement