github-nippou 3.0.0.beta2 → 3.0.0
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/.travis.yml +1 -0
- data/Dockerfile +9 -0
- data/Gemfile.lock +1 -1
- data/README.md +47 -11
- data/bin/docker-github-nippou +19 -0
- data/bin/validate-version.sh +17 -0
- data/lib/github/nippou/version.rb +1 -1
- metadata +8 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 11db3c3b9afe53839ecc7211c3540a9cec2fd30e
|
4
|
+
data.tar.gz: 72d7506770ee95e4a19ce2881a053b7d9c353dd0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b2fd40bcafa4dba66a6fe95ef812a913e7388b2506060493bbec18c49bb3510c512744a80d84cee36942171933759fadb5de611e14f9569320eec28dd3194ae9
|
7
|
+
data.tar.gz: be9768b7a7937c9ec0d763d71563df06a23f51831818f60ea11f5648a712e721fdbf97c145e88a93e0d693975fa4c024e48811fb4e87dfe445db02a42257a2b1
|
data/.travis.yml
CHANGED
data/Dockerfile
ADDED
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -3,10 +3,14 @@
|
|
3
3
|
[][travisci]
|
4
4
|
[][license]
|
5
5
|
[][gem-link]
|
6
|
+
[][dockerhub]
|
7
|
+
[][dockerhub]
|
8
|
+
[][dockerhub]
|
6
9
|
|
7
10
|
[travisci]: https://travis-ci.org/masutaka/github-nippou
|
8
11
|
[license]: https://github.com/masutaka/github-nippou/blob/master/LICENSE.txt
|
9
12
|
[gem-link]: http://badge.fury.io/rb/github-nippou
|
13
|
+
[dockerhub]: https://hub.docker.com/r/masutaka/github-nippou/
|
10
14
|
|
11
15
|
Displays today's your GitHub action.
|
12
16
|
|
@@ -40,30 +44,62 @@ Or install it yourself as:
|
|
40
44
|
$ github-nippou help
|
41
45
|
Commands:
|
42
46
|
github-nippou help [COMMAND] # Describe available commands or one specific command
|
43
|
-
github-nippou
|
47
|
+
github-nippou init # Synchronize github-nippou settings on your gist
|
48
|
+
github-nippou list # Displays today's GitHub events formatted for Nippou (Default)
|
49
|
+
github-nippou open-settings # Open settings url with web browser
|
44
50
|
github-nippou version # Displays version
|
45
51
|
|
46
52
|
Options:
|
47
53
|
s, [--since-date=SINCE_DATE] # Retrieves GitHub user_events since the date
|
48
|
-
# Default:
|
54
|
+
# Default: 20170807
|
49
55
|
u, [--until-date=UNTIL_DATE] # Retrieves GitHub user_events until the date
|
50
|
-
# Default:
|
56
|
+
# Default: 20170807
|
51
57
|
d, [--debug], [--no-debug] # Debug mode
|
58
|
+
|
52
59
|
```
|
53
60
|
|
54
61
|
You can get your GitHub Nippou on today.
|
55
62
|
|
56
63
|
```
|
57
|
-
$ github-nippou
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
* [
|
62
|
-
* [
|
63
|
-
* [
|
64
|
+
$ github-nippou
|
65
|
+
|
66
|
+
### masutaka/github-nippou
|
67
|
+
|
68
|
+
* [v3.0.0](https://github.com/masutaka/github-nippou/issues/59) by masutaka
|
69
|
+
* [Enable to inject settings_gist_id instead of the settings](https://github.com/masutaka/github-nippou/pull/63) by masutaka **merged!**
|
70
|
+
* [Add y/n prompt to sub command \`init\`](https://github.com/masutaka/github-nippou/pull/64) by masutaka **merged!**
|
71
|
+
* [Add sub command \`open-settings\`](https://github.com/masutaka/github-nippou/pull/65) by masutaka **merged!**
|
72
|
+
* [Dockerize](https://github.com/masutaka/github-nippou/pull/66) by masutaka **merged!**
|
73
|
+
```
|
74
|
+
|
75
|
+
## Customize output format
|
76
|
+
|
64
77
|
```
|
78
|
+
$ github-nippou init
|
79
|
+
This command will create a gist and update your `~/.gitconfig`.
|
80
|
+
Are you sure? [y/n] y
|
81
|
+
The github-nippou settings was created on https://gist.github.com/ecfa35cb546d8462277d133a91b13be9
|
82
|
+
|
83
|
+
And the gist_id was appended to your `~/.gitconfig`. You can
|
84
|
+
check the gist_id with following command.
|
85
|
+
|
86
|
+
$ git config --global github-nippou.settings-gist-id
|
87
|
+
```
|
88
|
+
|
89
|
+
Open the Gist URL with your web browser.
|
90
|
+
|
91
|
+
```
|
92
|
+
$ github-nippou open-settings
|
93
|
+
Open https://gist.github.com/ecfa35cb546d8462277d133a91b13be9
|
94
|
+
```
|
95
|
+
|
96
|
+
## Docker
|
97
|
+
|
98
|
+
You can use the [dockerized github-nippou](https://hub.docker.com/r/masutaka/github-nippou/) via `bin/docker-github-nippou`.
|
65
99
|
|
66
|
-
|
100
|
+
$ git clone https://github.com/masutaka/github-nippou.git
|
101
|
+
$ cd github-nippou/bin
|
102
|
+
$ ./docker-github-nippou help
|
67
103
|
|
68
104
|
## Contributing
|
69
105
|
|
@@ -0,0 +1,19 @@
|
|
1
|
+
#!/bin/sh
|
2
|
+
|
3
|
+
if [ -z "$GITHUB_NIPPOU_USER" ]; then
|
4
|
+
GITHUB_NIPPOU_USER=$(git config github-nippou.user)
|
5
|
+
fi
|
6
|
+
|
7
|
+
if [ -z "$GITHUB_NIPPOU_ACCESS_TOKEN" ]; then
|
8
|
+
GITHUB_NIPPOU_ACCESS_TOKEN=$(git config github-nippou.token)
|
9
|
+
fi
|
10
|
+
|
11
|
+
if [ -z "$GITHUB_NIPPOU_SETTINGS_GIST_ID" ]; then
|
12
|
+
GITHUB_NIPPOU_SETTINGS_GIST_ID=$(git config github-nippou.settings-gist-id)
|
13
|
+
fi
|
14
|
+
|
15
|
+
docker run --rm \
|
16
|
+
-e GITHUB_NIPPOU_USER=$GITHUB_NIPPOU_USER \
|
17
|
+
-e GITHUB_NIPPOU_ACCESS_TOKEN=$GITHUB_NIPPOU_ACCESS_TOKEN \
|
18
|
+
-e GITHUB_NIPPOU_SETTINGS_GIST_ID=$GITHUB_NIPPOU_SETTINGS_GIST_ID \
|
19
|
+
masutaka/github-nippou:latest $@
|
@@ -0,0 +1,17 @@
|
|
1
|
+
#!/bin/sh -eu
|
2
|
+
|
3
|
+
a=lib/github/nippou/version.rb
|
4
|
+
b=Dockerfile
|
5
|
+
|
6
|
+
version_of_file_a() {
|
7
|
+
fgrep VERSION $a | awk '{print $3}' | tr -d "'"
|
8
|
+
}
|
9
|
+
|
10
|
+
version_of_file_b() {
|
11
|
+
fgrep 'VERSION=' $b | awk -F = '{print $2}'
|
12
|
+
}
|
13
|
+
|
14
|
+
if [ $(version_of_file_a) != $(version_of_file_b) ]; then
|
15
|
+
echo "The versions of $a and $b are different." >&2
|
16
|
+
exit 1
|
17
|
+
fi
|
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: 3.0.0
|
4
|
+
version: 3.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Takashi Masuda
|
@@ -142,19 +142,24 @@ description: |2
|
|
142
142
|
email:
|
143
143
|
- masutaka.net@gmail.com
|
144
144
|
executables:
|
145
|
+
- docker-github-nippou
|
145
146
|
- github-nippou
|
147
|
+
- validate-version.sh
|
146
148
|
extensions: []
|
147
149
|
extra_rdoc_files: []
|
148
150
|
files:
|
149
151
|
- ".gitignore"
|
150
152
|
- ".rspec"
|
151
153
|
- ".travis.yml"
|
154
|
+
- Dockerfile
|
152
155
|
- Gemfile
|
153
156
|
- Gemfile.lock
|
154
157
|
- LICENSE.txt
|
155
158
|
- README.md
|
156
159
|
- Rakefile
|
160
|
+
- bin/docker-github-nippou
|
157
161
|
- bin/github-nippou
|
162
|
+
- bin/validate-version.sh
|
158
163
|
- config/settings.yml
|
159
164
|
- github-nippou.gemspec
|
160
165
|
- lib/github/nippou.rb
|
@@ -185,9 +190,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
185
190
|
version: '0'
|
186
191
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
187
192
|
requirements:
|
188
|
-
- - "
|
193
|
+
- - ">="
|
189
194
|
- !ruby/object:Gem::Version
|
190
|
-
version:
|
195
|
+
version: '0'
|
191
196
|
requirements: []
|
192
197
|
rubyforge_project:
|
193
198
|
rubygems_version: 2.6.11
|