pushnote 1.2.0 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -5
- data/lib/pushnote/note.rb +21 -3
- data/lib/pushnote/version.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: aee7015e67815ccae76fee6e3fb87893f2107dab
|
4
|
+
data.tar.gz: 7178ae58cd0c2f2a6a86cf79c370b1012e072076
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fb24b945772fb924c1ef357bf8a0041721472e1ad233f008be2f02d1a9d3e6e3adde55c168f8f8acac26f2a5ba223a5220347b0546e815bf7348075b5e710e14
|
7
|
+
data.tar.gz: e15abb99b640f25f5a04a37074f6ceec60e556e3411ba17c01e909db6cc2158ad31d3335dea49d71123cf040d054e157b32111a6d6047268c9273eaa9c330cbc
|
data/README.md
CHANGED
@@ -10,20 +10,20 @@ gem install pushnote
|
|
10
10
|
rbenv rehash
|
11
11
|
```
|
12
12
|
|
13
|
+
## Usage
|
14
|
+
|
13
15
|
Start the local pushnote server:
|
14
16
|
```
|
15
17
|
pushnoted start
|
16
18
|
```
|
17
19
|
|
18
|
-
## Usage
|
19
|
-
|
20
20
|
Push a note:
|
21
21
|
```
|
22
|
-
echo
|
22
|
+
echo ":zap: :metal: :zap:" | pushnote --title "Hello, world!"
|
23
23
|
```
|
24
24
|
|
25
|
-
|
26
|
-
![image](https://cloud.githubusercontent.com/assets/692632/
|
25
|
+
Get started by vising `localhost:9283` in your browser:
|
26
|
+
![image](https://cloud.githubusercontent.com/assets/692632/6094787/9ef6ba12-aeef-11e4-8159-51a16609b7a6.png)
|
27
27
|
|
28
28
|
## Contributing
|
29
29
|
|
data/lib/pushnote/note.rb
CHANGED
@@ -7,7 +7,7 @@ module Pushnote
|
|
7
7
|
headers 'Content-Type' => 'application/json', 'Accept' => 'application/json'
|
8
8
|
|
9
9
|
attr_accessor :title, :body
|
10
|
-
attr_reader :top_report, :df_report
|
10
|
+
attr_reader :top_report, :df_report, :git_status_report, :git_log_report, :git_diff_report
|
11
11
|
|
12
12
|
def initialize
|
13
13
|
set_server_host(configuration.server)
|
@@ -24,7 +24,10 @@ module Pushnote
|
|
24
24
|
def collect_system_info
|
25
25
|
[
|
26
26
|
Thread.new { create_top_report },
|
27
|
-
Thread.new { create_df_report }
|
27
|
+
Thread.new { create_df_report },
|
28
|
+
Thread.new { create_git_status_report },
|
29
|
+
Thread.new { create_git_log_report },
|
30
|
+
Thread.new { create_git_diff_report }
|
28
31
|
].each(&:join)
|
29
32
|
end
|
30
33
|
|
@@ -36,7 +39,10 @@ module Pushnote
|
|
36
39
|
body: body,
|
37
40
|
snapshot: {
|
38
41
|
top: top_report,
|
39
|
-
df: df_report
|
42
|
+
df: df_report,
|
43
|
+
git_status: git_status_report,
|
44
|
+
git_log: git_log_report,
|
45
|
+
git_diff: git_diff_report
|
40
46
|
}
|
41
47
|
}
|
42
48
|
end
|
@@ -52,5 +58,17 @@ module Pushnote
|
|
52
58
|
def create_df_report
|
53
59
|
@df_report ||= `df -h`
|
54
60
|
end
|
61
|
+
|
62
|
+
def create_git_status_report
|
63
|
+
@git_status_report ||= `git status`
|
64
|
+
end
|
65
|
+
|
66
|
+
def create_git_log_report
|
67
|
+
@git_log_report ||= `git log origin/master --pretty=oneline --abbrev-commit --decorate`
|
68
|
+
end
|
69
|
+
|
70
|
+
def create_git_diff_report
|
71
|
+
@git_diff_report ||= `git diff`
|
72
|
+
end
|
55
73
|
end
|
56
74
|
end
|
data/lib/pushnote/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pushnote
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cory Boyd
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-02-
|
11
|
+
date: 2015-02-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|