github-nippou 1.1.0 → 1.1.1

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: 768b205b4d75ddf857b9b1006ec95cc909169333
4
- data.tar.gz: b9ea743c90af5b63a70ad2607995266496f23f81
3
+ metadata.gz: 9305f2aaccbbe5b9abc0a10509bd9010c1b1675e
4
+ data.tar.gz: 4337e711aa27585ae6b677eebd98b41f807e8800
5
5
  SHA512:
6
- metadata.gz: b31655b73e7a38155244cee3a7d23acbe19d3c882b7a63f118e1198536f495935bababb36dc8463397cddc9c10a039114009aa276ae601bef246dd60f468b4cc
7
- data.tar.gz: 07c885f154e58c58a68b651e3215956fb49ac7188d68fb8ce2dd012ccfdf7a9733f9a8a551bb804bb36341d79951b7ce7a23c3b3ee8921cf5d9e61ed3d1942f0
6
+ metadata.gz: 08ade5d7ce8192483cdd5380b809b61740dae7401152d9f739a9f1496a047ef416da43fede177175e2b98419e59f60f319e921cb423ba8d1e028f6145be88d4c
7
+ data.tar.gz: f59a9d87ca3e1b9ba1a847f828300336f8fc6b83fd97155b5dd5aa518eb5e44180292798dc0c27e1e1ff1fb4f33498bedff77a16aa5aed78940054b469be43dc
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- github-nippou (1.1.0)
4
+ github-nippou (1.1.1)
5
5
  octokit
6
6
  thor
7
7
 
data/README.md CHANGED
@@ -35,7 +35,9 @@ Commands:
35
35
  github-nippou list # Displays today's GitHub events formatted for Nippou
36
36
 
37
37
  Options:
38
- a, [--all], [--no-all] # Displays all events that can retrieve from GitHub
38
+ a, [--all], [--no-all] # Also displays GitHub events before today
39
+ n, [--num=N] # GitHub event numbers that retrieve from GitHub
40
+ # Default: 50
39
41
  ```
40
42
 
41
43
  You can omit the sub command `list`.
@@ -15,7 +15,8 @@ module Github
15
15
  using StringExMarkdown
16
16
 
17
17
  default_task :list
18
- class_option :all, type: :boolean, aliases: :a, desc: 'Displays all events that can retrieve from GitHub'
18
+ class_option :all, type: :boolean, aliases: :a, desc: 'Also displays GitHub events before today'
19
+ class_option :num, type: :numeric, default: 50, aliases: :n, desc: 'GitHub event numbers that retrieve from GitHub'
19
20
 
20
21
  desc 'list', "Displays today's GitHub events formatted for Nippou"
21
22
  def list
@@ -32,7 +33,7 @@ module Github
32
33
  result = {}
33
34
  now = Time.now
34
35
 
35
- client.user_events(user).each do |event|
36
+ client.user_events(user, per_page: options[:num]).each do |event|
36
37
  break if skip?(event, now)
37
38
 
38
39
  case event.type
@@ -1,5 +1,5 @@
1
1
  module Github
2
2
  module Nippou
3
- VERSION = '1.1.0'
3
+ VERSION = '1.1.1'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: github-nippou
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takashi Masuda