subset_sum 1.0.0 → 1.0.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/subset_sum.c +1 -1
- metadata +21 -7
data/subset_sum.c
CHANGED
@@ -283,7 +283,7 @@ static VALUE rbss_main(VALUE self, VALUE numbers, VALUE result, VALUE max_second
|
|
283
283
|
|
284
284
|
c_result = NUM2LONG(result);
|
285
285
|
c_max_seconds = NUM2INT(max_seconds);
|
286
|
-
length =
|
286
|
+
length = RARRAY_LEN(numbers);
|
287
287
|
half_length = length/2;
|
288
288
|
|
289
289
|
if(c_max_seconds < 0) {
|
metadata
CHANGED
@@ -1,7 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: subset_sum
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
hash: 21
|
5
|
+
prerelease: false
|
6
|
+
segments:
|
7
|
+
- 1
|
8
|
+
- 0
|
9
|
+
- 1
|
10
|
+
version: 1.0.1
|
5
11
|
platform: ruby
|
6
12
|
authors:
|
7
13
|
- Jeremy Evans
|
@@ -9,7 +15,7 @@ autorequire:
|
|
9
15
|
bindir: bin
|
10
16
|
cert_chain: []
|
11
17
|
|
12
|
-
date:
|
18
|
+
date: 2010-11-20 00:00:00 -08:00
|
13
19
|
default_executable:
|
14
20
|
dependencies: []
|
15
21
|
|
@@ -29,29 +35,37 @@ files:
|
|
29
35
|
- spec/subset_sum_spec.rb
|
30
36
|
has_rdoc: true
|
31
37
|
homepage: http://subset-sum.rubyforge.org/
|
38
|
+
licenses: []
|
39
|
+
|
32
40
|
post_install_message:
|
33
41
|
rdoc_options: []
|
34
42
|
|
35
43
|
require_paths:
|
36
44
|
- .
|
37
45
|
required_ruby_version: !ruby/object:Gem::Requirement
|
46
|
+
none: false
|
38
47
|
requirements:
|
39
48
|
- - ">="
|
40
49
|
- !ruby/object:Gem::Version
|
50
|
+
hash: 3
|
51
|
+
segments:
|
52
|
+
- 0
|
41
53
|
version: "0"
|
42
|
-
version:
|
43
54
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
55
|
+
none: false
|
44
56
|
requirements:
|
45
57
|
- - ">="
|
46
58
|
- !ruby/object:Gem::Version
|
59
|
+
hash: 3
|
60
|
+
segments:
|
61
|
+
- 0
|
47
62
|
version: "0"
|
48
|
-
version:
|
49
63
|
requirements: []
|
50
64
|
|
51
65
|
rubyforge_project: subset-sum
|
52
|
-
rubygems_version: 1.
|
66
|
+
rubygems_version: 1.3.7
|
53
67
|
signing_key:
|
54
|
-
specification_version:
|
55
|
-
summary: Simple Subset Sum Solver
|
68
|
+
specification_version: 3
|
69
|
+
summary: Simple Subset Sum Solver with C and Pure Ruby Versions
|
56
70
|
test_files:
|
57
71
|
- spec/subset_sum_spec.rb
|