github-nippou 2.0.0.beta6 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +1 -0
- data/lib/github/nippou/commands.rb +6 -1
- data/lib/github/nippou/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b86cab44c3dd0b9abd12ec2bf2f30ef8764ab43a
|
4
|
+
data.tar.gz: f7b7e4763a4088a967c6de480a2fa93624c9dc3e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 50827146a25e194159308a25271f2ef8e4d459f985a27f58f696f7e6edc2ffaa3748fd59e4c8a6fe8a943bf466412ecee4c65c8baddee2bd1b152c923d62cc15
|
7
|
+
data.tar.gz: 167196827ff8b34a38d1445754385e365a77793effa9ebb396876af3449601dae156a886f73fd696f0a0787af7823d37541ac6b754fc941fb2eeabc60605c34d
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -14,6 +14,7 @@ module Github
|
|
14
14
|
class_option :until_date, type: :string,
|
15
15
|
default: Time.now.strftime('%Y%m%d'),
|
16
16
|
aliases: :u, desc: 'Retrieves GitHub user_events until the date'
|
17
|
+
class_option :debug, type: :boolean, default: false, aliases: :d, desc: 'Debug mode'
|
17
18
|
|
18
19
|
desc 'list', "Displays today's GitHub events formatted for Nippou"
|
19
20
|
def list
|
@@ -42,7 +43,7 @@ module Github
|
|
42
43
|
end
|
43
44
|
|
44
45
|
def format_line(user_event, i)
|
45
|
-
puts "#{i % thread_num} : #{user_event.html_url}" if
|
46
|
+
STDERR.puts "#{i % thread_num} : #{user_event.html_url}\n" if debug
|
46
47
|
issue = issue(user_event)
|
47
48
|
line = "* [%s - %s](%s) by %s" %
|
48
49
|
[issue.title.markdown_escape, user_event.repo.name, user_event.html_url, issue.user.login]
|
@@ -128,6 +129,10 @@ MESSAGE
|
|
128
129
|
5
|
129
130
|
end.to_i
|
130
131
|
end
|
132
|
+
|
133
|
+
def debug
|
134
|
+
@debug ||= options[:debug]
|
135
|
+
end
|
131
136
|
end
|
132
137
|
end
|
133
138
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: github-nippou
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.0
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Takashi Masuda
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-04-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -133,12 +133,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
133
133
|
version: '0'
|
134
134
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
|
-
- - "
|
136
|
+
- - ">="
|
137
137
|
- !ruby/object:Gem::Version
|
138
|
-
version:
|
138
|
+
version: '0'
|
139
139
|
requirements: []
|
140
140
|
rubyforge_project:
|
141
|
-
rubygems_version: 2.
|
141
|
+
rubygems_version: 2.4.8
|
142
142
|
signing_key:
|
143
143
|
specification_version: 4
|
144
144
|
summary: Print today's your GitHub action.
|