github-nippou 3.0.0.beta2 → 3.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: 2b2635f8f5c14d8ecf0f10ffa0595d01a8b3a6a2
4
- data.tar.gz: 394c46d23a5672976d245179a8cbcee420a8f92f
3
+ metadata.gz: 11db3c3b9afe53839ecc7211c3540a9cec2fd30e
4
+ data.tar.gz: 72d7506770ee95e4a19ce2881a053b7d9c353dd0
5
5
  SHA512:
6
- metadata.gz: 97396ec2e51a931f4124c6b48e0b917d1fb14c11653ea551d3a0bf9c65b98d49259882043228c4d365458dd7642a559afbcfb6b9fd5f1f5ef7f1ab08bc9a5d17
7
- data.tar.gz: 2309f8a4184accc68c906c6328e8d7bba76839c8aad9df220b7a6bf53d6ac7ca7725c59c62807efbe44178c1e946620f5e38f7cda6a225e25bddc98f6d0ee891
6
+ metadata.gz: b2fd40bcafa4dba66a6fe95ef812a913e7388b2506060493bbec18c49bb3510c512744a80d84cee36942171933759fadb5de611e14f9569320eec28dd3194ae9
7
+ data.tar.gz: be9768b7a7937c9ec0d763d71563df06a23f51831818f60ea11f5648a712e721fdbf97c145e88a93e0d693975fa4c024e48811fb4e87dfe445db02a42257a2b1
@@ -3,3 +3,4 @@ rvm:
3
3
  - 2.4.1
4
4
  - 2.3.4
5
5
  before_install: gem install -N bundler
6
+ before_script: bin/validate-version.sh
@@ -0,0 +1,9 @@
1
+ FROM ruby:2.4-alpine
2
+ LABEL maintainer "masutaka.net@gmail.com"
3
+
4
+ ENV VERSION=3.0.0
5
+
6
+ RUN apk add --update --no-cache git && \
7
+ gem install -N github-nippou -v ${VERSION}
8
+
9
+ ENTRYPOINT ["github-nippou"]
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- github-nippou (3.0.0.beta2)
4
+ github-nippou (3.0.0)
5
5
  activesupport
6
6
  highline
7
7
  launchy
data/README.md CHANGED
@@ -3,10 +3,14 @@
3
3
  [![Travis Status](https://img.shields.io/travis/masutaka/github-nippou.svg?style=flat-square)][travisci]
4
4
  [![License](https://img.shields.io/github/license/masutaka/github-nippou.svg?style=flat-square)][license]
5
5
  [![Gem](https://img.shields.io/gem/v/github-nippou.svg?style=flat-square)][gem-link]
6
+ [![Docker Stars](https://img.shields.io/docker/stars/masutaka/github-nippou.svg?style=flat-square)][dockerhub]
7
+ [![Docker Pulls](https://img.shields.io/docker/pulls/masutaka/github-nippou.svg?style=flat-square)][dockerhub]
8
+ [![Docker Automated buil](https://img.shields.io/docker/automated/masutaka/github-nippou.svg?style=flat-square)][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 list # Displays today's GitHub events formatted for 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: 20160326
54
+ # Default: 20170807
49
55
  u, [--until-date=UNTIL_DATE] # Retrieves GitHub user_events until the date
50
- # Default: 20160326
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 list
58
- * [Bundle Update on 2016-03-24 - masutaka/awesome-github-feed](https://github.com/masutaka/awesome-github-feed/pull/38) by deppbot **merged!**
59
- * [Fix performance - masutaka/github-nippou](https://github.com/masutaka/github-nippou/pull/44) by masutaka **merged!**
60
- * [Bundle Update on 2016-03-24 - masutaka/masutaka-29hours](https://github.com/masutaka/masutaka-29hours/pull/19) by deppbot **merged!**
61
- * [Bundle Update on 2016-03-24 - masutaka/masutaka-metrics](https://github.com/masutaka/masutaka-metrics/pull/34) by deppbot **merged!**
62
- * [bundle update at 2016-03-25 18:32:43 JST - masutaka/masutaka.net](https://github.com/masutaka/masutaka.net/pull/52) by masutaka **merged!**
63
- * [bundle update at 2016-03-25 10:02:02 UTC - masutaka/server-masutaka.net](https://github.com/masutaka/server-masutaka.net/pull/211) by masutaka **merged!**
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
- You can omit the sub command `list`.
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
@@ -1,5 +1,5 @@
1
1
  module Github
2
2
  module Nippou
3
- VERSION = '3.0.0.beta2'
3
+ VERSION = '3.0.0'
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: 3.0.0.beta2
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: 1.3.1
195
+ version: '0'
191
196
  requirements: []
192
197
  rubyforge_project:
193
198
  rubygems_version: 2.6.11