fuzzy-string-match 0.9.4 → 0.9.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ NTMxMjIwZDNmNTg3MzVkNjIxNDEwMTQzOWQ4NzI5MTkyYWQzMWE4MQ==
5
+ data.tar.gz: !binary |-
6
+ NmE1NWJlYmI0ZTVlNTUzNjY4MzhhYTQ5Yzk5MDU1ZGJjODJmZTUwNw==
7
+ !binary "U0hBNTEy":
8
+ metadata.gz: !binary |-
9
+ NzVlODllOTIzYzU0NWU5MjIxNTVhOGFjMWViNjZlN2NmMjM5MmU1MjM4ODli
10
+ ZTRmZDY4NDkyYzc3ZjJiZTlmNzQ2MWFkZGE1ZDMyZTIxMTNlNzg1NDc1ZWI3
11
+ ZDM5OGNhZmYyYjc2YmRlZTU0NDEzNWZlZWMyYmQ4M2E0MjcxZGQ=
12
+ data.tar.gz: !binary |-
13
+ ZTA4MzVmZWJjMGM3YjZkOGY2OGFjNmI1YjFkM2Y5MmYwZGFhOTIyOWVlMGNi
14
+ NWJkYzhmZjc5YTZlNmYyMGJjNGVmZjBiNDc3ZGQwMGFiM2JkNDZmNWJlNGRk
15
+ YzE1NmI3MGEzODBlNWQyZWIxYmJiZTA3YzUxOTJjNTNmNDRiY2I=
data/Rakefile CHANGED
@@ -15,7 +15,7 @@
15
15
 
16
16
  require 'rake'
17
17
  begin
18
- require 'jeweler'
18
+ require 'jeweler2'
19
19
 
20
20
  Jeweler::Tasks.new do |gemspec|
21
21
  gemspec.name = "fuzzy-string-match_pure"
data/VERSION.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  ---
2
2
  :major: 0
3
3
  :minor: 9
4
- :patch: 4
4
+ :patch: 5
5
5
 
@@ -30,6 +30,8 @@ module FuzzyStringMatch
30
30
  builder.c_raw 'int min( int a, int b ) { return ((a)<(b)?(a):(b)); }'
31
31
  builder.c_raw 'double double_min( double a, double b ) { return ((a)<(b)?(a):(b)); }'
32
32
  builder.c '
33
+
34
+
33
35
  double getDistance( char *s1, char *s2 )
34
36
  {
35
37
  char *_max;
@@ -37,12 +39,12 @@ double getDistance( char *s1, char *s2 )
37
39
  int _max_length = 0;
38
40
  int _min_length = 0;
39
41
  if ( strlen(s1) > strlen(s2) ) {
40
- _max = s1; _max_length = strlen(s1);
41
- _min = s2; _min_length = strlen(s2);
42
+ _max = s1; _max_length = (int)strlen(s1);
43
+ _min = s2; _min_length = (int)strlen(s2);
42
44
  }
43
45
  else {
44
- _max = s2; _max_length = strlen(s2);
45
- _min = s1; _min_length = strlen(s1);
46
+ _max = s2; _max_length = (int)strlen(s2);
47
+ _min = s1; _min_length = (int)strlen(s1);
46
48
  }
47
49
  int range = max( _max_length / 2 - 1, 0 );
48
50
 
metadata CHANGED
@@ -1,20 +1,18 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fuzzy-string-match
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.4
5
- prerelease:
4
+ version: 0.9.5
6
5
  platform: ruby
7
6
  authors:
8
7
  - Kiyoka Nishiyama
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2012-07-10 00:00:00.000000000 Z
11
+ date: 2013-03-26 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: rspec
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
17
  - - ! '>='
20
18
  - !ruby/object:Gem::Version
@@ -22,7 +20,6 @@ dependencies:
22
20
  type: :development
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
24
  - - ! '>='
28
25
  - !ruby/object:Gem::Version
@@ -30,7 +27,6 @@ dependencies:
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: RubyInline
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
31
  - - ! '>='
36
32
  - !ruby/object:Gem::Version
@@ -38,7 +34,6 @@ dependencies:
38
34
  type: :runtime
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
38
  - - ! '>='
44
39
  - !ruby/object:Gem::Version
@@ -46,7 +41,6 @@ dependencies:
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: rspec
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
45
  - - ! '>='
52
46
  - !ruby/object:Gem::Version
@@ -54,7 +48,6 @@ dependencies:
54
48
  type: :development
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
52
  - - ! '>='
60
53
  - !ruby/object:Gem::Version
@@ -62,7 +55,6 @@ dependencies:
62
55
  - !ruby/object:Gem::Dependency
63
56
  name: RubyInline
64
57
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
58
  requirements:
67
59
  - - ! '>='
68
60
  - !ruby/object:Gem::Version
@@ -70,7 +62,6 @@ dependencies:
70
62
  type: :runtime
71
63
  prerelease: false
72
64
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
65
  requirements:
75
66
  - - ! '>='
76
67
  - !ruby/object:Gem::Version
@@ -98,26 +89,25 @@ files:
98
89
  - test/mutibyte_spec.rb
99
90
  homepage: http://github.com/kiyoka/fuzzy-string-match
100
91
  licenses: []
92
+ metadata: {}
101
93
  post_install_message:
102
94
  rdoc_options: []
103
95
  require_paths:
104
96
  - lib
105
97
  required_ruby_version: !ruby/object:Gem::Requirement
106
- none: false
107
98
  requirements:
108
99
  - - ! '>='
109
100
  - !ruby/object:Gem::Version
110
101
  version: 1.9.1
111
102
  required_rubygems_version: !ruby/object:Gem::Requirement
112
- none: false
113
103
  requirements:
114
104
  - - ! '>='
115
105
  - !ruby/object:Gem::Version
116
106
  version: '0'
117
107
  requirements: []
118
108
  rubyforge_project:
119
- rubygems_version: 1.8.23
109
+ rubygems_version: 2.0.3
120
110
  signing_key:
121
- specification_version: 3
111
+ specification_version: 4
122
112
  summary: fuzzy string matching library
123
113
  test_files: []