gondorlibrary 0.1.0 → 0.1.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 +7 -0
- data/README +1 -1
- data/Rakefile +25 -36
- data/{gondorlibrary.rb → lib/gondorlibrary.rb} +0 -0
- metadata +6 -4
data/HISTORY
ADDED
data/README
CHANGED
|
@@ -37,4 +37,4 @@ GL will receive its own language (a DSL, I guess), to create rules and messages
|
|
|
37
37
|
= Online
|
|
38
38
|
* Project home and source code and end user documentation: http://code.google.com/p/gondorlibrary/
|
|
39
39
|
* API and hacker's documentation: http://gondorlibrary.rubyforge.org/
|
|
40
|
-
* Discussion: http://groups.google.com/group/gondor-library-discussion
|
|
40
|
+
* Discussion: http://groups.google.com/group/gondor-library-discussion
|
data/Rakefile
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
#
|
|
2
2
|
# ENV['svn']: SVN log message
|
|
3
3
|
# ENV['version']: Gondor Library Version to release
|
|
4
|
+
# ENV['user']: GMail user
|
|
5
|
+
# ENV['password']: Gmail password
|
|
4
6
|
#
|
|
5
7
|
|
|
6
8
|
require 'rubygems'
|
|
@@ -14,10 +16,10 @@ require 'FileUtils'
|
|
|
14
16
|
#Helper to make GMail work.
|
|
15
17
|
#See http://d.hatena.ne.jp/zorio/20060416 and
|
|
16
18
|
#http://www.jamesbritt.com/2007/12/18/sending-mail-through-gmail-with-ruby-s-net-smtp
|
|
17
|
-
|
|
19
|
+
require 'smtp_tls'
|
|
18
20
|
|
|
19
21
|
RCOV = "rcov"
|
|
20
|
-
GL_DEFAULT_VERSION = "0.1.
|
|
22
|
+
GL_DEFAULT_VERSION = "0.1.1"
|
|
21
23
|
|
|
22
24
|
ENV['version'] = GL_DEFAULT_VERSION unless ENV['version']
|
|
23
25
|
|
|
@@ -45,7 +47,7 @@ desc "create RDoc documentation"
|
|
|
45
47
|
rd = Rake::RDocTask.new do |rdoc|
|
|
46
48
|
rdoc.name = "rdoc"
|
|
47
49
|
rdoc.main = "README"
|
|
48
|
-
rdoc.rdoc_files.include("README","LICENSE","lib/*.rb")
|
|
50
|
+
rdoc.rdoc_files.include("README","LICENSE","HISTORY","lib/*.rb")
|
|
49
51
|
rdoc.options << '--line-numbers' << '--inline-source' <<
|
|
50
52
|
'--main' << 'README' <<
|
|
51
53
|
'--title' << "Gondor Library #{ENV['version']}"
|
|
@@ -102,37 +104,24 @@ Rake::PackageTask.new("gondorlibrary", ENV['version']) do |p|
|
|
|
102
104
|
end
|
|
103
105
|
|
|
104
106
|
|
|
105
|
-
desc "Upload release to RubyForge"
|
|
106
|
-
task :upload => [:test,:package]do
|
|
107
|
-
puts "Loggin into Rubyforge"
|
|
108
|
-
system "rubyforge login"
|
|
109
|
-
puts "Adding release"
|
|
110
|
-
bla = system "rubyforge -n README add_release 5933 7575 #{ENV['version']} pkg/gondorlibrary-#{ENV['version']}.gem"
|
|
111
|
-
puts bla
|
|
112
|
-
system "rubyforge -n README add_release 5933 7575 #{ENV['version']} pkg/gondorlibrary-#{ENV['version']}.tgz"
|
|
113
|
-
system "rubyforge -n README add_release 5933 7575 #{ENV['version']} pkg/gondorlibrary-#{ENV['version']}.zip"
|
|
114
|
-
puts "Adding File"
|
|
115
|
-
bla = system "rubyforgeadd_file 5933 7575 #{ENV['version']} pkg/gondorlibrary-#{ENV['version']}.gem"
|
|
116
|
-
puts bla
|
|
117
|
-
system "rubyforge add_file 5933 7575 #{ENV['version']} pkg/gondorlibrary-#{ENV['version']}.tgz"
|
|
118
|
-
system "rubyforge add_file 5933 7575 #{ENV['version']} pkg/gondorlibrary-#{ENV['version']}.zip"
|
|
119
|
-
end
|
|
120
|
-
|
|
121
107
|
desc "Announce Release"
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
108
|
+
task :announce => [:commit] do
|
|
109
|
+
require "net/smtp"
|
|
110
|
+
from = "cmdjackryan@gmail.com"
|
|
111
|
+
recipients = ["ruby-talk@ruby-lang.org","gondor-library-discussion@googlegroups.com"]
|
|
112
|
+
header =<<EOH
|
|
113
|
+
From: Phillip Gawlowski <cmdjackryan@gmail.com>
|
|
114
|
+
To: Ruby Talk ML <ruby-talk@ruby-lang.org>, Gondor Library Discussion <gondor-library-discussion@googlegroups.com>
|
|
115
|
+
Subject: [ANN] Gondor Library #{ENV['version']}
|
|
116
|
+
EOH
|
|
117
|
+
message = File.read("README")
|
|
118
|
+
history = File.read("HISTORY")
|
|
119
|
+
mail = header + message + history
|
|
120
|
+
recipients.each do |to|
|
|
121
|
+
username = ENV['user']
|
|
122
|
+
password = ENV['password']
|
|
123
|
+
Net::SMTP.start('smtp.gmail.com', 587, 'localhost.localdomain', username, password, 'plain' ){|smtp|
|
|
124
|
+
smtp.send_message(mail, from, to)
|
|
125
|
+
}
|
|
126
|
+
end
|
|
127
|
+
end
|
|
File without changes
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: gondorlibrary
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Phillip Gawlowski
|
|
@@ -9,7 +9,7 @@ autorequire:
|
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
11
|
|
|
12
|
-
date: 2008-04-
|
|
12
|
+
date: 2008-04-06 00:00:00 +02:00
|
|
13
13
|
default_executable:
|
|
14
14
|
dependencies: []
|
|
15
15
|
|
|
@@ -25,11 +25,13 @@ extra_rdoc_files:
|
|
|
25
25
|
files:
|
|
26
26
|
- lib/entity.rb
|
|
27
27
|
- lib/exception.rb
|
|
28
|
+
- lib/gondorlibrary.rb
|
|
28
29
|
- lib/messages.rb
|
|
29
30
|
- lib/queue.rb
|
|
30
31
|
- lib/relationships.rb
|
|
31
32
|
- coverage
|
|
32
|
-
-
|
|
33
|
+
- HISTORY
|
|
34
|
+
- html
|
|
33
35
|
- lib
|
|
34
36
|
- License
|
|
35
37
|
- MANIFEST
|
|
@@ -52,7 +54,7 @@ rdoc_options:
|
|
|
52
54
|
- --main
|
|
53
55
|
- README
|
|
54
56
|
- --title
|
|
55
|
-
- Gondor Library 0.1.
|
|
57
|
+
- Gondor Library 0.1.1
|
|
56
58
|
require_paths:
|
|
57
59
|
- lib
|
|
58
60
|
required_ruby_version: !ruby/object:Gem::Requirement
|