acrosslite 0.3.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -43,8 +43,8 @@ calls.
43
43
  ac.diagram # -> two-dimensional matrix of the diagram
44
44
  ac.solution # -> two-dimensional matrix of the solution
45
45
 
46
- ac.rows # -> Array of Acrosslite::Entry objects
47
- ac.columns # -> Array of Acrosslite::Entry objects
46
+ ac.rows # -> Number of rows
47
+ ac.columns # -> Number of columns
48
48
 
49
49
  Acrosslite::Entry objects are broken down thusly:
50
50
 
@@ -6,11 +6,11 @@ class Acrosslite
6
6
  attr_accessor :copyright, :title, :author
7
7
  attr_reader :across, :down, :solution, :diagram, :filepath
8
8
 
9
- VERSION = '0.3.0'
9
+ VERSION = '0.4.0'
10
10
 
11
11
  ACROSSLITE = 2
12
- ROWS = 44
13
- COLUMNS = 45
12
+ COLUMNS = 44
13
+ ROWS = 45
14
14
  SOLUTION = 52
15
15
 
16
16
  DEFAULT_OPTIONS = {
@@ -10,6 +10,7 @@ describe Acrosslite do
10
10
  @example_files[:tmcal] = File.join(basedir, "files/tmcal100306.puz")
11
11
  @example_files[:xp] = File.join(basedir, "files/xp110316.puz")
12
12
  @example_files[:ydx] = File.join(basedir, "files/ydx100515.puz")
13
+ @example_files[:nyt] = File.join(basedir, "files/nyt110622.puz")
13
14
  end
14
15
 
15
16
  # before(:each) do
@@ -35,10 +36,10 @@ describe Acrosslite do
35
36
  end
36
37
 
37
38
  it "should parse dimensions" do
38
- ac = Acrosslite.new(:filepath => @example_files[:tmcal])
39
+ ac = Acrosslite.new(:filepath => @example_files[:nyt])
39
40
  ac.rows.should == 15
40
- ac.columns.should == 15
41
- ac.area.should == 15 * 15
41
+ ac.columns.should == 16
42
+ ac.area.should == 16 * 15
42
43
  end
43
44
 
44
45
  it "should parse solution and diagram" do
Binary file
Binary file
metadata CHANGED
@@ -1,92 +1,80 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: acrosslite
3
- version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 0
7
- - 3
8
- - 0
9
- version: 0.3.0
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.4.0
5
+ prerelease:
10
6
  platform: ruby
11
- authors:
7
+ authors:
12
8
  - Samuel Mullen
13
9
  autorequire:
14
10
  bindir: bin
15
11
  cert_chain: []
16
-
17
- date: 2010-06-17 00:00:00 -05:00
18
- default_executable:
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
12
+ date: 2012-04-09 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
21
15
  name: rspec
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
24
- requirements:
25
- - - ">="
26
- - !ruby/object:Gem::Version
27
- segments:
28
- - 0
29
- version: "0"
16
+ requirement: &70146349878380 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
30
22
  type: :development
31
- version_requirements: *id001
32
- description: "false"
23
+ prerelease: false
24
+ version_requirements: *70146349878380
25
+ description: 'false'
33
26
  email: samullen@gmail.com
34
27
  executables: []
35
-
36
28
  extensions: []
37
-
38
29
  extra_rdoc_files: []
39
-
40
- files:
30
+ files:
41
31
  - LICENSE
42
32
  - README.rdoc
43
33
  - Rakefile
44
34
  - lib/acrosslite.rb
45
35
  - lib/entry.rb
46
36
  - spec/acrosslite_spec.rb
47
- - spec/files/tmcal100306.puz
37
+ - spec/files/can100607.puz
48
38
  - spec/files/crnet100306.puz
49
- - spec/files/xp110316.puz
50
39
  - spec/files/halloween2009.puz
51
40
  - spec/files/jnz100601.puz
41
+ - spec/files/nyt110622.puz
42
+ - spec/files/tmcal100306.puz
43
+ - spec/files/xp100306.puz
44
+ - spec/files/xp110316.puz
52
45
  - spec/files/ydx100515.puz
53
- - spec/files/can100607.puz
54
- has_rdoc: true
55
46
  homepage: http://github.com/samullen/acrosslite
56
47
  licenses: []
57
-
58
48
  post_install_message:
59
49
  rdoc_options: []
60
-
61
- require_paths:
50
+ require_paths:
62
51
  - lib
63
- required_ruby_version: !ruby/object:Gem::Requirement
64
- requirements:
65
- - - ">="
66
- - !ruby/object:Gem::Version
67
- segments:
68
- - 0
69
- version: "0"
70
- required_rubygems_version: !ruby/object:Gem::Requirement
71
- requirements:
72
- - - ">="
73
- - !ruby/object:Gem::Version
74
- segments:
75
- - 0
76
- version: "0"
52
+ required_ruby_version: !ruby/object:Gem::Requirement
53
+ none: false
54
+ requirements:
55
+ - - ! '>='
56
+ - !ruby/object:Gem::Version
57
+ version: '0'
58
+ required_rubygems_version: !ruby/object:Gem::Requirement
59
+ none: false
60
+ requirements:
61
+ - - ! '>='
62
+ - !ruby/object:Gem::Version
63
+ version: '0'
77
64
  requirements: []
78
-
79
65
  rubyforge_project:
80
- rubygems_version: 1.3.6
66
+ rubygems_version: 1.8.17
81
67
  signing_key:
82
68
  specification_version: 3
83
69
  summary: A Ruby library for parsing Across Lite puzzle (.puz) files
84
- test_files:
70
+ test_files:
85
71
  - spec/acrosslite_spec.rb
86
- - spec/files/tmcal100306.puz
72
+ - spec/files/can100607.puz
87
73
  - spec/files/crnet100306.puz
88
- - spec/files/xp110316.puz
89
74
  - spec/files/halloween2009.puz
90
75
  - spec/files/jnz100601.puz
76
+ - spec/files/nyt110622.puz
77
+ - spec/files/tmcal100306.puz
78
+ - spec/files/xp100306.puz
79
+ - spec/files/xp110316.puz
91
80
  - spec/files/ydx100515.puz
92
- - spec/files/can100607.puz