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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 79390fbd81c7c4d4b3d1fe9443f882ab52f8d894
4
- data.tar.gz: 10a6ee01658bf337a39f8599e018536e8c0593a9
3
+ metadata.gz: b86cab44c3dd0b9abd12ec2bf2f30ef8764ab43a
4
+ data.tar.gz: f7b7e4763a4088a967c6de480a2fa93624c9dc3e
5
5
  SHA512:
6
- metadata.gz: 63d33966ebd8cd63886832a68f0c490845cb1e896942c807fe2ef5a1c196684385bbdc4786d188608ccb1df87f9f27dbbc3262d0c21a253a4e50a26751edb0e4
7
- data.tar.gz: eb3430e7111a0750764415f258196e8331b7f7ee5699e08f23d06f0f09ce4f122fdc5167cc104a09ebca9a40d0936a0d0462f4c0be71039a5a3a2e34e75d72bd
6
+ metadata.gz: 50827146a25e194159308a25271f2ef8e4d459f985a27f58f696f7e6edc2ffaa3748fd59e4c8a6fe8a943bf466412ecee4c65c8baddee2bd1b152c923d62cc15
7
+ data.tar.gz: 167196827ff8b34a38d1445754385e365a77793effa9ebb396876af3449601dae156a886f73fd696f0a0787af7823d37541ac6b754fc941fb2eeabc60605c34d
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- github-nippou (2.0.0.beta6)
4
+ github-nippou (2.0.0)
5
5
  activesupport
6
6
  octokit
7
7
  parallel
data/README.md CHANGED
@@ -40,6 +40,7 @@ Options:
40
40
  # Default: 20160326
41
41
  u, [--until-date=UNTIL_DATE] # Retrieves GitHub user_events until the date
42
42
  # Default: 20160326
43
+ d, [--debug], [--no-debug] # Debug mode
43
44
  ```
44
45
 
45
46
  You can get your GitHub Nippou on today.
@@ -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 ENV['GITHUB_NIPPOU_DEBUG']
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
@@ -1,5 +1,5 @@
1
1
  module Github
2
2
  module Nippou
3
- VERSION = '2.0.0.beta6'
3
+ VERSION = '2.0.0'
4
4
  end
5
5
  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.beta6
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-03-30 00:00:00.000000000 Z
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: 1.3.1
138
+ version: '0'
139
139
  requirements: []
140
140
  rubyforge_project:
141
- rubygems_version: 2.5.1
141
+ rubygems_version: 2.4.8
142
142
  signing_key:
143
143
  specification_version: 4
144
144
  summary: Print today's your GitHub action.