ruby-growl 2.1 → 3.0

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.
Files changed (6) hide show
  1. data.tar.gz.sig +0 -0
  2. data/History.txt +5 -0
  3. data/Rakefile +2 -0
  4. data/lib/ruby-growl.rb +6 -13
  5. metadata +10 -8
  6. metadata.gz.sig +0 -0
data.tar.gz.sig CHANGED
Binary file
@@ -1,3 +1,8 @@
1
+ === 3.0 / 2010-09-11
2
+
3
+ * Major enhancement
4
+ * Dropped support for ruby 1.8.6 and older.
5
+
1
6
  === 2.1 / 2010-09-11
2
7
 
3
8
  * Minor enhancement
data/Rakefile CHANGED
@@ -6,5 +6,7 @@ Hoe.plugin :minitest
6
6
 
7
7
  Hoe.spec 'ruby-growl' do
8
8
  developer 'Eric Hodel', 'drbrain@segment7.net'
9
+
10
+ spec_extras['required_ruby_version'] = '> 1.8.6'
9
11
  end
10
12
 
@@ -46,7 +46,7 @@ class Growl
46
46
  ##
47
47
  # ruby-growl Version
48
48
 
49
- VERSION = '2.1'
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.send(STRING_BYTESIZE_METHOD)
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.send(STRING_BYTESIZE_METHOD)}"
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.send(STRING_BYTESIZE_METHOD)
423
+ packet << name.bytesize
431
424
  packet << title.length
432
- packet << description.send(STRING_BYTESIZE_METHOD)
433
- packet << @app_name.send(STRING_BYTESIZE_METHOD)
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: 1
4
+ hash: 7
5
5
  prerelease: false
6
6
  segments:
7
- - 2
8
- - 1
9
- version: "2.1"
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: 3
136
+ hash: 59
137
137
  segments:
138
- - 0
139
- version: "0"
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