ruby-growl 2.0 → 2.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.tar.gz.sig +0 -0
- data/History.txt +5 -0
- data/lib/ruby-growl.rb +13 -6
- metadata +15 -31
- metadata.gz.sig +0 -0
data.tar.gz.sig
CHANGED
Binary file
|
data/History.txt
CHANGED
data/lib/ruby-growl.rb
CHANGED
@@ -46,7 +46,7 @@ class Growl
|
|
46
46
|
##
|
47
47
|
# ruby-growl Version
|
48
48
|
|
49
|
-
VERSION =
|
49
|
+
VERSION = '2.1'
|
50
50
|
|
51
51
|
##
|
52
52
|
# Growl Network Registration Packet +pack+ Format
|
@@ -130,6 +130,13 @@ class Growl
|
|
130
130
|
|
131
131
|
GROWL_TYPE_NOTIFICATION = 1
|
132
132
|
|
133
|
+
##
|
134
|
+
# String bytesize method
|
135
|
+
#--
|
136
|
+
# HACK for 1.8.6 support
|
137
|
+
|
138
|
+
STRING_BYTESIZE_METHOD = ("".respond_to? :bytesize) ? :bytesize : :length
|
139
|
+
|
133
140
|
##
|
134
141
|
# List of hosts accessible via dnssd
|
135
142
|
|
@@ -369,12 +376,12 @@ Synopsis:
|
|
369
376
|
GROWL_TYPE_REGISTRATION
|
370
377
|
]
|
371
378
|
|
372
|
-
packet << @app_name.
|
379
|
+
packet << @app_name.send(STRING_BYTESIZE_METHOD)
|
373
380
|
packet << @all_notifies.length
|
374
381
|
packet << @default_notifies.length
|
375
382
|
|
376
383
|
data << @app_name
|
377
|
-
data_format = "a#{@app_name.
|
384
|
+
data_format = "a#{@app_name.send(STRING_BYTESIZE_METHOD)}"
|
378
385
|
|
379
386
|
@all_notifies.each do |notify|
|
380
387
|
data << notify.length
|
@@ -420,10 +427,10 @@ Synopsis:
|
|
420
427
|
flags |= 1 if sticky # 1 bit for sticky
|
421
428
|
|
422
429
|
packet << flags
|
423
|
-
packet << name.
|
430
|
+
packet << name.send(STRING_BYTESIZE_METHOD)
|
424
431
|
packet << title.length
|
425
|
-
packet << description.
|
426
|
-
packet << @app_name.
|
432
|
+
packet << description.send(STRING_BYTESIZE_METHOD)
|
433
|
+
packet << @app_name.send(STRING_BYTESIZE_METHOD)
|
427
434
|
|
428
435
|
data << name
|
429
436
|
data << title
|
metadata
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-growl
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 1
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 2
|
8
|
-
-
|
9
|
-
version: "2.
|
8
|
+
- 1
|
9
|
+
version: "2.1"
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Eric Hodel
|
@@ -35,7 +35,7 @@ cert_chain:
|
|
35
35
|
x52qPcexcYZR7w==
|
36
36
|
-----END CERTIFICATE-----
|
37
37
|
|
38
|
-
date: 2010-
|
38
|
+
date: 2010-09-11 00:00:00 -07:00
|
39
39
|
default_executable:
|
40
40
|
dependencies:
|
41
41
|
- !ruby/object:Gem::Dependency
|
@@ -46,34 +46,18 @@ dependencies:
|
|
46
46
|
requirements:
|
47
47
|
- - ">="
|
48
48
|
- !ruby/object:Gem::Version
|
49
|
-
hash:
|
49
|
+
hash: 7
|
50
50
|
segments:
|
51
51
|
- 2
|
52
52
|
- 0
|
53
|
-
-
|
54
|
-
version: 2.0.
|
53
|
+
- 4
|
54
|
+
version: 2.0.4
|
55
55
|
type: :development
|
56
56
|
version_requirements: *id001
|
57
|
-
- !ruby/object:Gem::Dependency
|
58
|
-
name: gemcutter
|
59
|
-
prerelease: false
|
60
|
-
requirement: &id002 !ruby/object:Gem::Requirement
|
61
|
-
none: false
|
62
|
-
requirements:
|
63
|
-
- - ">="
|
64
|
-
- !ruby/object:Gem::Version
|
65
|
-
hash: 11
|
66
|
-
segments:
|
67
|
-
- 0
|
68
|
-
- 5
|
69
|
-
- 0
|
70
|
-
version: 0.5.0
|
71
|
-
type: :development
|
72
|
-
version_requirements: *id002
|
73
57
|
- !ruby/object:Gem::Dependency
|
74
58
|
name: minitest
|
75
59
|
prerelease: false
|
76
|
-
requirement: &
|
60
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
77
61
|
none: false
|
78
62
|
requirements:
|
79
63
|
- - ">="
|
@@ -85,23 +69,23 @@ dependencies:
|
|
85
69
|
- 0
|
86
70
|
version: 1.5.0
|
87
71
|
type: :development
|
88
|
-
version_requirements: *
|
72
|
+
version_requirements: *id002
|
89
73
|
- !ruby/object:Gem::Dependency
|
90
74
|
name: hoe
|
91
75
|
prerelease: false
|
92
|
-
requirement: &
|
76
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
93
77
|
none: false
|
94
78
|
requirements:
|
95
79
|
- - ">="
|
96
80
|
- !ruby/object:Gem::Version
|
97
|
-
hash:
|
81
|
+
hash: 21
|
98
82
|
segments:
|
99
83
|
- 2
|
100
|
-
-
|
101
|
-
-
|
102
|
-
version: 2.
|
84
|
+
- 6
|
85
|
+
- 1
|
86
|
+
version: 2.6.1
|
103
87
|
type: :development
|
104
|
-
version_requirements: *
|
88
|
+
version_requirements: *id003
|
105
89
|
description: |-
|
106
90
|
A pure-ruby growl notifier. ruby-growl allows you to perform Growl
|
107
91
|
notification via UDP from machines without growl installed (for example,
|
metadata.gz.sig
CHANGED
Binary file
|