indirect 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +2 -0
- data/Gemfile.lock +7 -5
- data/indirect.gemspec +2 -2
- data/lib/indirect/version.rb +1 -1
- data/lib/indirect.rb +7 -5
- data/lib/output +18 -17
- metadata +11 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 60369d41e255aa8031709f6d103fbbfe542d8ae99486046b9f84188acb67c7c3
|
4
|
+
data.tar.gz: 176f39153efbc4200ac1d7f6a846e8657dc2c338075ffcf0c8fbca6c399eb766
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 615d79f607c369a72737b6f4d8e699224629c2e81e5d67642c277bb18a6a743996b760d9ba602cfd945ef7db8aed648a7b9d489655f021e87c656adb18c4fbdf
|
7
|
+
data.tar.gz: abc16b9f1580fe7015671a434e40e7da614c023f1f6f54d6b967565fc4b885c8769b4747ad3179fc7ca3ad05c03085de90aced9f528631b10e327e3b04c5fede
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,14 +1,15 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
indirect (1.
|
4
|
+
indirect (1.1.0)
|
5
5
|
|
6
6
|
GEM
|
7
7
|
remote: https://rubygems.org/
|
8
8
|
specs:
|
9
|
+
bump (0.10.0)
|
9
10
|
colorize (0.8.1)
|
10
11
|
diff-lcs (1.3)
|
11
|
-
rake (
|
12
|
+
rake (13.0.6)
|
12
13
|
rspec (3.8.0)
|
13
14
|
rspec-core (~> 3.8.0)
|
14
15
|
rspec-expectations (~> 3.8.0)
|
@@ -27,11 +28,12 @@ PLATFORMS
|
|
27
28
|
ruby
|
28
29
|
|
29
30
|
DEPENDENCIES
|
30
|
-
|
31
|
+
bump (~> 0.10.0)
|
32
|
+
bundler (~> 2.1)
|
31
33
|
colorize (~> 0.8)
|
32
34
|
indirect!
|
33
|
-
rake (~>
|
35
|
+
rake (~> 13.0)
|
34
36
|
rspec (~> 3.0)
|
35
37
|
|
36
38
|
BUNDLED WITH
|
37
|
-
|
39
|
+
2.5.0.dev
|
data/indirect.gemspec
CHANGED
@@ -28,8 +28,8 @@ Gem::Specification.new do |spec|
|
|
28
28
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
29
29
|
spec.require_paths = ["lib"]
|
30
30
|
|
31
|
-
spec.add_development_dependency "bundler", "~> 1
|
32
|
-
spec.add_development_dependency "rake", "~>
|
31
|
+
spec.add_development_dependency "bundler", "~> 2.1"
|
32
|
+
spec.add_development_dependency "rake", "~> 13.0"
|
33
33
|
spec.add_development_dependency "rspec", "~> 3.0"
|
34
34
|
spec.add_development_dependency "colorize", "~> 0.8"
|
35
35
|
end
|
data/lib/indirect/version.rb
CHANGED
data/lib/indirect.rb
CHANGED
@@ -8,14 +8,15 @@ module Indirect
|
|
8
8
|
OpenStruct.new(
|
9
9
|
name: "André Arko",
|
10
10
|
handle: "indirect",
|
11
|
-
job: "Vice Minister of Computation at
|
12
|
-
oss: "
|
11
|
+
job: "Vice Minister of Computation at cloudcity.io",
|
12
|
+
oss: "RubyGems Coordinator at Ruby Central",
|
13
13
|
email: "andre@arko.net",
|
14
14
|
website: "arko.net",
|
15
15
|
blog: "andre.arko.net",
|
16
16
|
twitter: "indirect",
|
17
17
|
github: "indirect",
|
18
18
|
linkedin: "andrearko",
|
19
|
+
mastodon: "fiasco.social/@indirect",
|
19
20
|
card: "indirect",
|
20
21
|
)
|
21
22
|
end
|
@@ -40,13 +41,14 @@ module Indirect
|
|
40
41
|
"Email" => info.email ? info.email.send(colors.next) : nil,
|
41
42
|
"Website" => info.website ? "https://" << info.website.send(colors.next) : nil,
|
42
43
|
"Blog" => info.blog ? "https://" << info.blog.send(colors.next) : nil,
|
43
|
-
"Twitter" => info.twitter ? "https://" << info.twitter.send(colors.next) : nil,
|
44
44
|
"GitHub" => info.github ? "https://github.com/" << info.github.send(colors.next) : nil,
|
45
|
+
"Mastodon" => info.twitter ? "https://" << info.mastodon.send(colors.next) : nil,
|
46
|
+
"Twitter" => info.twitter ? "https://twitter.com/" << info.twitter.send(colors.next) : nil,
|
45
47
|
"LinkedIn" => info.linkedin ? "https://linkedin.com/in/" << info.linkedin.send(colors.next) : nil,
|
46
48
|
}.select{|k,v| v }
|
47
49
|
|
48
50
|
card = {
|
49
|
-
"Card" => info.card ? "
|
51
|
+
"Card" => info.card ? "gem exec ".red << info.card.white : nil
|
50
52
|
}.select{|k,v| v }
|
51
53
|
|
52
54
|
sections = [work, contact, card]
|
@@ -74,7 +76,7 @@ module Indirect
|
|
74
76
|
|
75
77
|
title = content.lines.first
|
76
78
|
cc = (width - title.chomp.uncolorize.size) / 2
|
77
|
-
box << "│ " << " " * cc << title.chomp << " " * cc << "
|
79
|
+
box << "│ " << " " * cc << title.chomp << " " * cc << " │\n"
|
78
80
|
|
79
81
|
content.lines[1..-1].each do |line|
|
80
82
|
space_count = width - line.chomp.uncolorize.size
|
data/lib/output
CHANGED
@@ -1,17 +1,18 @@
|
|
1
|
-
|
2
|
-
│
|
3
|
-
│
|
4
|
-
│
|
5
|
-
│ [1;37;49m Work: [0m[0;37;49mVice Minister of Computation at
|
6
|
-
│ [1;37;49mOpen Source: [0m[0;37;
|
7
|
-
│
|
8
|
-
│ [1;37;49m Email: [0m[0;36;49mandre@arko.net[0m
|
9
|
-
│ [1;37;49m Website: [0mhttps://[0;31;49marko.net[0m
|
10
|
-
│ [1;37;49m Blog: [0mhttps://[0;34;49mandre.arko.net[0m
|
11
|
-
│ [1;37;49m
|
12
|
-
│ [1;37;49m
|
13
|
-
│ [1;37;49m
|
14
|
-
│
|
15
|
-
│
|
16
|
-
│
|
17
|
-
|
1
|
+
╭────────────────────────────────────────────────────────────────╮
|
2
|
+
│ │
|
3
|
+
│ [0;37;49mAndré Arko[0m [0;32;49m/[0m [0;37;49mindirect[0m │
|
4
|
+
│ │
|
5
|
+
│ [1;37;49m Work: [0m[0;37;49mVice Minister of Computation at cloudcity.io[0m │
|
6
|
+
│ [1;37;49mOpen Source: [0m[0;37;49mRubyGems Coordinator at Ruby Central[0m │
|
7
|
+
│ │
|
8
|
+
│ [1;37;49m Email: [0m[0;36;49mandre@arko.net[0m │
|
9
|
+
│ [1;37;49m Website: [0mhttps://[0;31;49marko.net[0m │
|
10
|
+
│ [1;37;49m Blog: [0mhttps://[0;34;49mandre.arko.net[0m │
|
11
|
+
│ [1;37;49m GitHub: [0mhttps://github.com/[0;32;49mindirect[0m │
|
12
|
+
│ [1;37;49m Mastodon: [0mhttps://[0;36;49mfiasco.social/@indirect[0m │
|
13
|
+
│ [1;37;49m Twitter: [0mhttps://twitter.com/[0;31;49mindirect[0m │
|
14
|
+
│ [1;37;49m LinkedIn: [0mhttps://linkedin.com/in/[0;34;49mandrearko[0m │
|
15
|
+
│ │
|
16
|
+
│ [1;37;49m Card: [0m[0;31;49mgem exec [0m[0;37;49mindirect[0m │
|
17
|
+
│ │
|
18
|
+
╰────────────────────────────────────────────────────────────────╯
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: indirect
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andre Arko
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-02-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -16,28 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '1
|
19
|
+
version: '2.1'
|
20
20
|
type: :development
|
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: '1
|
26
|
+
version: '2.1'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '13.0'
|
34
34
|
type: :development
|
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: '
|
40
|
+
version: '13.0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rspec
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -66,7 +66,7 @@ dependencies:
|
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0.8'
|
69
|
-
description:
|
69
|
+
description:
|
70
70
|
email:
|
71
71
|
- andre@arko.net
|
72
72
|
executables:
|
@@ -100,7 +100,7 @@ metadata:
|
|
100
100
|
homepage_uri: https://github.com/indirect/indirect
|
101
101
|
source_code_uri: https://github.com/indirect/indirect
|
102
102
|
changelog_uri: https://github.com/indirect/indirect/blob/master/CHANGELOG.md
|
103
|
-
post_install_message:
|
103
|
+
post_install_message:
|
104
104
|
rdoc_options: []
|
105
105
|
require_paths:
|
106
106
|
- lib
|
@@ -115,8 +115,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
115
115
|
- !ruby/object:Gem::Version
|
116
116
|
version: '0'
|
117
117
|
requirements: []
|
118
|
-
rubygems_version: 3.0.
|
119
|
-
signing_key:
|
118
|
+
rubygems_version: 3.5.0.dev
|
119
|
+
signing_key:
|
120
120
|
specification_version: 4
|
121
121
|
summary: A CLI business card
|
122
122
|
test_files: []
|