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: 8347f11782ec92bf841ce4674db7a2da5c3af66f
4
- data.tar.gz: f4bfc1ca34090ae9d73ff7264484979fd7012911
3
+ metadata.gz: 6f39df8825db01dd6f31a430a340cce1e0e60a94
4
+ data.tar.gz: 11df380ad2a5b787c591af0b34b2c65dcc0fe1b2
5
5
  SHA512:
6
- metadata.gz: 33bb8be5d81273bc80bfdf6fa37cfb3976f0aafb96bb0fe2e49b1e30658cffb452e676bc5fd8b89e190a219b949b0c9167c1d8e5b9ddc3c10ba577657ec04d21
7
- data.tar.gz: f798e3212fffebbe264e53bbde17ac389f0277ebc84e55c0e3363c5d6786e729de8095d7d3dda61a367cdc00ca29de508955b4d89ddf012455d291baf46ade4c
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>
@@ -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("lib", "quora_notify", "config", LAUNCHD_FILE_NAME)
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
- File.write(install_file_path, template.result(binding))
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
 
@@ -1,3 +1,3 @@
1
1
  module QuoraNotify
2
- VERSION = '0.0.11'
2
+ VERSION = '0.0.13'
3
3
  end
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.11
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-01 00:00:00.000000000 Z
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