morphological_metrics 1.3.0 → 1.3.1
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 +5 -5
- data/.autotest +30 -30
- data/.minitest.rb +3 -3
- data/.travis.yml +10 -10
- data/Gemfile +0 -0
- data/Gemfile.lock +0 -0
- data/History.txt +6 -6
- data/Manifest.txt +27 -27
- data/README.rdoc +66 -65
- data/ROADMAP.txt +63 -63
- data/Rakefile +33 -32
- data/bin/mm +3 -3
- data/lib/mm.rb +10 -10
- data/lib/mm/deltas.rb +34 -35
- data/lib/mm/metric.rb +191 -180
- data/lib/mm/pairs.rb +12 -12
- data/lib/mm/ratio.rb +156 -145
- data/lib/mm/scaling.rb +30 -30
- data/lib/mm/search.rb +81 -81
- data/lib/shortcuts.yml +49 -49
- data/test/helpers.rb +22 -19
- data/test/mm/test_metric.rb +168 -160
- data/test/mm/test_mm.rb +6 -5
- data/test/mm/test_pairs.rb +27 -24
- data/test/mm/test_ratio.rb +139 -130
- data/test/mm/test_search.rb +89 -83
- metadata +8 -16
- data/.gemtest +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 2146fe4c005fb3cbb4be6c92bf2bb41591c21ef58c729a88632336a4607aa192
|
4
|
+
data.tar.gz: a00f7f8123ae3a67192d64fe70d76b68f8ea5a6f0ba1cce7b61687a5d4b526e6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dee2e9e7474ad5b7bcf558b00425c01e9a9a922642e99718c964808d54e9407d6dade5d5f255e4c5a89e2ca47442f56e9aeebefd5faacad78a31ae2498a1de8b
|
7
|
+
data.tar.gz: b1a70f2cb20efb48b336274e6690f15ed844b6904f8af18b143dfd534b1d8f8dc5641fd336cc0c41aa9597b27b3c977e7e793645a98c2756ac15708b6a0e83a7
|
data/.autotest
CHANGED
@@ -1,30 +1,30 @@
|
|
1
|
-
# -*- ruby -*-
|
2
|
-
|
3
|
-
require "autotest/restart"
|
4
|
-
|
5
|
-
Autotest.add_hook :initialize do |at|
|
6
|
-
at.testlib = ".minitest"
|
7
|
-
#
|
8
|
-
# at.extra_files << "../some/external/dependency.rb"
|
9
|
-
#
|
10
|
-
# at.libs << ":../some/external"
|
11
|
-
#
|
12
|
-
# at.add_exception "vendor"
|
13
|
-
#
|
14
|
-
# at.add_mapping(/dependency.rb/) do |f, _|
|
15
|
-
# at.files_matching(/test_.*rb$/)
|
16
|
-
# end
|
17
|
-
#
|
18
|
-
# %w(TestA TestB).each do |klass|
|
19
|
-
# at.extra_class_map[klass] = "test/test_misc.rb"
|
20
|
-
# end
|
21
|
-
end
|
22
|
-
|
23
|
-
# Autotest.add_hook :run_command do |at|
|
24
|
-
# system "rake build"
|
25
|
-
# end
|
26
|
-
|
27
|
-
Autotest.add_hook :all_good do |at|
|
28
|
-
system "rake rcov_info"
|
29
|
-
end if ENV['RCOV']
|
30
|
-
|
1
|
+
# -*- ruby -*-
|
2
|
+
|
3
|
+
require "autotest/restart"
|
4
|
+
|
5
|
+
Autotest.add_hook :initialize do |at|
|
6
|
+
at.testlib = ".minitest"
|
7
|
+
#
|
8
|
+
# at.extra_files << "../some/external/dependency.rb"
|
9
|
+
#
|
10
|
+
# at.libs << ":../some/external"
|
11
|
+
#
|
12
|
+
# at.add_exception "vendor"
|
13
|
+
#
|
14
|
+
# at.add_mapping(/dependency.rb/) do |f, _|
|
15
|
+
# at.files_matching(/test_.*rb$/)
|
16
|
+
# end
|
17
|
+
#
|
18
|
+
# %w(TestA TestB).each do |klass|
|
19
|
+
# at.extra_class_map[klass] = "test/test_misc.rb"
|
20
|
+
# end
|
21
|
+
end
|
22
|
+
|
23
|
+
# Autotest.add_hook :run_command do |at|
|
24
|
+
# system "rake build"
|
25
|
+
# end
|
26
|
+
|
27
|
+
Autotest.add_hook :all_good do |at|
|
28
|
+
system "rake rcov_info"
|
29
|
+
end if ENV['RCOV']
|
30
|
+
|
data/.minitest.rb
CHANGED
@@ -1,3 +1,3 @@
|
|
1
|
-
gem "minitest"
|
2
|
-
require "minitest/autorun"
|
3
|
-
|
1
|
+
gem "minitest"
|
2
|
+
require "minitest/autorun"
|
3
|
+
|
data/.travis.yml
CHANGED
@@ -1,10 +1,10 @@
|
|
1
|
-
language: ruby
|
2
|
-
env:
|
3
|
-
- CODECLIMATE_REPO_TOKEN=d05b64cdc405df4f1632a3656a1062ea4873a20ff4463732c47c4d811884fde6
|
4
|
-
rvm:
|
5
|
-
- "2.0.0"
|
6
|
-
- "2.1.2"
|
7
|
-
addons:
|
8
|
-
code_climate:
|
9
|
-
repo_token: d05b64cdc405df4f1632a3656a1062ea4873a20ff4463732c47c4d811884fde6
|
10
|
-
|
1
|
+
language: ruby
|
2
|
+
env:
|
3
|
+
- CODECLIMATE_REPO_TOKEN=d05b64cdc405df4f1632a3656a1062ea4873a20ff4463732c47c4d811884fde6
|
4
|
+
rvm:
|
5
|
+
- "2.0.0"
|
6
|
+
- "2.1.2"
|
7
|
+
addons:
|
8
|
+
code_climate:
|
9
|
+
repo_token: d05b64cdc405df4f1632a3656a1062ea4873a20ff4463732c47c4d811884fde6
|
10
|
+
|
data/Gemfile
CHANGED
Binary file
|
data/Gemfile.lock
CHANGED
Binary file
|
data/History.txt
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
=== 1.0.0 / 2014-04-09
|
2
|
-
|
3
|
-
* 1 major enhancement
|
4
|
-
|
5
|
-
* Birthday!
|
6
|
-
|
1
|
+
=== 1.0.0 / 2014-04-09
|
2
|
+
|
3
|
+
* 1 major enhancement
|
4
|
+
|
5
|
+
* Birthday!
|
6
|
+
|
data/Manifest.txt
CHANGED
@@ -1,27 +1,27 @@
|
|
1
|
-
.autotest
|
2
|
-
.minitest.rb
|
3
|
-
.travis.yml
|
4
|
-
Gemfile
|
5
|
-
Gemfile.lock
|
6
|
-
History.txt
|
7
|
-
Manifest.txt
|
8
|
-
README.rdoc
|
9
|
-
ROADMAP.txt
|
10
|
-
Rakefile
|
11
|
-
bin/mm
|
12
|
-
lib/mm.rb
|
13
|
-
lib/mm/deltas.rb
|
14
|
-
lib/mm/metric.rb
|
15
|
-
lib/mm/pairs.rb
|
16
|
-
lib/mm/ratio.rb
|
17
|
-
lib/mm/scaling.rb
|
18
|
-
lib/mm/search.rb
|
19
|
-
lib/shortcuts.yml
|
20
|
-
test/helpers.rb
|
21
|
-
test/mm/test_deltas.rb
|
22
|
-
test/mm/test_metric.rb
|
23
|
-
test/mm/test_mm.rb
|
24
|
-
test/mm/test_pairs.rb
|
25
|
-
test/mm/test_ratio.rb
|
26
|
-
test/mm/test_scaling.rb
|
27
|
-
test/mm/test_search.rb
|
1
|
+
.autotest
|
2
|
+
.minitest.rb
|
3
|
+
.travis.yml
|
4
|
+
Gemfile
|
5
|
+
Gemfile.lock
|
6
|
+
History.txt
|
7
|
+
Manifest.txt
|
8
|
+
README.rdoc
|
9
|
+
ROADMAP.txt
|
10
|
+
Rakefile
|
11
|
+
bin/mm
|
12
|
+
lib/mm.rb
|
13
|
+
lib/mm/deltas.rb
|
14
|
+
lib/mm/metric.rb
|
15
|
+
lib/mm/pairs.rb
|
16
|
+
lib/mm/ratio.rb
|
17
|
+
lib/mm/scaling.rb
|
18
|
+
lib/mm/search.rb
|
19
|
+
lib/shortcuts.yml
|
20
|
+
test/helpers.rb
|
21
|
+
test/mm/test_deltas.rb
|
22
|
+
test/mm/test_metric.rb
|
23
|
+
test/mm/test_mm.rb
|
24
|
+
test/mm/test_pairs.rb
|
25
|
+
test/mm/test_ratio.rb
|
26
|
+
test/mm/test_scaling.rb
|
27
|
+
test/mm/test_search.rb
|
data/README.rdoc
CHANGED
@@ -1,65 +1,66 @@
|
|
1
|
-
{<img src="https://codeclimate.com/github/andrewcsmith/mm.png"
|
2
|
-
/>}[https://codeclimate.com/github/andrewcsmith/mm]
|
3
|
-
|
4
|
-
{<img src="https://travis-ci.org/andrewcsmith/mm.svg?branch=master"
|
5
|
-
/>}[https://travis-ci.org/andrewcsmith/mm]
|
6
|
-
|
7
|
-
= mm
|
8
|
-
|
9
|
-
https://
|
10
|
-
|
11
|
-
== DESCRIPTION:
|
12
|
-
|
13
|
-
Implements some Morphological Metrics, described by Larry Polansky.
|
14
|
-
|
15
|
-
== FEATURES/PROBLEMS:
|
16
|
-
|
17
|
-
* Works on anything Enumerable
|
18
|
-
* Can get a number of different MMs
|
19
|
-
* Works extra fast on large NMatrix objects
|
20
|
-
|
21
|
-
== SYNOPSIS:
|
22
|
-
|
23
|
-
Code sample, LOL
|
24
|
-
|
25
|
-
== REQUIREMENTS:
|
26
|
-
|
27
|
-
* nmatrix
|
28
|
-
* ruby
|
29
|
-
|
30
|
-
== INSTALL:
|
31
|
-
|
32
|
-
* FIX (sudo gem install, anything else)
|
33
|
-
|
34
|
-
== DEVELOPERS:
|
35
|
-
|
36
|
-
After checking out the source, run:
|
37
|
-
|
38
|
-
$ rake newb
|
39
|
-
|
40
|
-
This task will install any missing dependencies, run the tests/specs,
|
41
|
-
and generate the RDoc.
|
42
|
-
|
43
|
-
== LICENSE:
|
44
|
-
|
45
|
-
(The MIT License)
|
46
|
-
|
47
|
-
Copyright (c) 2014 FIX
|
48
|
-
|
49
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
50
|
-
a copy of this software and associated documentation files (the
|
51
|
-
'Software'), to deal in the Software without restriction, including
|
52
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
53
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
54
|
-
permit persons to whom the Software is furnished to do so, subject to
|
55
|
-
the following conditions:
|
56
|
-
|
57
|
-
The above copyright notice and this permission notice shall be
|
58
|
-
included in all copies or substantial portions of the Software.
|
59
|
-
|
60
|
-
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
61
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
62
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
63
|
-
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
64
|
-
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
65
|
-
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
1
|
+
{<img src="https://codeclimate.com/github/andrewcsmith/mm.png"
|
2
|
+
/>}[https://codeclimate.com/github/andrewcsmith/mm]
|
3
|
+
|
4
|
+
{<img src="https://travis-ci.org/andrewcsmith/mm.svg?branch=master"
|
5
|
+
/>}[https://travis-ci.org/andrewcsmith/mm]
|
6
|
+
|
7
|
+
= mm
|
8
|
+
|
9
|
+
https://github.com/andrewcsmith/mm
|
10
|
+
|
11
|
+
== DESCRIPTION:
|
12
|
+
|
13
|
+
Implements some Morphological Metrics, described by Larry Polansky.
|
14
|
+
|
15
|
+
== FEATURES/PROBLEMS:
|
16
|
+
|
17
|
+
* Works on anything Enumerable
|
18
|
+
* Can get a number of different MMs
|
19
|
+
* Works extra fast on large NMatrix objects
|
20
|
+
|
21
|
+
== SYNOPSIS:
|
22
|
+
|
23
|
+
Code sample, LOL
|
24
|
+
|
25
|
+
== REQUIREMENTS:
|
26
|
+
|
27
|
+
* nmatrix
|
28
|
+
* ruby
|
29
|
+
|
30
|
+
== INSTALL:
|
31
|
+
|
32
|
+
* FIX (sudo gem install, anything else)
|
33
|
+
|
34
|
+
== DEVELOPERS:
|
35
|
+
|
36
|
+
After checking out the source, run:
|
37
|
+
|
38
|
+
$ rake newb
|
39
|
+
|
40
|
+
This task will install any missing dependencies, run the tests/specs,
|
41
|
+
and generate the RDoc.
|
42
|
+
|
43
|
+
== LICENSE:
|
44
|
+
|
45
|
+
(The MIT License)
|
46
|
+
|
47
|
+
Copyright (c) 2014 FIX
|
48
|
+
|
49
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
50
|
+
a copy of this software and associated documentation files (the
|
51
|
+
'Software'), to deal in the Software without restriction, including
|
52
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
53
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
54
|
+
permit persons to whom the Software is furnished to do so, subject to
|
55
|
+
the following conditions:
|
56
|
+
|
57
|
+
The above copyright notice and this permission notice shall be
|
58
|
+
included in all copies or substantial portions of the Software.
|
59
|
+
|
60
|
+
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
61
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
62
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
63
|
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
64
|
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
65
|
+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
66
|
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/ROADMAP.txt
CHANGED
@@ -1,63 +1,63 @@
|
|
1
|
-
- Complete functions for getting combinatorial and adjacent pairs
|
2
|
-
- fix any problems with shapes, test more thoroughly
|
3
|
-
- add the ability to recurse throughout an Array tree
|
4
|
-
- Create a selection of distance functions that work with NMatrix etc
|
5
|
-
- These should be implementation-agnostic
|
6
|
-
- Ideally they should be of the symbol/method format, where the user passes a
|
7
|
-
symbol of the method to the metric
|
8
|
-
- Create a Metric class, perhaps as a subclass of Proc
|
9
|
-
- What does it mean to subclass Proc?
|
10
|
-
- Do some research.
|
11
|
-
- What about subclassing Method? What would that give us?
|
12
|
-
- Instead of a "factory" class, the creation of the metric should take place in
|
13
|
-
its initialization.
|
14
|
-
- Metric.new should take arguments similar to DistConfig, but with a
|
15
|
-
specific implementation of OLM, OCM, etc.
|
16
|
-
- This is out of a desire to tie the selection of the logic into the
|
17
|
-
distance function.
|
18
|
-
- However, there could be MM.ocm, MM.olm, etc., functions that are
|
19
|
-
"factories" that call the normal instantiation method. But it should
|
20
|
-
not be possible to create a metric without the DistConfig in instantiation.
|
21
|
-
|
22
|
-
Implementation and interface requirements:
|
23
|
-
- Objects should implement [] and #each
|
24
|
-
- Objects should implement whatever distance method is called by the Metric
|
25
|
-
|
26
|
-
Additional distance functions should (ideally) be in their own gems.
|
27
|
-
|
28
|
-
== Metric Class Methods
|
29
|
-
|
30
|
-
=== ::new(ordering, pairing, scaling, delta)
|
31
|
-
|
32
|
-
Generates a new morphological metric based on various parameters
|
33
|
-
|
34
|
-
**ordered**: can be true or false. Corresponds to ordered/unordered.
|
35
|
-
|
36
|
-
**pairing**: Similar to the delta. If it is a Proc, then the pairing function is
|
37
|
-
called on each vector (or however it is handled by the ordering). If it is a
|
38
|
-
Symbol, then we look it up in MM::PAIRING_FUNCTIONS.
|
39
|
-
|
40
|
-
**scaling**: *always* a Proc. There are prebaked scaling functions for absolute,
|
41
|
-
relative, and unscaled that are available for use. If a Symbol is passed instead
|
42
|
-
of a Proc, it looks for the Proc in the Hash MM::SCALING_FUNCTIONS
|
43
|
-
|
44
|
-
**delta functions**: If it is a Proc, then the delta function is used as d(x, y)
|
45
|
-
on each element. If it is a symbol, then the symbol is first looked up in the
|
46
|
-
MM::DELTA_FUNCTIONS hash. If it is not found, then x.symbol(y) is attempted.
|
47
|
-
Delta functions should aspire to being as general as possible; let the source
|
48
|
-
implement the method.
|
49
|
-
|
50
|
-
**order**: this is confusing terminology - first-order and second-order
|
51
|
-
difference functions.
|
52
|
-
|
53
|
-
**interval functions**: We should instead brew the int_func into the method of
|
54
|
-
finding pairs. This is where the Pairs class might come in handy; it could
|
55
|
-
generate functions (Procs, whatever) as a factory from various values, taking
|
56
|
-
into account what each value should be compared to. It's not [element, element],
|
57
|
-
but [element, comparison-element] that matters.
|
58
|
-
|
59
|
-
=== ::olm(scaling, delta)
|
60
|
-
|
61
|
-
Generates a new morphological metric calling ::new with the given ordering and
|
62
|
-
pairing
|
63
|
-
|
1
|
+
- Complete functions for getting combinatorial and adjacent pairs
|
2
|
+
- fix any problems with shapes, test more thoroughly
|
3
|
+
- add the ability to recurse throughout an Array tree
|
4
|
+
- Create a selection of distance functions that work with NMatrix etc
|
5
|
+
- These should be implementation-agnostic
|
6
|
+
- Ideally they should be of the symbol/method format, where the user passes a
|
7
|
+
symbol of the method to the metric
|
8
|
+
- Create a Metric class, perhaps as a subclass of Proc
|
9
|
+
- What does it mean to subclass Proc?
|
10
|
+
- Do some research.
|
11
|
+
- What about subclassing Method? What would that give us?
|
12
|
+
- Instead of a "factory" class, the creation of the metric should take place in
|
13
|
+
its initialization.
|
14
|
+
- Metric.new should take arguments similar to DistConfig, but with a
|
15
|
+
specific implementation of OLM, OCM, etc.
|
16
|
+
- This is out of a desire to tie the selection of the logic into the
|
17
|
+
distance function.
|
18
|
+
- However, there could be MM.ocm, MM.olm, etc., functions that are
|
19
|
+
"factories" that call the normal instantiation method. But it should
|
20
|
+
not be possible to create a metric without the DistConfig in instantiation.
|
21
|
+
|
22
|
+
Implementation and interface requirements:
|
23
|
+
- Objects should implement [] and #each
|
24
|
+
- Objects should implement whatever distance method is called by the Metric
|
25
|
+
|
26
|
+
Additional distance functions should (ideally) be in their own gems.
|
27
|
+
|
28
|
+
== Metric Class Methods
|
29
|
+
|
30
|
+
=== ::new(ordering, pairing, scaling, delta)
|
31
|
+
|
32
|
+
Generates a new morphological metric based on various parameters
|
33
|
+
|
34
|
+
**ordered**: can be true or false. Corresponds to ordered/unordered.
|
35
|
+
|
36
|
+
**pairing**: Similar to the delta. If it is a Proc, then the pairing function is
|
37
|
+
called on each vector (or however it is handled by the ordering). If it is a
|
38
|
+
Symbol, then we look it up in MM::PAIRING_FUNCTIONS.
|
39
|
+
|
40
|
+
**scaling**: *always* a Proc. There are prebaked scaling functions for absolute,
|
41
|
+
relative, and unscaled that are available for use. If a Symbol is passed instead
|
42
|
+
of a Proc, it looks for the Proc in the Hash MM::SCALING_FUNCTIONS
|
43
|
+
|
44
|
+
**delta functions**: If it is a Proc, then the delta function is used as d(x, y)
|
45
|
+
on each element. If it is a symbol, then the symbol is first looked up in the
|
46
|
+
MM::DELTA_FUNCTIONS hash. If it is not found, then x.symbol(y) is attempted.
|
47
|
+
Delta functions should aspire to being as general as possible; let the source
|
48
|
+
implement the method.
|
49
|
+
|
50
|
+
**order**: this is confusing terminology - first-order and second-order
|
51
|
+
difference functions.
|
52
|
+
|
53
|
+
**interval functions**: We should instead brew the int_func into the method of
|
54
|
+
finding pairs. This is where the Pairs class might come in handy; it could
|
55
|
+
generate functions (Procs, whatever) as a factory from various values, taking
|
56
|
+
into account what each value should be compared to. It's not [element, element],
|
57
|
+
but [element, comparison-element] that matters.
|
58
|
+
|
59
|
+
=== ::olm(scaling, delta)
|
60
|
+
|
61
|
+
Generates a new morphological metric calling ::new with the given ordering and
|
62
|
+
pairing
|
63
|
+
|
data/Rakefile
CHANGED
@@ -1,32 +1,33 @@
|
|
1
|
-
# -*- ruby -*-
|
2
|
-
|
3
|
-
require "rubygems"
|
4
|
-
require "hoe"
|
5
|
-
|
6
|
-
# Hoe.plugin :compiler
|
7
|
-
# Hoe.plugin :gem_prelude_sucks
|
8
|
-
# Hoe.plugin :racc
|
9
|
-
# Hoe.plugin :rcov
|
10
|
-
Hoe.plugin :flay
|
11
|
-
Hoe.plugin :flog
|
12
|
-
|
13
|
-
|
14
|
-
Hoe.plugin :
|
15
|
-
Hoe.plugin :
|
16
|
-
Hoe.plugin :
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
1
|
+
# -*- ruby -*-
|
2
|
+
|
3
|
+
require "rubygems"
|
4
|
+
require "hoe"
|
5
|
+
|
6
|
+
# Hoe.plugin :compiler
|
7
|
+
# Hoe.plugin :gem_prelude_sucks
|
8
|
+
# Hoe.plugin :racc
|
9
|
+
# Hoe.plugin :rcov
|
10
|
+
Hoe.plugin :flay
|
11
|
+
Hoe.plugin :flog
|
12
|
+
Hoe.plugin :gemspec
|
13
|
+
|
14
|
+
Hoe.plugin :travis
|
15
|
+
Hoe.plugin :inline
|
16
|
+
Hoe.plugin :minitest
|
17
|
+
Hoe.plugin :package
|
18
|
+
|
19
|
+
hoe = Hoe.spec "morphological_metrics" do |h|
|
20
|
+
developer("Andrew C. Smith", "andrewchristophersmith@gmail.com")
|
21
|
+
license "MIT" # this should match the license in the README
|
22
|
+
self.readme_file = "README.rdoc"
|
23
|
+
require_rubygems_version '>= 1.4'
|
24
|
+
end
|
25
|
+
|
26
|
+
if ENV['CODECLIMATE_REPO_TOKEN']
|
27
|
+
hoe.test_prelude = <<CC
|
28
|
+
require "codeclimate-test-reporter"
|
29
|
+
CodeClimate::TestReporter.start
|
30
|
+
CC
|
31
|
+
end
|
32
|
+
|
33
|
+
# vim: syntax=ruby
|