theseus 1.0.1 → 1.0.2

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/README.rdoc CHANGED
@@ -79,7 +79,7 @@ Theseus is designed to be super simple to use. Here are some examples:
79
79
  puts maze
80
80
 
81
81
  # render a triangular delta maze to a PNG file
82
- maze = Theseus::DeltaMaze.generate(mask: Theseus::TriangularMask.new(10))
82
+ maze = Theseus::DeltaMaze.generate(mask: Theseus::TriangleMask.new(10))
83
83
  File.open("triangle.png", "w") { |f| f.write(maze.to(:png)) }
84
84
 
85
85
  # render a highly braided, hexagonally-tiled maze, with its solution
@@ -70,7 +70,7 @@ module Theseus
70
70
  @options = DEFAULTS.merge(options)
71
71
 
72
72
  [:background, :wall_color, :cell_color, :solution_color].each do |c|
73
- @options[c] = ChunkyPNG::Color.from_hex(@options[c]) unless Fixnum === @options[c]
73
+ @options[c] = ChunkyPNG::Color.from_hex(@options[c]) if String === @options[c]
74
74
  end
75
75
 
76
76
  @paths = @options[:paths] || []
@@ -3,7 +3,7 @@ module Theseus
3
3
  module Version
4
4
  MAJOR = 1
5
5
  MINOR = 0
6
- TINY = 1
6
+ TINY = 2
7
7
 
8
8
  STRING = [MAJOR, MINOR, TINY].join(".")
9
9
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 0
8
- - 1
9
- version: 1.0.1
8
+ - 2
9
+ version: 1.0.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Jamis Buck
@@ -14,14 +14,13 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-12-19 00:00:00 -07:00
17
+ date: 2010-12-20 00:00:00 -07:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: chunky_png
22
22
  prerelease: false
23
23
  requirement: &id001 !ruby/object:Gem::Requirement
24
- none: false
25
24
  requirements:
26
25
  - - ~>
27
26
  - !ruby/object:Gem::Version
@@ -78,7 +77,6 @@ rdoc_options: []
78
77
  require_paths:
79
78
  - lib
80
79
  required_ruby_version: !ruby/object:Gem::Requirement
81
- none: false
82
80
  requirements:
83
81
  - - ">="
84
82
  - !ruby/object:Gem::Version
@@ -86,7 +84,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
86
84
  - 0
87
85
  version: "0"
88
86
  required_rubygems_version: !ruby/object:Gem::Requirement
89
- none: false
90
87
  requirements:
91
88
  - - ">="
92
89
  - !ruby/object:Gem::Version
@@ -96,7 +93,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
96
93
  requirements:
97
94
  - Ruby 1.9
98
95
  rubyforge_project:
99
- rubygems_version: 1.3.7
96
+ rubygems_version: 1.3.6
100
97
  signing_key:
101
98
  specification_version: 3
102
99
  summary: Maze generator for Ruby