see 0.0.6 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/see/plugins/circle.rb +3 -21
- data/lib/see/plugins/github.rb +4 -4
- data/lib/see/plugins/pivotal.rb +4 -4
- data/lib/see/plugins/travis.rb +5 -8
- data/lib/see/runner.rb +1 -1
- metadata +15 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c3e488ba984a0f783fcb635d7f4412ea8c024edd
|
4
|
+
data.tar.gz: 0c2f5c34b94c57ff69bb5bd3da8aa5ec36b74931
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d70a1f80589f936908288945d7621e16f18f3b742171f052003d8d8a114f1654704cb43676a6655b4883de73d63348791d97a66770aea6583e6f7a152c3d3b74
|
7
|
+
data.tar.gz: 24f463a9c044409d5d485062803b3ebed6156334ddc7abce3052d9a8130142b9c1b03a20aa2b1b8eac9e57dcfbb5e43c6a2915e557788f54f98fad5349a6d711
|
data/lib/see/plugins/circle.rb
CHANGED
@@ -12,33 +12,15 @@ module See
|
|
12
12
|
end
|
13
13
|
|
14
14
|
response = CircleCi::Project.recent_builds(config['circle']['account'], config['circle']['repository'])
|
15
|
-
info << "Latest Builds:".light_blue
|
16
|
-
response.body.each do |thing|
|
15
|
+
info << "CircleCI - " + "Latest Builds:".light_blue
|
16
|
+
response.body[0..4].each do |thing|
|
17
17
|
time = "(#{thing['stop_time']})".blue if thing['stop_time']
|
18
18
|
if thing['status'].match(/failed|not_run/)
|
19
19
|
status = thing['status'].red
|
20
20
|
else
|
21
21
|
status = thing['status'].green
|
22
22
|
end
|
23
|
-
info << " - #{status} #{thing["vcs_revision"][0..8].light_yellow} #{("#"+thing['build_num'].to_s).
|
24
|
-
end
|
25
|
-
end
|
26
|
-
|
27
|
-
def xrun(config, info, no_info)
|
28
|
-
client = Travis::Client.new
|
29
|
-
|
30
|
-
repository = config["travis"]["repository"]
|
31
|
-
builds = client.repo(repository).recent_builds.map do |build|
|
32
|
-
time = "(#{build.finished_at.strftime("%b %e,%l:%M %p")})".blue
|
33
|
-
state = build.failed? ? build.state.capitalize.red : build.state.capitalize.green
|
34
|
-
" - #{state} #{build.commit.short_sha.light_yellow} #{build.commit.subject} #{build.job_ids.to_s.light_magenta} #{time}"
|
35
|
-
end
|
36
|
-
|
37
|
-
if builds.count > 0
|
38
|
-
info << "Latest Builds:".light_blue
|
39
|
-
info.concat(builds)
|
40
|
-
else
|
41
|
-
no_info << "No available build status".yellow
|
23
|
+
info << " - #{status.capitalize} #{thing["vcs_revision"][0..8].light_yellow} #{("#"+thing['build_num'].to_s).light_green} #{thing['subject']} #{thing['author_name'].cyan} #{time}"
|
42
24
|
end
|
43
25
|
end
|
44
26
|
end
|
data/lib/see/plugins/github.rb
CHANGED
@@ -15,26 +15,26 @@ module See
|
|
15
15
|
|
16
16
|
pull_requests = client.pull_requests(github_name)
|
17
17
|
if pull_requests.count > 0
|
18
|
-
info << "Open pull requests:".light_blue
|
18
|
+
info << "GitHub - " + "Open pull requests:".light_blue
|
19
19
|
pull_requests.each do |pull_request|
|
20
20
|
username = "[#{pull_request.user.login}]".cyan
|
21
21
|
time = "(#{pull_request.updated_at.strftime("%b %e,%l:%M %p")})".blue
|
22
22
|
info << " - #{pull_request.title} #{username} #{time}"
|
23
23
|
end
|
24
24
|
else
|
25
|
-
no_info << "No open pull requests"
|
25
|
+
no_info << "GitHub - " + "No open pull requests".yellow
|
26
26
|
end
|
27
27
|
|
28
28
|
issues = client.issues(github_name)
|
29
29
|
if issues.count > 0
|
30
|
-
info << "Open issues:".light_blue
|
30
|
+
info << "GitHub - " + "Open issues:".light_blue
|
31
31
|
issues.each do |issue|
|
32
32
|
username = "[#{issue.user.login}]".cyan
|
33
33
|
time = "(#{issue.updated_at.strftime("%b %e,%l:%M %p")})".blue
|
34
34
|
info << " - #{issue.title} #{username} #{time}"
|
35
35
|
end
|
36
36
|
else
|
37
|
-
no_info << "No open issues"
|
37
|
+
no_info << "GitHub - " + "No open issues".yellow
|
38
38
|
end
|
39
39
|
end
|
40
40
|
end
|
data/lib/see/plugins/pivotal.rb
CHANGED
@@ -28,20 +28,20 @@ module See
|
|
28
28
|
end
|
29
29
|
|
30
30
|
if stories.length > 0
|
31
|
-
info << "Stories being worked on:".light_blue
|
31
|
+
info << "Tracker - " + "Stories being worked on:".light_blue
|
32
32
|
info << stories
|
33
33
|
else
|
34
|
-
no_info << "No stories being worked on"
|
34
|
+
no_info << "Tracker - " + "No stories being worked on".yellow
|
35
35
|
end
|
36
36
|
|
37
37
|
if next_unowned_story
|
38
|
-
info << "Next story that can be worked on:".light_blue
|
38
|
+
info << "Tracker - " + "Next story that can be worked on:".light_blue
|
39
39
|
time = "(#{next_unowned_story.created_at.strftime("%b %e,%l:%M %p")})".blue
|
40
40
|
id = "#{next_unowned_story.id}".light_yellow
|
41
41
|
name = next_unowned_story.name
|
42
42
|
info << " - #{name} #{id} #{time}"
|
43
43
|
else
|
44
|
-
no_info << "No stories ready to work on"
|
44
|
+
no_info << "Tracker - " + "No stories ready to work on".yellow
|
45
45
|
end
|
46
46
|
end
|
47
47
|
end
|
data/lib/see/plugins/travis.rb
CHANGED
@@ -1,28 +1,25 @@
|
|
1
|
-
require 'travis
|
1
|
+
require 'travis'
|
2
2
|
|
3
3
|
module See
|
4
4
|
module Plugins
|
5
|
-
|
6
5
|
class TravisCI
|
7
6
|
def config_name
|
8
7
|
'travis'
|
9
8
|
end
|
10
9
|
|
11
10
|
def run(config, info, no_info)
|
12
|
-
client = Travis::Client.new
|
13
|
-
|
14
11
|
repository = config["travis"]["repository"]
|
15
|
-
builds =
|
12
|
+
builds = Travis::Repository.find(repository).recent_builds[0..4].map do |build|
|
16
13
|
time = "(#{build.finished_at.strftime("%b %e,%l:%M %p")})".blue
|
17
14
|
state = build.failed? ? build.state.capitalize.red : build.state.capitalize.green
|
18
|
-
" - #{state} #{build.commit.short_sha.light_yellow} #{build.
|
15
|
+
" - #{state} #{build.commit.short_sha.light_yellow} #{("#"+build.number).light_green} #{build.commit.subject} #{time}"
|
19
16
|
end
|
20
17
|
|
21
18
|
if builds.count > 0
|
22
|
-
info << "Latest Builds:".light_blue
|
19
|
+
info << "Travis - " + "Latest Builds:".light_blue
|
23
20
|
info.concat(builds)
|
24
21
|
else
|
25
|
-
no_info << "No available build status".yellow
|
22
|
+
no_info << "Travis - " + "No available build status".yellow
|
26
23
|
end
|
27
24
|
end
|
28
25
|
end
|
data/lib/see/runner.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: see
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Avila
|
@@ -80,6 +80,20 @@ dependencies:
|
|
80
80
|
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: faraday
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - '='
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: 0.8.9
|
90
|
+
type: :runtime
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - '='
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: 0.8.9
|
83
97
|
description:
|
84
98
|
email: me@michaelavila.com
|
85
99
|
executables:
|