happygirl 1.0.0 → 1.0.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.
- data/History.txt +4 -0
- data/README.txt +1 -1
- data/Rakefile +5 -1
- data/lib/happy_girl.rb +3 -2
- data.tar.gz.sig +0 -0
- metadata +2 -2
- metadata.gz.sig +0 -0
data/History.txt
CHANGED
data/README.txt
CHANGED
data/Rakefile
CHANGED
@@ -11,7 +11,11 @@ Hoe.new('happygirl', HappyGirl::VERSION) do |p|
|
|
11
11
|
p.summary = 'Displays love message once on a while'
|
12
12
|
p.description = p.paragraphs_of('README.txt', 2..5).join("\n\n")
|
13
13
|
p.url = p.paragraphs_of('README.txt', 0).first.split(/\n/)[1..-1]
|
14
|
-
p.changes = p.paragraphs_of('History.txt', 0..1).join("\n\n")
|
14
|
+
@changes = p.changes = p.paragraphs_of('History.txt', 0..1).join("\n\n")
|
15
15
|
end
|
16
16
|
|
17
|
+
task :publish => [:release, :post_news, :publish_docs] do
|
18
|
+
sh "svn ci -m '#{@changes}'"
|
19
|
+
sh "hg ci -m '#{changes}'"
|
20
|
+
end
|
17
21
|
# vim: syntax=Ruby
|
data/lib/happy_girl.rb
CHANGED
@@ -1,13 +1,14 @@
|
|
1
1
|
require 'tk'
|
2
2
|
require 'yaml'
|
3
|
+
# $:.unshift(File::join(File::dirname(File::dirname(__FILE__)), "/lib"))
|
3
4
|
|
4
5
|
class HappyGirl
|
5
|
-
VERSION = '1.0.
|
6
|
+
VERSION = '1.0.1'
|
6
7
|
def readConfig()
|
7
8
|
begin
|
8
9
|
@cfg = YAML::parse(File.open("#{ENV['HOME']}/.happygirl.yaml"))
|
9
10
|
rescue Exception
|
10
|
-
@cfg = YAML::parse(File.open('messages.yaml'))
|
11
|
+
@cfg = YAML::parse(File.open(File::dirname(__FILE__) + '/messages.yaml'))
|
11
12
|
end
|
12
13
|
@messages = @cfg["Messages"].value
|
13
14
|
end
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -3,13 +3,13 @@ rubygems_version: 0.9.4
|
|
3
3
|
specification_version: 1
|
4
4
|
name: happygirl
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 1.0.
|
6
|
+
version: 1.0.1
|
7
7
|
date: 2007-11-12 00:00:00 +01:00
|
8
8
|
summary: Displays love message once on a while
|
9
9
|
require_paths:
|
10
10
|
- lib
|
11
11
|
email: roman.kamyk@gmail.com
|
12
|
-
homepage: " by Roman Kamyk <roman.kamyk@gmail.com>"
|
12
|
+
homepage: " by Roman Kamyk <roman.kamyk@gmail.com> made for his sweetheart --- Agnieszka :)"
|
13
13
|
rubyforge_project: happygirl
|
14
14
|
description: "Makes your girlfriend or wife happy, so it makes you happy :). Based on http://homepage.mac.com/khsu/HappyWife/HappyWife.html. It shows a love message every once in a while. == SYNOPSIS: First you should create file ~/.happygirl.yaml, like: WindowTitle: Some Love Message Question: Why John Loves Mary? Messages: - Because she is so wonderful - Because she is ... SecondsToWait: 3600 Next you run program: happygirl & And every SecondsToWait seconds you will see a window with message. *WARNING* You should click _Accept the Love_ button instead of closing window (because that would close application). == REQUIREMENTS:"
|
15
15
|
autorequire:
|
metadata.gz.sig
CHANGED
Binary file
|