ambit 0.12 → 0.13

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 71c1c0685631e1402b74136838e332f305ceca5a
4
+ data.tar.gz: 316c295b18a41a4ef381fdcad92a167f9dc55414
5
+ SHA512:
6
+ metadata.gz: ddfdff2837ed962b887018f8db1ed0a5c3ce8efcce6183ba3d6f641874f735bc09cb3f74419a5c582a70228c3c68ab97b57fa51db71fecfa468ce38eca873c68
7
+ data.tar.gz: 01ae79563d98956c70bf9cc02fee4cd336bc9b9761269f3cfcd09899318e1b740b43aaf15b178a551eaba139116382dccd55250ba92589e519005a7d020b3d7c
@@ -1,3 +1,13 @@
1
+ === 0.13 / 2013-03-29
2
+
3
+ * Fix output of eight queens example under Ruby 1.9.
4
+
5
+ * Clean up how we detect what Ruby version we are running under (used to
6
+ detect if we have to get callcc from a stdlib (1.9 and above) or if it's
7
+ a builtin (1.8).
8
+
9
+ * Note support for Ruby 2.0.0.
10
+
1
11
  === 0.12 / 2012-01-30
2
12
 
3
13
  * Support Ruby 1.9
@@ -14,7 +14,7 @@ branch cut.
14
14
  == REQUIREMENTS:
15
15
 
16
16
  <b>This code will not work in JRuby or MacRuby (no callcc). It is tested
17
- (and should work fine) in Ruby 1.8.7 and 1.9.3.</b>
17
+ (and should work fine) in Ruby 1.8.7, 1.9.3, and 2.0.0.</b>
18
18
 
19
19
  == INSTALL:
20
20
 
data/README.txt CHANGED
@@ -14,7 +14,7 @@ branch cut.
14
14
  == REQUIREMENTS:
15
15
 
16
16
  <b>This code will not work in JRuby or MacRuby (no callcc). It is tested
17
- (and should work fine) in Ruby 1.8.7 and 1.9.3.</b>
17
+ (and should work fine) in Ruby 1.8.7, 1.9.3, and 2.0.0.</b>
18
18
 
19
19
  == INSTALL:
20
20
 
@@ -68,7 +68,7 @@ O = Alternator.new ".", " "
68
68
  # return a blank board of a given size, as an array of N strings of length N
69
69
  def empty_board n
70
70
  (1..n).collect do |i|
71
- ((i+1).odd? ? O : E).take(n).to_s
71
+ ((i+1).odd? ? O : E).take(n).join ""
72
72
  end
73
73
  end
74
74
  # board is a board in the above format (array where a[i] is the column
@@ -93,6 +93,7 @@ end
93
93
  # show_board (1..8).to_a
94
94
  # puts ""
95
95
  # show_board [1, 3, 5, 7, 2, 4, 6, 8]
96
+ # show_board([1,2])
96
97
  raise "board_to_s failed" unless board_to_s([1,2]) == "Q.\n.Q"
97
98
 
98
99
  # tests:
@@ -5,11 +5,11 @@
5
5
  # Copyright:: Copyright (c) 2011 Jim Wise
6
6
  # License:: 2-clause BSD-Style (see LICENSE[link:files/LICENSE.html])
7
7
 
8
- require 'continuation' if RUBY_VERSION !~ /^1.8/
8
+ require 'continuation' unless RUBY_VERSION.start_with?("1.8")
9
9
 
10
10
  module Ambit
11
11
 
12
- VERSION = '0.12'
12
+ VERSION = '0.13'
13
13
 
14
14
  # A ChoicesExhausted exception is raised if the outermost choose invocation of
15
15
  # a Generator has run out of choices, indicating that no (more) solutions are possible.
metadata CHANGED
@@ -1,42 +1,46 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ambit
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.12'
5
- prerelease:
4
+ version: '0.13'
6
5
  platform: ruby
7
6
  authors:
8
7
  - Jim Wise
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2012-01-30 00:00:00.000000000 Z
11
+ date: 2013-03-29 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: rdoc
16
- requirement: &69351180 !ruby/object:Gem::Requirement
17
- none: false
15
+ requirement: !ruby/object:Gem::Requirement
18
16
  requirements:
19
17
  - - ~>
20
18
  - !ruby/object:Gem::Version
21
19
  version: '3.10'
22
20
  type: :development
23
21
  prerelease: false
24
- version_requirements: *69351180
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: '3.10'
25
27
  - !ruby/object:Gem::Dependency
26
28
  name: hoe
27
- requirement: &69350830 !ruby/object:Gem::Requirement
28
- none: false
29
+ requirement: !ruby/object:Gem::Requirement
29
30
  requirements:
30
31
  - - ~>
31
32
  - !ruby/object:Gem::Version
32
- version: '2.13'
33
+ version: '3.5'
33
34
  type: :development
34
35
  prerelease: false
35
- version_requirements: *69350830
36
- description: ! 'Ambit is a ruby non-deterministic programming system with backtracking
37
- and
38
-
39
- branch cut.'
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ~>
39
+ - !ruby/object:Gem::Version
40
+ version: '3.5'
41
+ description: |-
42
+ Ambit is a ruby non-deterministic programming system with backtracking and
43
+ branch cut.
40
44
  email:
41
45
  - jwise@draga.com
42
46
  executables: []
@@ -45,6 +49,7 @@ extra_rdoc_files:
45
49
  - History.txt
46
50
  - LICENSE.txt
47
51
  - Manifest.txt
52
+ - README.rdoc
48
53
  - README.txt
49
54
  files:
50
55
  - .autotest
@@ -62,29 +67,28 @@ files:
62
67
  - .gemtest
63
68
  homepage: https://github.com/jimwise/ambit
64
69
  licenses: []
70
+ metadata: {}
65
71
  post_install_message:
66
72
  rdoc_options:
67
73
  - --main
68
- - README.txt
74
+ - README.rdoc
69
75
  require_paths:
70
76
  - lib
71
77
  required_ruby_version: !ruby/object:Gem::Requirement
72
- none: false
73
78
  requirements:
74
- - - ! '>='
79
+ - - '>='
75
80
  - !ruby/object:Gem::Version
76
81
  version: '0'
77
82
  required_rubygems_version: !ruby/object:Gem::Requirement
78
- none: false
79
83
  requirements:
80
- - - ! '>='
84
+ - - '>='
81
85
  - !ruby/object:Gem::Version
82
86
  version: '0'
83
87
  requirements: []
84
88
  rubyforge_project: ambit
85
- rubygems_version: 1.8.15
89
+ rubygems_version: 2.0.0
86
90
  signing_key:
87
- specification_version: 3
91
+ specification_version: 4
88
92
  summary: Ambit is a ruby non-deterministic programming system with backtracking and
89
93
  branch cut.
90
94
  test_files: