ruby-growl 2.1 → 3.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 +5 -0
- data/Rakefile +2 -0
- data/lib/ruby-growl.rb +6 -13
- metadata +10 -8
- metadata.gz.sig +0 -0
data.tar.gz.sig
CHANGED
Binary file
|
data/History.txt
CHANGED
data/Rakefile
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 = '3.0'
|
50
50
|
|
51
51
|
##
|
52
52
|
# Growl Network Registration Packet +pack+ Format
|
@@ -130,13 +130,6 @@ 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
|
-
|
140
133
|
##
|
141
134
|
# List of hosts accessible via dnssd
|
142
135
|
|
@@ -376,12 +369,12 @@ Synopsis:
|
|
376
369
|
GROWL_TYPE_REGISTRATION
|
377
370
|
]
|
378
371
|
|
379
|
-
packet << @app_name.
|
372
|
+
packet << @app_name.bytesize
|
380
373
|
packet << @all_notifies.length
|
381
374
|
packet << @default_notifies.length
|
382
375
|
|
383
376
|
data << @app_name
|
384
|
-
data_format = "a#{@app_name.
|
377
|
+
data_format = "a#{@app_name.bytesize}"
|
385
378
|
|
386
379
|
@all_notifies.each do |notify|
|
387
380
|
data << notify.length
|
@@ -427,10 +420,10 @@ Synopsis:
|
|
427
420
|
flags |= 1 if sticky # 1 bit for sticky
|
428
421
|
|
429
422
|
packet << flags
|
430
|
-
packet << name.
|
423
|
+
packet << name.bytesize
|
431
424
|
packet << title.length
|
432
|
-
packet << description.
|
433
|
-
packet << @app_name.
|
425
|
+
packet << description.bytesize
|
426
|
+
packet << @app_name.bytesize
|
434
427
|
|
435
428
|
data << name
|
436
429
|
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: 7
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
|
-
-
|
8
|
-
-
|
9
|
-
version: "
|
7
|
+
- 3
|
8
|
+
- 0
|
9
|
+
version: "3.0"
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Eric Hodel
|
@@ -131,12 +131,14 @@ require_paths:
|
|
131
131
|
required_ruby_version: !ruby/object:Gem::Requirement
|
132
132
|
none: false
|
133
133
|
requirements:
|
134
|
-
- - "
|
134
|
+
- - ">"
|
135
135
|
- !ruby/object:Gem::Version
|
136
|
-
hash:
|
136
|
+
hash: 59
|
137
137
|
segments:
|
138
|
-
-
|
139
|
-
|
138
|
+
- 1
|
139
|
+
- 8
|
140
|
+
- 6
|
141
|
+
version: 1.8.6
|
140
142
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
141
143
|
none: false
|
142
144
|
requirements:
|
metadata.gz.sig
CHANGED
Binary file
|