sum-notify 1.0.0 → 1.0.1

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 +9 -1
  2. metadata +3 -3
data/bin/sum-notify CHANGED
@@ -5,6 +5,14 @@ require 'json'
5
5
  require 'daemons'
6
6
  require 'uri'
7
7
  require 'net/https'
8
+ require 'fileutils'
9
+
10
+ FileUtils.mkdir_p("/tmp/sum-notify")
11
+
12
+ options = {}
13
+ options[:log_output] = false
14
+ options[:dir] = "/tmp/sum-notify"
15
+ options[:dir_mode] = :normal
8
16
 
9
17
  def get(since = nil)
10
18
  uri = "https://secure.atechmedia.com/api/v1/events/feed"
@@ -35,7 +43,7 @@ end
35
43
 
36
44
  icon_path = File.expand_path('resource/sum.png', __FILE__ + '/../../')
37
45
 
38
- Daemons.run_proc('sum-notify') do
46
+ Daemons.run_proc('sum-notify', options) do
39
47
  last_id = nil
40
48
  loop do
41
49
  if events = get(since = last_id)
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: 23
4
+ hash: 21
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 0
10
- version: 1.0.0
9
+ - 1
10
+ version: 1.0.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Adam Cooke