positionrange 0.6.5 → 0.6.6

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,4 +1,4 @@
1
- *0.6.5* (26 May 2009)
1
+ *0.6.6* (26 May 2009)
2
2
 
3
3
  * Fixed bug in translate_to/from_view
4
4
  * Added non-'!' alternatives to methods
@@ -206,7 +206,7 @@ class PositionRange::List < Array
206
206
  # See substract!
207
207
  #
208
208
  def substract(other, options = {})
209
- self.dup.substract!(other)
209
+ self.dup.substract!(other, options)
210
210
  end
211
211
 
212
212
  # Deletes the position_range that is specified.
@@ -267,7 +267,7 @@ class PositionRange::List < Array
267
267
  # See invert!
268
268
  #
269
269
  def invert(maximum_size = PositionRange::MaximumSize)
270
- self.dup.invert!
270
+ self.dup.invert!(maximum_size)
271
271
  end
272
272
 
273
273
  # Makes sure that there are no non-overlapping borders between
@@ -2,7 +2,7 @@ module PositionRange
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 6
5
- TINY = 5
5
+ TINY = 6
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
@@ -57,6 +57,7 @@ class PositionRangeListTest < Test::Unit::TestCase
57
57
  def test_below
58
58
  assert PositionRange::List.from_s('1,3:5,6').below?(7)
59
59
  assert PositionRange::List.from_s('0,408:500,520').below?(520)
60
+ assert PositionRange::List.from_s('43,48').below?(559)
60
61
  assert_equal false,
61
62
  PositionRange::List.from_s('0,408:500,520').below?(519)
62
63
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: positionrange
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.5
4
+ version: 0.6.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wybo Wiersma