sum-notify 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/bin/sum-notify +1 -1
  2. metadata +3 -3
@@ -49,7 +49,7 @@ Daemons.run_proc('sum-notify', options) do
49
49
  if events = get(since = last_id)
50
50
  for event in events.reverse.map{|e| e['feed_event']}
51
51
  message = event['message'].gsub(/[\[\]\{\}]/, '')
52
- title = event['event_type'].capitalize.gsub('_', ' ').gsub(/[\A\s]([a-z])/) {" #{$1.upcase}"}
52
+ title = event['event_type'].capitalize.gsub('_', ' ').gsub(/\s+([a-z])/) {" #{$1.upcase}"}
53
53
  system("growlnotify -n 'Sum Notify' --image '#{icon_path}' -m '#{message}' '#{title}'")
54
54
  last_id = event['id'].to_i
55
55
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sum-notify
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 19
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 1
10
- version: 1.0.1
9
+ - 2
10
+ version: 1.0.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Adam Cooke