quora_notify 0.0.11 → 0.0.13
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.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6f39df8825db01dd6f31a430a340cce1e0e60a94
|
|
4
|
+
data.tar.gz: 11df380ad2a5b787c591af0b34b2c65dcc0fe1b2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ccc8f79e99c60769477d0a5acd88970bd7e09471b2d651c5e2bc0744a730d16de4a49cb2e85f20a2bd9da7c6a8348ecd93ad8d811c41f68e24b8c6c5928cb8a5
|
|
7
|
+
data.tar.gz: a9920c7076e88681a892d85cff52da8bd5bef0a5a57d35094ada0b927f1035cefe47e9a307737194d70a52801f87c0b9b4c03457ce79c6e42e95ff6c34e260c1
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
+
<plist version="1.0">
|
|
4
|
+
<dict>
|
|
5
|
+
<key>Label</key>
|
|
6
|
+
<string>com.joeycarmello.quora_notify</string>
|
|
7
|
+
|
|
8
|
+
<key>EnvironmentVariables</key>
|
|
9
|
+
<dict>
|
|
10
|
+
<key>GEM_HOME</key>
|
|
11
|
+
<string><%= gem_path %></string>
|
|
12
|
+
<key>LC_ALL</key>
|
|
13
|
+
<string>en_US.UTF-8</string>
|
|
14
|
+
<key>LC_CTYPE</key>
|
|
15
|
+
<string>en_US.UTF-8</string>
|
|
16
|
+
</dict>
|
|
17
|
+
|
|
18
|
+
<key>ProgramArguments</key>
|
|
19
|
+
<array>
|
|
20
|
+
<string><%= ruby_path %></string>
|
|
21
|
+
<string><%= bin_path %></string>
|
|
22
|
+
<string>--run</string>
|
|
23
|
+
</array>
|
|
24
|
+
|
|
25
|
+
<key>StartInterval</key>
|
|
26
|
+
<integer>300</integer>
|
|
27
|
+
|
|
28
|
+
<key>RunAtLoad</key>
|
|
29
|
+
<true/>
|
|
30
|
+
|
|
31
|
+
<key>StandardErrorPath</key>
|
|
32
|
+
<string>/usr/local/var/log/quora_notify.log</string>
|
|
33
|
+
|
|
34
|
+
<key>StandardOutPath</key>
|
|
35
|
+
<string>/usr/local/var/log/quora_notify.log</string>
|
|
36
|
+
</dict>
|
|
37
|
+
</plist>
|
data/lib/quora_notify/install.rb
CHANGED
|
@@ -5,7 +5,7 @@ class QuoraNotify::Install
|
|
|
5
5
|
INSTALL_PATH = File.join(ENV["HOME"], "Library", "LaunchAgents")
|
|
6
6
|
LAUNCHD_PROCESS_NAME = "com.joeycarmello.quora_notify"
|
|
7
7
|
LAUNCHD_FILE_NAME = "#{LAUNCHD_PROCESS_NAME}.plist"
|
|
8
|
-
LAUNCHD_FILE_PATH = File.join(
|
|
8
|
+
LAUNCHD_FILE_PATH = File.join(File.expand_path(File.dirname(__FILE__)), "config", LAUNCHD_FILE_NAME)
|
|
9
9
|
|
|
10
10
|
class << self
|
|
11
11
|
def run!
|
|
@@ -17,7 +17,8 @@ class QuoraNotify::Install
|
|
|
17
17
|
bin_path = `which quora_notify`.chomp
|
|
18
18
|
|
|
19
19
|
template = ERB.new File.read(erb_path)
|
|
20
|
-
|
|
20
|
+
launchd_contents = template.result(binding)
|
|
21
|
+
File.open(install_file_path, 'w') { |file| file.puts launchd_contents }
|
|
21
22
|
start
|
|
22
23
|
end
|
|
23
24
|
|
data/lib/quora_notify/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: quora_notify
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.13
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Joey Carmello
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2013-05-
|
|
11
|
+
date: 2013-05-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: terminal-notifier
|
|
@@ -103,6 +103,7 @@ files:
|
|
|
103
103
|
- lib/quora_notify/notification.rb
|
|
104
104
|
- lib/quora_notify/version.rb
|
|
105
105
|
- lib/quora_notify.rb
|
|
106
|
+
- lib/quora_notify/config/com.joeycarmello.quora_notify.plist.erb
|
|
106
107
|
- bin/quora_notify
|
|
107
108
|
- test/test_helper.rb
|
|
108
109
|
- test/test_quora_notify.rb
|