miga-base 0.2.6.2 → 0.2.6.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: df5f2c5858b2a7fbb894baceb6dba8d6722f6fde
4
- data.tar.gz: 25a84eb19ff85ab226b80d2068deb02f8f4a1f1f
3
+ metadata.gz: 8133c51a0484162d71b96b9057e54b6647307980
4
+ data.tar.gz: 1aaee03b0186302ec054fb6e12bee0eaf4b38154
5
5
  SHA512:
6
- metadata.gz: ffcd40298038047f49fc13f49ece0a0a591a5b5adca58e614cd3abbb9f464bd4d5618d4659702ea86629734efffcc060a6b52a827328534bd6b1e22d3a8047f3
7
- data.tar.gz: 4117173537bb9a6ca2e6b4366381f36dc85fc39f6829c400c3df0874e6eb99ffa6f1985c2cb6e7fc86f210a4fd640a70c6253cb0f2b92a9742ef07c2722ec50f
6
+ metadata.gz: 82862b5eefcc9ec32e5fd4ac8c863afbfc5253fa0d2ab2bb258ce02fd0629cc8617de8b67e82a803c82116132c7c620011fe64709dd2729f0fef974c55049339
7
+ data.tar.gz: d7e58a7381b3323304891c75bb719a8e4fb8a5a45b92d5cd0eae6f7d86e41bbeaf9c7e0be603b924b090bc216b09be318b48d0aeed41cf541e18b09c7637a1c4
data/lib/miga/version.rb CHANGED
@@ -10,7 +10,7 @@ module MiGA
10
10
  # - Float representing the major.minor version.
11
11
  # - Integer representing gem releases of the current version.
12
12
  # - Integer representing minor changes that require new version number.
13
- VERSION = [0.2, 6, 2]
13
+ VERSION = [0.2, 6, 3]
14
14
 
15
15
  ##
16
16
  # Nickname for the current major.minor version.
@@ -18,7 +18,7 @@ module MiGA
18
18
 
19
19
  ##
20
20
  # Date of the current gem release.
21
- VERSION_DATE = Date.new(2017, 4, 14)
21
+ VERSION_DATE = Date.new(2017, 4, 15)
22
22
 
23
23
  ##
24
24
  # Reference of MiGA.
data/test/project_test.rb CHANGED
@@ -93,8 +93,21 @@ class ProjectTest < Test::Unit::TestCase
93
93
  assert(! p1.done_preprocessing?)
94
94
  FileUtils.touch(File.expand_path("data/90.stats/#{d1.name}.done", p1.path))
95
95
  assert(p1.done_preprocessing?)
96
+
97
+ # Project stats
98
+ assert_equal(:project_stats, p1.next_distances)
99
+ d = MiGA::Project.RESULT_DIRS[:project_stats]
100
+ %w[.done .taxonomy.json .metadata.db].each do |x|
101
+ assert_nil(p1.add_result(:project_stats),
102
+ "Premature registration of result project_stats at extension #{x}.")
103
+ FileUtils.touch(File.expand_path("data/#{d}/miga-project#{x}", p1.path))
104
+ end
105
+ assert_equal(MiGA::Result, p1.add_result(:project_stats).class,
106
+ "Imposible to add project_stats result.")
107
+
96
108
  # Distances
97
109
  [:haai_distances, :aai_distances, :ani_distances].each do |r|
110
+ assert_equal(r, p1.next_distances)
98
111
  assert_equal(Symbol, p1.next_distances.class)
99
112
  d = MiGA::Project.RESULT_DIRS[r]
100
113
  %w[.done .Rdata .log .txt].each do |x|
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: miga-base
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6.2
4
+ version: 0.2.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Luis M. Rodriguez-R
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-04-14 00:00:00.000000000 Z
11
+ date: 2017-04-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client