hoe-seattlerb 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data.tar.gz.sig +0 -0
- data/History.txt +7 -0
- data/Manifest.txt +2 -0
- data/README.txt +11 -8
- data/Rakefile +3 -2
- data/lib/hoe/email.rb +49 -0
- data/lib/hoe/minitest.rb +1 -1
- data/lib/hoe/perforce.rb +0 -4
- data/lib/hoe/seattlerb.rb +9 -0
- metadata +9 -4
- metadata.gz.sig +0 -0
data.tar.gz.sig
CHANGED
Binary file
|
data/History.txt
CHANGED
data/Manifest.txt
CHANGED
data/README.txt
CHANGED
@@ -4,25 +4,28 @@
|
|
4
4
|
|
5
5
|
== DESCRIPTION:
|
6
6
|
|
7
|
-
Hoe plugins providing tasks used by seattle.rb
|
7
|
+
Hoe plugins providing tasks used by seattle.rb including minitest,
|
8
|
+
perforce, and email providing full front-to-back release/annouce
|
9
|
+
automation.
|
8
10
|
|
9
11
|
== FEATURES/PROBLEMS:
|
10
12
|
|
11
|
-
* hoe/minitest
|
12
|
-
* hoe/perforce
|
13
|
+
* hoe/minitest - switches your project to minitest.
|
14
|
+
* hoe/perforce - automating how we release with perforce.
|
15
|
+
* hoe/email - automates sending release email.
|
16
|
+
* hoe/seattlerb - activates all the seattlerb plugins.
|
13
17
|
|
14
18
|
== SYNOPSIS:
|
15
19
|
|
16
20
|
require 'rubygems'
|
17
21
|
require 'hoe'
|
18
22
|
|
19
|
-
Hoe.plugin :
|
20
|
-
Hoe.plugin :perforce
|
23
|
+
Hoe.plugin :seattlerb
|
21
24
|
|
22
|
-
Hoe.spec '
|
23
|
-
developer
|
25
|
+
Hoe.spec 'blah' do
|
26
|
+
developer 'Ryan Davis', 'ryand-ruby@zenspider.com'
|
24
27
|
|
25
|
-
|
28
|
+
email_to << 'blah@mailing_list.com'
|
26
29
|
end
|
27
30
|
|
28
31
|
== REQUIREMENTS:
|
data/Rakefile
CHANGED
@@ -5,13 +5,14 @@ $: << 'lib'
|
|
5
5
|
require 'rubygems'
|
6
6
|
require 'hoe'
|
7
7
|
|
8
|
-
Hoe.plugin :
|
9
|
-
Hoe.plugin :perforce
|
8
|
+
Hoe.plugin :seattlerb
|
10
9
|
|
11
10
|
Hoe.spec 'hoe-seattlerb' do
|
12
11
|
developer('Ryan Davis', 'ryand-ruby@zenspider.com')
|
13
12
|
|
14
13
|
self.rubyforge_name = 'seattlerb'
|
14
|
+
|
15
|
+
blog_categories << "Seattle.rb" << "hoe"
|
15
16
|
end
|
16
17
|
|
17
18
|
# vim: syntax=ruby
|
data/lib/hoe/email.rb
ADDED
@@ -0,0 +1,49 @@
|
|
1
|
+
module Hoe::Email
|
2
|
+
|
3
|
+
Hoe::DEFAULT_CONFIG["email"] = {
|
4
|
+
"to" => [],
|
5
|
+
"user" => nil,
|
6
|
+
"pass" => nil,
|
7
|
+
"host" => nil,
|
8
|
+
"port" => 25,
|
9
|
+
"auth" => nil,
|
10
|
+
}
|
11
|
+
|
12
|
+
attr_reader :email_to
|
13
|
+
|
14
|
+
def initialize_email
|
15
|
+
with_config do |config, _|
|
16
|
+
@email_to = config["email"]["to"]
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
def define_email_tasks
|
21
|
+
require 'net/smtp'
|
22
|
+
require 'time'
|
23
|
+
|
24
|
+
# attach to announcements
|
25
|
+
task :announce => :send_email
|
26
|
+
|
27
|
+
desc "Send an announcement email."
|
28
|
+
task :send_email do
|
29
|
+
message = generate_email :full
|
30
|
+
|
31
|
+
with_config do |conf, _|
|
32
|
+
host = conf["email"]["host"]
|
33
|
+
port = conf["email"]["port"]
|
34
|
+
user = conf["email"]["user"]
|
35
|
+
pass = conf["email"]["pass"]
|
36
|
+
auth = conf["email"]["auth"]
|
37
|
+
|
38
|
+
start_args = [Socket.gethostname, user, pass, auth].compact
|
39
|
+
|
40
|
+
smtp = Net::SMTP.new(host, port)
|
41
|
+
smtp.set_debug_output $stderr if $DEBUG
|
42
|
+
smtp.start(*start_args) do |smtp|
|
43
|
+
smtp.send_message message, Array(email).first, *email_to
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
data/lib/hoe/minitest.rb
CHANGED
data/lib/hoe/perforce.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hoe-seattlerb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Davis
|
@@ -30,7 +30,7 @@ cert_chain:
|
|
30
30
|
FBHgymkyj/AOSqKRIpXPhjC6
|
31
31
|
-----END CERTIFICATE-----
|
32
32
|
|
33
|
-
date: 2009-06-
|
33
|
+
date: 2009-06-17 00:00:00 -07:00
|
34
34
|
default_executable:
|
35
35
|
dependencies:
|
36
36
|
- !ruby/object:Gem::Dependency
|
@@ -43,7 +43,10 @@ dependencies:
|
|
43
43
|
- !ruby/object:Gem::Version
|
44
44
|
version: 2.1.0
|
45
45
|
version:
|
46
|
-
description:
|
46
|
+
description: |-
|
47
|
+
Hoe plugins providing tasks used by seattle.rb including minitest,
|
48
|
+
perforce, and email providing full front-to-back release/annouce
|
49
|
+
automation.
|
47
50
|
email:
|
48
51
|
- ryand-ruby@zenspider.com
|
49
52
|
executables: []
|
@@ -60,8 +63,10 @@ files:
|
|
60
63
|
- Manifest.txt
|
61
64
|
- README.txt
|
62
65
|
- Rakefile
|
66
|
+
- lib/hoe/email.rb
|
63
67
|
- lib/hoe/minitest.rb
|
64
68
|
- lib/hoe/perforce.rb
|
69
|
+
- lib/hoe/seattlerb.rb
|
65
70
|
has_rdoc: true
|
66
71
|
homepage: http://seattlerb.rubyforge.org/hoe-seattlerb
|
67
72
|
licenses: []
|
@@ -90,6 +95,6 @@ rubyforge_project: seattlerb
|
|
90
95
|
rubygems_version: 1.3.4
|
91
96
|
signing_key:
|
92
97
|
specification_version: 3
|
93
|
-
summary: Hoe plugins providing tasks used by seattle.rb.
|
98
|
+
summary: Hoe plugins providing tasks used by seattle.rb including minitest, perforce, and email providing full front-to-back release/annouce automation.
|
94
99
|
test_files: []
|
95
100
|
|
metadata.gz.sig
CHANGED
Binary file
|