tty-link 0.1.0 → 0.2.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 +4 -4
- data/CHANGELOG.md +29 -0
- data/LICENSE.txt +1 -1
- data/README.md +278 -27
- data/lib/tty/link/ansi_link.rb +105 -0
- data/lib/tty/link/errors.rb +77 -0
- data/lib/tty/link/hyperlink_parameter.rb +95 -0
- data/lib/tty/link/plain_link.rb +52 -0
- data/lib/tty/link/semantic_version.rb +204 -0
- data/lib/tty/link/terminals/abstract.rb +189 -0
- data/lib/tty/link/terminals/alacritty.rb +50 -0
- data/lib/tty/link/terminals/contour.rb +96 -0
- data/lib/tty/link/terminals/domterm.rb +107 -0
- data/lib/tty/link/terminals/foot.rb +50 -0
- data/lib/tty/link/terminals/hyper.rb +54 -0
- data/lib/tty/link/terminals/iterm.rb +54 -0
- data/lib/tty/link/terminals/jediterm.rb +71 -0
- data/lib/tty/link/terminals/kitty.rb +48 -0
- data/lib/tty/link/terminals/konsole.rb +65 -0
- data/lib/tty/link/terminals/mintty.rb +54 -0
- data/lib/tty/link/terminals/rio.rb +54 -0
- data/lib/tty/link/terminals/tabby.rb +50 -0
- data/lib/tty/link/terminals/terminology.rb +54 -0
- data/lib/tty/link/terminals/vscode.rb +54 -0
- data/lib/tty/link/terminals/vte.rb +65 -0
- data/lib/tty/link/terminals/wezterm.rb +71 -0
- data/lib/tty/link/terminals/wt.rb +63 -0
- data/lib/tty/link/terminals.rb +71 -0
- data/lib/tty/link/version.rb +2 -2
- data/lib/tty/link.rb +279 -40
- data/lib/tty-link.rb +2 -0
- metadata +44 -44
- data/.gitignore +0 -12
- data/.rspec +0 -3
- data/.travis.yml +0 -23
- data/CODE_OF_CONDUCT.md +0 -74
- data/Gemfile +0 -12
- data/ISSUE_TEMPLATE.md +0 -23
- data/PULL_REQUEST_TEMPLATE.md +0 -18
- data/Rakefile +0 -8
- data/appveyor.yml +0 -28
- data/bin/console +0 -14
- data/bin/setup +0 -8
- data/tasks/console.rake +0 -11
- data/tasks/coverage.rake +0 -11
- data/tasks/spec.rake +0 -29
- data/tty-link.gemspec +0 -36
metadata
CHANGED
@@ -1,29 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tty-link
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Piotr Murach
|
8
|
-
autorequire:
|
9
|
-
bindir:
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-11-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
-
- !ruby/object:Gem::Dependency
|
14
|
-
name: bundler
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - ">="
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: 1.5.0
|
20
|
-
type: :development
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - ">="
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: 1.5.0
|
27
13
|
- !ruby/object:Gem::Dependency
|
28
14
|
name: rake
|
29
15
|
requirement: !ruby/object:Gem::Requirement
|
@@ -42,45 +28,57 @@ dependencies:
|
|
42
28
|
name: rspec
|
43
29
|
requirement: !ruby/object:Gem::Requirement
|
44
30
|
requirements:
|
45
|
-
- - "
|
31
|
+
- - ">="
|
46
32
|
- !ruby/object:Gem::Version
|
47
33
|
version: '3.0'
|
48
34
|
type: :development
|
49
35
|
prerelease: false
|
50
36
|
version_requirements: !ruby/object:Gem::Requirement
|
51
37
|
requirements:
|
52
|
-
- - "
|
38
|
+
- - ">="
|
53
39
|
- !ruby/object:Gem::Version
|
54
40
|
version: '3.0'
|
55
|
-
description:
|
41
|
+
description: Terminal hyperlinks support detection and generation.
|
56
42
|
email:
|
57
|
-
-
|
43
|
+
- piotr@piotrmurach.com
|
58
44
|
executables: []
|
59
45
|
extensions: []
|
60
|
-
extra_rdoc_files:
|
46
|
+
extra_rdoc_files:
|
47
|
+
- CHANGELOG.md
|
48
|
+
- LICENSE.txt
|
49
|
+
- README.md
|
61
50
|
files:
|
62
|
-
- ".gitignore"
|
63
|
-
- ".rspec"
|
64
|
-
- ".travis.yml"
|
65
51
|
- CHANGELOG.md
|
66
|
-
- CODE_OF_CONDUCT.md
|
67
|
-
- Gemfile
|
68
|
-
- ISSUE_TEMPLATE.md
|
69
52
|
- LICENSE.txt
|
70
|
-
- PULL_REQUEST_TEMPLATE.md
|
71
53
|
- README.md
|
72
|
-
- Rakefile
|
73
|
-
- appveyor.yml
|
74
|
-
- bin/console
|
75
|
-
- bin/setup
|
76
54
|
- lib/tty-link.rb
|
77
55
|
- lib/tty/link.rb
|
56
|
+
- lib/tty/link/ansi_link.rb
|
57
|
+
- lib/tty/link/errors.rb
|
58
|
+
- lib/tty/link/hyperlink_parameter.rb
|
59
|
+
- lib/tty/link/plain_link.rb
|
60
|
+
- lib/tty/link/semantic_version.rb
|
61
|
+
- lib/tty/link/terminals.rb
|
62
|
+
- lib/tty/link/terminals/abstract.rb
|
63
|
+
- lib/tty/link/terminals/alacritty.rb
|
64
|
+
- lib/tty/link/terminals/contour.rb
|
65
|
+
- lib/tty/link/terminals/domterm.rb
|
66
|
+
- lib/tty/link/terminals/foot.rb
|
67
|
+
- lib/tty/link/terminals/hyper.rb
|
68
|
+
- lib/tty/link/terminals/iterm.rb
|
69
|
+
- lib/tty/link/terminals/jediterm.rb
|
70
|
+
- lib/tty/link/terminals/kitty.rb
|
71
|
+
- lib/tty/link/terminals/konsole.rb
|
72
|
+
- lib/tty/link/terminals/mintty.rb
|
73
|
+
- lib/tty/link/terminals/rio.rb
|
74
|
+
- lib/tty/link/terminals/tabby.rb
|
75
|
+
- lib/tty/link/terminals/terminology.rb
|
76
|
+
- lib/tty/link/terminals/vscode.rb
|
77
|
+
- lib/tty/link/terminals/vte.rb
|
78
|
+
- lib/tty/link/terminals/wezterm.rb
|
79
|
+
- lib/tty/link/terminals/wt.rb
|
78
80
|
- lib/tty/link/version.rb
|
79
|
-
|
80
|
-
- tasks/coverage.rake
|
81
|
-
- tasks/spec.rake
|
82
|
-
- tty-link.gemspec
|
83
|
-
homepage: https://piotrmurach.github.io/tty
|
81
|
+
homepage: https://ttytoolkit.org
|
84
82
|
licenses:
|
85
83
|
- MIT
|
86
84
|
metadata:
|
@@ -88,9 +86,11 @@ metadata:
|
|
88
86
|
bug_tracker_uri: https://github.com/piotrmurach/tty-link/issues
|
89
87
|
changelog_uri: https://github.com/piotrmurach/tty-link/blob/master/CHANGELOG.md
|
90
88
|
documentation_uri: https://www.rubydoc.info/gems/tty-link
|
91
|
-
|
89
|
+
funding_uri: https://github.com/sponsors/piotrmurach
|
90
|
+
homepage_uri: https://ttytoolkit.org
|
91
|
+
rubygems_mfa_required: 'true'
|
92
92
|
source_code_uri: https://github.com/piotrmurach/tty-link
|
93
|
-
post_install_message:
|
93
|
+
post_install_message:
|
94
94
|
rdoc_options: []
|
95
95
|
require_paths:
|
96
96
|
- lib
|
@@ -105,8 +105,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
105
105
|
- !ruby/object:Gem::Version
|
106
106
|
version: '0'
|
107
107
|
requirements: []
|
108
|
-
rubygems_version: 3.
|
109
|
-
signing_key:
|
108
|
+
rubygems_version: 3.4.10
|
109
|
+
signing_key:
|
110
110
|
specification_version: 4
|
111
|
-
summary:
|
111
|
+
summary: Terminal hyperlinks support detection and generation.
|
112
112
|
test_files: []
|
data/.gitignore
DELETED
data/.rspec
DELETED
data/.travis.yml
DELETED
@@ -1,23 +0,0 @@
|
|
1
|
-
---
|
2
|
-
language: ruby
|
3
|
-
before_install: "gem install bundler -v '< 2.0'"
|
4
|
-
script: bundle exec rake ci
|
5
|
-
rvm:
|
6
|
-
- 2.0.0
|
7
|
-
- 2.1.10
|
8
|
-
- 2.2.10
|
9
|
-
- 2.3.8
|
10
|
-
- 2.4.6
|
11
|
-
- 2.5.5
|
12
|
-
- 2.6.3
|
13
|
-
- ruby-head
|
14
|
-
- jruby-9.2.6.0
|
15
|
-
- jruby-head
|
16
|
-
matrix:
|
17
|
-
allow_failures:
|
18
|
-
- rvm: ruby-head
|
19
|
-
- rvm: jruby-head
|
20
|
-
- rvm: jruby-9.2.6.0
|
21
|
-
fast_finish: true
|
22
|
-
branches:
|
23
|
-
only: master
|
data/CODE_OF_CONDUCT.md
DELETED
@@ -1,74 +0,0 @@
|
|
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, gender identity and expression, level of experience,
|
9
|
-
nationality, personal appearance, race, religion, or sexual identity and
|
10
|
-
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 me@piotrmurach.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 [http://contributor-covenant.org/version/1/4][version]
|
72
|
-
|
73
|
-
[homepage]: http://contributor-covenant.org
|
74
|
-
[version]: http://contributor-covenant.org/version/1/4/
|
data/Gemfile
DELETED
data/ISSUE_TEMPLATE.md
DELETED
@@ -1,23 +0,0 @@
|
|
1
|
-
### Are you in the right place?
|
2
|
-
* For issues or feature requests file a GitHub issue in this repository
|
3
|
-
* For general questions or discussion post in [Gitter](https://gitter.im/piotrmurach/tty)
|
4
|
-
|
5
|
-
### Describe the problem
|
6
|
-
A brief description of the issue/feature.
|
7
|
-
|
8
|
-
### Steps to reproduce the problem
|
9
|
-
```
|
10
|
-
Your code here to reproduce the issue
|
11
|
-
```
|
12
|
-
|
13
|
-
### Actual behaviour
|
14
|
-
What happened? This could be a description, log output, error raised etc...
|
15
|
-
|
16
|
-
### Expected behaviour
|
17
|
-
What did you expect to happen?
|
18
|
-
|
19
|
-
### Describe your environment
|
20
|
-
|
21
|
-
* OS version:
|
22
|
-
* Ruby version:
|
23
|
-
* TTY::Link version:
|
data/PULL_REQUEST_TEMPLATE.md
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
### Describe the change
|
2
|
-
What does this Pull Request do?
|
3
|
-
|
4
|
-
### Why are we doing this?
|
5
|
-
Any related context as to why is this is a desirable change.
|
6
|
-
|
7
|
-
### Benefits
|
8
|
-
How will the library improve?
|
9
|
-
|
10
|
-
### Drawbacks
|
11
|
-
Possible drawbacks applying this change.
|
12
|
-
|
13
|
-
### Requirements
|
14
|
-
Put an X between brackets on each line if you have done the item:
|
15
|
-
[] Tests written & passing locally?
|
16
|
-
[] Code style checked?
|
17
|
-
[] Rebased with `master` branch?
|
18
|
-
[] Documentation updated?
|
data/Rakefile
DELETED
data/appveyor.yml
DELETED
@@ -1,28 +0,0 @@
|
|
1
|
-
---
|
2
|
-
install:
|
3
|
-
- SET PATH=C:\Ruby%ruby_version%\bin;%PATH%
|
4
|
-
- gem install bundler -v '< 2.0'
|
5
|
-
- bundle install
|
6
|
-
before_test:
|
7
|
-
- ruby -v
|
8
|
-
- gem -v
|
9
|
-
- bundle -v
|
10
|
-
build: off
|
11
|
-
test_script:
|
12
|
-
- bundle exec rake ci
|
13
|
-
environment:
|
14
|
-
matrix:
|
15
|
-
- ruby_version: "200"
|
16
|
-
- ruby_version: "200-x64"
|
17
|
-
- ruby_version: "21"
|
18
|
-
- ruby_version: "21-x64"
|
19
|
-
- ruby_version: "22"
|
20
|
-
- ruby_version: "22-x64"
|
21
|
-
- ruby_version: "23"
|
22
|
-
- ruby_version: "23-x64"
|
23
|
-
- ruby_version: "24"
|
24
|
-
- ruby_version: "24-x64"
|
25
|
-
- ruby_version: "25"
|
26
|
-
- ruby_version: "25-x64"
|
27
|
-
- ruby_version: "26"
|
28
|
-
- ruby_version: "26-x64"
|
data/bin/console
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
|
3
|
-
require "bundler/setup"
|
4
|
-
require "tty/link"
|
5
|
-
|
6
|
-
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
-
# with your gem easier. You can also use a different console, if you like.
|
8
|
-
|
9
|
-
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
-
# require "pry"
|
11
|
-
# Pry.start
|
12
|
-
|
13
|
-
require "irb"
|
14
|
-
IRB.start(__FILE__)
|
data/bin/setup
DELETED
data/tasks/console.rake
DELETED
data/tasks/coverage.rake
DELETED
data/tasks/spec.rake
DELETED
@@ -1,29 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
begin
|
4
|
-
require "rspec/core/rake_task"
|
5
|
-
|
6
|
-
desc "Run all specs"
|
7
|
-
RSpec::Core::RakeTask.new(:spec) do |task|
|
8
|
-
task.pattern = "spec/{unit,integration}{,/*/**}/*_spec.rb"
|
9
|
-
end
|
10
|
-
|
11
|
-
namespace :spec do
|
12
|
-
desc "Run unit specs"
|
13
|
-
RSpec::Core::RakeTask.new(:unit) do |task|
|
14
|
-
task.pattern = "spec/unit{,/*/**}/*_spec.rb"
|
15
|
-
end
|
16
|
-
|
17
|
-
desc "Run integration specs"
|
18
|
-
RSpec::Core::RakeTask.new(:integration) do |task|
|
19
|
-
task.pattern = "spec/integration{,/*/**}/*_spec.rb"
|
20
|
-
end
|
21
|
-
end
|
22
|
-
|
23
|
-
rescue LoadError
|
24
|
-
%w[spec spec:unit spec:integration].each do |name|
|
25
|
-
task name do
|
26
|
-
$stderr.puts "In order to run #{name}, do `gem install rspec`"
|
27
|
-
end
|
28
|
-
end
|
29
|
-
end
|
data/tty-link.gemspec
DELETED
@@ -1,36 +0,0 @@
|
|
1
|
-
lib = File.expand_path("lib", __dir__)
|
2
|
-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
3
|
-
require "tty/link/version"
|
4
|
-
|
5
|
-
Gem::Specification.new do |spec|
|
6
|
-
spec.name = "tty-link"
|
7
|
-
spec.version = TTY::Link::VERSION
|
8
|
-
spec.authors = ["Piotr Murach"]
|
9
|
-
spec.email = ["me@piotrmurach.com"]
|
10
|
-
spec.summary = %q{Hyperlinks in your terminal}
|
11
|
-
spec.description = %q{Hyperlinks in your terminal}
|
12
|
-
spec.homepage = "https://piotrmurach.github.io/tty"
|
13
|
-
spec.license = "MIT"
|
14
|
-
if spec.respond_to?(:metadata=)
|
15
|
-
spec.metadata = {
|
16
|
-
"allowed_push_host" => "https://rubygems.org",
|
17
|
-
"bug_tracker_uri" => "https://github.com/piotrmurach/tty-link/issues",
|
18
|
-
"changelog_uri" => "https://github.com/piotrmurach/tty-link/blob/master/CHANGELOG.md",
|
19
|
-
"documentation_uri" => "https://www.rubydoc.info/gems/tty-link",
|
20
|
-
"homepage_uri" => spec.homepage,
|
21
|
-
"source_code_uri" => "https://github.com/piotrmurach/tty-link"
|
22
|
-
}
|
23
|
-
end
|
24
|
-
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
|
25
|
-
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
26
|
-
end
|
27
|
-
spec.bindir = "exe"
|
28
|
-
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
29
|
-
spec.require_paths = ["lib"]
|
30
|
-
|
31
|
-
spec.required_ruby_version = ">= 2.0.0"
|
32
|
-
|
33
|
-
spec.add_development_dependency "bundler", ">= 1.5.0"
|
34
|
-
spec.add_development_dependency "rake"
|
35
|
-
spec.add_development_dependency "rspec", "~> 3.0"
|
36
|
-
end
|