githubwatcher 0.0.1 → 0.0.2
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/bin/githubwatcher +3 -10
- data/githubwatcher.gemspec +1 -2
- data/lib/githubwatcher.rb +1 -1
- data/lib/githubwatcher/version.rb +1 -1
- metadata +4 -18
data/bin/githubwatcher
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
#!/usr/bin/ruby
|
2
2
|
require 'rubygems' unless defined?(Gem)
|
3
3
|
require 'forever'
|
4
|
-
require '
|
4
|
+
require 'bundler/setup'
|
5
|
+
require 'githubwatcher'
|
5
6
|
|
6
7
|
Forever.run do
|
7
8
|
##
|
@@ -16,18 +17,10 @@ Forever.run do
|
|
16
17
|
dir File.expand_path('~/.githubwatcher')
|
17
18
|
|
18
19
|
on_error do |e|
|
19
|
-
|
20
|
-
delivery_method :sendmail, :location => `which sendmail`.chomp
|
21
|
-
to "d.dagostino@lipsiasoft.com"
|
22
|
-
from "exceptions@lipsiasoft.com"
|
23
|
-
subject "[GitHub Watcher] #{e.message}"
|
24
|
-
body "%s\n %s" % [e.message, e.backtrace.join("\n ")]
|
25
|
-
end
|
20
|
+
Githubwatcher.notify("Error!", e.message)
|
26
21
|
end
|
27
22
|
|
28
23
|
on_ready do
|
29
|
-
require 'bundler/setup'
|
30
|
-
require 'githubwatcher'
|
31
24
|
Githubwatcher.start!
|
32
25
|
end
|
33
26
|
end
|
data/githubwatcher.gemspec
CHANGED
@@ -19,6 +19,5 @@ Gem::Specification.new do |s|
|
|
19
19
|
s.require_paths = ["lib"]
|
20
20
|
s.add_dependency 'httparty', '~>0.7.8'
|
21
21
|
s.add_dependency 'growl', '~>1.0.3'
|
22
|
-
s.add_dependency 'foreverb', '~>0.1.
|
23
|
-
s.add_dependency 'mail', '~>2.3.0'
|
22
|
+
s.add_dependency 'foreverb', '~>0.1.7'
|
24
23
|
end
|
data/lib/githubwatcher.rb
CHANGED
@@ -7,7 +7,7 @@ module Githubwatcher
|
|
7
7
|
include HTTParty
|
8
8
|
|
9
9
|
WATCH = File.expand_path("~/.githubwatcher/repos.yaml")
|
10
|
-
DB = File.expand_path("~/.githubwatcher/db.yaml"
|
10
|
+
DB = File.expand_path("~/.githubwatcher/db.yaml")
|
11
11
|
|
12
12
|
base_uri 'https://api.github.com'
|
13
13
|
format :json
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: 0.0.
|
8
|
+
- 2
|
9
|
+
version: 0.0.2
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Davide D'Agostino
|
@@ -55,24 +55,10 @@ dependencies:
|
|
55
55
|
segments:
|
56
56
|
- 0
|
57
57
|
- 1
|
58
|
-
-
|
59
|
-
version: 0.1.
|
58
|
+
- 7
|
59
|
+
version: 0.1.7
|
60
60
|
type: :runtime
|
61
61
|
version_requirements: *id003
|
62
|
-
- !ruby/object:Gem::Dependency
|
63
|
-
name: mail
|
64
|
-
prerelease: false
|
65
|
-
requirement: &id004 !ruby/object:Gem::Requirement
|
66
|
-
requirements:
|
67
|
-
- - ~>
|
68
|
-
- !ruby/object:Gem::Version
|
69
|
-
segments:
|
70
|
-
- 2
|
71
|
-
- 3
|
72
|
-
- 0
|
73
|
-
version: 2.3.0
|
74
|
-
type: :runtime
|
75
|
-
version_requirements: *id004
|
76
62
|
description: Github Growl Watcher, watch any project and receive growl notification for updates, new watchers, forks and issues
|
77
63
|
email:
|
78
64
|
- d.dagostino@lipsiasoft.com
|