circleci-cli 2.1.0 → 2.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.all-contributorsrc +34 -0
- data/.github/workflows/test.yml +22 -0
- data/CHANGELOG.md +126 -0
- data/Gemfile.lock +33 -1
- data/README.md +19 -3
- data/Rakefile +8 -0
- data/circleci-cli.gemspec +1 -0
- data/lib/circleci/cli.rb +1 -1
- data/lib/circleci/cli/command/base_command.rb +1 -1
- data/lib/circleci/cli/command/watch_command.rb +2 -1
- data/lib/circleci/cli/command/watch_command/build_repository.rb +3 -1
- data/lib/circleci/cli/response/build.rb +3 -2
- data/lib/circleci/cli/version.rb +1 -1
- metadata +19 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9c476d5aa7a8f670072c190f978d3b86986af781b2aee5479c8a6e050a50f17f
|
4
|
+
data.tar.gz: e762139fdcdb094772e6cb482cc41060a0d603190e874b40e1f3de76a307b1d2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6cb4f2dcc70259c3c0aabe53b6c1d2ffcc05b80886c4f74f934d5c16d5b6e992986d2b903487dd36842e30ba980713fc8a536343cb01ee9858ea0fdffed4ca9d
|
7
|
+
data.tar.gz: 9e3e4ab5614c267f52e4f5dffdf31b4229617e288ff58554b00f95d57788f2ff8428a642f2404bf6053cfa2ef6b6bf894be91098a4f8cd32e5f4766de1eb4a3e
|
data/.all-contributorsrc
ADDED
@@ -0,0 +1,34 @@
|
|
1
|
+
{
|
2
|
+
"projectName": "circleci-cli",
|
3
|
+
"projectOwner": "unhappychoice",
|
4
|
+
"repoType": "github",
|
5
|
+
"repoHost": "https://github.com",
|
6
|
+
"files": [
|
7
|
+
"README.md"
|
8
|
+
],
|
9
|
+
"imageSize": 100,
|
10
|
+
"commit": true,
|
11
|
+
"commitConvention": "none",
|
12
|
+
"contributors": [
|
13
|
+
{
|
14
|
+
"login": "unhappychoice",
|
15
|
+
"name": "Yuji Ueki",
|
16
|
+
"avatar_url": "https://avatars3.githubusercontent.com/u/5608948?v=4",
|
17
|
+
"profile": "http://blog.unhappychoice.com",
|
18
|
+
"contributions": [
|
19
|
+
"code"
|
20
|
+
]
|
21
|
+
},
|
22
|
+
{
|
23
|
+
"login": "mattbrictson",
|
24
|
+
"name": "Matt Brictson",
|
25
|
+
"avatar_url": "https://avatars0.githubusercontent.com/u/189693?v=4",
|
26
|
+
"profile": "https://mattbrictson.com/",
|
27
|
+
"contributions": [
|
28
|
+
"code",
|
29
|
+
"test"
|
30
|
+
]
|
31
|
+
}
|
32
|
+
],
|
33
|
+
"contributorsPerLine": 7
|
34
|
+
}
|
@@ -0,0 +1,22 @@
|
|
1
|
+
name: test
|
2
|
+
|
3
|
+
on: [push]
|
4
|
+
|
5
|
+
jobs:
|
6
|
+
build:
|
7
|
+
runs-on: ubuntu-latest
|
8
|
+
strategy:
|
9
|
+
matrix:
|
10
|
+
ruby: ['2.6.x', '2.5.x']
|
11
|
+
steps:
|
12
|
+
- uses: actions/checkout@master
|
13
|
+
- name: Set up Ruby
|
14
|
+
uses: actions/setup-ruby@v1
|
15
|
+
with:
|
16
|
+
ruby-version: ${{ matrix.ruby }}
|
17
|
+
- name: Install bundler
|
18
|
+
run: gem install bundler
|
19
|
+
- name: Install dependencies
|
20
|
+
run: bundle install --jobs 4
|
21
|
+
- name: Run test
|
22
|
+
run: bundle exec rspec
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,126 @@
|
|
1
|
+
# Change Log
|
2
|
+
|
3
|
+
## [v2.1.0](https://github.com/unhappychoice/circleci-cli/tree/v2.1.0) (2019-09-23)
|
4
|
+
[Full Changelog](https://github.com/unhappychoice/circleci-cli/compare/v2.0.0...v2.1.0)
|
5
|
+
|
6
|
+
**Closed issues:**
|
7
|
+
|
8
|
+
- Change color scheme? [\#30](https://github.com/unhappychoice/circleci-cli/issues/30)
|
9
|
+
- Watching project [\#26](https://github.com/unhappychoice/circleci-cli/issues/26)
|
10
|
+
|
11
|
+
**Merged pull requests:**
|
12
|
+
|
13
|
+
- Change light black color to white to make more readable [\#31](https://github.com/unhappychoice/circleci-cli/pull/31) ([unhappychoice](https://github.com/unhappychoice))
|
14
|
+
- Last failed option [\#29](https://github.com/unhappychoice/circleci-cli/pull/29) ([unhappychoice](https://github.com/unhappychoice))
|
15
|
+
- :+1: Add last option to build command [\#28](https://github.com/unhappychoice/circleci-cli/pull/28) ([unhappychoice](https://github.com/unhappychoice))
|
16
|
+
|
17
|
+
## [v2.0.0](https://github.com/unhappychoice/circleci-cli/tree/v2.0.0) (2019-09-22)
|
18
|
+
[Full Changelog](https://github.com/unhappychoice/circleci-cli/compare/v1.0.0...v2.0.0)
|
19
|
+
|
20
|
+
**Merged pull requests:**
|
21
|
+
|
22
|
+
- Reimplement watch command to watch project [\#27](https://github.com/unhappychoice/circleci-cli/pull/27) ([unhappychoice](https://github.com/unhappychoice))
|
23
|
+
|
24
|
+
## [v1.0.0](https://github.com/unhappychoice/circleci-cli/tree/v1.0.0) (2019-09-22)
|
25
|
+
[Full Changelog](https://github.com/unhappychoice/circleci-cli/compare/v0.6.4...v1.0.0)
|
26
|
+
|
27
|
+
**Merged pull requests:**
|
28
|
+
|
29
|
+
- Rename gem [\#25](https://github.com/unhappychoice/circleci-cli/pull/25) ([unhappychoice](https://github.com/unhappychoice))
|
30
|
+
|
31
|
+
## [v0.6.4](https://github.com/unhappychoice/circleci-cli/tree/v0.6.4) (2019-09-22)
|
32
|
+
[Full Changelog](https://github.com/unhappychoice/circleci-cli/compare/v0.6.3...v0.6.4)
|
33
|
+
|
34
|
+
## [v0.6.3](https://github.com/unhappychoice/circleci-cli/tree/v0.6.3) (2019-09-22)
|
35
|
+
[Full Changelog](https://github.com/unhappychoice/circleci-cli/compare/v0.6.2...v0.6.3)
|
36
|
+
|
37
|
+
**Closed issues:**
|
38
|
+
|
39
|
+
- guard [\#17](https://github.com/unhappychoice/circleci-cli/issues/17)
|
40
|
+
- rubocop [\#16](https://github.com/unhappychoice/circleci-cli/issues/16)
|
41
|
+
- rspec [\#15](https://github.com/unhappychoice/circleci-cli/issues/15)
|
42
|
+
|
43
|
+
**Merged pull requests:**
|
44
|
+
|
45
|
+
- Specs [\#24](https://github.com/unhappychoice/circleci-cli/pull/24) ([unhappychoice](https://github.com/unhappychoice))
|
46
|
+
- CircleCI [\#23](https://github.com/unhappychoice/circleci-cli/pull/23) ([unhappychoice](https://github.com/unhappychoice))
|
47
|
+
- Guard [\#22](https://github.com/unhappychoice/circleci-cli/pull/22) ([unhappychoice](https://github.com/unhappychoice))
|
48
|
+
- Rubocop [\#21](https://github.com/unhappychoice/circleci-cli/pull/21) ([unhappychoice](https://github.com/unhappychoice))
|
49
|
+
- Bump addressable from 2.6.0 to 2.7.0 [\#20](https://github.com/unhappychoice/circleci-cli/pull/20) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
50
|
+
- Bump public\_suffix from 3.1.1 to 4.0.1 [\#19](https://github.com/unhappychoice/circleci-cli/pull/19) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
51
|
+
- Bump parser from 2.6.3.0 to 2.6.4.1 [\#18](https://github.com/unhappychoice/circleci-cli/pull/18) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
52
|
+
- Bump rugged from 0.28.3 to 0.28.3.1 [\#14](https://github.com/unhappychoice/circleci-cli/pull/14) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
53
|
+
- Bump rugged from 0.28.2 to 0.28.3 [\#13](https://github.com/unhappychoice/circleci-cli/pull/13) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
54
|
+
- Bump rubocop from 0.73.0 to 0.74.0 [\#12](https://github.com/unhappychoice/circleci-cli/pull/12) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
55
|
+
- Bump rake from 12.3.2 to 12.3.3 [\#11](https://github.com/unhappychoice/circleci-cli/pull/11) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
56
|
+
- Update rugged requirement from ~\> 0.26.0 to \>= 0.26, \< 0.29 [\#10](https://github.com/unhappychoice/circleci-cli/pull/10) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
57
|
+
- Update faraday requirement from ~\> 0.14.0 to \>= 0.14, \< 0.16 [\#9](https://github.com/unhappychoice/circleci-cli/pull/9) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
58
|
+
- Bump rake from 12.3.0 to 12.3.2 [\#8](https://github.com/unhappychoice/circleci-cli/pull/8) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
59
|
+
- Bump rubocop from 0.52.1 to 0.73.0 [\#7](https://github.com/unhappychoice/circleci-cli/pull/7) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
60
|
+
- Bump thor from 0.20.0 to 0.20.3 [\#6](https://github.com/unhappychoice/circleci-cli/pull/6) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
61
|
+
- Bump rspec from 3.7.0 to 3.8.0 [\#5](https://github.com/unhappychoice/circleci-cli/pull/5) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
62
|
+
- Update highline requirement from ~\> 1.7.8 to \>= 1.7.8, \< 2.1.0 [\#4](https://github.com/unhappychoice/circleci-cli/pull/4) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
63
|
+
|
64
|
+
## [v0.6.2](https://github.com/unhappychoice/circleci-cli/tree/v0.6.2) (2018-01-30)
|
65
|
+
[Full Changelog](https://github.com/unhappychoice/circleci-cli/compare/v0.6.1...v0.6.2)
|
66
|
+
|
67
|
+
**Merged pull requests:**
|
68
|
+
|
69
|
+
- Update dependency [\#3](https://github.com/unhappychoice/circleci-cli/pull/3) ([unhappychoice](https://github.com/unhappychoice))
|
70
|
+
|
71
|
+
## [v0.6.1](https://github.com/unhappychoice/circleci-cli/tree/v0.6.1) (2017-08-03)
|
72
|
+
[Full Changelog](https://github.com/unhappychoice/circleci-cli/compare/v0.6.0...v0.6.1)
|
73
|
+
|
74
|
+
## [v0.6.0](https://github.com/unhappychoice/circleci-cli/tree/v0.6.0) (2017-03-25)
|
75
|
+
[Full Changelog](https://github.com/unhappychoice/circleci-cli/compare/v0.5.1...v0.6.0)
|
76
|
+
|
77
|
+
## [v0.5.1](https://github.com/unhappychoice/circleci-cli/tree/v0.5.1) (2017-03-22)
|
78
|
+
[Full Changelog](https://github.com/unhappychoice/circleci-cli/compare/v0.5.0...v0.5.1)
|
79
|
+
|
80
|
+
## [v0.5.0](https://github.com/unhappychoice/circleci-cli/tree/v0.5.0) (2017-03-22)
|
81
|
+
[Full Changelog](https://github.com/unhappychoice/circleci-cli/compare/v0.4.1...v0.5.0)
|
82
|
+
|
83
|
+
## [v0.4.1](https://github.com/unhappychoice/circleci-cli/tree/v0.4.1) (2017-02-11)
|
84
|
+
[Full Changelog](https://github.com/unhappychoice/circleci-cli/compare/v0.4.0...v0.4.1)
|
85
|
+
|
86
|
+
**Merged pull requests:**
|
87
|
+
|
88
|
+
- Fix watch command [\#2](https://github.com/unhappychoice/circleci-cli/pull/2) ([unhappychoice](https://github.com/unhappychoice))
|
89
|
+
|
90
|
+
## [v0.4.0](https://github.com/unhappychoice/circleci-cli/tree/v0.4.0) (2017-02-11)
|
91
|
+
[Full Changelog](https://github.com/unhappychoice/circleci-cli/compare/v0.3.2...v0.4.0)
|
92
|
+
|
93
|
+
## [v0.3.2](https://github.com/unhappychoice/circleci-cli/tree/v0.3.2) (2016-03-25)
|
94
|
+
[Full Changelog](https://github.com/unhappychoice/circleci-cli/compare/v0.3.1...v0.3.2)
|
95
|
+
|
96
|
+
## [v0.3.1](https://github.com/unhappychoice/circleci-cli/tree/v0.3.1) (2016-03-11)
|
97
|
+
[Full Changelog](https://github.com/unhappychoice/circleci-cli/compare/v0.3.0...v0.3.1)
|
98
|
+
|
99
|
+
## [v0.3.0](https://github.com/unhappychoice/circleci-cli/tree/v0.3.0) (2016-03-11)
|
100
|
+
[Full Changelog](https://github.com/unhappychoice/circleci-cli/compare/v0.2.1...v0.3.0)
|
101
|
+
|
102
|
+
## [v0.2.1](https://github.com/unhappychoice/circleci-cli/tree/v0.2.1) (2016-02-24)
|
103
|
+
[Full Changelog](https://github.com/unhappychoice/circleci-cli/compare/v0.2.0...v0.2.1)
|
104
|
+
|
105
|
+
## [v0.2.0](https://github.com/unhappychoice/circleci-cli/tree/v0.2.0) (2016-02-24)
|
106
|
+
[Full Changelog](https://github.com/unhappychoice/circleci-cli/compare/v0.1.3...v0.2.0)
|
107
|
+
|
108
|
+
## [v0.1.3](https://github.com/unhappychoice/circleci-cli/tree/v0.1.3) (2016-02-24)
|
109
|
+
[Full Changelog](https://github.com/unhappychoice/circleci-cli/compare/v0.1.2...v0.1.3)
|
110
|
+
|
111
|
+
**Merged pull requests:**
|
112
|
+
|
113
|
+
- Fix regexp for find repository name [\#1](https://github.com/unhappychoice/circleci-cli/pull/1) ([unhappychoice](https://github.com/unhappychoice))
|
114
|
+
|
115
|
+
## [v0.1.2](https://github.com/unhappychoice/circleci-cli/tree/v0.1.2) (2016-02-23)
|
116
|
+
[Full Changelog](https://github.com/unhappychoice/circleci-cli/compare/v0.1.1...v0.1.2)
|
117
|
+
|
118
|
+
## [v0.1.1](https://github.com/unhappychoice/circleci-cli/tree/v0.1.1) (2016-02-23)
|
119
|
+
[Full Changelog](https://github.com/unhappychoice/circleci-cli/compare/v0.1.0...v0.1.1)
|
120
|
+
|
121
|
+
## [v0.1.0](https://github.com/unhappychoice/circleci-cli/tree/v0.1.0) (2016-02-23)
|
122
|
+
[Full Changelog](https://github.com/unhappychoice/circleci-cli/compare/0.1.0...v0.1.0)
|
123
|
+
|
124
|
+
|
125
|
+
|
126
|
+
\* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
circleci-cli (2.
|
4
|
+
circleci-cli (2.2.0)
|
5
5
|
circleci (~> 2.0.2)
|
6
6
|
colorize (~> 0.8.1)
|
7
7
|
faraday (>= 0.14, < 0.16)
|
@@ -16,6 +16,12 @@ PATH
|
|
16
16
|
GEM
|
17
17
|
remote: https://rubygems.org/
|
18
18
|
specs:
|
19
|
+
activesupport (6.0.0)
|
20
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
21
|
+
i18n (>= 0.7, < 2)
|
22
|
+
minitest (~> 5.1)
|
23
|
+
tzinfo (~> 1.1)
|
24
|
+
zeitwerk (~> 2.1, >= 2.1.8)
|
19
25
|
addressable (2.7.0)
|
20
26
|
public_suffix (>= 2.0.2, < 5.0)
|
21
27
|
ast (2.4.0)
|
@@ -26,12 +32,23 @@ GEM
|
|
26
32
|
url
|
27
33
|
coderay (1.1.2)
|
28
34
|
colorize (0.8.1)
|
35
|
+
concurrent-ruby (1.1.5)
|
29
36
|
diff-lcs (1.3)
|
30
37
|
docile (1.3.2)
|
31
38
|
faraday (0.15.4)
|
32
39
|
multipart-post (>= 1.2, < 3)
|
40
|
+
faraday-http-cache (2.0.0)
|
41
|
+
faraday (~> 0.8)
|
33
42
|
ffi (1.11.1)
|
34
43
|
formatador (0.2.5)
|
44
|
+
github_changelog_generator (1.14.3)
|
45
|
+
activesupport
|
46
|
+
faraday-http-cache
|
47
|
+
multi_json
|
48
|
+
octokit (~> 4.6)
|
49
|
+
rainbow (>= 2.1)
|
50
|
+
rake (>= 10.0)
|
51
|
+
retriable (~> 2.1)
|
35
52
|
guard (2.15.1)
|
36
53
|
formatador (>= 0.2.4)
|
37
54
|
listen (>= 2.7, < 4.0)
|
@@ -50,6 +67,8 @@ GEM
|
|
50
67
|
guard (~> 2.0)
|
51
68
|
rubocop (~> 0.20)
|
52
69
|
highline (2.0.2)
|
70
|
+
i18n (1.6.0)
|
71
|
+
concurrent-ruby (~> 1.0)
|
53
72
|
jaro_winkler (1.5.3)
|
54
73
|
json (2.2.0)
|
55
74
|
launchy (2.4.3)
|
@@ -60,11 +79,15 @@ GEM
|
|
60
79
|
ruby_dep (~> 1.2)
|
61
80
|
lumberjack (1.0.13)
|
62
81
|
method_source (0.9.2)
|
82
|
+
minitest (5.12.0)
|
83
|
+
multi_json (1.13.1)
|
63
84
|
multipart-post (2.1.1)
|
64
85
|
nenv (0.3.0)
|
65
86
|
notiffany (0.1.3)
|
66
87
|
nenv (~> 0.1)
|
67
88
|
shellany (~> 0.0)
|
89
|
+
octokit (4.14.0)
|
90
|
+
sawyer (~> 0.8.0, >= 0.5.3)
|
68
91
|
parallel (1.17.0)
|
69
92
|
parser (2.6.4.1)
|
70
93
|
ast (~> 2.4.0)
|
@@ -80,6 +103,7 @@ GEM
|
|
80
103
|
rb-fsevent (0.10.3)
|
81
104
|
rb-inotify (0.10.0)
|
82
105
|
ffi (~> 1.0)
|
106
|
+
retriable (2.1.0)
|
83
107
|
rspec (3.8.0)
|
84
108
|
rspec-core (~> 3.8.0)
|
85
109
|
rspec-expectations (~> 3.8.0)
|
@@ -103,6 +127,9 @@ GEM
|
|
103
127
|
ruby-progressbar (1.10.1)
|
104
128
|
ruby_dep (1.5.0)
|
105
129
|
rugged (0.28.3.1)
|
130
|
+
sawyer (0.8.2)
|
131
|
+
addressable (>= 2.3.5)
|
132
|
+
faraday (> 0.8, < 2.0)
|
106
133
|
shellany (0.0.1)
|
107
134
|
simplecov (0.17.1)
|
108
135
|
docile (~> 1.1)
|
@@ -113,9 +140,13 @@ GEM
|
|
113
140
|
terminal-table (1.8.0)
|
114
141
|
unicode-display_width (~> 1.1, >= 1.1.1)
|
115
142
|
thor (0.20.3)
|
143
|
+
thread_safe (0.3.6)
|
144
|
+
tzinfo (1.2.5)
|
145
|
+
thread_safe (~> 0.1)
|
116
146
|
unicode-display_width (1.6.0)
|
117
147
|
url (0.3.2)
|
118
148
|
websocket (1.2.8)
|
149
|
+
zeitwerk (2.1.10)
|
119
150
|
|
120
151
|
PLATFORMS
|
121
152
|
ruby
|
@@ -124,6 +155,7 @@ DEPENDENCIES
|
|
124
155
|
bundler
|
125
156
|
circleci-cli!
|
126
157
|
codecov
|
158
|
+
github_changelog_generator
|
127
159
|
guard
|
128
160
|
guard-rspec
|
129
161
|
guard-rubocop
|
data/README.md
CHANGED
@@ -1,7 +1,5 @@
|
|
1
1
|
# circleci-cli
|
2
|
-
|
3
|
-
Notice: This gem is renamed from `circler` to `circleci-cli` on 2019/09/22
|
4
|
-
|
2
|
+
[![All Contributors](https://img.shields.io/badge/all_contributors-1-orange.svg?style=flat-square)](#contributors-)
|
5
3
|
[![Gem Version](https://badge.fury.io/rb/circleci-cli.svg)](https://badge.fury.io/rb/circleci-cli)
|
6
4
|
[![Circle CI](https://circleci.com/gh/unhappychoice/circleci-cli.svg?style=shield)](https://circleci.com/gh/unhappychoice/circleci-cli)
|
7
5
|
[![Code Climate](https://codeclimate.com/github/unhappychoice/circleci-cli/badges/gpa.svg)](https://codeclimate.com/github/unhappychoice/circleci-cli)
|
@@ -10,6 +8,7 @@ Notice: This gem is renamed from `circler` to `circleci-cli` on 2019/09/22
|
|
10
8
|
![](http://ruby-gem-downloads-badge.herokuapp.com/circleci-cli?type=total)
|
11
9
|
![GitHub](https://img.shields.io/github/license/unhappychoice/circleci-cli.svg)
|
12
10
|
|
11
|
+
Notice: This gem is renamed from `circler` to `circleci-cli` on 2019/09/22
|
13
12
|
circleci-cli is a CLI tool for [Circle CI](https://circleci.com).
|
14
13
|
|
15
14
|
![sample.gif](https://github.com/unhappychoice/circler/raw/master/movie/rec.gif)
|
@@ -84,3 +83,20 @@ Bug reports and pull requests are welcome on GitHub at https://github.com/unhapp
|
|
84
83
|
## License
|
85
84
|
|
86
85
|
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
86
|
+
|
87
|
+
## Contributors ✨
|
88
|
+
|
89
|
+
Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
|
90
|
+
|
91
|
+
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
|
92
|
+
<!-- prettier-ignore -->
|
93
|
+
<table>
|
94
|
+
<tr>
|
95
|
+
<td align="center"><a href="http://blog.unhappychoice.com"><img src="https://avatars3.githubusercontent.com/u/5608948?v=4" width="100px;" alt="Yuji Ueki"/><br /><sub><b>Yuji Ueki</b></sub></a><br /><a href="https://github.com/unhappychoice/circleci-cli/commits?author=unhappychoice" title="Code">💻</a></td>
|
96
|
+
<td align="center"><a href="https://mattbrictson.com/"><img src="https://avatars0.githubusercontent.com/u/189693?v=4" width="100px;" alt="Matt Brictson"/><br /><sub><b>Matt Brictson</b></sub></a><br /><a href="https://github.com/unhappychoice/circleci-cli/commits?author=mattbrictson" title="Code">💻</a> <a href="https://github.com/unhappychoice/circleci-cli/commits?author=mattbrictson" title="Tests">⚠️</a></td>
|
97
|
+
</tr>
|
98
|
+
</table>
|
99
|
+
|
100
|
+
<!-- ALL-CONTRIBUTORS-LIST:END -->
|
101
|
+
|
102
|
+
This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!
|
data/Rakefile
CHANGED
@@ -2,7 +2,15 @@
|
|
2
2
|
|
3
3
|
require 'bundler/gem_tasks'
|
4
4
|
require 'rspec/core/rake_task'
|
5
|
+
require 'github_changelog_generator/task'
|
5
6
|
|
6
7
|
RSpec::Core::RakeTask.new(:spec)
|
7
8
|
|
8
9
|
task default: :spec
|
10
|
+
|
11
|
+
GitHubChangelogGenerator::RakeTask.new :changelog do |config|
|
12
|
+
config.user = 'unhappychoice'
|
13
|
+
config.project = 'circleci-cli'
|
14
|
+
config.since_tag = '0.1.0'
|
15
|
+
# config.future_release = '2.2.0'
|
16
|
+
end
|
data/circleci-cli.gemspec
CHANGED
@@ -20,6 +20,7 @@ end
|
|
20
20
|
def development_dependency(spec)
|
21
21
|
spec.add_development_dependency 'bundler'
|
22
22
|
spec.add_development_dependency 'codecov'
|
23
|
+
spec.add_development_dependency 'github_changelog_generator'
|
23
24
|
spec.add_development_dependency 'guard'
|
24
25
|
spec.add_development_dependency 'guard-rspec'
|
25
26
|
spec.add_development_dependency 'guard-rubocop'
|
data/lib/circleci/cli.rb
CHANGED
@@ -65,7 +65,7 @@ module CircleCI
|
|
65
65
|
|
66
66
|
desc 'watch', 'watch a build in real time'
|
67
67
|
method_option :project, aliases: 'p', type: :string, banner: 'user/project'
|
68
|
-
method_option :
|
68
|
+
method_option :branch, aliases: 'b', type: :string, banner: 'branch'
|
69
69
|
method_option :verbose, aliases: 'v', type: :boolean, banner: 'verbose'
|
70
70
|
def watch
|
71
71
|
Command::WatchCommand.run(options)
|
@@ -25,7 +25,7 @@ module CircleCI
|
|
25
25
|
def reponame
|
26
26
|
repository = Rugged::Repository.new('.')
|
27
27
|
origin = repository.remotes.find { |r| r.name == 'origin' }
|
28
|
-
regexp = %r{git@github.com(?::|/)([\w_-]+/[
|
28
|
+
regexp = %r{git@github.com(?::|/)([\w_-]+/[\.\w_-]+?)(?:\.git)*$}
|
29
29
|
return Regexp.last_match(1) if origin.url =~ regexp
|
30
30
|
|
31
31
|
nil
|
@@ -11,8 +11,9 @@ module CircleCI
|
|
11
11
|
def run(options) # rubocop:disable Metrics/MethodLength
|
12
12
|
setup_token
|
13
13
|
|
14
|
+
username, reponame = project_name(options).split('/')
|
14
15
|
@options = options
|
15
|
-
@repository = BuildRepository.new(
|
16
|
+
@repository = BuildRepository.new(username, reponame, branch: options.branch)
|
16
17
|
@client = Networking::CircleCIPusherClient.new.tap(&:connect)
|
17
18
|
@build_watcher = nil
|
18
19
|
|
@@ -4,9 +4,10 @@ module CircleCI
|
|
4
4
|
module CLI
|
5
5
|
module Command
|
6
6
|
class BuildRepository
|
7
|
-
def initialize(username, reponame)
|
7
|
+
def initialize(username, reponame, branch: nil)
|
8
8
|
@username = username
|
9
9
|
@reponame = reponame
|
10
|
+
@branch = branch
|
10
11
|
@builds = Response::Build.all(@username, @reponame)
|
11
12
|
@build_numbers_shown = @builds.select(&:finished?).map(&:build_number)
|
12
13
|
end
|
@@ -23,6 +24,7 @@ module CircleCI
|
|
23
24
|
def builds_to_show
|
24
25
|
@builds
|
25
26
|
.reject { |build| @build_numbers_shown.include?(build.build_number) }
|
27
|
+
.select { |build| @branch.nil? || build.branch.to_s == @branch.to_s }
|
26
28
|
.sort_by(&:build_number)
|
27
29
|
end
|
28
30
|
|
@@ -36,7 +36,7 @@ module CircleCI
|
|
36
36
|
end
|
37
37
|
end
|
38
38
|
|
39
|
-
attr_reader :username, :build_number, :reponame, :status, :author_name, :start_time,
|
39
|
+
attr_reader :username, :build_number, :reponame, :branch, :status, :author_name, :start_time,
|
40
40
|
:workflow_name, :workflow_job_name
|
41
41
|
|
42
42
|
def initialize(hash)
|
@@ -44,6 +44,7 @@ module CircleCI
|
|
44
44
|
@username = hash['username']
|
45
45
|
@build_number = hash['build_num']
|
46
46
|
@reponame = hash['reponame']
|
47
|
+
@branch = hash['branch']
|
47
48
|
@status = hash['status']
|
48
49
|
@author_name = hash['author_name']
|
49
50
|
@start_time = hash['start_time']
|
@@ -71,7 +72,7 @@ module CircleCI
|
|
71
72
|
[
|
72
73
|
build_number,
|
73
74
|
colorize_by_status(status, status),
|
74
|
-
colorize_by_status(
|
75
|
+
colorize_by_status(branch, status),
|
75
76
|
author_name,
|
76
77
|
(@hash['subject'] || '').slice(0..60),
|
77
78
|
format_time(@hash['build_time_millis']),
|
data/lib/circleci/cli/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: circleci-cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- unhappychoice
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-09-
|
11
|
+
date: 2019-09-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: circleci
|
@@ -196,6 +196,20 @@ dependencies:
|
|
196
196
|
- - ">="
|
197
197
|
- !ruby/object:Gem::Version
|
198
198
|
version: '0'
|
199
|
+
- !ruby/object:Gem::Dependency
|
200
|
+
name: github_changelog_generator
|
201
|
+
requirement: !ruby/object:Gem::Requirement
|
202
|
+
requirements:
|
203
|
+
- - ">="
|
204
|
+
- !ruby/object:Gem::Version
|
205
|
+
version: '0'
|
206
|
+
type: :development
|
207
|
+
prerelease: false
|
208
|
+
version_requirements: !ruby/object:Gem::Requirement
|
209
|
+
requirements:
|
210
|
+
- - ">="
|
211
|
+
- !ruby/object:Gem::Version
|
212
|
+
version: '0'
|
199
213
|
- !ruby/object:Gem::Dependency
|
200
214
|
name: guard
|
201
215
|
requirement: !ruby/object:Gem::Requirement
|
@@ -302,8 +316,11 @@ executables:
|
|
302
316
|
extensions: []
|
303
317
|
extra_rdoc_files: []
|
304
318
|
files:
|
319
|
+
- ".all-contributorsrc"
|
305
320
|
- ".circleci/config.yml"
|
321
|
+
- ".github/workflows/test.yml"
|
306
322
|
- ".rubocop.yml"
|
323
|
+
- CHANGELOG.md
|
307
324
|
- CODE_OF_CONDUCT.md
|
308
325
|
- Gemfile
|
309
326
|
- Gemfile.lock
|