parsley-store 0.3.3 → 0.3.4

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 127205fef9e3d4fc643b63e7952ba9f80069a369
4
- data.tar.gz: 878294e658908172539d099855d9897d9717908b
3
+ metadata.gz: bfdd5efd0ec3e6c6d6eedd7c80608f27dd5c649e
4
+ data.tar.gz: 65c8e14ae16ae8a34446582412c33b3dfadc4441
5
5
  SHA512:
6
- metadata.gz: 6812a3886b8ca8f2a60e579be49b5e453e577e862e6f834fd2949cf883c2f8fb9fa9097e164dfc8f361eab99895c881c1c0030b0fa0fabb09a48c7c91306e07b
7
- data.tar.gz: 6d4f5fd32bb151f9e159c3f12855056d69dfed9f21809825c7a6e82605f2e73b27da109125db2d97900036c442227b62f5b6e23c8a47236b73f8a94650e63e30
6
+ metadata.gz: 4ac1271df557d764aafee49f560caa87bc73ef23829e1ddef3fc8dc2a8fe6bbb452a09a7c0286153047155e3514d6cab10814df5cd7154a2076920f1362dfe5d
7
+ data.tar.gz: 0b6d622ffedf707070eacc2edfbacc196e4dc1e3aeef51e5be6640cb99e147afb4f7e12d860c92f558e77e185a17e40d4cad3f0a264f4763adb88d5d09a0ce0b
data/.travis.yml ADDED
@@ -0,0 +1,16 @@
1
+ rvm:
2
+ - 1.9.3-p448
3
+ - 2.0.0-p353
4
+ before_install:
5
+ - sudo apt-get update
6
+ - gem install debugger
7
+ services:
8
+ - redis-server
9
+ script:
10
+ - bundle exec cucumber
11
+ - bundle exec rspec
12
+ branches:
13
+ only:
14
+ - master
15
+
16
+
data/CHANGELOG CHANGED
@@ -1,2 +1,3 @@
1
+ 0.3.4 -- added stats
1
2
  0.3.3 -- updated gems, removed jeweler dependency
2
3
  0.3.1 -- updated gems, added rvm and bundle support
data/Gemfile CHANGED
@@ -1,9 +1,12 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- gem 'biodiversity', '~> 3.1'
4
- gem 'redis', '~> 3.0'
3
+ group :production do
4
+ gem 'biodiversity', '~> 3.1'
5
+ gem 'redis', '~> 3.0'
6
+ end
5
7
 
6
8
  group :test do
7
- gem 'rspec', '~> 2.13'
9
+ gem 'rspec', '~> 2.14'
8
10
  gem 'cucumber', '~> 1.3'
11
+ gem 'coveralls', '~> 0.7'
9
12
  end
data/Gemfile.lock CHANGED
@@ -9,6 +9,12 @@ GEM
9
9
  treetop (~> 1.4)
10
10
  unicode_utils (~> 1.4)
11
11
  builder (3.2.2)
12
+ coveralls (0.7.0)
13
+ multi_json (~> 1.3)
14
+ rest-client
15
+ simplecov (>= 0.7)
16
+ term-ansicolor
17
+ thor
12
18
  cucumber (1.3.10)
13
19
  builder (>= 2.1.2)
14
20
  diff-lcs (>= 1.1.3)
@@ -16,14 +22,18 @@ GEM
16
22
  multi_json (>= 1.7.5, < 2.0)
17
23
  multi_test (>= 0.0.2)
18
24
  diff-lcs (1.2.5)
25
+ docile (1.1.1)
19
26
  gherkin (2.12.2)
20
27
  multi_json (~> 1.3)
28
+ mime-types (2.0)
21
29
  multi_json (1.8.2)
22
30
  multi_test (0.0.2)
23
31
  parallel (0.9.1)
24
32
  polyglot (0.3.3)
25
33
  rake (10.1.0)
26
34
  redis (3.0.6)
35
+ rest-client (1.6.7)
36
+ mime-types (>= 1.16)
27
37
  rspec (2.14.1)
28
38
  rspec-core (~> 2.14.0)
29
39
  rspec-expectations (~> 2.14.0)
@@ -32,6 +42,15 @@ GEM
32
42
  rspec-expectations (2.14.4)
33
43
  diff-lcs (>= 1.1.3, < 2.0)
34
44
  rspec-mocks (2.14.4)
45
+ simplecov (0.8.2)
46
+ docile (~> 1.1.0)
47
+ multi_json
48
+ simplecov-html (~> 0.8.0)
49
+ simplecov-html (0.8.0)
50
+ term-ansicolor (1.2.2)
51
+ tins (~> 0.8)
52
+ thor (0.18.1)
53
+ tins (0.13.1)
35
54
  treetop (1.4.15)
36
55
  polyglot
37
56
  polyglot (>= 0.3.1)
@@ -42,6 +61,7 @@ PLATFORMS
42
61
 
43
62
  DEPENDENCIES
44
63
  biodiversity (~> 3.1)
64
+ coveralls (~> 0.7)
45
65
  cucumber (~> 1.3)
46
66
  redis (~> 3.0)
47
- rspec (~> 2.13)
67
+ rspec (~> 2.14)
data/README.md ADDED
@@ -0,0 +1,59 @@
1
+ parsley-store
2
+ =============
3
+
4
+ [![Gem Version][1]][2]
5
+ [![Continuous Integration Status][3]][4]
6
+ [![Coverage Status][5]][6]
7
+ [![CodePolice][7]][8]
8
+ [![Dependency Status][9]][10]
9
+
10
+ This gem allows to dramatically increase speed of 'parsing' scientific names.
11
+ It stores parsed strings in Redis database and does not repeat work already done
12
+
13
+ Installation
14
+ ------------
15
+
16
+ Make sure you have Redis installed on your localhost
17
+
18
+ gem install parsley-store
19
+
20
+ Usage
21
+ -----
22
+
23
+ parser = ParsleyStore.new
24
+ parser.parse('Homo sapiens sapiens Linn. 1758')
25
+ parser.parse('Homo sapiens sapiens Linn. 1758')
26
+
27
+ The second parse must be much faster!
28
+
29
+ To get only canonical name:
30
+
31
+ parser.parse('Homo sapiens sapiens Linn. 1758', canonical_only: true)
32
+
33
+ Contributing
34
+ ------------
35
+
36
+ 1. Fork it
37
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
38
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
39
+ 4. Push to the branch (`git push origin my-new-feature`)
40
+ 5. Create new Pull Request
41
+
42
+ Copyright
43
+ ---------
44
+
45
+ Authors: [Dmitry Mozzherin][11]
46
+
47
+ Copyright (c) 2010-2014 Marine Biological Laboratory. See LICENSE for details.
48
+
49
+ [1]: https://badge.fury.io/rb/parsley-store.png
50
+ [2]: http://badge.fury.io/rb/parsley-store
51
+ [3]: https://secure.travis-ci.org/GlobalNamesArchitecture/parsley-store.png
52
+ [4]: http://travis-ci.org/GlobalNamesArchitecture/parsley-store
53
+ [5]: https://coveralls.io/repos/GlobalNamesArchitecture/parsley-store/badge.png?branch=master
54
+ [6]: https://coveralls.io/r/GlobalNamesArchitecture/parsley-store?branch=master
55
+ [7]: https://codeclimate.com/github/GlobalNamesArchitecture/parsley-store.png
56
+ [8]: https://codeclimate.com/github/GlobalNamesArchitecture/parsley-store
57
+ [9]: https://gemnasium.com/GlobalNamesArchitecture/parsley-store.png
58
+ [10]: https://gemnasium.com/GlobalNamesArchitecture/parsley-store
59
+ [11]: https://github.com/dimus
@@ -1,3 +1,3 @@
1
1
  class ParsleyStore
2
- VERSION = '0.3.3'
2
+ VERSION = '0.3.4'
3
3
  end
data/spec/spec_helper.rb CHANGED
@@ -1,6 +1,7 @@
1
- $LOAD_PATH.unshift(File.dirname(__FILE__))
2
- $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
3
- require 'parsley-store'
1
+ require 'coveralls'
2
+ Coveralls.wear!
3
+
4
+ require_relative '../lib/parsley-store'
4
5
  require 'rspec'
5
6
 
6
7
  puts "You need to start Redis server on your machine"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: parsley-store
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dmitry Mozzherin
@@ -20,11 +20,12 @@ files:
20
20
  - .document
21
21
  - .gitignore
22
22
  - .ruby-version
23
+ - .travis.yml
23
24
  - CHANGELOG
24
25
  - Gemfile
25
26
  - Gemfile.lock
26
27
  - LICENSE
27
- - README.dm
28
+ - README.md
28
29
  - Rakefile
29
30
  - features/parsley-store.feature
30
31
  - features/step_definitions/parsley-store_steps.rb
data/README.dm DELETED
@@ -1,41 +0,0 @@
1
- parsley-store
2
- =============
3
-
4
- This gem allows to dramatically increase speed of 'parsing' scientific names.
5
- It stores parsed strings in Redis database and does not repeat work already done
6
-
7
- Installation
8
- ------------
9
-
10
- Make sure you have Redis installed on your localhost
11
-
12
- gem install parsley-store
13
-
14
- Usage
15
- -----
16
-
17
- parser = ParsleyStore.new
18
- parser.parse('Homo sapiens sapiens Linn. 1758')
19
- parser.parse('Homo sapiens sapiens Linn. 1758')
20
-
21
- The second parse must be much faster!
22
-
23
- To get only canonical name:
24
-
25
- parser.parse('Homo sapiens sapiens Linn. 1758', :canonical_only => true)
26
-
27
- Contributing
28
- ------------
29
-
30
- 1. Fork it
31
- 2. Create your feature branch (`git checkout -b my-new-feature`)
32
- 3. Commit your changes (`git commit -am 'Add some feature'`)
33
- 4. Push to the branch (`git push origin my-new-feature`)
34
- 5. Create new Pull Request
35
-
36
- Copyright
37
- ---------
38
-
39
- Authors: [Dmitry Mozzherin][12]
40
-
41
- Copyright (c) 2010-2014 Marine Biological Laboratory. See LICENSE for details.