sequencer 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ === 1.1.1
2
+
3
+ * Fix comparison bugs
4
+
1
5
  === 1.1.0
2
6
 
3
7
  * Make Sequence comparable to allow for sorted and unique sequences
data/lib/sequencer.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module Sequencer
2
- VERSION = '1.1.0'
2
+ VERSION = '1.1.1'
3
3
  NUMBERS_AT_END = /(\d+)([^\d]+)?$/
4
4
 
5
5
  extend self
@@ -252,7 +252,7 @@ module Sequencer
252
252
  end
253
253
 
254
254
  def <=>(another)
255
- to_a <=> another.to_a
255
+ to_paths <=> another.to_paths
256
256
  end
257
257
 
258
258
  private
data/sequencer.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "sequencer"
8
- s.version = "1.1.0"
8
+ s.version = "1.1.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Julik Tarkhanov"]
12
- s.date = "2012-03-31"
12
+ s.date = "2012-04-19"
13
13
  s.email = "me@julik.nl"
14
14
  s.executables = ["rseqls", "rseqpad", "rseqrename"]
15
15
  s.extra_rdoc_files = [
@@ -186,6 +186,12 @@ class A_Sequence_created_from_pad_numbered_files_should < Test::Unit::TestCase
186
186
  assert_equal @with_gaps, another
187
187
  end
188
188
 
189
+ def test_equals_with_same_initialization
190
+ one = Sequencer.from_single_file(TEST_DIR + "/sequence_and_sole_file/broken_seq.000246.tif")
191
+ another = Sequencer.from_single_file(TEST_DIR + "/sequence_and_sole_file/broken_seq.000245.tif")
192
+ assert_equal one, another
193
+ end
194
+
189
195
  def test_return_subsequences_without_gaps
190
196
  subseqs = @with_gaps.to_sequences
191
197
  assert_kind_of Sequencer::Sequence, subseqs[0]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sequencer
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-03-31 00:00:00.000000000 Z
12
+ date: 2012-04-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: jeweler
16
- requirement: &8997550 !ruby/object:Gem::Requirement
16
+ requirement: &9107590 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *8997550
24
+ version_requirements: *9107590
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rake
27
- requirement: &8995670 !ruby/object:Gem::Requirement
27
+ requirement: &9107160 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,7 +32,7 @@ dependencies:
32
32
  version: '0'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *8995670
35
+ version_requirements: *9107160
36
36
  description:
37
37
  email: me@julik.nl
38
38
  executables:
@@ -69,7 +69,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
69
69
  version: '0'
70
70
  segments:
71
71
  - 0
72
- hash: 65822483
72
+ hash: 433403581
73
73
  required_rubygems_version: !ruby/object:Gem::Requirement
74
74
  none: false
75
75
  requirements: