github-nippou 1.1.0 → 1.1.1
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/Gemfile.lock +1 -1
- data/README.md +3 -1
- data/lib/github/nippou/commands.rb +3 -2
- data/lib/github/nippou/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9305f2aaccbbe5b9abc0a10509bd9010c1b1675e
|
4
|
+
data.tar.gz: 4337e711aa27585ae6b677eebd98b41f807e8800
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 08ade5d7ce8192483cdd5380b809b61740dae7401152d9f739a9f1496a047ef416da43fede177175e2b98419e59f60f319e921cb423ba8d1e028f6145be88d4c
|
7
|
+
data.tar.gz: f59a9d87ca3e1b9ba1a847f828300336f8fc6b83fd97155b5dd5aa518eb5e44180292798dc0c27e1e1ff1fb4f33498bedff77a16aa5aed78940054b469be43dc
|
data/Gemfile.lock
CHANGED
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] #
|
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: '
|
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
|