terminal_image 0.2.0 → 1.0.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/.github/dependabot.yml +31 -0
- data/.github/workflows/release.yaml +21 -0
- data/.github/workflows/test.yaml +52 -0
- data/.rspec +3 -0
- data/.rubocop.yml +9 -0
- data/.ruby-version +1 -0
- data/Gemfile +3 -1
- data/Gemfile.lock +100 -18
- data/Guardfile +49 -0
- data/README.md +22 -3
- data/Rakefile +5 -3
- data/bin/console +15 -0
- data/bin/setup +10 -0
- data/lib/terminal_image/version.rb +3 -1
- data/lib/terminal_image.rb +15 -5
- data/terminal_image.gemspec +30 -20
- metadata +114 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5600c245730f7c4fba89e5e8f42d7a84c870fd830cd50f72a38ac8bad4a0455c
|
4
|
+
data.tar.gz: 3ef875b2704787ba0f8ee646283a125811b38ffac7195eaa96f7cc7faceaa607
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d4e0f9662a5d5a4aae9cd2ca1669c15b4413e77962efb54358f602871b8f2b4637dee648bb458aa2b47781976a12e213021ef9f2317d6faa6600cba098c65772
|
7
|
+
data.tar.gz: 351d705af6f80741fa669f9c51d7b794320d33e0c4b59b82159bd113c00447429a2f9d88609390d1092ec62ab4a002a97d904a719de23ff3980a2a805186e8fa
|
@@ -0,0 +1,31 @@
|
|
1
|
+
version: 2
|
2
|
+
updates:
|
3
|
+
- package-ecosystem: bundler
|
4
|
+
directory: "/"
|
5
|
+
schedule:
|
6
|
+
interval: daily
|
7
|
+
time: "12:00"
|
8
|
+
timezone: Asia/Tokyo
|
9
|
+
open-pull-requests-limit: 20
|
10
|
+
reviewers:
|
11
|
+
- unhappychoice
|
12
|
+
allow:
|
13
|
+
- dependency-type: direct
|
14
|
+
- dependency-type: indirect
|
15
|
+
ignore:
|
16
|
+
- dependency-name: codecov
|
17
|
+
versions:
|
18
|
+
- ">= 0.2.14.a, < 0.2.15"
|
19
|
+
- dependency-name: rubocop
|
20
|
+
versions:
|
21
|
+
- 1.12.1
|
22
|
+
- dependency-name: listen
|
23
|
+
versions:
|
24
|
+
- 3.5.0
|
25
|
+
- dependency-name: codecov
|
26
|
+
versions:
|
27
|
+
- 0.5.0
|
28
|
+
- dependency-name: regexp_parser
|
29
|
+
versions:
|
30
|
+
- 2.1.0
|
31
|
+
- 2.1.1
|
@@ -0,0 +1,21 @@
|
|
1
|
+
name: release
|
2
|
+
|
3
|
+
on:
|
4
|
+
workflow_dispatch:
|
5
|
+
jobs:
|
6
|
+
push:
|
7
|
+
name: Push gem to RubyGems.org
|
8
|
+
runs-on: ubuntu-latest
|
9
|
+
environment:
|
10
|
+
name: release
|
11
|
+
permissions:
|
12
|
+
id-token: write
|
13
|
+
contents: write
|
14
|
+
steps:
|
15
|
+
- uses: actions/checkout@v4
|
16
|
+
- name: Set up Ruby
|
17
|
+
uses: ruby/setup-ruby@v1
|
18
|
+
with:
|
19
|
+
bundler-cache: true
|
20
|
+
ruby-version: .ruby-version
|
21
|
+
- uses: rubygems/release-gem@v1
|
@@ -0,0 +1,52 @@
|
|
1
|
+
name: test
|
2
|
+
|
3
|
+
on: [push]
|
4
|
+
|
5
|
+
jobs:
|
6
|
+
lint:
|
7
|
+
runs-on: ubuntu-latest
|
8
|
+
steps:
|
9
|
+
- uses: actions/checkout@master
|
10
|
+
- name: Set up Ruby
|
11
|
+
uses: ruby/setup-ruby@v1
|
12
|
+
with:
|
13
|
+
ruby-version: .ruby-version
|
14
|
+
- name: Install bundler
|
15
|
+
run: gem install bundler
|
16
|
+
- name: Install dependencies
|
17
|
+
run: bundle install --jobs 4
|
18
|
+
- name: Run test
|
19
|
+
run: bundle exec rubocop lib
|
20
|
+
test:
|
21
|
+
runs-on: ubuntu-latest
|
22
|
+
services:
|
23
|
+
redis:
|
24
|
+
image: redis
|
25
|
+
options: >-
|
26
|
+
--health-cmd "redis-cli ping"
|
27
|
+
--health-interval 10s
|
28
|
+
--health-timeout 5s
|
29
|
+
--health-retries 5
|
30
|
+
ports:
|
31
|
+
- 6379:6379
|
32
|
+
strategy:
|
33
|
+
matrix:
|
34
|
+
ruby: ['3.4.4', '3.3.8', '3.2.8', '3.1.7']
|
35
|
+
steps:
|
36
|
+
- uses: actions/checkout@master
|
37
|
+
- name: Set up Rub
|
38
|
+
uses: ruby/setup-ruby@v1
|
39
|
+
with:
|
40
|
+
ruby-version: ${{ matrix.ruby }}
|
41
|
+
- name: Install libsixel
|
42
|
+
run: sudo apt-get install libsixel-bin
|
43
|
+
- name: Install bundler
|
44
|
+
run: gem install bundler
|
45
|
+
- name: Install dependencies
|
46
|
+
run: bundle install --jobs 4
|
47
|
+
- name: Run test
|
48
|
+
env:
|
49
|
+
COVERAGE: true
|
50
|
+
CODECOV_TOKEN: d3d0fd4f-db2c-439b-9331-8e1d992813ad
|
51
|
+
AWS_REGION: ap-northeast-1
|
52
|
+
run: bundle exec rspec
|
data/.rspec
ADDED
data/.rubocop.yml
ADDED
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
3.4.4
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,37 +1,119 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
terminal_image (0.
|
4
|
+
terminal_image (1.0.0)
|
5
|
+
base64 (~> 0.3)
|
5
6
|
fastimage
|
6
7
|
|
7
8
|
GEM
|
8
9
|
remote: https://rubygems.org/
|
9
10
|
specs:
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
11
|
+
ast (2.4.2)
|
12
|
+
base64 (0.3.0)
|
13
|
+
codecov (0.6.0)
|
14
|
+
simplecov (>= 0.15, < 0.22)
|
15
|
+
coderay (1.1.3)
|
16
|
+
diff-lcs (1.6.0)
|
17
|
+
docile (1.4.1)
|
18
|
+
fastimage (2.4.0)
|
19
|
+
ffi (1.17.1-x86_64-darwin)
|
20
|
+
ffi (1.17.1-x86_64-linux-gnu)
|
21
|
+
formatador (1.1.0)
|
22
|
+
guard (2.19.1)
|
23
|
+
formatador (>= 0.2.4)
|
24
|
+
listen (>= 2.7, < 4.0)
|
25
|
+
logger (~> 1.6)
|
26
|
+
lumberjack (>= 1.0.12, < 2.0)
|
27
|
+
nenv (~> 0.1)
|
28
|
+
notiffany (~> 0.0)
|
29
|
+
ostruct (~> 0.6)
|
30
|
+
pry (>= 0.13.0)
|
31
|
+
shellany (~> 0.0)
|
32
|
+
thor (>= 0.18.1)
|
33
|
+
guard-compat (1.2.1)
|
34
|
+
guard-rspec (4.7.3)
|
35
|
+
guard (~> 2.1)
|
36
|
+
guard-compat (~> 1.1)
|
37
|
+
rspec (>= 2.99.0, < 4.0)
|
38
|
+
guard-rubocop (1.5.0)
|
39
|
+
guard (~> 2.0)
|
40
|
+
rubocop (< 2.0)
|
41
|
+
listen (3.9.0)
|
42
|
+
rb-fsevent (~> 0.10, >= 0.10.3)
|
43
|
+
rb-inotify (~> 0.9, >= 0.9.10)
|
44
|
+
logger (1.7.0)
|
45
|
+
lumberjack (1.2.10)
|
46
|
+
method_source (1.1.0)
|
47
|
+
nenv (0.3.0)
|
48
|
+
notiffany (0.1.3)
|
49
|
+
nenv (~> 0.1)
|
50
|
+
shellany (~> 0.0)
|
51
|
+
ostruct (0.6.1)
|
52
|
+
parallel (1.24.0)
|
53
|
+
parser (3.3.7.1)
|
54
|
+
ast (~> 2.4.1)
|
55
|
+
racc
|
56
|
+
pry (0.15.2)
|
57
|
+
coderay (~> 1.1)
|
58
|
+
method_source (~> 1.0)
|
59
|
+
racc (1.8.1)
|
60
|
+
rainbow (3.1.1)
|
61
|
+
rake (13.2.1)
|
62
|
+
rb-fsevent (0.11.2)
|
63
|
+
rb-inotify (0.11.1)
|
64
|
+
ffi (~> 1.0)
|
65
|
+
regexp_parser (2.10.0)
|
66
|
+
rexml (3.4.1)
|
67
|
+
rspec (3.13.0)
|
68
|
+
rspec-core (~> 3.13.0)
|
69
|
+
rspec-expectations (~> 3.13.0)
|
70
|
+
rspec-mocks (~> 3.13.0)
|
71
|
+
rspec-core (3.13.3)
|
72
|
+
rspec-support (~> 3.13.0)
|
73
|
+
rspec-expectations (3.13.3)
|
20
74
|
diff-lcs (>= 1.2.0, < 2.0)
|
21
|
-
rspec-support (~> 3.
|
22
|
-
rspec-mocks (3.
|
75
|
+
rspec-support (~> 3.13.0)
|
76
|
+
rspec-mocks (3.13.2)
|
23
77
|
diff-lcs (>= 1.2.0, < 2.0)
|
24
|
-
rspec-support (~> 3.
|
25
|
-
rspec-support (3.
|
78
|
+
rspec-support (~> 3.13.0)
|
79
|
+
rspec-support (3.13.2)
|
80
|
+
rubocop (1.28.2)
|
81
|
+
parallel (~> 1.10)
|
82
|
+
parser (>= 3.1.0.0)
|
83
|
+
rainbow (>= 2.2.2, < 4.0)
|
84
|
+
regexp_parser (>= 1.8, < 3.0)
|
85
|
+
rexml
|
86
|
+
rubocop-ast (>= 1.17.0, < 2.0)
|
87
|
+
ruby-progressbar (~> 1.7)
|
88
|
+
unicode-display_width (>= 1.4.0, < 3.0)
|
89
|
+
rubocop-ast (1.17.0)
|
90
|
+
parser (>= 3.1.1.0)
|
91
|
+
ruby-progressbar (1.13.0)
|
92
|
+
shellany (0.0.1)
|
93
|
+
simplecov (0.21.2)
|
94
|
+
docile (~> 1.1)
|
95
|
+
simplecov-html (~> 0.11)
|
96
|
+
simplecov_json_formatter (~> 0.1)
|
97
|
+
simplecov-html (0.13.1)
|
98
|
+
simplecov_json_formatter (0.1.4)
|
99
|
+
thor (1.2.2)
|
100
|
+
unicode-display_width (2.6.0)
|
26
101
|
|
27
102
|
PLATFORMS
|
28
|
-
|
103
|
+
x86_64-darwin-24
|
104
|
+
x86_64-linux
|
29
105
|
|
30
106
|
DEPENDENCIES
|
31
107
|
bundler (~> 2.0)
|
32
|
-
|
108
|
+
codecov
|
109
|
+
guard
|
110
|
+
guard-rspec
|
111
|
+
guard-rubocop
|
112
|
+
rake (~> 13.0)
|
33
113
|
rspec (~> 3.0)
|
114
|
+
rubocop
|
115
|
+
simplecov
|
34
116
|
terminal_image!
|
35
117
|
|
36
118
|
BUNDLED WITH
|
37
|
-
2.
|
119
|
+
2.4.14
|
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
@@ -1,7 +1,14 @@
|
|
1
1
|
# TerminalImage
|
2
2
|
|
3
|
+
[](https://badge.fury.io/rb/terminal_image)
|
4
|
+
[](https://codeclimate.com/github/unhappychoice/terminal_image)
|
5
|
+
[](https://codecov.io/gh/unhappychoice/terminal_image)
|
6
|
+
[](https://libraries.io/github/unhappychoice/terminal_image)
|
7
|
+

|
8
|
+

|
9
|
+
|
3
10
|
TerminalImage is a library to show images on terminals.
|
4
|
-
|
11
|
+
Currently, this library supports [iTerm2](https://iterm2.com/index.html) and terminals with [libsixel](https://github.com/saitoha/libsixel) installed.
|
5
12
|
|
6
13
|

|
7
14
|
|
@@ -13,12 +20,24 @@ Add this line to your application's Gemfile:
|
|
13
20
|
gem 'terminal_image'
|
14
21
|
```
|
15
22
|
|
23
|
+
Terminals other than iTerm2:
|
24
|
+
|
25
|
+
Please install `libsixel`'s `img2sixel` command following https://github.com/saitoha/libsixel#install
|
26
|
+
|
16
27
|
## Usage
|
17
28
|
|
18
29
|
```ruby
|
19
|
-
|
30
|
+
# Print image by File object
|
31
|
+
TerminalImage.show(File.open('your-image-path.png'))
|
32
|
+
|
33
|
+
# Print image from URL
|
20
34
|
TerminalImage.show_url('https://raw.githubusercontent.com/unhappychoice/terminal_image/master/images/sample.png')
|
21
|
-
|
35
|
+
|
36
|
+
# Get encoded string ready to be displayed
|
37
|
+
string = TerminalImage.encode(File.open('your-image-path.png'))
|
38
|
+
|
39
|
+
# Get encoded string ready to be displayed from URL
|
40
|
+
string = TerminalImage.encode_url('https://raw.githubusercontent.com/unhappychoice/terminal_image/master/images/sample.png')
|
22
41
|
```
|
23
42
|
|
24
43
|
## Contributing
|
data/Rakefile
CHANGED
data/bin/console
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
require 'bundler/setup'
|
5
|
+
require 'terminal_image'
|
6
|
+
|
7
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
8
|
+
# with your gem easier. You can also use a different console, if you like.
|
9
|
+
|
10
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
11
|
+
# require "pry"
|
12
|
+
# Pry.start
|
13
|
+
|
14
|
+
require 'irb'
|
15
|
+
IRB.start(__FILE__)
|
data/bin/setup
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
#! /usr/bin/env bash
|
4
|
+
|
5
|
+
set -o nounset # Exit, with error message, when attempting to use an undefined variable.
|
6
|
+
set -o errexit # Abort script at first error, when a command exits with non-zero status.
|
7
|
+
set -o pipefail # Return exit status of the last command in the pipe that returned a non-zero return value.
|
8
|
+
IFS=$'\n\t' # Defines newlines and tabs as delimiters for splitting words and iterating arrays.
|
9
|
+
|
10
|
+
bundle install
|
data/lib/terminal_image.rb
CHANGED
@@ -1,4 +1,7 @@
|
|
1
|
-
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'terminal_image/version'
|
4
|
+
require 'base64'
|
2
5
|
require 'fastimage'
|
3
6
|
require 'open-uri'
|
4
7
|
require 'tempfile'
|
@@ -10,7 +13,7 @@ module TerminalImage
|
|
10
13
|
def show_url(url)
|
11
14
|
tempfile = Tempfile.create
|
12
15
|
tempfile.binmode
|
13
|
-
URI.
|
16
|
+
URI.parse(url).open { |o| tempfile.write o.read }
|
14
17
|
TerminalImage.show(tempfile)
|
15
18
|
end
|
16
19
|
|
@@ -18,13 +21,20 @@ module TerminalImage
|
|
18
21
|
puts encode(file)
|
19
22
|
end
|
20
23
|
|
24
|
+
def encode_url(url)
|
25
|
+
tempfile = Tempfile.create
|
26
|
+
tempfile.binmode
|
27
|
+
URI.parse(url).open { |o| tempfile.write o.read }
|
28
|
+
TerminalImage.encode(tempfile)
|
29
|
+
end
|
30
|
+
|
21
31
|
def encode(file)
|
22
|
-
if ENV
|
32
|
+
if ENV.fetch('TERM_PROGRAM', nil) == 'iTerm.app'
|
23
33
|
encode_for_iterm2(file)
|
24
34
|
elsif which 'img2sixel'
|
25
35
|
encode_for_libsixel(file)
|
26
36
|
else
|
27
|
-
|
37
|
+
warn 'Use iTerm2 or install libsixel according to https://github.com/saitoha/libsixel#install'
|
28
38
|
raise UnsupportedTerminal, 'Unsupported terminal'
|
29
39
|
end
|
30
40
|
end
|
@@ -33,7 +43,7 @@ module TerminalImage
|
|
33
43
|
|
34
44
|
def encode_for_iterm2(file)
|
35
45
|
width, height = FastImage.size(file)
|
36
|
-
"\033]1337;File=inline=1;width=#{width}px;height=#{height}px:#{Base64.strict_encode64(file.read)}\a
|
46
|
+
"\033]1337;File=inline=1;width=#{width}px;height=#{height}px:#{Base64.strict_encode64(file.read)}\a"
|
37
47
|
end
|
38
48
|
|
39
49
|
def encode_for_libsixel(file)
|
data/terminal_image.gemspec
CHANGED
@@ -1,34 +1,44 @@
|
|
1
|
-
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
lib = File.expand_path('lib', __dir__)
|
2
4
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
3
|
-
require
|
5
|
+
require 'terminal_image/version'
|
4
6
|
|
5
7
|
Gem::Specification.new do |spec|
|
6
|
-
spec.name
|
7
|
-
spec.version
|
8
|
-
spec.
|
9
|
-
spec.
|
10
|
-
|
11
|
-
spec.summary
|
12
|
-
spec.description
|
13
|
-
spec.homepage
|
14
|
-
spec.license
|
8
|
+
spec.name = 'terminal_image'
|
9
|
+
spec.version = TerminalImage::VERSION
|
10
|
+
spec.required_ruby_version = '>= 3.1'
|
11
|
+
spec.authors = ['Yuji Ueki']
|
12
|
+
spec.email = ['unhappychoice@gmail.com']
|
13
|
+
spec.summary = 'Display images on terminal'
|
14
|
+
spec.description = 'Displays images on terminal'
|
15
|
+
spec.homepage = 'https://github.com/unhappychoice/terminal_image'
|
16
|
+
spec.license = 'MIT'
|
15
17
|
|
16
|
-
spec.metadata[
|
17
|
-
spec.metadata[
|
18
|
-
spec.metadata[
|
18
|
+
spec.metadata['homepage_uri'] = spec.homepage
|
19
|
+
spec.metadata['source_code_uri'] = 'https://github.com/unhappychoice/terminal_image'
|
20
|
+
spec.metadata['changelog_uri'] = 'https://github.com/unhappychoice/terminal_image'
|
21
|
+
spec.metadata['rubygems_mfa_required'] = 'true'
|
19
22
|
|
20
23
|
# Specify which files should be added to the gem when it is released.
|
21
24
|
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
22
|
-
spec.files
|
25
|
+
spec.files = Dir.chdir(File.expand_path(__dir__)) do
|
23
26
|
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
24
27
|
end
|
25
|
-
spec.bindir =
|
28
|
+
spec.bindir = 'exe'
|
26
29
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
27
|
-
spec.require_paths = [
|
30
|
+
spec.require_paths = ['lib']
|
28
31
|
|
32
|
+
spec.add_dependency 'base64', '~> 0.3'
|
29
33
|
spec.add_dependency 'fastimage'
|
30
34
|
|
31
|
-
spec.add_development_dependency
|
32
|
-
spec.add_development_dependency
|
33
|
-
spec.add_development_dependency
|
35
|
+
spec.add_development_dependency 'bundler', '~> 2.0'
|
36
|
+
spec.add_development_dependency 'codecov'
|
37
|
+
spec.add_development_dependency 'guard'
|
38
|
+
spec.add_development_dependency 'guard-rspec'
|
39
|
+
spec.add_development_dependency 'guard-rubocop'
|
40
|
+
spec.add_development_dependency 'rake', '~> 13.0'
|
41
|
+
spec.add_development_dependency 'rspec', '~> 3.0'
|
42
|
+
spec.add_development_dependency 'rubocop'
|
43
|
+
spec.add_development_dependency 'simplecov'
|
34
44
|
end
|
metadata
CHANGED
@@ -1,15 +1,28 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: terminal_image
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yuji Ueki
|
8
|
-
autorequire:
|
9
8
|
bindir: exe
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
12
|
+
- !ruby/object:Gem::Dependency
|
13
|
+
name: base64
|
14
|
+
requirement: !ruby/object:Gem::Requirement
|
15
|
+
requirements:
|
16
|
+
- - "~>"
|
17
|
+
- !ruby/object:Gem::Version
|
18
|
+
version: '0.3'
|
19
|
+
type: :runtime
|
20
|
+
prerelease: false
|
21
|
+
version_requirements: !ruby/object:Gem::Requirement
|
22
|
+
requirements:
|
23
|
+
- - "~>"
|
24
|
+
- !ruby/object:Gem::Version
|
25
|
+
version: '0.3'
|
13
26
|
- !ruby/object:Gem::Dependency
|
14
27
|
name: fastimage
|
15
28
|
requirement: !ruby/object:Gem::Requirement
|
@@ -38,20 +51,76 @@ dependencies:
|
|
38
51
|
- - "~>"
|
39
52
|
- !ruby/object:Gem::Version
|
40
53
|
version: '2.0'
|
54
|
+
- !ruby/object:Gem::Dependency
|
55
|
+
name: codecov
|
56
|
+
requirement: !ruby/object:Gem::Requirement
|
57
|
+
requirements:
|
58
|
+
- - ">="
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: '0'
|
61
|
+
type: :development
|
62
|
+
prerelease: false
|
63
|
+
version_requirements: !ruby/object:Gem::Requirement
|
64
|
+
requirements:
|
65
|
+
- - ">="
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: '0'
|
68
|
+
- !ruby/object:Gem::Dependency
|
69
|
+
name: guard
|
70
|
+
requirement: !ruby/object:Gem::Requirement
|
71
|
+
requirements:
|
72
|
+
- - ">="
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: '0'
|
75
|
+
type: :development
|
76
|
+
prerelease: false
|
77
|
+
version_requirements: !ruby/object:Gem::Requirement
|
78
|
+
requirements:
|
79
|
+
- - ">="
|
80
|
+
- !ruby/object:Gem::Version
|
81
|
+
version: '0'
|
82
|
+
- !ruby/object:Gem::Dependency
|
83
|
+
name: guard-rspec
|
84
|
+
requirement: !ruby/object:Gem::Requirement
|
85
|
+
requirements:
|
86
|
+
- - ">="
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
version: '0'
|
89
|
+
type: :development
|
90
|
+
prerelease: false
|
91
|
+
version_requirements: !ruby/object:Gem::Requirement
|
92
|
+
requirements:
|
93
|
+
- - ">="
|
94
|
+
- !ruby/object:Gem::Version
|
95
|
+
version: '0'
|
96
|
+
- !ruby/object:Gem::Dependency
|
97
|
+
name: guard-rubocop
|
98
|
+
requirement: !ruby/object:Gem::Requirement
|
99
|
+
requirements:
|
100
|
+
- - ">="
|
101
|
+
- !ruby/object:Gem::Version
|
102
|
+
version: '0'
|
103
|
+
type: :development
|
104
|
+
prerelease: false
|
105
|
+
version_requirements: !ruby/object:Gem::Requirement
|
106
|
+
requirements:
|
107
|
+
- - ">="
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '0'
|
41
110
|
- !ruby/object:Gem::Dependency
|
42
111
|
name: rake
|
43
112
|
requirement: !ruby/object:Gem::Requirement
|
44
113
|
requirements:
|
45
114
|
- - "~>"
|
46
115
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
116
|
+
version: '13.0'
|
48
117
|
type: :development
|
49
118
|
prerelease: false
|
50
119
|
version_requirements: !ruby/object:Gem::Requirement
|
51
120
|
requirements:
|
52
121
|
- - "~>"
|
53
122
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
123
|
+
version: '13.0'
|
55
124
|
- !ruby/object:Gem::Dependency
|
56
125
|
name: rspec
|
57
126
|
requirement: !ruby/object:Gem::Requirement
|
@@ -66,6 +135,34 @@ dependencies:
|
|
66
135
|
- - "~>"
|
67
136
|
- !ruby/object:Gem::Version
|
68
137
|
version: '3.0'
|
138
|
+
- !ruby/object:Gem::Dependency
|
139
|
+
name: rubocop
|
140
|
+
requirement: !ruby/object:Gem::Requirement
|
141
|
+
requirements:
|
142
|
+
- - ">="
|
143
|
+
- !ruby/object:Gem::Version
|
144
|
+
version: '0'
|
145
|
+
type: :development
|
146
|
+
prerelease: false
|
147
|
+
version_requirements: !ruby/object:Gem::Requirement
|
148
|
+
requirements:
|
149
|
+
- - ">="
|
150
|
+
- !ruby/object:Gem::Version
|
151
|
+
version: '0'
|
152
|
+
- !ruby/object:Gem::Dependency
|
153
|
+
name: simplecov
|
154
|
+
requirement: !ruby/object:Gem::Requirement
|
155
|
+
requirements:
|
156
|
+
- - ">="
|
157
|
+
- !ruby/object:Gem::Version
|
158
|
+
version: '0'
|
159
|
+
type: :development
|
160
|
+
prerelease: false
|
161
|
+
version_requirements: !ruby/object:Gem::Requirement
|
162
|
+
requirements:
|
163
|
+
- - ">="
|
164
|
+
- !ruby/object:Gem::Version
|
165
|
+
version: '0'
|
69
166
|
description: Displays images on terminal
|
70
167
|
email:
|
71
168
|
- unhappychoice@gmail.com
|
@@ -73,12 +170,21 @@ executables: []
|
|
73
170
|
extensions: []
|
74
171
|
extra_rdoc_files: []
|
75
172
|
files:
|
173
|
+
- ".github/dependabot.yml"
|
174
|
+
- ".github/workflows/release.yaml"
|
175
|
+
- ".github/workflows/test.yaml"
|
176
|
+
- ".rspec"
|
177
|
+
- ".rubocop.yml"
|
178
|
+
- ".ruby-version"
|
76
179
|
- CODE_OF_CONDUCT.md
|
77
180
|
- Gemfile
|
78
181
|
- Gemfile.lock
|
182
|
+
- Guardfile
|
79
183
|
- LICENSE.txt
|
80
184
|
- README.md
|
81
185
|
- Rakefile
|
186
|
+
- bin/console
|
187
|
+
- bin/setup
|
82
188
|
- images/example.png
|
83
189
|
- images/sample.png
|
84
190
|
- lib/terminal_image.rb
|
@@ -91,7 +197,7 @@ metadata:
|
|
91
197
|
homepage_uri: https://github.com/unhappychoice/terminal_image
|
92
198
|
source_code_uri: https://github.com/unhappychoice/terminal_image
|
93
199
|
changelog_uri: https://github.com/unhappychoice/terminal_image
|
94
|
-
|
200
|
+
rubygems_mfa_required: 'true'
|
95
201
|
rdoc_options: []
|
96
202
|
require_paths:
|
97
203
|
- lib
|
@@ -99,15 +205,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
99
205
|
requirements:
|
100
206
|
- - ">="
|
101
207
|
- !ruby/object:Gem::Version
|
102
|
-
version: '
|
208
|
+
version: '3.1'
|
103
209
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
104
210
|
requirements:
|
105
211
|
- - ">="
|
106
212
|
- !ruby/object:Gem::Version
|
107
213
|
version: '0'
|
108
214
|
requirements: []
|
109
|
-
rubygems_version: 3.
|
110
|
-
signing_key:
|
215
|
+
rubygems_version: 3.6.7
|
111
216
|
specification_version: 4
|
112
217
|
summary: Display images on terminal
|
113
218
|
test_files: []
|