pitchcar 0.5.0 → 0.5.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d6753a63fdf5f4abfdb83330fba95107c143997b
4
- data.tar.gz: 6120074fe200a104e94338f1a05a27132481be7d
3
+ metadata.gz: 34b441fcb4b47af154322a33d400d5d44b45c991
4
+ data.tar.gz: 317cfcab1c9f5d4b76f39c61cf0caade4818531e
5
5
  SHA512:
6
- metadata.gz: 9aa37062956eb9f3822517ee9782b683afda541a9c96262525cd2b7dd53a71c3904b5c32a9bc15376d9033921ae19c2456e939a86e9a758752fec27a848813bc
7
- data.tar.gz: 8e7b56d1a5ad4bbc6ecb676db707518fea0184b5e50fd47860d70a1d7e24fc97631b2bf6f983f33bf63eacd6fcf687d8291e5516de65f2c2b706b6c25891dc1c
6
+ metadata.gz: 4d2ed02d11e5532334700b213ebb56fecafdd285a674a0f157423b02b6b0afb35c5268ddede6eae2594c6a1643ab5b043bb6dc3e0734836a4bf7321a16acfb7c
7
+ data.tar.gz: 5bb3282a7b02b483dd02221fca414e492b77808f38cff60d695fd85f610967d76d8a4900d2f7667421fad8195384017c65973f8fc0a7c6562ab93c510bed2c6c
data/lib/piece.rb CHANGED
@@ -5,7 +5,8 @@ module Pitchcar
5
5
  class Piece
6
6
  TYPES = { STRAIGHT: 0, LEFT: 1, RIGHT: 2, STRAIGHT_LEFT_WALL: 3, STRAIGHT_RIGHT_WALL: 4 }
7
7
  DIRECTIONS = { NORTH: 0, EAST: 1, WEST: 2, SOUTH: 3 }
8
- STRAIGHT_IMAGE, CURVE_IMAGE = Magick::ImageList.new('images/straight_tile.png', 'images/curve_tile.png').to_a
8
+ STRAIGHT_IMAGE, CURVE_IMAGE = Magick::ImageList.new(File.expand_path('../images/straight_tile.png', __FILE__),
9
+ File.expand_path('../images/curve_tile.png', __FILE__)).to_a
9
10
  attr_accessor :direction, :x, :y, :type
10
11
 
11
12
  def self.starting_piece
data/pitchcar.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = 'pitchcar'
3
- spec.version = '0.5.0'
3
+ spec.version = '0.5.1'
4
4
  spec.date = '2017-02-23'
5
5
  spec.summary = 'Pitchcar Track Generator'
6
6
  spec.description = 'Generates tracks for pitchcar'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pitchcar
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonah Hirsch
@@ -48,9 +48,9 @@ files:
48
48
  - Gemfile.lock
49
49
  - LICENSE.md
50
50
  - Readme.md
51
- - images/curve_tile.png
52
- - images/straight_tile.png
53
51
  - lib/boyermoore.rb
52
+ - lib/images/curve_tile.png
53
+ - lib/images/straight_tile.png
54
54
  - lib/piece.rb
55
55
  - lib/pitchcar.rb
56
56
  - lib/track.rb
File without changes
File without changes