pushes 0.0.5 → 0.0.6

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: 4dbe01bd9123f1541f3a77da101d58fdd746211e
4
- data.tar.gz: e82b37cb07a8bac93288f48008493d2fda5444ff
3
+ metadata.gz: a8f5d0ac5e20dd7fcd736253e78c93d7f3ba1f74
4
+ data.tar.gz: c0e109ed55a77244204010e216021787d5e43bfe
5
5
  SHA512:
6
- metadata.gz: 19346f0abb6b41f99fcdfb4c13690395a9eada40effca8e77495fddaeda92c3c2b7596fedff6a779cf2aa330e6a40c6ca1904933af5093b4c104a8248eaa382b
7
- data.tar.gz: 82cf220a71cda3782b8ec4c09c4df61e4acb90b8083fee2ad498fa7f4e757aeca1af570fbe124ae2f5149c54f1589370d69fe850ae5af390861b648eddeec6e9
6
+ metadata.gz: 9e7b83e433b0f6efe37cf86f7782b3047bed88df94f1d4d4897b1a322494e9e3cdec226363287fe2270184c70a34147b5c9f918d09d1b3aaca2572c9d582c696
7
+ data.tar.gz: e3275f6eea5732b6b29ad5d16d87e1b6d224ac8502774debfe178363bf1ee9184e23718d31dca8d54a2ce44c7b0947570dd24f69c6d2eef10b7d257e0f6a90bf
data/README.md CHANGED
@@ -1,5 +1,7 @@
1
- # Pushes
2
- GitHub post-commit notifs in your OS X Notification Center
1
+ <p align="center">
2
+ <strong>GitHub post-commit notifs<br>in your OS X Notification Center</strong><br>
3
+ <img src="https://f.cloud.github.com/assets/436043/928820/ea544eee-ffc2-11e2-8604-cf49744c8118.png" alt="Pushes">
4
+ </p>
3
5
 
4
6
  ## Installation
5
7
  ```
@@ -16,7 +18,7 @@ $ pushes fetch
16
18
 
17
19
  ### Start
18
20
  Start a LaunchAgent background process.<br>
19
- Will `fetch` every `INTERVAL` seconds and will start at load.
21
+ Will `fetch` every `INTERVAL` seconds (default: 10) and will start at boot.
20
22
  ```sh
21
23
  $ pushes start
22
24
  $ pushes start 30
data/lib/pushes/config.rb CHANGED
@@ -56,6 +56,10 @@ class Pushes::Config
56
56
  File.read(STORAGE_FILE).split("\n")
57
57
  end
58
58
 
59
+ def clear_storage
60
+ store([])
61
+ end
62
+
59
63
  private
60
64
 
61
65
  def get_github_token(github_login)
@@ -1,3 +1,3 @@
1
1
  module Pushes
2
- VERSION = '0.0.5'
2
+ VERSION = '0.0.6'
3
3
  end
data/lib/pushes.rb CHANGED
@@ -52,12 +52,17 @@ module Pushes
52
52
  start_interval = interval > 0 ? interval : 10
53
53
 
54
54
  launch_agent.start(start_interval)
55
+ command_fetch
55
56
  end
56
57
 
57
58
  def self.command_stop
58
59
  launch_agent.stop
59
60
  end
60
61
 
62
+ def self.command_reset
63
+ config.clear_storage
64
+ end
65
+
61
66
  # Utilities
62
67
  def self.first_run?
63
68
  !config.initiated?
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pushes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rafael Blais-Masson
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-08-08 00:00:00.000000000 Z
12
+ date: 2013-08-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: octokit