circleci-cli 2.2.0 → 2.3.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9c476d5aa7a8f670072c190f978d3b86986af781b2aee5479c8a6e050a50f17f
4
- data.tar.gz: e762139fdcdb094772e6cb482cc41060a0d603190e874b40e1f3de76a307b1d2
3
+ metadata.gz: 90b2c29ebf4775697bd2fa075f25250b901c461514fb5bcd328081de4572fabf
4
+ data.tar.gz: '08497fc087e640389b24f2d3be5c678f884fb76f3d99be1bd083d6087e20b402'
5
5
  SHA512:
6
- metadata.gz: 6cb4f2dcc70259c3c0aabe53b6c1d2ffcc05b80886c4f74f934d5c16d5b6e992986d2b903487dd36842e30ba980713fc8a536343cb01ee9858ea0fdffed4ca9d
7
- data.tar.gz: 9e3e4ab5614c267f52e4f5dffdf31b4229617e288ff58554b00f95d57788f2ff8428a642f2404bf6053cfa2ef6b6bf894be91098a4f8cd32e5f4766de1eb4a3e
6
+ metadata.gz: 3f58dbd4d3845c0a0060649b40a6b4931e7e63bef4144d20bce2820a571f364e9f247a474810d6859810e1d17d91df70fe6231039791517fdaa769bc23f8f724
7
+ data.tar.gz: 5980f016190338bce3e3b93378012df7482dfd43287ad3373fafe2534e5703e2ddc85e6215867d02882b21b7460d1882fa1a326ce651217cacdb64ed12b4c3ae
@@ -28,6 +28,17 @@
28
28
  "code",
29
29
  "test"
30
30
  ]
31
+ },
32
+ {
33
+ "login": "fzf",
34
+ "name": "Fletcher Fowler",
35
+ "avatar_url": "https://avatars0.githubusercontent.com/u/1462357?v=4",
36
+ "profile": "http://fzf.me",
37
+ "contributions": [
38
+ "bug",
39
+ "ideas",
40
+ "code"
41
+ ]
31
42
  }
32
43
  ],
33
44
  "contributorsPerLine": 7
@@ -1,5 +1,22 @@
1
1
  # Change Log
2
2
 
3
+ ## [v2.2.0](https://github.com/unhappychoice/circleci-cli/tree/v2.2.0) (2019-09-29)
4
+ [Full Changelog](https://github.com/unhappychoice/circleci-cli/compare/v2.1.0...v2.2.0)
5
+
6
+ **Closed issues:**
7
+
8
+ - Watch specific branch [\#34](https://github.com/unhappychoice/circleci-cli/issues/34)
9
+
10
+ **Merged pull requests:**
11
+
12
+ - Branch parameter to watch command [\#38](https://github.com/unhappychoice/circleci-cli/pull/38) ([unhappychoice](https://github.com/unhappychoice))
13
+ - docs: add mattbrictson as a contributor [\#37](https://github.com/unhappychoice/circleci-cli/pull/37) ([allcontributors[bot]](https://github.com/apps/allcontributors))
14
+ - All contributors [\#36](https://github.com/unhappychoice/circleci-cli/pull/36) ([unhappychoice](https://github.com/unhappychoice))
15
+ - Handle GitHub repository names that contain '.' [\#35](https://github.com/unhappychoice/circleci-cli/pull/35) ([mattbrictson](https://github.com/mattbrictson))
16
+ - :+1: Create GitHub action config file [\#33](https://github.com/unhappychoice/circleci-cli/pull/33) ([unhappychoice](https://github.com/unhappychoice))
17
+ - Changelog [\#32](https://github.com/unhappychoice/circleci-cli/pull/32) ([unhappychoice](https://github.com/unhappychoice))
18
+ - Change light black color to white to make more readable [\#31](https://github.com/unhappychoice/circleci-cli/pull/31) ([unhappychoice](https://github.com/unhappychoice))
19
+
3
20
  ## [v2.1.0](https://github.com/unhappychoice/circleci-cli/tree/v2.1.0) (2019-09-23)
4
21
  [Full Changelog](https://github.com/unhappychoice/circleci-cli/compare/v2.0.0...v2.1.0)
5
22
 
@@ -10,7 +27,6 @@
10
27
 
11
28
  **Merged pull requests:**
12
29
 
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
30
  - Last failed option [\#29](https://github.com/unhappychoice/circleci-cli/pull/29) ([unhappychoice](https://github.com/unhappychoice))
15
31
  - :+1: Add last option to build command [\#28](https://github.com/unhappychoice/circleci-cli/pull/28) ([unhappychoice](https://github.com/unhappychoice))
16
32
 
@@ -119,8 +135,6 @@
119
135
  [Full Changelog](https://github.com/unhappychoice/circleci-cli/compare/v0.1.0...v0.1.1)
120
136
 
121
137
  ## [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
138
 
125
139
 
126
140
  \* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*
@@ -1,10 +1,10 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- circleci-cli (2.2.0)
4
+ circleci-cli (2.3.0)
5
5
  circleci (~> 2.0.2)
6
6
  colorize (~> 0.8.1)
7
- faraday (>= 0.14, < 0.16)
7
+ faraday (>= 0.14, < 0.17)
8
8
  highline (>= 1.7.8, < 2.1.0)
9
9
  launchy (~> 2.4.3)
10
10
  pusher-client (~> 0.6.2)
@@ -26,7 +26,7 @@ GEM
26
26
  public_suffix (>= 2.0.2, < 5.0)
27
27
  ast (2.4.0)
28
28
  circleci (2.0.2)
29
- codecov (0.1.14)
29
+ codecov (0.1.15)
30
30
  json
31
31
  simplecov
32
32
  url
@@ -35,7 +35,7 @@ GEM
35
35
  concurrent-ruby (1.1.5)
36
36
  diff-lcs (1.3)
37
37
  docile (1.3.2)
38
- faraday (0.15.4)
38
+ faraday (0.16.2)
39
39
  multipart-post (>= 1.2, < 3)
40
40
  faraday-http-cache (2.0.0)
41
41
  faraday (~> 0.8)
@@ -73,13 +73,12 @@ GEM
73
73
  json (2.2.0)
74
74
  launchy (2.4.3)
75
75
  addressable (~> 2.3)
76
- listen (3.1.5)
77
- rb-fsevent (~> 0.9, >= 0.9.4)
78
- rb-inotify (~> 0.9, >= 0.9.7)
79
- ruby_dep (~> 1.2)
76
+ listen (3.2.0)
77
+ rb-fsevent (~> 0.10, >= 0.10.3)
78
+ rb-inotify (~> 0.9, >= 0.9.10)
80
79
  lumberjack (1.0.13)
81
80
  method_source (0.9.2)
82
- minitest (5.12.0)
81
+ minitest (5.12.2)
83
82
  multi_json (1.13.1)
84
83
  multipart-post (2.1.1)
85
84
  nenv (0.3.0)
@@ -99,7 +98,7 @@ GEM
99
98
  json
100
99
  websocket (~> 1.0)
101
100
  rainbow (3.0.0)
102
- rake (12.3.3)
101
+ rake (13.0.0)
103
102
  rb-fsevent (0.10.3)
104
103
  rb-inotify (0.10.0)
105
104
  ffi (~> 1.0)
@@ -125,7 +124,6 @@ GEM
125
124
  ruby-progressbar (~> 1.7)
126
125
  unicode-display_width (>= 1.4.0, < 1.7)
127
126
  ruby-progressbar (1.10.1)
128
- ruby_dep (1.5.0)
129
127
  rugged (0.28.3.1)
130
128
  sawyer (0.8.2)
131
129
  addressable (>= 2.3.5)
data/README.md CHANGED
@@ -94,6 +94,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
94
94
  <tr>
95
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
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
+ <td align="center"><a href="http://fzf.me"><img src="https://avatars0.githubusercontent.com/u/1462357?v=4" width="100px;" alt="Fletcher Fowler"/><br /><sub><b>Fletcher Fowler</b></sub></a><br /><a href="https://github.com/unhappychoice/circleci-cli/issues?q=author%3Afzf" title="Bug reports">🐛</a> <a href="#ideas-fzf" title="Ideas, Planning, & Feedback">🤔</a> <a href="https://github.com/unhappychoice/circleci-cli/commits?author=fzf" title="Code">💻</a></td>
97
98
  </tr>
98
99
  </table>
99
100
 
@@ -7,7 +7,7 @@ require 'circleci/cli/version'
7
7
  def production_dependency(spec)
8
8
  spec.add_dependency 'circleci', '~> 2.0.2'
9
9
  spec.add_dependency 'colorize', '~> 0.8.1'
10
- spec.add_dependency 'faraday', '>= 0.14', '< 0.16'
10
+ spec.add_dependency 'faraday', '>= 0.14', '< 0.17'
11
11
  spec.add_dependency 'highline', '>= 1.7.8', '< 2.1.0'
12
12
  spec.add_dependency 'launchy', '~> 2.4.3'
13
13
  spec.add_dependency 'pusher-client', '~> 0.6.2'
@@ -66,6 +66,7 @@ module CircleCI
66
66
  desc 'watch', 'watch a build in real time'
67
67
  method_option :project, aliases: 'p', type: :string, banner: 'user/project'
68
68
  method_option :branch, aliases: 'b', type: :string, banner: 'branch'
69
+ method_option :user, aliases: 'u', type: :string, banner: 'user'
69
70
  method_option :verbose, aliases: 'v', type: :boolean, banner: 'verbose'
70
71
  def watch
71
72
  Command::WatchCommand.run(options)
@@ -13,7 +13,7 @@ module CircleCI
13
13
 
14
14
  username, reponame = project_name(options).split('/')
15
15
  @options = options
16
- @repository = BuildRepository.new(username, reponame, branch: options.branch)
16
+ @repository = BuildRepository.new(username, reponame, branch: options.branch, user: options.user)
17
17
  @client = Networking::CircleCIPusherClient.new.tap(&:connect)
18
18
  @build_watcher = nil
19
19
 
@@ -4,8 +4,9 @@ module CircleCI
4
4
  module CLI
5
5
  module Command
6
6
  class BuildRepository
7
- def initialize(username, reponame, branch: nil)
7
+ def initialize(username, reponame, branch: nil, user: nil)
8
8
  @username = username
9
+ @user = user
9
10
  @reponame = reponame
10
11
  @branch = branch
11
12
  @builds = Response::Build.all(@username, @reponame)
@@ -25,6 +26,7 @@ module CircleCI
25
26
  @builds
26
27
  .reject { |build| @build_numbers_shown.include?(build.build_number) }
27
28
  .select { |build| @branch.nil? || build.branch.to_s == @branch.to_s }
29
+ .select { |build| @user.nil? || build.user.to_s == @user.to_s }
28
30
  .sort_by(&:build_number)
29
31
  end
30
32
 
@@ -36,7 +36,7 @@ module CircleCI
36
36
 
37
37
  @client.bind_event_json(channel, 'appendAction') do |json|
38
38
  if @verbose
39
- say json['out']['message']
39
+ Thor::Shell::Basic.new.say(json['out']['message'], nil, false)
40
40
  else
41
41
  @messages[json['step']] << json['out']['message']
42
42
  end
@@ -37,7 +37,7 @@ module CircleCI
37
37
  end
38
38
 
39
39
  attr_reader :username, :build_number, :reponame, :branch, :status, :author_name, :start_time,
40
- :workflow_name, :workflow_job_name
40
+ :user, :workflow_name, :workflow_job_name
41
41
 
42
42
  def initialize(hash)
43
43
  @hash = hash
@@ -48,6 +48,7 @@ module CircleCI
48
48
  @status = hash['status']
49
49
  @author_name = hash['author_name']
50
50
  @start_time = hash['start_time']
51
+ @user = hash.dig('user', 'login')
51
52
  @workflow_name = hash.dig('workflows', 'workflow_name')
52
53
  @workflow_job_name = hash.dig('workflows', 'job_name')
53
54
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module CircleCI
4
4
  module CLI
5
- VERSION = '2.2.0'
5
+ VERSION = '2.3.0'
6
6
  end
7
7
  end
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.2.0
4
+ version: 2.3.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-29 00:00:00.000000000 Z
11
+ date: 2019-10-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: circleci
@@ -47,7 +47,7 @@ dependencies:
47
47
  version: '0.14'
48
48
  - - "<"
49
49
  - !ruby/object:Gem::Version
50
- version: '0.16'
50
+ version: '0.17'
51
51
  type: :runtime
52
52
  prerelease: false
53
53
  version_requirements: !ruby/object:Gem::Requirement
@@ -57,7 +57,7 @@ dependencies:
57
57
  version: '0.14'
58
58
  - - "<"
59
59
  - !ruby/object:Gem::Version
60
- version: '0.16'
60
+ version: '0.17'
61
61
  - !ruby/object:Gem::Dependency
62
62
  name: highline
63
63
  requirement: !ruby/object:Gem::Requirement