happygirl 1.1.2 → 1.2.0
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.tar.gz.sig +0 -0
- data/History.txt +7 -1
- data/README.txt +1 -1
- data/lib/happy_girl.rb +6 -7
- metadata +2 -2
- metadata.gz.sig +0 -0
data.tar.gz.sig
CHANGED
Binary file
|
data/History.txt
CHANGED
@@ -1,8 +1,14 @@
|
|
1
|
+
=== 1.2.0 / 2007-11-23
|
2
|
+
|
3
|
+
* Improvement: message is shown not every secondsToWait, but secondsToWait after
|
4
|
+
clicking button.
|
5
|
+
|
1
6
|
=== 1.1.2 / 2007-11-16
|
2
7
|
|
3
8
|
* Bugfix
|
4
9
|
* interpreting NextMessageIsRandom corrected
|
5
|
-
* After displaying a message reads configuration, so it is not needed to restart program
|
10
|
+
* After displaying a message reads configuration, so it is not needed to restart program
|
11
|
+
after appendix new messages.
|
6
12
|
|
7
13
|
=== 1.1.1 / 2007-11-16
|
8
14
|
|
data/README.txt
CHANGED
@@ -24,7 +24,7 @@ Next you run program:
|
|
24
24
|
|
25
25
|
% happy_girl
|
26
26
|
|
27
|
-
And every SecondsToWait seconds you will see a window with message.
|
27
|
+
And every SecondsToWait seconds (after clicking button) you will see a window with a message.
|
28
28
|
|
29
29
|
*WARNING*
|
30
30
|
You should click _Accept the Love_ button instead of closing window (because that would close application).
|
data/lib/happy_girl.rb
CHANGED
@@ -3,7 +3,7 @@ require 'yaml'
|
|
3
3
|
# $:.unshift(File::join(File::dirname(File::dirname(__FILE__)), "/lib"))
|
4
4
|
|
5
5
|
class HappyGirl
|
6
|
-
VERSION = '1.
|
6
|
+
VERSION = '1.2.0'
|
7
7
|
|
8
8
|
def initMessageIndex(smi)
|
9
9
|
return unless @msgIdx.nil?
|
@@ -60,6 +60,10 @@ class HappyGirl
|
|
60
60
|
|
61
61
|
button.bind("Button-1") {
|
62
62
|
@root.withdraw()
|
63
|
+
th = Thread.new do
|
64
|
+
sleep(@cfg["SecondsToWait"].value.to_i)
|
65
|
+
setMessage()
|
66
|
+
end
|
63
67
|
}
|
64
68
|
end
|
65
69
|
|
@@ -78,12 +82,7 @@ class HappyGirl
|
|
78
82
|
end
|
79
83
|
|
80
84
|
def start()
|
81
|
-
|
82
|
-
loop do
|
83
|
-
setMessage()
|
84
|
-
sleep(@cfg["SecondsToWait"].value.to_i)
|
85
|
-
end
|
86
|
-
end
|
85
|
+
setMessage
|
87
86
|
Tk.mainloop()
|
88
87
|
end
|
89
88
|
end
|
metadata
CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.4
|
|
3
3
|
specification_version: 1
|
4
4
|
name: happygirl
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 1.
|
7
|
-
date: 2007-11-
|
6
|
+
version: 1.2.0
|
7
|
+
date: 2007-11-23 00:00:00 +01:00
|
8
8
|
summary: Displays love message once on a while
|
9
9
|
require_paths:
|
10
10
|
- lib
|
metadata.gz.sig
CHANGED
Binary file
|