pomodoro-gui 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 10e40696fa2c35f20f05a927f79886584b8ab177
4
- data.tar.gz: 7bbdf3e8f49f31a3a2de438a4e897dfb915cb9eb
3
+ metadata.gz: 61e134fdae0678bac6ee6ea6d4eb9f4f89b38604
4
+ data.tar.gz: 6443abfc082128502772e6cf759eed0a47095887
5
5
  SHA512:
6
- metadata.gz: 5d52bdd47088a396f1aebde7057affb87fa56956b54929aa0fa4cdbdc94bc7f1ec5abdbed5227debfa827ea9bbefe25b06945b27b5c4d64acb15bd96f83bbbe3
7
- data.tar.gz: 1571c0b76c66e8418cdb7303f2c6aac0fa17059c55df3c920f7bced5d55d8b4e51445f1d6864fef5faded4fc72235b0fbad2f44be7b967f9ad4431cf8c218e73
6
+ metadata.gz: 50f7ed04b65485a6f22397b20483e3009827d585ac8caaa9732bfc02a5676ace122da7553c71c4409689ebf466d510755253c60cb38c59460a2cafa6bb50be28
7
+ data.tar.gz: 09cf9b82503890a35fca7d3797d36702c87b221933629cf56f402587ea2a15e8628433ed3b66885f79a1ad2cfcd5474e3ea15689d8696027923d777560ace2d3
@@ -13,5 +13,9 @@ module Pomodoro
13
13
  end
14
14
  end
15
15
 
16
+ def self.root
17
+ File.dirname __dir__
18
+ end
19
+
16
20
  end
17
21
  end
@@ -1,5 +1,5 @@
1
1
  module Pomodoro
2
2
  module Gui
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  end
@@ -75,15 +75,15 @@ module Pomodoro
75
75
 
76
76
  def load_assets
77
77
  IMAGE_ASSETS.each do |key, value|
78
- @images[key] = Gosu::Image.new(value)
78
+ @images[key] = Gosu::Image.new(File.join(Pomodoro::Gui.root, "..", value))
79
79
  end
80
80
 
81
81
  AUDIO_ASSETS.each do |key, value|
82
- @audio[key] = Gosu::Song.new(self, value)
82
+ @audio[key] = Gosu::Song.new(self, File.join(Pomodoro::Gui.root, "..", value))
83
83
  end
84
84
 
85
- @font = Gosu::Font.new(self, FONT_ASSETS[:font], 32)
86
- @font_time = Gosu::Font.new(self, FONT_ASSETS[:bold], 64)
85
+ @font = Gosu::Font.new(self, File.join(Pomodoro::Gui.root, "..", FONT_ASSETS[:font]), 32)
86
+ @font_time = Gosu::Font.new(self, File.join(Pomodoro::Gui.root, "..", FONT_ASSETS[:bold]), 64)
87
87
  end
88
88
 
89
89
  def reset_timer
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pomodoro-gui
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ivan Gonzalez