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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3a028c995633756a2ca27472962af325c045e2b3
4
- data.tar.gz: ef93321f4bdf3168e4aa53695b2dfebcabd8f813
3
+ metadata.gz: aee7015e67815ccae76fee6e3fb87893f2107dab
4
+ data.tar.gz: 7178ae58cd0c2f2a6a86cf79c370b1012e072076
5
5
  SHA512:
6
- metadata.gz: 70aa29a5cbe295368ac26c9e5038c0137cbeb09324ba0fc3acd14acc851517965687532c6835ed7d88a441a5402cc95a56ccbd81a79db21817ceddeb0c368145
7
- data.tar.gz: 54f21c1008a59af3c7127db6ef97687889faa5f257539628b795e0e95792a8b8183c93c94dd92985d1a145df8865562f84506ebbbf918999fc525a4a400a11d6
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 This is the note body. | pushnote --title "My note"
22
+ echo ":zap: :metal: :zap:" | pushnote --title "Hello, world!"
23
23
  ```
24
24
 
25
- View all notes by vising `localhost:9283` in your browser:
26
- ![image](https://cloud.githubusercontent.com/assets/692632/5994336/e14900bc-aa23-11e4-8bbd-40266a7d2904.png)
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
 
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Pushnote
2
- VERSION = "1.2.0"
2
+ VERSION = "1.3.0"
3
3
  end
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.2.0
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-07 00:00:00.000000000 Z
11
+ date: 2015-02-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler