recordsearch 1.1.0 → 1.1.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.
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ == 1.1.1 2009-12-26
2
+
3
+ * Workaround for a issue in mathn: http://redmine.ruby-lang.org/issues/show/2121 . If you have required mathn and then used recordsearch, a nil record was returned as the data you were looking for.
4
+
1
5
  == 1.1.0 2009-09-30
2
6
 
3
7
  * changes to make it work on Ruby 1.9.1
data/README.txt CHANGED
@@ -1,4 +1,4 @@
1
- = Record Search 1.1
1
+ = Record Search 1.2
2
2
 
3
3
  == What is recordsearch?
4
4
 
@@ -31,7 +31,7 @@ module RecordSearch
31
31
 
32
32
  pivot = nil
33
33
  while from < to
34
- middle = (from + to) / 2
34
+ middle = ((from + to) / 2).to_i
35
35
 
36
36
  pivot = read(middle)
37
37
 
@@ -2,7 +2,7 @@ module RecordSearch
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 1
4
4
  MINOR = 1
5
- TINY = 0
5
+ TINY = 1
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
@@ -1,4 +1,7 @@
1
1
  require File.dirname(__FILE__) + '/test_helper.rb'
2
+ # The require is to make sure that when using mathn, we dont have problems
3
+ # with this issue: http://redmine.ruby-lang.org/issues/show/2121
4
+ require 'mathn'
2
5
 
3
6
  class TestRecordSearch < Test::Unit::TestCase
4
7
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: recordsearch
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Luis Parravicini
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-10-01 00:00:00 -03:00
12
+ date: 2009-12-26 00:00:00 -02:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -20,7 +20,7 @@ dependencies:
20
20
  requirements:
21
21
  - - ">="
22
22
  - !ruby/object:Gem::Version
23
- version: 2.3.3
23
+ version: 2.4.0
24
24
  version:
25
25
  description: Search on a text file using binary search
26
26
  email: lparravi@gmail.com
@@ -92,6 +92,6 @@ signing_key:
92
92
  specification_version: 3
93
93
  summary: Search on a text file using binary search
94
94
  test_files:
95
- - test/test_recordsearch.rb
96
95
  - test/test_helper.rb
97
96
  - test/test_index.rb
97
+ - test/test_recordsearch.rb