co2-notify 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a52c578e28a7d5ca006be753377076e25f28fd00
4
- data.tar.gz: d6f47971b1c818c585a93fbc9aa41f8158792225
3
+ metadata.gz: 128eeb963f5de2e2a710b38ec44be5c135781fb7
4
+ data.tar.gz: 9c13992a128c5a30bf3dc3d019a4436af45d6d8f
5
5
  SHA512:
6
- metadata.gz: 87d221ceb2483397304c17ca7b77a4e42a95c91ca0abb91a548ad8fdd04acd1b6d267f6633c3d08a58da5ad79e6bea7eb6f0c1f59bef8f371fbc643715f7e529
7
- data.tar.gz: ac3fc9fed3cfff9d1e2fe8f0c3108b1bbb734b285d3e22bd2f0ad0a7a8dacf3b0576134d913d4390e8ee060d0649af58461c9101a1a64f81fd6d2712a6b8a71b
6
+ metadata.gz: ed54f54526f35123f407b250393918ce2f611032ed5cf60376af4ca64b4524eeec08e259811452b4e292eab0bf2b01ae5551b2b7e550fc7e8e60a316ec5b7f89
7
+ data.tar.gz: 1d37e84a0385de48d2e266cc46ec37ea1925d60969782f75a0cbf95fb73a9a9adf69988363a7ee8cbfb971a576828b0c768ea26ae6274be50df85418d8aa1f30
@@ -0,0 +1,17 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
+ <plist version="1.0">
4
+ <dict>
5
+ <key>KeepAlive</key>
6
+ <true/>
7
+ <key>Label</key>
8
+ <string>arkadiybutermanov.co2-notify</string>
9
+ <key>ProgramArguments</key>
10
+ <array>
11
+ <string>/usr/local/var/rbenv/shims/co2-notify</string>
12
+ <string>start</string>
13
+ </array>
14
+ <key>RunAtLoad</key>
15
+ <true/>
16
+ </dict>
17
+ </plist>
@@ -1,3 +1,3 @@
1
1
  class Co2Notify
2
- VERSION = "0.2.0"
2
+ VERSION = "0.3.0"
3
3
  end
data/lib/co2-notify.rb CHANGED
@@ -14,6 +14,14 @@ class Co2Notify < Thor
14
14
  def init
15
15
  Config.set
16
16
  end
17
+
18
+ desc "autoload", "setup OSX plist"
19
+ def autoload
20
+ plist_path = File.expand_path("arkadiybutermanov.co2-notify.plist", __dir__)
21
+ target_path = File.expand_path("Library/LaunchAgents", ENV["HOME"])
22
+
23
+ FileUtils.cp plist_path, target_path
24
+ end
17
25
  end
18
26
 
19
27
  require_relative "co2-notify/config"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: co2-notify
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Arkadiy Butermanov
@@ -80,6 +80,7 @@ files:
80
80
  - Rakefile
81
81
  - bin/co2-notify
82
82
  - co2-notify.gemspec
83
+ - lib/arkadiybutermanov.co2-notify.plist
83
84
  - lib/co2-notify.rb
84
85
  - lib/co2-notify/config.rb
85
86
  - lib/co2-notify/hipchat_client.rb