unibits 2.6.0 → 2.10.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 6cba814f571207d37582bbbdfdbce131842869d2
4
- data.tar.gz: '049882afb03bab8eca8ce3693906c02b00f83212'
2
+ SHA256:
3
+ metadata.gz: c6d2596d3776550bd16e7018340cc6f63df9abc6cef640ea4a59aa419a04634f
4
+ data.tar.gz: da43e7737787c0be8b268d1616d267c245459cc7afdcc662a8b5743cd28fe68c
5
5
  SHA512:
6
- metadata.gz: 331f30661d1f0e7c3de8f85479f326a683711af6e8d1830bab3a4d27dc2b8e7647ef24fff6abdebf507c784bcc5d97d083ba456d9936c8481b22164b29b8af68
7
- data.tar.gz: 64d5968cc6e95a33fdedf2772747fee0be2e6e124923e24adf3fb5a57ae953189cf3d8d91199f4329676aab5db34ac153f725e06cf60aa5b3aff5ec6b6082819
6
+ metadata.gz: 45f15daf9de755817e52dcf0e5bedfcc4fe13f195c9145791367eb7d971d872203ee43bd7674986801d9f2cba3fdfefb652d2366f47214de7d3aa8d59d647f84
7
+ data.tar.gz: 7b139c101b1b7556341965c6a9e5dd401110f934a556ac60b62d8de0db0d8492650c2ad2d85ceff2d5118e090e455126e5734727236c3b59a55299661a8f4452
data/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  ## CHANGELOG
2
2
 
3
+ ### 2.10.0
4
+
5
+ * Unicode 14
6
+
7
+ ### 2.9.0
8
+
9
+ * Unicode 13
10
+ * Improve terminal width detection / Windows support
11
+
12
+ ### 2.8.0
13
+
14
+ * Unicode 12
15
+
16
+ ### 2.7.0
17
+
18
+ * Unicode 11
19
+
3
20
  ### 2.6.0
4
21
 
5
22
  * Support Unicode 10.0
data/Gemfile CHANGED
@@ -4,4 +4,4 @@ gemspec
4
4
 
5
5
  gem 'minitest'
6
6
  gem 'rake'
7
- gem 'irbtools', require: 'irbtools/binding'
7
+ gem 'irbtools', require: 'irbtools/binding' unless RUBY_ENGINE == "jruby"
data/MIT-LICENSE.txt CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2017 Jan Lelis, mail@janlelis.de
1
+ Copyright (c) 2017-2021 Jan Lelis, https://janlelis.com
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # unibits | Reveal the Unicode [![[version]](https://badge.fury.io/rb/unibits.svg)](http://badge.fury.io/rb/unibits) [![[travis]](https://travis-ci.org/janlelis/unibits.svg)](https://travis-ci.org/janlelis/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 <http://janlelis.com>. Released under the MIT license.
133
+ Copyright (C) 2017-2021 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
- sh "for file in spec/*_spec.rb; do ruby $file; done"
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
 
@@ -1,4 +1,6 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Unibits
2
- VERSION = "2.6.0".freeze
3
- UNICODE_VERSION = "10.0.0".freeze
4
+ VERSION = "2.10.0"
5
+ UNICODE_VERSION = "14.0.0"
4
6
  end
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/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 = ["mail@janlelis.de"]
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', '~> 1.3'
22
- gem.add_dependency 'symbolify', '~> 1.3'
23
- gem.add_dependency 'characteristics', '>= 0.8'
24
- gem.add_dependency 'rationalist', '~> 2.0'
21
+ gem.add_dependency 'unicode-display_width', '~> 2.1'
22
+ gem.add_dependency 'symbolify', '~> 1.4'
23
+ gem.add_dependency 'characteristics', '~> 1.4'
24
+ gem.add_dependency 'rationalist', '~> 2.0', '>= 2.0.1'
25
25
 
26
- gem.required_ruby_version = "~> 2.0"
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.6.0
4
+ version: 2.10.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: 2017-06-19 00:00:00.000000000 Z
11
+ date: 2021-09-15 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: '1.3'
39
+ version: '2.1'
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: '1.3'
46
+ version: '2.1'
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.3'
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.3'
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: '0.8'
67
+ version: '1.4'
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: '0.8'
74
+ version: '1.4'
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
- - mail@janlelis.de
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,10 +135,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
130
135
  - !ruby/object:Gem::Version
131
136
  version: '0'
132
137
  requirements: []
133
- rubyforge_project:
134
- rubygems_version: 2.6.11
138
+ rubygems_version: 3.2.3
135
139
  signing_key:
136
140
  specification_version: 4
137
- summary: Visualizes encodings.
141
+ summary: Visualizes encodings
138
142
  test_files:
139
143
  - spec/unibits_spec.rb
data/.travis.yml DELETED
@@ -1,25 +0,0 @@
1
- sudo: false
2
- language: ruby
3
-
4
- rvm:
5
- - ruby-head
6
- - 2.4.1
7
- - 2.4.0
8
- - 2.3.4
9
- - 2.3.3
10
- - 2.2.7
11
- - 2.2.6
12
- - 2.1
13
- - 2.0
14
- - jruby-head
15
- - jruby-9.1.8.0
16
-
17
- cache:
18
- - bundler
19
-
20
- matrix:
21
- allow_failures:
22
- - rvm: jruby-head
23
- - rvm: ruby-head
24
- - rvm: 2.0
25
- # fast_finish: true