gossip 0.3.0 → 0.3.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 +6 -0
- data/Rakefile +16 -7
- data/lib/gossip/cronies/jabber.rb +11 -1
- data/lib/gossip/cronies/smtp.rb +1 -1
- data/lib/gossip/version.rb +1 -1
- data/pages/starting-to-use.html +8 -2
- metadata +2 -2
data/History.txt
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
Version 0.3.1
|
2
|
+
* Out of sync with name change in s4t-utils.
|
3
|
+
* Squish warning message from xmpp4r.
|
4
|
+
* Small updates to documentation.
|
5
|
+
* More improvements to Rakefile
|
6
|
+
|
1
7
|
Version 0.3.0
|
2
8
|
* Version from _Everyday Scripting with Ruby_ renamed from Watchdog to
|
3
9
|
to Gossip and made into a Gem.
|
data/Rakefile
CHANGED
@@ -45,8 +45,7 @@ def assert_in(dir, taskname)
|
|
45
45
|
end
|
46
46
|
end
|
47
47
|
|
48
|
-
def confirmed_step(name
|
49
|
-
assert_in(required_dir, name) if required_dir
|
48
|
+
def confirmed_step(name)
|
50
49
|
STDOUT.puts "** #{name} **"
|
51
50
|
STDOUT.puts `rake #{name}`
|
52
51
|
STDOUT.print 'OK? > '
|
@@ -80,12 +79,22 @@ class HoeLike
|
|
80
79
|
S4tUtils.run_particular_tests('test', 'slow')
|
81
80
|
end
|
82
81
|
|
83
|
-
desc "Upload all the web pages"
|
82
|
+
desc "Upload all the web pages (as part of release)"
|
84
83
|
task 'upload_pages' do | task |
|
84
|
+
assert_in(project_exports, task.name)
|
85
85
|
exec = "scp -r #{web_site_root}/* #{login}:/var/www/gforge-projects/#{project}/"
|
86
86
|
puts exec
|
87
87
|
system(exec)
|
88
88
|
end
|
89
|
+
|
90
|
+
desc "Upload all the web pages (not as part of release)"
|
91
|
+
task 'export_and_upload_pages' => 'export' do | task |
|
92
|
+
Dir.chdir(project_exports) do
|
93
|
+
exec = "scp -r #{web_site_root}/* #{login}:/var/www/gforge-projects/#{project}/"
|
94
|
+
puts exec
|
95
|
+
system(exec)
|
96
|
+
end
|
97
|
+
end
|
89
98
|
|
90
99
|
desc "Tag release with current version."
|
91
100
|
task 'tag_release' do
|
@@ -113,14 +122,14 @@ class HoeLike
|
|
113
122
|
# won't stop for us.
|
114
123
|
task 'release_everything' do
|
115
124
|
confirmed_step 'check_manifest'
|
116
|
-
confirmed_step 'test'
|
117
125
|
confirmed_step 'export'
|
118
126
|
Dir.chdir(project_exports) do
|
119
127
|
puts "Working in #{Dir.pwd}"
|
120
|
-
confirmed_step '
|
121
|
-
confirmed_step '
|
128
|
+
confirmed_step 'test'
|
129
|
+
confirmed_step 'upload_pages'
|
130
|
+
confirmed_step 'publish_docs'
|
122
131
|
ENV['VERSION'] = this_release
|
123
|
-
confirmed_step 'release'
|
132
|
+
confirmed_step 'release'
|
124
133
|
end
|
125
134
|
confirmed_step 'tag_release'
|
126
135
|
end
|
@@ -50,7 +50,7 @@ module Gossip
|
|
50
50
|
|
51
51
|
def hear(scandal, details)
|
52
52
|
my_jid = JID.new(@user_choices[:jabber_account])
|
53
|
-
cl =
|
53
|
+
cl = quiet_client(my_jid)
|
54
54
|
cl.connect
|
55
55
|
cl.auth(@user_choices[:jabber_password])
|
56
56
|
details = [scandal, details].join("\n")
|
@@ -61,6 +61,16 @@ module Gossip
|
|
61
61
|
end
|
62
62
|
cl.close
|
63
63
|
end
|
64
|
+
|
65
|
+
# Current XMPP4R (0.3.1) prints warning message that's not important.
|
66
|
+
def quiet_client(my_jid)
|
67
|
+
cl = nil
|
68
|
+
msg = capturing_stderr do
|
69
|
+
cl = Client.new(my_jid, false)
|
70
|
+
end
|
71
|
+
$stderr.puts msg unless msg =~ /Non-threaded mode is currently broken/
|
72
|
+
cl
|
73
|
+
end
|
64
74
|
|
65
75
|
end
|
66
76
|
end
|
data/lib/gossip/cronies/smtp.rb
CHANGED
data/lib/gossip/version.rb
CHANGED
data/pages/starting-to-use.html
CHANGED
@@ -125,13 +125,19 @@ The main Gossip configuration file is named <code>.gossip</code> (note the leadi
|
|
125
125
|
|
126
126
|
twitter-login: twittername
|
127
127
|
twitter-password: some password
|
128
|
+
|
129
|
+
trac-admin-path: /usr/local/bin/trac-admin
|
130
|
+
trac-environment-path: /home/user/trac_env1
|
131
|
+
trac-page-name: AnnouncingSuccessfulDeployment
|
132
|
+
trac-content-file: /home/user/tmp/deployment.log
|
133
|
+
|
128
134
|
</pre>
|
129
135
|
|
130
136
|
<p>
|
131
137
|
With luck, the names alone are enough for you to know what values to use. If not, <a href="cronies.html">look here</a> or ask for command-line help:
|
132
138
|
</p>
|
133
139
|
<pre>
|
134
|
-
$ scripts/fanout --help
|
140
|
+
$ ruby scripts/fanout --help
|
135
141
|
Usage: ruby scripts/fanout [options] program args...
|
136
142
|
Site-wide defaults are noted below.
|
137
143
|
Override them in the '.fanoutrc' or '.gossiprc' files in your home folder.
|
@@ -161,7 +167,7 @@ With luck, the names alone are enough for you to know what values to use. If not
|
|
161
167
|
|
162
168
|
<p>If you make a typo in the configuration file, Gossip will not complain. So it's useful to use the <code>--choices</code> argument to see that it's gotten the values you want:</p>
|
163
169
|
<pre>
|
164
|
-
$ scripts/fanout --choices
|
170
|
+
$ ruby scripts/fanout --choices
|
165
171
|
Looking for configuration information in:
|
166
172
|
/Users/marick/.fanoutrc
|
167
173
|
/Users/marick/.gossiprc
|
metadata
CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.0
|
|
3
3
|
specification_version: 1
|
4
4
|
name: gossip
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.3.
|
7
|
-
date: 2007-09-
|
6
|
+
version: 0.3.1
|
7
|
+
date: 2007-09-29 00:00:00 -05:00
|
8
8
|
summary: Library to broadcast messages to multiple destinations + scripts that use it
|
9
9
|
require_paths:
|
10
10
|
- lib
|