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 CHANGED
Binary file
@@ -1,3 +1,10 @@
1
+ === 1.1.0 / 2009-06-17
2
+
3
+ * 2 minor enhancements:
4
+
5
+ * Added email plugin. Still needs SMTPS support for gmail etc.
6
+ * Added seattlerb plugin to activate the whole family.
7
+
1
8
  === 1.0.0 / 2009-06-14
2
9
 
3
10
  * 1 major enhancement
@@ -3,5 +3,7 @@ History.txt
3
3
  Manifest.txt
4
4
  README.txt
5
5
  Rakefile
6
+ lib/hoe/email.rb
6
7
  lib/hoe/minitest.rb
7
8
  lib/hoe/perforce.rb
9
+ lib/hoe/seattlerb.rb
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 - switches your project to minitest
12
- * hoe/perforce - automating how we release with 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 :minitest
20
- Hoe.plugin :perforce
23
+ Hoe.plugin :seattlerb
21
24
 
22
- Hoe.spec 'hoe-seattlerb' do
23
- developer('Ryan Davis', 'ryand-ruby@zenspider.com')
25
+ Hoe.spec 'blah' do
26
+ developer 'Ryan Davis', 'ryand-ruby@zenspider.com'
24
27
 
25
- self.rubyforge_name = 'seattlerb'
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 :minitest
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
@@ -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
+
@@ -1,5 +1,5 @@
1
1
  module Hoe::Minitest
2
- VERSION = "1.0.0"
2
+ VERSION = "1.1.0"
3
3
 
4
4
  def initialize_minitest
5
5
  self.testlib = :minitest
@@ -54,10 +54,6 @@ module Hoe::Perforce
54
54
  task :postrelease => :announce do
55
55
  system 'rake clean'
56
56
  end
57
-
58
- task :email do
59
- sh "mv email.txt ..; open -e ../email.txt"
60
- end
61
57
  end
62
58
 
63
59
  ##
@@ -0,0 +1,9 @@
1
+ Hoe.plugin :minitest
2
+ Hoe.plugin :perforce
3
+ Hoe.plugin :email
4
+
5
+ module Hoe::Seattlerb
6
+ def define_seattlerb_tasks
7
+ # nothing to do
8
+ end
9
+ end
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.0.0
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-14 00:00:00 -07:00
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: Hoe plugins providing tasks used by seattle.rb.
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