notes_notifier 0.0.1 → 0.0.2
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 +4 -4
- data/lib/notes_notifier/version.rb +1 -1
- data/lib/tasks/notes_notifier.rake +7 -2
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 623bebc1740c210086b1064ab7ed12d499d17295
|
4
|
+
data.tar.gz: 66a74f6421db9defec7ebf0483e3449b2fce3958
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2ec6f2f8d816f0be2b0bfc103d87136bde559f68a0487031b75e050d1f44d0e8dea3f446694da44641156b761d19e3c5dc967e9a30b6a5e919addafa5d26e779
|
7
|
+
data.tar.gz: 01596f6c12acc8f6e8ceb5d2e11c2d539e55f2da98597aa5c3cea6dc375109f0ef403dab8a16fa09cb1af39045a75b6728c688b644ea67c52a685c822324bb0a
|
@@ -1,7 +1,7 @@
|
|
1
1
|
require 'rails/source_annotation_extractor'
|
2
2
|
|
3
3
|
desc <<-EOS
|
4
|
-
desc.
|
4
|
+
desc. notes_notify
|
5
5
|
EOS
|
6
6
|
task :notes_notify do
|
7
7
|
options = { tag: true }
|
@@ -22,6 +22,7 @@ task :notes_notify do
|
|
22
22
|
end
|
23
23
|
|
24
24
|
message = "FIXME: #{fixme_count}\nTODO: #{todo_count}\nHACK: #{hack_count}"
|
25
|
+
puts message
|
25
26
|
|
26
27
|
query = {
|
27
28
|
token: NotesNotifier.token,
|
@@ -33,6 +34,10 @@ task :notes_notify do
|
|
33
34
|
uri = Addressable::URI.parse(NotesNotifier.endpoint)
|
34
35
|
uri.query_values ||= {}
|
35
36
|
uri.query_values = uri.query_values.merge(query)
|
37
|
+
response = Net::HTTP.get(URI.parse(uri))
|
38
|
+
json = JSON.parse(response)
|
36
39
|
|
37
|
-
|
40
|
+
unless json["ok"]
|
41
|
+
puts json["error"]
|
42
|
+
end
|
38
43
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: notes_notifier
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Atsushi Harada
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-11-
|
11
|
+
date: 2014-11-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -128,3 +128,4 @@ summary: summary
|
|
128
128
|
test_files:
|
129
129
|
- spec/notes_notifier_spec.rb
|
130
130
|
- spec/spec_helper.rb
|
131
|
+
has_rdoc:
|