pushes 0.0.6 → 0.0.7

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: a8f5d0ac5e20dd7fcd736253e78c93d7f3ba1f74
4
- data.tar.gz: c0e109ed55a77244204010e216021787d5e43bfe
3
+ metadata.gz: ea7fbd36cdd97fc2654714baf4a161872ea9871d
4
+ data.tar.gz: 1f802ea031b8d251a96745458c01942764a2f962
5
5
  SHA512:
6
- metadata.gz: 9e7b83e433b0f6efe37cf86f7782b3047bed88df94f1d4d4897b1a322494e9e3cdec226363287fe2270184c70a34147b5c9f918d09d1b3aaca2572c9d582c696
7
- data.tar.gz: e3275f6eea5732b6b29ad5d16d87e1b6d224ac8502774debfe178363bf1ee9184e23718d31dca8d54a2ce44c7b0947570dd24f69c6d2eef10b7d257e0f6a90bf
6
+ metadata.gz: 20589bc37efbbec12544a88981290aaa58881c7b80b33878dac97c1b71ec836d2b16d68cff40aae09ba9ff2bf1e27ee89ad2bd6f141ffed4fc7dbc1e768eb21d
7
+ data.tar.gz: 684b49a7a79e3a6a06dabffe08d598ca967f0cb68c1971c133534260c7e91010971c0a257a7a267823adb858d7c3a3ff2b9d7ea14aafa9bed8e23b7ecffb21ca
data/LICENSE.md CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2012 Heliom
1
+ Copyright (c) 2013 Heliom
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4
4
 
data/README.md CHANGED
@@ -1,6 +1,7 @@
1
1
  <p align="center">
2
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">
3
+ <img src="https://f.cloud.github.com/assets/436043/928820/ea544eee-ffc2-11e2-8604-cf49744c8118.png" alt="Pushes"><br>
4
+ <a href="http://badge.fury.io/rb/pushes"><img src="https://badge.fury.io/rb/pushes@2x.png" alt="Gem Version" height="18"></a>
4
5
  </p>
5
6
 
6
7
  ## Installation
@@ -9,27 +10,33 @@ gem install pushes
9
10
  ```
10
11
 
11
12
  ## Commands
12
- ### Fetch (Default)
13
- Single call to GitHub API.
13
+ ### Start (Default)
14
+ Start a LaunchAgent process.<br>
15
+ Will `fetch` every `INTERVAL` seconds (default: 10) and will restart at boot.
14
16
  ```sh
15
17
  $ pushes
16
- $ pushes fetch
17
- ```
18
-
19
- ### Start
20
- Start a LaunchAgent background process.<br>
21
- Will `fetch` every `INTERVAL` seconds (default: 10) and will start at boot.
22
- ```sh
23
18
  $ pushes start
24
19
  $ pushes start 30
25
20
  $ pushes start INTERVAL
26
21
  ```
27
22
 
23
+ ### Fetch
24
+ Single call to GitHub API.
25
+ ```sh
26
+ $ pushes fetch
27
+ ```
28
+
28
29
  ### Stop
29
30
  Stop the background process and delete the LaunchAgent file.
30
31
  ```sh
31
32
  $ pushes stop
32
33
  ```
33
34
 
35
+ ### Reset
36
+ Clear commits storage. We noticed Pushes doesn’t play too well with a force push that removes commits even though such action should be prohibited. In any case, you may want to reset your local storage.
37
+ ```sh
38
+ $ pushes reset
39
+ ```
40
+
34
41
  ## License
35
- Copyright © 2012 Heliom. See [LICENSE](/LICENSE.md) for details.
42
+ Copyright © 2013 Heliom. See [LICENSE](/LICENSE.md) for details.
@@ -1,3 +1,3 @@
1
1
  module Pushes
2
- VERSION = '0.0.6'
2
+ VERSION = '0.0.7'
3
3
  end
data/lib/pushes.rb CHANGED
@@ -7,7 +7,7 @@ require 'pushes/notifier'
7
7
  require 'pushes/launch_agent'
8
8
 
9
9
  module Pushes
10
- DEFAULT_COMMAND = 'fetch'
10
+ DEFAULT_COMMAND = 'start'
11
11
 
12
12
  def self.run(argv)
13
13
  command = argv.first || DEFAULT_COMMAND
data/spec/pushes_spec.rb CHANGED
@@ -29,7 +29,7 @@ describe Pushes do
29
29
  Pushes::Config.any_instance.should_receive(:get_github_token).with(@login).and_return(@token)
30
30
  Pushes.should_receive(:push_events).and_return(@events)
31
31
  Pushes.should_receive(:notify_initiated)
32
- Pushes.run %w()
32
+ Pushes.run %w(fetch)
33
33
 
34
34
  expect(File.read(Pushes::Config::STORAGE_FILE)).to eq("1234\n2345\n3456\n4567\n5678\n")
35
35
  expect(File.read(Pushes::Config::CONFIG_FILE)).to eq("LOGIN=foozledoo\nTOKEN=12345\n")
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.6
4
+ version: 0.0.7
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-10 00:00:00.000000000 Z
12
+ date: 2013-08-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: octokit