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 +4 -4
- data/LICENSE.md +1 -1
- data/README.md +18 -11
- data/lib/pushes/version.rb +1 -1
- data/lib/pushes.rb +1 -1
- data/spec/pushes_spec.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ea7fbd36cdd97fc2654714baf4a161872ea9871d
|
4
|
+
data.tar.gz: 1f802ea031b8d251a96745458c01942764a2f962
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 20589bc37efbbec12544a88981290aaa58881c7b80b33878dac97c1b71ec836d2b16d68cff40aae09ba9ff2bf1e27ee89ad2bd6f141ffed4fc7dbc1e768eb21d
|
7
|
+
data.tar.gz: 684b49a7a79e3a6a06dabffe08d598ca967f0cb68c1971c133534260c7e91010971c0a257a7a267823adb858d7c3a3ff2b9d7ea14aafa9bed8e23b7ecffb21ca
|
data/LICENSE.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
Copyright (c)
|
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
|
-
###
|
13
|
-
|
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 ©
|
42
|
+
Copyright © 2013 Heliom. See [LICENSE](/LICENSE.md) for details.
|
data/lib/pushes/version.rb
CHANGED
data/lib/pushes.rb
CHANGED
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.
|
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-
|
12
|
+
date: 2013-08-22 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: octokit
|