octocheck 0.2.1 → 0.2.2

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
- SHA1:
3
- metadata.gz: 3bfb3f26a7e3b72fcdda8f369f918a77fb6202da
4
- data.tar.gz: 6f39df4cb8e3e05e15f998ef432d2c7a3e7cb945
2
+ SHA256:
3
+ metadata.gz: 61abb6c55ea292484ec39ad6e3535030d36378e65b844c945c771667f039bf65
4
+ data.tar.gz: 6bfa226d7a045dc27fc186c0c4207ba30b18f49421a108d8158a9f359751e4ea
5
5
  SHA512:
6
- metadata.gz: 9295e1bc074960518cfa5df144fcda58c0fbe4e26dc187bfe75f7fa5892c43d1cc2312043d09fb048e6ccb626d0cebb2e6b6d1d6dc79ff5cc054816735994bd4
7
- data.tar.gz: 83eae4748b845b27f7a54b89f079b3498908e252568692b23e4b1d3ecb3c02f1da5aa18095c85f894c12bc7fbbb1ed1562a9ca70766029fd5b5f73f2fcc25a03
6
+ metadata.gz: 83a7e8450d3f1a7318ebaf995a8424173b63a09c6079d90e54aa476914bc79de2aae58d694e639d9dd7080ac7f83832528c55d21963beab6d5706adc6cceb794
7
+ data.tar.gz: cae918393e2b63ed77fd11c0e7c6f17b567253081b29f3dca487448e9c61b5a8f186cf6d17d6663dad5b225cec74dc03d9ee97918c85c7ffe776d196d3e372a9
data/bors.toml ADDED
@@ -0,0 +1,6 @@
1
+ status = [
2
+ "continuous-integration/travis-ci/push",
3
+ ]
4
+ # Uncomment this to use a two hour timeout.
5
+ # The default is one hour.
6
+ #timeout_sec = 7200
data/lib/octocheck/api.rb CHANGED
@@ -41,6 +41,8 @@ module Octocheck
41
41
  private
42
42
 
43
43
  def check_run_details(text)
44
+ return [] unless text
45
+
44
46
  text
45
47
  .split("\n")
46
48
  .map { |r|
data/lib/octocheck/cli.rb CHANGED
@@ -19,7 +19,7 @@ module Octocheck
19
19
 
20
20
  using_iterm2 = (
21
21
  ENV["TERM_PROGRAM"] == "iTerm.app" &&
22
- ENV.fetch("TERM_PROGRAM_VERSION", "").match(/3.[23456789].[123456789]/)
22
+ ENV.fetch("TERM_PROGRAM_VERSION", "").match(/3.[23456789]/)
23
23
  )
24
24
 
25
25
  formatter =
@@ -2,6 +2,7 @@ module Octocheck
2
2
  module Formatters
3
3
  module Color
4
4
  CODES = {
5
+ gray: 30,
5
6
  red: 31,
6
7
  green: 32,
7
8
  yellow: 33,
@@ -22,7 +22,7 @@ module Octocheck
22
22
  cols << [
23
23
  colorize(status.fetch(:state)),
24
24
  status.fetch(:name),
25
- status.fetch(:target_url)
25
+ gray(status.fetch(:target_url))
26
26
  ].join(" ")
27
27
  end
28
28
 
@@ -32,7 +32,7 @@ module Octocheck
32
32
  cols << [
33
33
  colorize(run.fetch(:state)),
34
34
  run.fetch(:name),
35
- run.fetch(:target_url)
35
+ gray(run.fetch(:target_url))
36
36
  ].join(" ")
37
37
 
38
38
  run.fetch(:details).each do |detail|
@@ -41,7 +41,7 @@ module Octocheck
41
41
  cols << [
42
42
  colorize(detail.fetch(:state)),
43
43
  detail.fetch(:name),
44
- detail.fetch(:target_url)
44
+ gray(detail.fetch(:target_url))
45
45
  ].join(" ")
46
46
  end
47
47
  end
@@ -1,3 +1,3 @@
1
1
  module Octocheck
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: octocheck
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pete Kinnecom
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-04-17 00:00:00.000000000 Z
11
+ date: 2021-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -38,7 +38,7 @@ dependencies:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '10.0'
41
- description:
41
+ description:
42
42
  email:
43
43
  - git@k7u7.com
44
44
  executables:
@@ -53,6 +53,7 @@ files:
53
53
  - Rakefile
54
54
  - bin/console
55
55
  - bin/setup
56
+ - bors.toml
56
57
  - exe/octocheck
57
58
  - lib/octocheck.rb
58
59
  - lib/octocheck/api.rb
@@ -67,7 +68,7 @@ homepage: https://github.com/petekinnecom/octocheck
67
68
  licenses: []
68
69
  metadata:
69
70
  allowed_push_host: https://rubygems.org
70
- post_install_message:
71
+ post_install_message:
71
72
  rdoc_options: []
72
73
  require_paths:
73
74
  - lib
@@ -82,9 +83,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
82
83
  - !ruby/object:Gem::Version
83
84
  version: '0'
84
85
  requirements: []
85
- rubyforge_project:
86
- rubygems_version: 2.5.2
87
- signing_key:
86
+ rubygems_version: 3.1.4
87
+ signing_key:
88
88
  specification_version: 4
89
89
  summary: See github checks in your terminal
90
90
  test_files: []