tumblr-game 0.0.4 → 0.0.5

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: aeba2408a942ee0911e69de173c12d057fe69db4
4
- data.tar.gz: 3fa0eaf0dc765714d9ade3a133d4cc4f512ecc9c
3
+ metadata.gz: 0e2ce70771419740baf7deda9e0fe2696bc8689e
4
+ data.tar.gz: 5ea5dfa2356509609924843906a3d4a94ecc6b36
5
5
  SHA512:
6
- metadata.gz: d8609bce964a95ce914a29e452285f79fe28d6aea05e144bfe8b9417776362e42ecb4bcec1f3a20610e4c1007e516f3f155c3e1cb0c5fb8b21c07590cbd7c1fd
7
- data.tar.gz: 188c920c47eb2daaf833af885183d348c7e5ea9399d9a6d6445b00fe30fa44f4ec1cb29c0cb12b1ebc149bc83fcf4494c76edd37fbec4e010b243eb69a305644
6
+ metadata.gz: bfd25c5853b5cc8dff029d0892517778349fe7bedbba999e3e24eb3d207e1ad521eb90deedbb4f8bc25b45eb12ffb5734bc3a2b5c81d04bb1c68777120d69370
7
+ data.tar.gz: f4e46b816c9070a4b26ceee955438852332334f686791e53be875b58ecf2b4f288df54367b3e794135051b13accc7af86e8ead89974c9a354bf29b3728fd9c7e
@@ -61,16 +61,16 @@ class MyWindow < Gosu::Window
61
61
 
62
62
  # create a hash of the image names that we are using along with their associated id
63
63
  imgNames = Hash[
64
- 'image1.png' => 0,
65
- 'image2.png' => 1,
66
- 'image3.png' => 2,
67
- 'image4.png' => 3,
68
- 'image5.png' => 4,
69
- 'image6.png' => 0,
70
- 'image7.png' => 1,
71
- 'image8.png' => 2,
72
- 'image9.png' => 3,
73
- 'image10.png' => 4 ]
64
+ File.join(File.dirname(File.expand_path(__FILE__)), 'image1.png') => 0,
65
+ File.join(File.dirname(File.expand_path(__FILE__)), 'image2.png') => 1,
66
+ File.join(File.dirname(File.expand_path(__FILE__)), 'image3.png') => 2,
67
+ File.join(File.dirname(File.expand_path(__FILE__)), 'image4.png') => 3,
68
+ File.join(File.dirname(File.expand_path(__FILE__)), 'image5.png') => 4,
69
+ File.join(File.dirname(File.expand_path(__FILE__)), 'image6.png') => 0,
70
+ File.join(File.dirname(File.expand_path(__FILE__)), 'image7.png') => 1,
71
+ File.join(File.dirname(File.expand_path(__FILE__)), 'image8.png') => 2,
72
+ File.join(File.dirname(File.expand_path(__FILE__)), 'image9.png') => 3,
73
+ File.join(File.dirname(File.expand_path(__FILE__)), 'image10.png') => 4 ]
74
74
 
75
75
  ## Durstenfield's Shuffling Algorithm
76
76
  # convert the hash from above into a two-dimensional array that will be shuffled in order to
@@ -87,8 +87,8 @@ class MyWindow < Gosu::Window
87
87
  end
88
88
 
89
89
  # create the Gosu images so they can be put in to each Tile object
90
- chk = Gosu::Image.new(self, "../../resources/check.png", true)
91
- img0 = Gosu::Image.new(self, "../../resources/tumblr.png", true) #the back of each card
90
+ chk = Gosu::Image.new(self, File.join(File.dirname(File.expand_path(__FILE__)), 'check.png'), true) # completion image
91
+ img0 = Gosu::Image.new(self, File.join(File.dirname(File.expand_path(__FILE__)), 'tumblr.png'), true) # the back of each card
92
92
  img1 = Gosu::Image.new(self, imgArr[0][0], true)
93
93
  img2 = Gosu::Image.new(self, imgArr[1][0], true)
94
94
  img3 = Gosu::Image.new(self, imgArr[2][0], true)
@@ -59,7 +59,7 @@ class TumblrAPIObject
59
59
  'image6.png' => 0,
60
60
  'image7.png' => 1,
61
61
  'image8.png' => 2,
62
- '.image9.png' => 3,
62
+ 'image9.png' => 3,
63
63
  'image10.png' => 4 ]
64
64
 
65
65
  i = 0
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tumblr-game
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joe Canero
@@ -83,7 +83,7 @@ files:
83
83
  - resources/check.png
84
84
  - resources/tumblr.png
85
85
  - bin/Main
86
- homepage: http://rubygems.org/gems/hola
86
+ homepage: https://github.com/caneroj1/Tumblr_image
87
87
  licenses:
88
88
  - MIT
89
89
  metadata: {}