circler 0.6.2 → 0.6.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.circleci/config.yml +68 -0
- data/.rubocop.yml +5 -0
- data/CODE_OF_CONDUCT.md +76 -0
- data/Gemfile +2 -0
- data/Gemfile.lock +91 -37
- data/Guardfile +49 -0
- data/README.md +3 -1
- data/Rakefile +2 -0
- data/bin/circle +1 -0
- data/bin/console +1 -0
- data/circler.gemspec +24 -12
- data/exe/circle +1 -0
- data/lib/circler.rb +2 -0
- data/lib/circler/cli.rb +2 -0
- data/lib/circler/command/base_command.rb +4 -1
- data/lib/circler/command/browse_command.rb +3 -0
- data/lib/circler/command/build_command.rb +3 -1
- data/lib/circler/command/builds_command.rb +3 -1
- data/lib/circler/command/cancel_command.rb +2 -0
- data/lib/circler/command/projects_command.rb +3 -1
- data/lib/circler/command/retry_command.rb +2 -0
- data/lib/circler/command/watch_command.rb +3 -1
- data/lib/circler/networking/pusher_client.rb +2 -0
- data/lib/circler/printer/build_printer.rb +3 -1
- data/lib/circler/printer/project_printer.rb +2 -0
- data/lib/circler/printer/step_printer.rb +4 -3
- data/lib/circler/response/account.rb +2 -0
- data/lib/circler/response/action.rb +2 -0
- data/lib/circler/response/build.rb +3 -0
- data/lib/circler/response/project.rb +2 -0
- data/lib/circler/response/step.rb +2 -0
- data/lib/circler/version.rb +3 -1
- metadata +133 -40
- data/circle.yml +0 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: dd0d7e19a407e674fc3bab55747289dfc1d7e245a8a6c94ebe2122799e0bf24d
|
4
|
+
data.tar.gz: 349d8f018025f10be05c25a48693a58ee8f628a01e23dad4e16230c1479a2516
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 067bef4974ac81c9568dc44301eed6c55ac06cd3ea6b80b82136e09eda891854d138b492b0d6f45e814e24c7db50140dc4b70f1375e901f73bdadeee316412fb
|
7
|
+
data.tar.gz: b6c6135710dee9df8ce560cf01bc6153fbc9992cca70c014c1ba5c831d56d03cece30de2b32d0fa4a8a74cb4780846a46cce6f24c90e1f630a8ddc0df99787e5
|
@@ -0,0 +1,68 @@
|
|
1
|
+
version: 2.1
|
2
|
+
|
3
|
+
update_bundler: &update_bundler
|
4
|
+
run:
|
5
|
+
name: update bundler
|
6
|
+
command: gem update bundler
|
7
|
+
|
8
|
+
bundle_install: &bundle_install
|
9
|
+
run:
|
10
|
+
name: bundle install
|
11
|
+
command: bundle update --bundler && bundle install --path vendor/bundle --jobs 4
|
12
|
+
|
13
|
+
restore_bundle_cache: &restore_bundle_cache
|
14
|
+
restore_cache:
|
15
|
+
key: cache-bundler-{{ checksum "Gemfile.lock" }}
|
16
|
+
|
17
|
+
install_cmake: &install_cmake
|
18
|
+
run:
|
19
|
+
name: install cmake
|
20
|
+
command: sudo apt-get install cmake
|
21
|
+
|
22
|
+
jobs:
|
23
|
+
build:
|
24
|
+
docker:
|
25
|
+
- image: circleci/ruby
|
26
|
+
steps:
|
27
|
+
- checkout
|
28
|
+
- *install_cmake
|
29
|
+
- *restore_bundle_cache
|
30
|
+
- *update_bundler
|
31
|
+
- *bundle_install
|
32
|
+
- save_cache:
|
33
|
+
key: cache-bundler-{{ checksum "Gemfile.lock" }}
|
34
|
+
paths:
|
35
|
+
- vendor/bundle
|
36
|
+
rubocop:
|
37
|
+
docker:
|
38
|
+
- image: circleci/ruby
|
39
|
+
steps:
|
40
|
+
- checkout
|
41
|
+
- *install_cmake
|
42
|
+
- *restore_bundle_cache
|
43
|
+
- *update_bundler
|
44
|
+
- *bundle_install
|
45
|
+
- run: bundle exec rubocop
|
46
|
+
rspec:
|
47
|
+
docker:
|
48
|
+
- image: circleci/ruby
|
49
|
+
steps:
|
50
|
+
- checkout
|
51
|
+
- *install_cmake
|
52
|
+
- *restore_bundle_cache
|
53
|
+
- *update_bundler
|
54
|
+
- *bundle_install
|
55
|
+
- run:
|
56
|
+
environment:
|
57
|
+
COVERAGE: true
|
58
|
+
CODECOV_TOKEN: efe02ed0-e754-42a6-bb90-bbf345747bdc
|
59
|
+
command: bundle exec rspec
|
60
|
+
workflows:
|
61
|
+
version: 2.1
|
62
|
+
rspec:
|
63
|
+
jobs:
|
64
|
+
- build
|
65
|
+
- rubocop:
|
66
|
+
requires: [build]
|
67
|
+
- rspec:
|
68
|
+
requires: [build]
|
data/.rubocop.yml
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,76 @@
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
2
|
+
|
3
|
+
## Our Pledge
|
4
|
+
|
5
|
+
In the interest of fostering an open and welcoming environment, we as
|
6
|
+
contributors and maintainers pledge to making participation in our project and
|
7
|
+
our community a harassment-free experience for everyone, regardless of age, body
|
8
|
+
size, disability, ethnicity, sex characteristics, gender identity and expression,
|
9
|
+
level of experience, education, socio-economic status, nationality, personal
|
10
|
+
appearance, race, religion, or sexual identity and orientation.
|
11
|
+
|
12
|
+
## Our Standards
|
13
|
+
|
14
|
+
Examples of behavior that contributes to creating a positive environment
|
15
|
+
include:
|
16
|
+
|
17
|
+
* Using welcoming and inclusive language
|
18
|
+
* Being respectful of differing viewpoints and experiences
|
19
|
+
* Gracefully accepting constructive criticism
|
20
|
+
* Focusing on what is best for the community
|
21
|
+
* Showing empathy towards other community members
|
22
|
+
|
23
|
+
Examples of unacceptable behavior by participants include:
|
24
|
+
|
25
|
+
* The use of sexualized language or imagery and unwelcome sexual attention or
|
26
|
+
advances
|
27
|
+
* Trolling, insulting/derogatory comments, and personal or political attacks
|
28
|
+
* Public or private harassment
|
29
|
+
* Publishing others' private information, such as a physical or electronic
|
30
|
+
address, without explicit permission
|
31
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
32
|
+
professional setting
|
33
|
+
|
34
|
+
## Our Responsibilities
|
35
|
+
|
36
|
+
Project maintainers are responsible for clarifying the standards of acceptable
|
37
|
+
behavior and are expected to take appropriate and fair corrective action in
|
38
|
+
response to any instances of unacceptable behavior.
|
39
|
+
|
40
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
41
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
42
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
43
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
44
|
+
threatening, offensive, or harmful.
|
45
|
+
|
46
|
+
## Scope
|
47
|
+
|
48
|
+
This Code of Conduct applies both within project spaces and in public spaces
|
49
|
+
when an individual is representing the project or its community. Examples of
|
50
|
+
representing a project or community include using an official project e-mail
|
51
|
+
address, posting via an official social media account, or acting as an appointed
|
52
|
+
representative at an online or offline event. Representation of a project may be
|
53
|
+
further defined and clarified by project maintainers.
|
54
|
+
|
55
|
+
## Enforcement
|
56
|
+
|
57
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
+
reported by contacting the project team at unhappychoice@gmail.com. All
|
59
|
+
complaints will be reviewed and investigated and will result in a response that
|
60
|
+
is deemed necessary and appropriate to the circumstances. The project team is
|
61
|
+
obligated to maintain confidentiality with regard to the reporter of an incident.
|
62
|
+
Further details of specific enforcement policies may be posted separately.
|
63
|
+
|
64
|
+
Project maintainers who do not follow or enforce the Code of Conduct in good
|
65
|
+
faith may face temporary or permanent repercussions as determined by other
|
66
|
+
members of the project's leadership.
|
67
|
+
|
68
|
+
## Attribution
|
69
|
+
|
70
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
71
|
+
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
|
72
|
+
|
73
|
+
[homepage]: https://www.contributor-covenant.org
|
74
|
+
|
75
|
+
For answers to common questions about this code of conduct, see
|
76
|
+
https://www.contributor-covenant.org/faq
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
circler (0.6.
|
4
|
+
circler (0.6.4)
|
5
5
|
circleci (~> 2.0.2)
|
6
6
|
colorize (~> 0.8.1)
|
7
|
-
faraday (
|
8
|
-
highline (
|
7
|
+
faraday (>= 0.14, < 0.16)
|
8
|
+
highline (>= 1.7.8, < 2.1.0)
|
9
9
|
launchy (~> 2.4.3)
|
10
10
|
pusher-client (~> 0.6.2)
|
11
|
-
rugged (
|
11
|
+
rugged (>= 0.26, < 0.29)
|
12
12
|
terminal-notifier (~> 2.0.0)
|
13
13
|
terminal-table (~> 1.8.0)
|
14
14
|
thor (~> 0.20.0)
|
@@ -16,57 +16,106 @@ PATH
|
|
16
16
|
GEM
|
17
17
|
remote: https://rubygems.org/
|
18
18
|
specs:
|
19
|
-
addressable (2.
|
20
|
-
public_suffix (>= 2.0.2, <
|
19
|
+
addressable (2.7.0)
|
20
|
+
public_suffix (>= 2.0.2, < 5.0)
|
21
21
|
ast (2.4.0)
|
22
22
|
circleci (2.0.2)
|
23
|
+
codecov (0.1.14)
|
24
|
+
json
|
25
|
+
simplecov
|
26
|
+
url
|
27
|
+
coderay (1.1.2)
|
23
28
|
colorize (0.8.1)
|
24
29
|
diff-lcs (1.3)
|
25
|
-
|
30
|
+
docile (1.3.2)
|
31
|
+
faraday (0.15.4)
|
26
32
|
multipart-post (>= 1.2, < 3)
|
27
|
-
|
28
|
-
|
33
|
+
ffi (1.11.1)
|
34
|
+
formatador (0.2.5)
|
35
|
+
guard (2.15.1)
|
36
|
+
formatador (>= 0.2.4)
|
37
|
+
listen (>= 2.7, < 4.0)
|
38
|
+
lumberjack (>= 1.0.12, < 2.0)
|
39
|
+
nenv (~> 0.1)
|
40
|
+
notiffany (~> 0.0)
|
41
|
+
pry (>= 0.9.12)
|
42
|
+
shellany (~> 0.0)
|
43
|
+
thor (>= 0.18.1)
|
44
|
+
guard-compat (1.2.1)
|
45
|
+
guard-rspec (4.7.3)
|
46
|
+
guard (~> 2.1)
|
47
|
+
guard-compat (~> 1.1)
|
48
|
+
rspec (>= 2.99.0, < 4.0)
|
49
|
+
guard-rubocop (1.3.0)
|
50
|
+
guard (~> 2.0)
|
51
|
+
rubocop (~> 0.20)
|
52
|
+
highline (2.0.2)
|
53
|
+
jaro_winkler (1.5.3)
|
54
|
+
json (2.2.0)
|
29
55
|
launchy (2.4.3)
|
30
56
|
addressable (~> 2.3)
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
57
|
+
listen (3.1.5)
|
58
|
+
rb-fsevent (~> 0.9, >= 0.9.4)
|
59
|
+
rb-inotify (~> 0.9, >= 0.9.7)
|
60
|
+
ruby_dep (~> 1.2)
|
61
|
+
lumberjack (1.0.13)
|
62
|
+
method_source (0.9.2)
|
63
|
+
multipart-post (2.1.1)
|
64
|
+
nenv (0.3.0)
|
65
|
+
notiffany (0.1.3)
|
66
|
+
nenv (~> 0.1)
|
67
|
+
shellany (~> 0.0)
|
68
|
+
parallel (1.17.0)
|
69
|
+
parser (2.6.4.1)
|
70
|
+
ast (~> 2.4.0)
|
71
|
+
pry (0.12.2)
|
72
|
+
coderay (~> 1.1.0)
|
73
|
+
method_source (~> 0.9.0)
|
74
|
+
public_suffix (4.0.1)
|
37
75
|
pusher-client (0.6.2)
|
38
76
|
json
|
39
77
|
websocket (~> 1.0)
|
40
78
|
rainbow (3.0.0)
|
41
|
-
rake (12.3.
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
rspec-
|
48
|
-
|
79
|
+
rake (12.3.3)
|
80
|
+
rb-fsevent (0.10.3)
|
81
|
+
rb-inotify (0.10.0)
|
82
|
+
ffi (~> 1.0)
|
83
|
+
rspec (3.8.0)
|
84
|
+
rspec-core (~> 3.8.0)
|
85
|
+
rspec-expectations (~> 3.8.0)
|
86
|
+
rspec-mocks (~> 3.8.0)
|
87
|
+
rspec-core (3.8.2)
|
88
|
+
rspec-support (~> 3.8.0)
|
89
|
+
rspec-expectations (3.8.4)
|
49
90
|
diff-lcs (>= 1.2.0, < 2.0)
|
50
|
-
rspec-support (~> 3.
|
51
|
-
rspec-mocks (3.
|
91
|
+
rspec-support (~> 3.8.0)
|
92
|
+
rspec-mocks (3.8.1)
|
52
93
|
diff-lcs (>= 1.2.0, < 2.0)
|
53
|
-
rspec-support (~> 3.
|
54
|
-
rspec-support (3.
|
55
|
-
rubocop (0.
|
94
|
+
rspec-support (~> 3.8.0)
|
95
|
+
rspec-support (3.8.2)
|
96
|
+
rubocop (0.74.0)
|
97
|
+
jaro_winkler (~> 1.5.1)
|
56
98
|
parallel (~> 1.10)
|
57
|
-
parser (>= 2.
|
58
|
-
powerpack (~> 0.1)
|
99
|
+
parser (>= 2.6)
|
59
100
|
rainbow (>= 2.2.2, < 4.0)
|
60
101
|
ruby-progressbar (~> 1.7)
|
61
|
-
unicode-display_width (
|
62
|
-
ruby-progressbar (1.
|
63
|
-
|
102
|
+
unicode-display_width (>= 1.4.0, < 1.7)
|
103
|
+
ruby-progressbar (1.10.1)
|
104
|
+
ruby_dep (1.5.0)
|
105
|
+
rugged (0.28.3.1)
|
106
|
+
shellany (0.0.1)
|
107
|
+
simplecov (0.17.1)
|
108
|
+
docile (~> 1.1)
|
109
|
+
json (>= 1.8, < 3)
|
110
|
+
simplecov-html (~> 0.10.0)
|
111
|
+
simplecov-html (0.10.2)
|
64
112
|
terminal-notifier (2.0.0)
|
65
113
|
terminal-table (1.8.0)
|
66
114
|
unicode-display_width (~> 1.1, >= 1.1.1)
|
67
|
-
thor (0.20.
|
68
|
-
unicode-display_width (1.
|
69
|
-
|
115
|
+
thor (0.20.3)
|
116
|
+
unicode-display_width (1.6.0)
|
117
|
+
url (0.3.2)
|
118
|
+
websocket (1.2.8)
|
70
119
|
|
71
120
|
PLATFORMS
|
72
121
|
ruby
|
@@ -74,9 +123,14 @@ PLATFORMS
|
|
74
123
|
DEPENDENCIES
|
75
124
|
bundler
|
76
125
|
circler!
|
126
|
+
codecov
|
127
|
+
guard
|
128
|
+
guard-rspec
|
129
|
+
guard-rubocop
|
77
130
|
rake
|
78
131
|
rspec
|
79
132
|
rubocop
|
133
|
+
simplecov
|
80
134
|
|
81
135
|
BUNDLED WITH
|
82
|
-
1.
|
136
|
+
1.17.2
|
data/Guardfile
ADDED
@@ -0,0 +1,49 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# A sample Guardfile
|
4
|
+
# More info at https://github.com/guard/guard#readme
|
5
|
+
|
6
|
+
## Uncomment and set this to only include directories you want to watch
|
7
|
+
# directories %w(app lib config test spec features) \
|
8
|
+
# .select{|d| Dir.exist?(d) ? d : UI.warning("Directory #{d} does not exist")}
|
9
|
+
|
10
|
+
## Note: if you are using the `directories` clause above and you are not
|
11
|
+
## watching the project directory ('.'), then you will want to move
|
12
|
+
## the Guardfile to a watched dir and symlink it back, e.g.
|
13
|
+
#
|
14
|
+
# $ mkdir config
|
15
|
+
# $ mv Guardfile config/
|
16
|
+
# $ ln -s config/Guardfile .
|
17
|
+
#
|
18
|
+
# and, you'll have to watch "config/Guardfile" instead of "Guardfile"
|
19
|
+
|
20
|
+
# Note: The cmd option is now required due to the increasing number of ways
|
21
|
+
# rspec may be run, below are examples of the most common uses.
|
22
|
+
# * bundler: 'bundle exec rspec'
|
23
|
+
# * bundler binstubs: 'bin/rspec'
|
24
|
+
# * spring: 'bin/rspec' (This will use spring if running and you have
|
25
|
+
# installed the spring binstubs per the docs)
|
26
|
+
# * zeus: 'zeus rspec' (requires the server to be started separately)
|
27
|
+
# * 'just' rspec: 'rspec'
|
28
|
+
|
29
|
+
guard :rspec, cmd: 'bundle exec rspec' do
|
30
|
+
require 'guard/rspec/dsl'
|
31
|
+
dsl = Guard::RSpec::Dsl.new(self)
|
32
|
+
|
33
|
+
# Feel free to open issues for suggestions and improvements
|
34
|
+
|
35
|
+
# RSpec files
|
36
|
+
rspec = dsl.rspec
|
37
|
+
watch(rspec.spec_helper) { rspec.spec_dir }
|
38
|
+
watch(rspec.spec_support) { rspec.spec_dir }
|
39
|
+
watch(rspec.spec_files)
|
40
|
+
|
41
|
+
# Ruby files
|
42
|
+
ruby = dsl.ruby
|
43
|
+
dsl.watch_spec_files_for(ruby.lib_files)
|
44
|
+
end
|
45
|
+
|
46
|
+
guard :rubocop do
|
47
|
+
watch(/.+\.rb$/)
|
48
|
+
watch(%r{(?:.+/)?\.rubocop(?:_todo)?\.yml$}) { |m| File.dirname(m[0]) }
|
49
|
+
end
|
data/README.md
CHANGED
@@ -3,8 +3,10 @@
|
|
3
3
|
[![Gem Version](https://badge.fury.io/rb/circler.svg)](https://badge.fury.io/rb/circler)
|
4
4
|
[![Circle CI](https://circleci.com/gh/unhappychoice/Circler.svg?style=shield)](https://circleci.com/gh/unhappychoice/Circler)
|
5
5
|
[![Code Climate](https://codeclimate.com/github/unhappychoice/Circler/badges/gpa.svg)](https://codeclimate.com/github/unhappychoice/Circler)
|
6
|
-
[![
|
6
|
+
[![codecov](https://codecov.io/gh/unhappychoice/Circler/branch/master/graph/badge.svg)](https://codecov.io/gh/unhappychoice/Circler)
|
7
|
+
[![Libraries.io dependency status for GitHub repo](https://img.shields.io/librariesio/github/unhappychoice/Circler.svg)](https://libraries.io/github/unhappychoice/Circler)
|
7
8
|
![](http://ruby-gem-downloads-badge.herokuapp.com/circler?type=total)
|
9
|
+
![GitHub](https://img.shields.io/github/license/unhappychoice/Circler.svg)
|
8
10
|
|
9
11
|
Circler is a CLI tool for [Circle CI](https://circleci.com).
|
10
12
|
|
data/Rakefile
CHANGED
data/bin/circle
CHANGED
data/bin/console
CHANGED
data/circler.gemspec
CHANGED
@@ -1,26 +1,32 @@
|
|
1
|
-
#
|
2
|
-
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
lib = File.expand_path('lib', __dir__)
|
3
4
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
5
|
require 'circler/version'
|
5
6
|
|
6
7
|
def production_dependency(spec)
|
7
|
-
spec.add_dependency 'pusher-client', '~> 0.6.2'
|
8
|
-
spec.add_dependency 'thor', '~> 0.20.0'
|
9
|
-
spec.add_dependency 'faraday', '~> 0.14.0'
|
10
|
-
spec.add_dependency 'launchy', '~> 2.4.3'
|
11
8
|
spec.add_dependency 'circleci', '~> 2.0.2'
|
12
|
-
spec.add_dependency 'rugged', '~> 0.26.0'
|
13
|
-
spec.add_dependency 'terminal-table', '~> 1.8.0'
|
14
|
-
spec.add_dependency 'highline', '~> 1.7.8'
|
15
9
|
spec.add_dependency 'colorize', '~> 0.8.1'
|
10
|
+
spec.add_dependency 'faraday', '>= 0.14', '< 0.16'
|
11
|
+
spec.add_dependency 'highline', '>= 1.7.8', '< 2.1.0'
|
12
|
+
spec.add_dependency 'launchy', '~> 2.4.3'
|
13
|
+
spec.add_dependency 'pusher-client', '~> 0.6.2'
|
14
|
+
spec.add_dependency 'rugged', '>= 0.26', '< 0.29'
|
16
15
|
spec.add_dependency 'terminal-notifier', '~> 2.0.0'
|
16
|
+
spec.add_dependency 'terminal-table', '~> 1.8.0'
|
17
|
+
spec.add_dependency 'thor', '~> 0.20.0'
|
17
18
|
end
|
18
19
|
|
19
20
|
def development_dependency(spec)
|
20
21
|
spec.add_development_dependency 'bundler'
|
22
|
+
spec.add_development_dependency 'codecov'
|
23
|
+
spec.add_development_dependency 'guard'
|
24
|
+
spec.add_development_dependency 'guard-rspec'
|
25
|
+
spec.add_development_dependency 'guard-rubocop'
|
21
26
|
spec.add_development_dependency 'rake'
|
22
27
|
spec.add_development_dependency 'rspec'
|
23
28
|
spec.add_development_dependency 'rubocop'
|
29
|
+
spec.add_development_dependency 'simplecov'
|
24
30
|
end
|
25
31
|
|
26
32
|
def project_files
|
@@ -35,15 +41,21 @@ Gem::Specification.new do |spec|
|
|
35
41
|
spec.authors = ['unhappychoice']
|
36
42
|
spec.email = ['unhappychoice@gmail.com']
|
37
43
|
|
38
|
-
spec.summary = '
|
39
|
-
spec.description = '
|
40
|
-
spec.homepage = 'https://github.com/unhappychoice/
|
44
|
+
spec.summary = 'Moved to ---> "circleci-cli"'
|
45
|
+
spec.description = 'Moved to ---> "circleci-cli"'
|
46
|
+
spec.homepage = 'https://github.com/unhappychoice/circleci-cli'
|
41
47
|
spec.license = 'MIT'
|
42
48
|
spec.files = project_files
|
43
49
|
spec.bindir = 'exe'
|
44
50
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
45
51
|
spec.require_paths = ['lib']
|
46
52
|
|
53
|
+
spec.post_install_message = <<-MESSAGE
|
54
|
+
! The circler gem has been deprecated and has been replaced by circleci-cli.
|
55
|
+
! See: https://rubygems.org/gems/circleci-cli
|
56
|
+
! And: https://github.com/unhappychoice/circleci-cli
|
57
|
+
MESSAGE
|
58
|
+
|
47
59
|
production_dependency spec
|
48
60
|
development_dependency spec
|
49
61
|
end
|
data/exe/circle
CHANGED
data/lib/circler.rb
CHANGED
data/lib/circler/cli.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
module Circler
|
2
4
|
class BaseCommand
|
3
5
|
class << self
|
@@ -13,7 +15,7 @@ module Circler
|
|
13
15
|
elsif reponame
|
14
16
|
reponame
|
15
17
|
else
|
16
|
-
say ProjectPrinter.new(Project.all)
|
18
|
+
say ProjectPrinter.new(Project.all).to_s
|
17
19
|
ask('Input user-name/project-name :')
|
18
20
|
end
|
19
21
|
end
|
@@ -23,6 +25,7 @@ module Circler
|
|
23
25
|
origin = repository.remotes.find { |r| r.name == 'origin' }
|
24
26
|
regexp = %r{git@github.com(?::|/)([\w_-]+/[\w_-]+)(?:\.git)*}
|
25
27
|
return Regexp.last_match(1) if origin.url =~ regexp
|
28
|
+
|
26
29
|
nil
|
27
30
|
end
|
28
31
|
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
module Circler
|
2
4
|
class BrowseCommand < BaseCommand
|
3
5
|
class << self
|
@@ -10,6 +12,7 @@ module Circler
|
|
10
12
|
|
11
13
|
def url(project, number)
|
12
14
|
return "https://circleci.com/gh/#{project}" unless number
|
15
|
+
|
13
16
|
"https://circleci.com/gh/#{project}/#{number}"
|
14
17
|
end
|
15
18
|
end
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
module Circler
|
2
4
|
class BuildCommand < BaseCommand
|
3
5
|
class << self
|
@@ -6,7 +8,7 @@ module Circler
|
|
6
8
|
username, reponame = project_name(options).split('/')
|
7
9
|
number = build_number(options)
|
8
10
|
build = Build.get(username, reponame, number)
|
9
|
-
say StepPrinter.new(build.steps)
|
11
|
+
say StepPrinter.new(build.steps).to_s
|
10
12
|
end
|
11
13
|
end
|
12
14
|
end
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
module Circler
|
2
4
|
class BuildsCommand < BaseCommand
|
3
5
|
class << self
|
@@ -12,7 +14,7 @@ module Circler
|
|
12
14
|
Build.all(username, reponame)
|
13
15
|
end
|
14
16
|
|
15
|
-
say BuildPrinter.new(builds, pretty: should_be_pretty(options))
|
17
|
+
say BuildPrinter.new(builds, pretty: should_be_pretty(options)).to_s
|
16
18
|
end
|
17
19
|
end
|
18
20
|
end
|
@@ -1,9 +1,11 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
module Circler
|
2
4
|
class ProjectsCommand < BaseCommand
|
3
5
|
class << self
|
4
6
|
def run(options)
|
5
7
|
setup_token
|
6
|
-
say ProjectPrinter.new(Project.all, pretty: should_be_pretty(options))
|
8
|
+
say ProjectPrinter.new(Project.all, pretty: should_be_pretty(options)).to_s
|
7
9
|
end
|
8
10
|
end
|
9
11
|
end
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
module Circler
|
2
4
|
class WatchCommand < BaseCommand
|
3
5
|
class << self
|
@@ -7,7 +9,7 @@ module Circler
|
|
7
9
|
|
8
10
|
build = get_build(options)
|
9
11
|
|
10
|
-
if build
|
12
|
+
if build&.running?
|
11
13
|
start_watch(build)
|
12
14
|
wait_until_finish
|
13
15
|
finalize(build, build.channel_name)
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
module Circler
|
2
4
|
class BuildPrinter
|
3
5
|
def initialize(builds, pretty: true)
|
@@ -25,7 +27,7 @@ module Circler
|
|
25
27
|
end
|
26
28
|
|
27
29
|
def headings
|
28
|
-
%w
|
30
|
+
%w[Number Status Branch Author Commit Duration StartTime]
|
29
31
|
end
|
30
32
|
|
31
33
|
def rows
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
module Circler
|
2
4
|
class StepPrinter
|
3
5
|
def initialize(steps, pretty: true)
|
@@ -31,6 +33,7 @@ module Circler
|
|
31
33
|
|
32
34
|
def format_time(time)
|
33
35
|
return '' unless time
|
36
|
+
|
34
37
|
minute = format('%02d', time / 1000 / 60)
|
35
38
|
second = format('%02d', (time / 1000) % 60)
|
36
39
|
"#{minute}:#{second}"
|
@@ -43,9 +46,7 @@ module Circler
|
|
43
46
|
colorize_by_status(a.name.slice(0..120), a.status),
|
44
47
|
format_time(a.run_time_millis)
|
45
48
|
]
|
46
|
-
if a.failed? && a.log
|
47
|
-
table << [{ value: a.log, alignment: :left, colspan: 2 }]
|
48
|
-
end
|
49
|
+
table << [{ value: a.log, alignment: :left, colspan: 2 }] if a.failed? && a.log
|
49
50
|
end
|
50
51
|
end
|
51
52
|
end
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
module Circler
|
2
4
|
class Build
|
3
5
|
class << self
|
@@ -89,6 +91,7 @@ module Circler
|
|
89
91
|
|
90
92
|
def format_time(time)
|
91
93
|
return '' unless time
|
94
|
+
|
92
95
|
minute = format('%02d', time / 1000 / 60)
|
93
96
|
second = format('%02d', (time / 1000) % 60)
|
94
97
|
"#{minute}:#{second}"
|
data/lib/circler/version.rb
CHANGED
metadata
CHANGED
@@ -1,57 +1,83 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: circler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- unhappychoice
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-09-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: circleci
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 2.0.2
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.
|
26
|
+
version: 2.0.2
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: colorize
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.
|
33
|
+
version: 0.8.1
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 0.
|
40
|
+
version: 0.8.1
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: faraday
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 0.14
|
47
|
+
version: '0.14'
|
48
|
+
- - "<"
|
49
|
+
- !ruby/object:Gem::Version
|
50
|
+
version: '0.16'
|
48
51
|
type: :runtime
|
49
52
|
prerelease: false
|
50
53
|
version_requirements: !ruby/object:Gem::Requirement
|
51
54
|
requirements:
|
52
|
-
- - "
|
55
|
+
- - ">="
|
56
|
+
- !ruby/object:Gem::Version
|
57
|
+
version: '0.14'
|
58
|
+
- - "<"
|
53
59
|
- !ruby/object:Gem::Version
|
54
|
-
version: 0.
|
60
|
+
version: '0.16'
|
61
|
+
- !ruby/object:Gem::Dependency
|
62
|
+
name: highline
|
63
|
+
requirement: !ruby/object:Gem::Requirement
|
64
|
+
requirements:
|
65
|
+
- - ">="
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: 1.7.8
|
68
|
+
- - "<"
|
69
|
+
- !ruby/object:Gem::Version
|
70
|
+
version: 2.1.0
|
71
|
+
type: :runtime
|
72
|
+
prerelease: false
|
73
|
+
version_requirements: !ruby/object:Gem::Requirement
|
74
|
+
requirements:
|
75
|
+
- - ">="
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: 1.7.8
|
78
|
+
- - "<"
|
79
|
+
- !ruby/object:Gem::Version
|
80
|
+
version: 2.1.0
|
55
81
|
- !ruby/object:Gem::Dependency
|
56
82
|
name: launchy
|
57
83
|
requirement: !ruby/object:Gem::Requirement
|
@@ -67,33 +93,53 @@ dependencies:
|
|
67
93
|
- !ruby/object:Gem::Version
|
68
94
|
version: 2.4.3
|
69
95
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
96
|
+
name: pusher-client
|
71
97
|
requirement: !ruby/object:Gem::Requirement
|
72
98
|
requirements:
|
73
99
|
- - "~>"
|
74
100
|
- !ruby/object:Gem::Version
|
75
|
-
version:
|
101
|
+
version: 0.6.2
|
76
102
|
type: :runtime
|
77
103
|
prerelease: false
|
78
104
|
version_requirements: !ruby/object:Gem::Requirement
|
79
105
|
requirements:
|
80
106
|
- - "~>"
|
81
107
|
- !ruby/object:Gem::Version
|
82
|
-
version:
|
108
|
+
version: 0.6.2
|
83
109
|
- !ruby/object:Gem::Dependency
|
84
110
|
name: rugged
|
111
|
+
requirement: !ruby/object:Gem::Requirement
|
112
|
+
requirements:
|
113
|
+
- - ">="
|
114
|
+
- !ruby/object:Gem::Version
|
115
|
+
version: '0.26'
|
116
|
+
- - "<"
|
117
|
+
- !ruby/object:Gem::Version
|
118
|
+
version: '0.29'
|
119
|
+
type: :runtime
|
120
|
+
prerelease: false
|
121
|
+
version_requirements: !ruby/object:Gem::Requirement
|
122
|
+
requirements:
|
123
|
+
- - ">="
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: '0.26'
|
126
|
+
- - "<"
|
127
|
+
- !ruby/object:Gem::Version
|
128
|
+
version: '0.29'
|
129
|
+
- !ruby/object:Gem::Dependency
|
130
|
+
name: terminal-notifier
|
85
131
|
requirement: !ruby/object:Gem::Requirement
|
86
132
|
requirements:
|
87
133
|
- - "~>"
|
88
134
|
- !ruby/object:Gem::Version
|
89
|
-
version: 0.
|
135
|
+
version: 2.0.0
|
90
136
|
type: :runtime
|
91
137
|
prerelease: false
|
92
138
|
version_requirements: !ruby/object:Gem::Requirement
|
93
139
|
requirements:
|
94
140
|
- - "~>"
|
95
141
|
- !ruby/object:Gem::Version
|
96
|
-
version: 0.
|
142
|
+
version: 2.0.0
|
97
143
|
- !ruby/object:Gem::Dependency
|
98
144
|
name: terminal-table
|
99
145
|
requirement: !ruby/object:Gem::Requirement
|
@@ -109,49 +155,77 @@ dependencies:
|
|
109
155
|
- !ruby/object:Gem::Version
|
110
156
|
version: 1.8.0
|
111
157
|
- !ruby/object:Gem::Dependency
|
112
|
-
name:
|
158
|
+
name: thor
|
113
159
|
requirement: !ruby/object:Gem::Requirement
|
114
160
|
requirements:
|
115
161
|
- - "~>"
|
116
162
|
- !ruby/object:Gem::Version
|
117
|
-
version:
|
163
|
+
version: 0.20.0
|
118
164
|
type: :runtime
|
119
165
|
prerelease: false
|
120
166
|
version_requirements: !ruby/object:Gem::Requirement
|
121
167
|
requirements:
|
122
168
|
- - "~>"
|
123
169
|
- !ruby/object:Gem::Version
|
124
|
-
version:
|
170
|
+
version: 0.20.0
|
125
171
|
- !ruby/object:Gem::Dependency
|
126
|
-
name:
|
172
|
+
name: bundler
|
127
173
|
requirement: !ruby/object:Gem::Requirement
|
128
174
|
requirements:
|
129
|
-
- - "
|
175
|
+
- - ">="
|
130
176
|
- !ruby/object:Gem::Version
|
131
|
-
version: 0
|
132
|
-
type: :
|
177
|
+
version: '0'
|
178
|
+
type: :development
|
133
179
|
prerelease: false
|
134
180
|
version_requirements: !ruby/object:Gem::Requirement
|
135
181
|
requirements:
|
136
|
-
- - "
|
182
|
+
- - ">="
|
137
183
|
- !ruby/object:Gem::Version
|
138
|
-
version: 0
|
184
|
+
version: '0'
|
139
185
|
- !ruby/object:Gem::Dependency
|
140
|
-
name:
|
186
|
+
name: codecov
|
141
187
|
requirement: !ruby/object:Gem::Requirement
|
142
188
|
requirements:
|
143
|
-
- - "
|
189
|
+
- - ">="
|
144
190
|
- !ruby/object:Gem::Version
|
145
|
-
version:
|
146
|
-
type: :
|
191
|
+
version: '0'
|
192
|
+
type: :development
|
147
193
|
prerelease: false
|
148
194
|
version_requirements: !ruby/object:Gem::Requirement
|
149
195
|
requirements:
|
150
|
-
- - "
|
196
|
+
- - ">="
|
151
197
|
- !ruby/object:Gem::Version
|
152
|
-
version:
|
198
|
+
version: '0'
|
153
199
|
- !ruby/object:Gem::Dependency
|
154
|
-
name:
|
200
|
+
name: guard
|
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'
|
213
|
+
- !ruby/object:Gem::Dependency
|
214
|
+
name: guard-rspec
|
215
|
+
requirement: !ruby/object:Gem::Requirement
|
216
|
+
requirements:
|
217
|
+
- - ">="
|
218
|
+
- !ruby/object:Gem::Version
|
219
|
+
version: '0'
|
220
|
+
type: :development
|
221
|
+
prerelease: false
|
222
|
+
version_requirements: !ruby/object:Gem::Requirement
|
223
|
+
requirements:
|
224
|
+
- - ">="
|
225
|
+
- !ruby/object:Gem::Version
|
226
|
+
version: '0'
|
227
|
+
- !ruby/object:Gem::Dependency
|
228
|
+
name: guard-rubocop
|
155
229
|
requirement: !ruby/object:Gem::Requirement
|
156
230
|
requirements:
|
157
231
|
- - ">="
|
@@ -206,7 +280,21 @@ dependencies:
|
|
206
280
|
- - ">="
|
207
281
|
- !ruby/object:Gem::Version
|
208
282
|
version: '0'
|
209
|
-
|
283
|
+
- !ruby/object:Gem::Dependency
|
284
|
+
name: simplecov
|
285
|
+
requirement: !ruby/object:Gem::Requirement
|
286
|
+
requirements:
|
287
|
+
- - ">="
|
288
|
+
- !ruby/object:Gem::Version
|
289
|
+
version: '0'
|
290
|
+
type: :development
|
291
|
+
prerelease: false
|
292
|
+
version_requirements: !ruby/object:Gem::Requirement
|
293
|
+
requirements:
|
294
|
+
- - ">="
|
295
|
+
- !ruby/object:Gem::Version
|
296
|
+
version: '0'
|
297
|
+
description: Moved to ---> "circleci-cli"
|
210
298
|
email:
|
211
299
|
- unhappychoice@gmail.com
|
212
300
|
executables:
|
@@ -214,15 +302,18 @@ executables:
|
|
214
302
|
extensions: []
|
215
303
|
extra_rdoc_files: []
|
216
304
|
files:
|
305
|
+
- ".circleci/config.yml"
|
306
|
+
- ".rubocop.yml"
|
307
|
+
- CODE_OF_CONDUCT.md
|
217
308
|
- Gemfile
|
218
309
|
- Gemfile.lock
|
310
|
+
- Guardfile
|
219
311
|
- LICENSE.txt
|
220
312
|
- README.md
|
221
313
|
- Rakefile
|
222
314
|
- bin/circle
|
223
315
|
- bin/console
|
224
316
|
- bin/setup
|
225
|
-
- circle.yml
|
226
317
|
- circler.gemspec
|
227
318
|
- exe/circle
|
228
319
|
- lib/circler.rb
|
@@ -246,11 +337,14 @@ files:
|
|
246
337
|
- lib/circler/response/step.rb
|
247
338
|
- lib/circler/version.rb
|
248
339
|
- movie/rec.gif
|
249
|
-
homepage: https://github.com/unhappychoice/
|
340
|
+
homepage: https://github.com/unhappychoice/circleci-cli
|
250
341
|
licenses:
|
251
342
|
- MIT
|
252
343
|
metadata: {}
|
253
|
-
post_install_message:
|
344
|
+
post_install_message: |
|
345
|
+
! The circler gem has been deprecated and has been replaced by circleci-cli.
|
346
|
+
! See: https://rubygems.org/gems/circleci-cli
|
347
|
+
! And: https://github.com/unhappychoice/circleci-cli
|
254
348
|
rdoc_options: []
|
255
349
|
require_paths:
|
256
350
|
- lib
|
@@ -265,9 +359,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
265
359
|
- !ruby/object:Gem::Version
|
266
360
|
version: '0'
|
267
361
|
requirements: []
|
268
|
-
|
269
|
-
rubygems_version: 2.6.11
|
362
|
+
rubygems_version: 3.0.3
|
270
363
|
signing_key:
|
271
364
|
specification_version: 4
|
272
|
-
summary:
|
365
|
+
summary: Moved to ---> "circleci-cli"
|
273
366
|
test_files: []
|
data/circle.yml
DELETED