unibits 2.8.0 → 2.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/Gemfile +1 -1
- data/MIT-LICENSE.txt +1 -1
- data/README.md +2 -2
- data/Rakefile +5 -1
- data/lib/unibits.rb +3 -3
- data/lib/unibits/version.rb +2 -2
- data/unibits.gemspec +7 -7
- metadata +18 -13
- data/.travis.yml +0 -24
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 129aed0dcdc3467e6acf759da5068f140e352d52f44a23b2fa304db2227ebb88
|
4
|
+
data.tar.gz: f64d12e177c3c4c88927bd71273bb13855c8eb0d05203a3cbe0381a38604b580
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2289fa37584738aa6de0d7239cc1f4cccec419e4db287345ecb440d036a012bfd3055a2ecea4b26b10cacdda50e6965f56516503435789c5a660f90d46394fed
|
7
|
+
data.tar.gz: 93d3e88519d3ec7cfebd37a32e7c5e3d51a23c1273c8708de0f82ce8c0cbe5258be1d49ec3270b5901cd15f94fd3cda288383727d8e772dc1e3849ffbc1f6f00
|
data/CHANGELOG.md
CHANGED
data/Gemfile
CHANGED
data/MIT-LICENSE.txt
CHANGED
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# unibits | Reveal the Unicode [![[version]](https://badge.fury.io/rb/unibits.svg)](https://badge.fury.io/rb/unibits) [![[
|
1
|
+
# unibits | Reveal the Unicode [![[version]](https://badge.fury.io/rb/unibits.svg)](https://badge.fury.io/rb/unibits) [![[ci]](https://github.com/janlelis/unibits/workflows/Test/badge.svg)](https://github.com/janlelis/unibits/actions?query=workflow%3ATest)
|
2
2
|
|
3
3
|
Ruby library and CLI command that visualizes various Unicode and ASCII/single byte encodings in the terminal:
|
4
4
|
|
@@ -130,4 +130,4 @@ Related gems
|
|
130
130
|
|
131
131
|
Lots of thanks to @damienklinnert for the motivation and inspiration required to build this! 🎆
|
132
132
|
|
133
|
-
Copyright (C) 2017 Jan Lelis <
|
133
|
+
Copyright (C) 2017-2020 Jan Lelis <https://janlelis.com>. Released under the MIT license.
|
data/Rakefile
CHANGED
@@ -32,7 +32,11 @@ end
|
|
32
32
|
|
33
33
|
desc "#{gemspec.name} | Spec"
|
34
34
|
task :spec do
|
35
|
-
|
35
|
+
if RbConfig::CONFIG['host_os'] =~ /mswin|mingw/
|
36
|
+
sh "for %f in (spec/\*.rb) do ruby spec/%f"
|
37
|
+
else
|
38
|
+
sh "for file in spec/*.rb; do ruby $file; done"
|
39
|
+
end
|
36
40
|
end
|
37
41
|
task default: :spec
|
38
42
|
|
data/lib/unibits.rb
CHANGED
@@ -246,9 +246,9 @@ module Unibits
|
|
246
246
|
end
|
247
247
|
|
248
248
|
def self.determine_terminal_cols
|
249
|
-
STDIN.winsize[1] || DEFAULT_TERMINAL_WIDTH
|
250
|
-
rescue Errno::ENOTTY
|
251
|
-
return DEFAULT_TERMINAL_WIDTH
|
249
|
+
STDIN.winsize[1] || ENV['COLUMNS'] || DEFAULT_TERMINAL_WIDTH
|
250
|
+
rescue Errno::ENOTTY, Errno::EBADF
|
251
|
+
return ENV['COLUMNS'] || DEFAULT_TERMINAL_WIDTH
|
252
252
|
end
|
253
253
|
|
254
254
|
def self.determine_char_color(char_info)
|
data/lib/unibits/version.rb
CHANGED
data/unibits.gemspec
CHANGED
@@ -5,10 +5,10 @@ require File.dirname(__FILE__) + "/lib/unibits/version"
|
|
5
5
|
Gem::Specification.new do |gem|
|
6
6
|
gem.name = "unibits"
|
7
7
|
gem.version = Unibits::VERSION
|
8
|
-
gem.summary = "Visualizes encodings
|
8
|
+
gem.summary = "Visualizes encodings"
|
9
9
|
gem.description = "Visualizes encodings in the terminal. Supports UTF-8, UTF-16LE, UTF-16BE, UTF-32LE, UTF-32BE, US-ASCII, ASCII-8BIT, and most of Rubies single-byte encodings. Comes as CLI command and as Ruby Kernel method."
|
10
10
|
gem.authors = ["Jan Lelis"]
|
11
|
-
gem.email = ["
|
11
|
+
gem.email = ["hi@ruby.consulting"]
|
12
12
|
gem.homepage = "https://github.com/janlelis/unibits"
|
13
13
|
gem.license = "MIT"
|
14
14
|
|
@@ -18,10 +18,10 @@ Gem::Specification.new do |gem|
|
|
18
18
|
gem.require_paths = ["lib"]
|
19
19
|
|
20
20
|
gem.add_dependency 'paint', '>= 0.9', '< 3.0'
|
21
|
-
gem.add_dependency 'unicode-display_width', '~>
|
22
|
-
gem.add_dependency 'symbolify', '~> 1.
|
23
|
-
gem.add_dependency 'characteristics', '~> 1.
|
24
|
-
gem.add_dependency 'rationalist', '~> 2.0'
|
21
|
+
gem.add_dependency 'unicode-display_width', '~> 2.0'
|
22
|
+
gem.add_dependency 'symbolify', '~> 1.4'
|
23
|
+
gem.add_dependency 'characteristics', '~> 1.3'
|
24
|
+
gem.add_dependency 'rationalist', '~> 2.0', '>= 2.0.1'
|
25
25
|
|
26
|
-
gem.required_ruby_version = "
|
26
|
+
gem.required_ruby_version = ">= 2.0"
|
27
27
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: unibits
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jan Lelis
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-12-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: paint
|
@@ -36,42 +36,42 @@ dependencies:
|
|
36
36
|
requirements:
|
37
37
|
- - "~>"
|
38
38
|
- !ruby/object:Gem::Version
|
39
|
-
version: '
|
39
|
+
version: '2.0'
|
40
40
|
type: :runtime
|
41
41
|
prerelease: false
|
42
42
|
version_requirements: !ruby/object:Gem::Requirement
|
43
43
|
requirements:
|
44
44
|
- - "~>"
|
45
45
|
- !ruby/object:Gem::Version
|
46
|
-
version: '
|
46
|
+
version: '2.0'
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: symbolify
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
50
50
|
requirements:
|
51
51
|
- - "~>"
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version: '1.
|
53
|
+
version: '1.4'
|
54
54
|
type: :runtime
|
55
55
|
prerelease: false
|
56
56
|
version_requirements: !ruby/object:Gem::Requirement
|
57
57
|
requirements:
|
58
58
|
- - "~>"
|
59
59
|
- !ruby/object:Gem::Version
|
60
|
-
version: '1.
|
60
|
+
version: '1.4'
|
61
61
|
- !ruby/object:Gem::Dependency
|
62
62
|
name: characteristics
|
63
63
|
requirement: !ruby/object:Gem::Requirement
|
64
64
|
requirements:
|
65
65
|
- - "~>"
|
66
66
|
- !ruby/object:Gem::Version
|
67
|
-
version: '1.
|
67
|
+
version: '1.3'
|
68
68
|
type: :runtime
|
69
69
|
prerelease: false
|
70
70
|
version_requirements: !ruby/object:Gem::Requirement
|
71
71
|
requirements:
|
72
72
|
- - "~>"
|
73
73
|
- !ruby/object:Gem::Version
|
74
|
-
version: '1.
|
74
|
+
version: '1.3'
|
75
75
|
- !ruby/object:Gem::Dependency
|
76
76
|
name: rationalist
|
77
77
|
requirement: !ruby/object:Gem::Requirement
|
@@ -79,6 +79,9 @@ dependencies:
|
|
79
79
|
- - "~>"
|
80
80
|
- !ruby/object:Gem::Version
|
81
81
|
version: '2.0'
|
82
|
+
- - ">="
|
83
|
+
- !ruby/object:Gem::Version
|
84
|
+
version: 2.0.1
|
82
85
|
type: :runtime
|
83
86
|
prerelease: false
|
84
87
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -86,18 +89,20 @@ dependencies:
|
|
86
89
|
- - "~>"
|
87
90
|
- !ruby/object:Gem::Version
|
88
91
|
version: '2.0'
|
92
|
+
- - ">="
|
93
|
+
- !ruby/object:Gem::Version
|
94
|
+
version: 2.0.1
|
89
95
|
description: Visualizes encodings in the terminal. Supports UTF-8, UTF-16LE, UTF-16BE,
|
90
96
|
UTF-32LE, UTF-32BE, US-ASCII, ASCII-8BIT, and most of Rubies single-byte encodings.
|
91
97
|
Comes as CLI command and as Ruby Kernel method.
|
92
98
|
email:
|
93
|
-
-
|
99
|
+
- hi@ruby.consulting
|
94
100
|
executables:
|
95
101
|
- unibits
|
96
102
|
extensions: []
|
97
103
|
extra_rdoc_files: []
|
98
104
|
files:
|
99
105
|
- ".gitignore"
|
100
|
-
- ".travis.yml"
|
101
106
|
- CHANGELOG.md
|
102
107
|
- CODE_OF_CONDUCT.md
|
103
108
|
- Gemfile
|
@@ -121,7 +126,7 @@ require_paths:
|
|
121
126
|
- lib
|
122
127
|
required_ruby_version: !ruby/object:Gem::Requirement
|
123
128
|
requirements:
|
124
|
-
- - "
|
129
|
+
- - ">="
|
125
130
|
- !ruby/object:Gem::Version
|
126
131
|
version: '2.0'
|
127
132
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
@@ -130,9 +135,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
130
135
|
- !ruby/object:Gem::Version
|
131
136
|
version: '0'
|
132
137
|
requirements: []
|
133
|
-
rubygems_version: 3.
|
138
|
+
rubygems_version: 3.2.3
|
134
139
|
signing_key:
|
135
140
|
specification_version: 4
|
136
|
-
summary: Visualizes encodings
|
141
|
+
summary: Visualizes encodings
|
137
142
|
test_files:
|
138
143
|
- spec/unibits_spec.rb
|
data/.travis.yml
DELETED
@@ -1,24 +0,0 @@
|
|
1
|
-
sudo: false
|
2
|
-
language: ruby
|
3
|
-
|
4
|
-
rvm:
|
5
|
-
- ruby-head
|
6
|
-
- 2.6.1
|
7
|
-
- 2.5.3
|
8
|
-
- 2.4.5
|
9
|
-
- 2.3.8
|
10
|
-
- 2.2
|
11
|
-
- 2.1
|
12
|
-
- 2.0
|
13
|
-
- jruby-head
|
14
|
-
- jruby-9.2.6.0
|
15
|
-
|
16
|
-
matrix:
|
17
|
-
allow_failures:
|
18
|
-
- rvm: jruby-head
|
19
|
-
- rvm: ruby-head
|
20
|
-
- rvm: 2.3.8
|
21
|
-
- rvm: 2.2
|
22
|
-
- rvm: 2.1
|
23
|
-
- rvm: 2.0
|
24
|
-
# fast_finish: true
|