ruby-snarl 0.0.5
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/doc/classes/AutoSnarl.html +170 -0
- data/doc/classes/Snarl.html +457 -0
- data/doc/classes/Snarl/SnarlAPI.html +255 -0
- data/doc/created.rid +1 -0
- data/doc/files/examples/example1_rb.html +108 -0
- data/doc/files/examples/example2_rb.html +108 -0
- data/doc/files/examples/example3_rb.html +108 -0
- data/doc/files/examples/example4_rb.html +108 -0
- data/doc/files/lib/autosnarl_rb.html +108 -0
- data/doc/files/lib/snarl_rb.html +109 -0
- data/doc/fr_class_index.html +29 -0
- data/doc/fr_file_index.html +32 -0
- data/doc/fr_method_index.html +40 -0
- data/doc/index.html +24 -0
- data/doc/rdoc-style.css +208 -0
- data/examples/example1.rb +3 -0
- data/examples/example2.rb +14 -0
- data/examples/example3.rb +9 -0
- data/examples/example4.rb +11 -0
- data/examples/test.png +0 -0
- data/icons/accept.png +0 -0
- data/icons/exclamation.png +0 -0
- data/icons/information.png +0 -0
- data/lib/autosnarl.rb +47 -0
- data/lib/snarl.rb +151 -0
- data/readme.txt +70 -0
- data/ruby-snarl.gemspec +18 -0
- data/test/readme.txt +8 -0
- metadata +83 -0
data/readme.txt
ADDED
@@ -0,0 +1,70 @@
|
|
1
|
+
You must install snarl for this to work: http://www.fullphat.net/snarl.html,
|
2
|
+
it is a GPL growl like notification system for Win32.
|
3
|
+
|
4
|
+
I saw zenspiders autotest movie and cried once again that for a variety of
|
5
|
+
reasons primarly centered around my employment I am still using a Win32
|
6
|
+
platform for development. What beautiful test notifications -- I needed it.
|
7
|
+
|
8
|
+
I decided it would be much easier to implement then to get my office manager to
|
9
|
+
get me a Mac (not to mention most of my customers are using Win32), so I
|
10
|
+
started looking into the issue. At the South East Michigan Ruby Users Group
|
11
|
+
(www.rubymi.org) I mentioned it and Winston Tsang mentioned snarl and even
|
12
|
+
found the somewhat difficult to google for link.
|
13
|
+
|
14
|
+
I started writing a C extention, but remembered DL and decided it would be much
|
15
|
+
easier to distrubute a pure ruby extension -- so here it is.
|
16
|
+
|
17
|
+
I would like to thank Gordon Thiesfeld, he found the great icons at
|
18
|
+
famfamfam.com and I stole much of his autotest (in preference to the)
|
19
|
+
one I originally wrote -- of course I hacked it up, so if anything does
|
20
|
+
not work I am sure it is all my fault. He also helped layout the code
|
21
|
+
for gemification.
|
22
|
+
|
23
|
+
If you have any problems please let me know. Also if you have any pointers
|
24
|
+
on providing tests for this code please contact me.
|
25
|
+
|
26
|
+
|
27
|
+
----------------------------
|
28
|
+
A few autotest notes, I changed line 71 in autotest.rb
|
29
|
+
|
30
|
+
*** autotest.rb Mon Aug 7 12:47:30 2006
|
31
|
+
--- \tmp\autotest.rb Mon Aug 7 12:20:29 2006
|
32
|
+
***************
|
33
|
+
*** 68,74 ****
|
34
|
+
@files = Hash.new Time.at(0)
|
35
|
+
@files_to_test = Hash.new { |h,k| h[k] = [] }
|
36
|
+
@exceptions = false
|
37
|
+
! @libs = '.:lib:test'
|
38
|
+
@output = $stderr
|
39
|
+
@sleep = 2
|
40
|
+
end
|
41
|
+
--- 68,74 ----
|
42
|
+
@files = Hash.new Time.at(0)
|
43
|
+
@files_to_test = Hash.new { |h,k| h[k] = [] }
|
44
|
+
@exceptions = false
|
45
|
+
! @libs = %w[. lib test].join(File::PATH_SEPARATOR)
|
46
|
+
@output = $stderr
|
47
|
+
@sleep = 2
|
48
|
+
end
|
49
|
+
***************
|
50
|
+
|
51
|
+
|
52
|
+
And if you are using a 4NT (www.jpsoft.com) shell, this helps as well (works
|
53
|
+
fine if you are using cmd.exe)
|
54
|
+
|
55
|
+
*** 208,214 ****
|
56
|
+
|
57
|
+
unless full.empty? then
|
58
|
+
classes = full.map {|k,v| k}.flatten.join(' ')
|
59
|
+
! cmds << "#{ruby} -I#{@libs} -rtest/unit -e \"%w[#{classes}].each { |f| load f }\" | unit_diff -u"
|
60
|
+
end
|
61
|
+
|
62
|
+
partial.each do |klass, methods|
|
63
|
+
--- 208,214 ----
|
64
|
+
|
65
|
+
unless full.empty? then
|
66
|
+
classes = full.map {|k,v| k}.flatten.join(' ')
|
67
|
+
! cmds << "#{ruby} -I#{@libs} -rtest/unit -e \"%%w[#{classes}].each { |f| load f }\" | unit_diff -u"
|
68
|
+
end
|
69
|
+
|
70
|
+
partial.each do |klass, methods|
|
data/ruby-snarl.gemspec
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
|
3
|
+
spec = Gem::Specification.new do |s|
|
4
|
+
s.name = "ruby-snarl"
|
5
|
+
s.version = "0.0.5"
|
6
|
+
s.author = "Patrick Hurley"
|
7
|
+
s.email = "phurley@gmail.com"
|
8
|
+
s.homepage = "http://ruby-snarl.rubyforge.org/"
|
9
|
+
s.platform = Gem::Platform::RUBY
|
10
|
+
s.summary = "Snarl (http://www.fullphat.net/snarl.html) is a simple notification system, similar to Growl under OSX. This is a simple pure Ruby wrapper to the native API (using DL)."
|
11
|
+
s.files = Dir["**/*"]
|
12
|
+
s.autorequire = "ruby-snarl"
|
13
|
+
end
|
14
|
+
|
15
|
+
if __FILE__ == $PROGRAM_NAME
|
16
|
+
Gem::manage_gems
|
17
|
+
Gem::Builder.new(spec).build
|
18
|
+
end
|
data/test/readme.txt
ADDED
@@ -0,0 +1,8 @@
|
|
1
|
+
Irony of ironies,
|
2
|
+
|
3
|
+
I wrote ruby-snarl, to support my testing and it does not have any.
|
4
|
+
If you can come up with some useful tests let me know, there is not
|
5
|
+
much code and it only interfaces with an external system. I suppose
|
6
|
+
writing a mock snarl and testing against it, but the issue is how
|
7
|
+
do I know if there are bugs in the mock snarl (it would be at least
|
8
|
+
as complicated as the code I am testing)...
|
metadata
ADDED
@@ -0,0 +1,83 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
rubygems_version: 0.9.0
|
3
|
+
specification_version: 1
|
4
|
+
name: ruby-snarl
|
5
|
+
version: !ruby/object:Gem::Version
|
6
|
+
version: 0.0.5
|
7
|
+
date: 2006-08-07 00:00:00 -04:00
|
8
|
+
summary: Snarl (http://www.fullphat.net/snarl.html) is a simple notification system, similar to Growl under OSX. This is a simple pure Ruby wrapper to the native API (using DL).
|
9
|
+
require_paths:
|
10
|
+
- lib
|
11
|
+
email: phurley@gmail.com
|
12
|
+
homepage: http://ruby-snarl.rubyforge.org/
|
13
|
+
rubyforge_project:
|
14
|
+
description:
|
15
|
+
autorequire: ruby-snarl
|
16
|
+
default_executable:
|
17
|
+
bindir: bin
|
18
|
+
has_rdoc: false
|
19
|
+
required_ruby_version: !ruby/object:Gem::Version::Requirement
|
20
|
+
requirements:
|
21
|
+
- - ">"
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: 0.0.0
|
24
|
+
version:
|
25
|
+
platform: ruby
|
26
|
+
signing_key:
|
27
|
+
cert_chain:
|
28
|
+
post_install_message:
|
29
|
+
authors:
|
30
|
+
- Patrick Hurley
|
31
|
+
files:
|
32
|
+
- doc
|
33
|
+
- examples
|
34
|
+
- icons
|
35
|
+
- lib
|
36
|
+
- readme.txt
|
37
|
+
- ruby-snarl.gemspec
|
38
|
+
- test
|
39
|
+
- doc/classes
|
40
|
+
- doc/created.rid
|
41
|
+
- doc/files
|
42
|
+
- doc/fr_class_index.html
|
43
|
+
- doc/fr_file_index.html
|
44
|
+
- doc/fr_method_index.html
|
45
|
+
- doc/index.html
|
46
|
+
- doc/rdoc-style.css
|
47
|
+
- doc/classes/AutoSnarl.html
|
48
|
+
- doc/classes/Snarl
|
49
|
+
- doc/classes/Snarl.html
|
50
|
+
- doc/classes/Snarl/SnarlAPI.html
|
51
|
+
- doc/files/examples
|
52
|
+
- doc/files/lib
|
53
|
+
- doc/files/examples/example1_rb.html
|
54
|
+
- doc/files/examples/example2_rb.html
|
55
|
+
- doc/files/examples/example3_rb.html
|
56
|
+
- doc/files/examples/example4_rb.html
|
57
|
+
- doc/files/lib/autosnarl_rb.html
|
58
|
+
- doc/files/lib/snarl_rb.html
|
59
|
+
- examples/example1.rb
|
60
|
+
- examples/example2.rb
|
61
|
+
- examples/example3.rb
|
62
|
+
- examples/example4.rb
|
63
|
+
- examples/test.png
|
64
|
+
- icons/accept.png
|
65
|
+
- icons/exclamation.png
|
66
|
+
- icons/information.png
|
67
|
+
- lib/autosnarl.rb
|
68
|
+
- lib/snarl.rb
|
69
|
+
- test/readme.txt
|
70
|
+
test_files: []
|
71
|
+
|
72
|
+
rdoc_options: []
|
73
|
+
|
74
|
+
extra_rdoc_files: []
|
75
|
+
|
76
|
+
executables: []
|
77
|
+
|
78
|
+
extensions: []
|
79
|
+
|
80
|
+
requirements: []
|
81
|
+
|
82
|
+
dependencies: []
|
83
|
+
|