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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fb9860416907d6a55463dbdeefeac0ed5f4884c5f9686ff59534a18bbac1ff50
4
- data.tar.gz: 8bcbfea1ce3b8bee0e105bc551667189937904b87614c0261d3f2114dc342778
3
+ metadata.gz: 129aed0dcdc3467e6acf759da5068f140e352d52f44a23b2fa304db2227ebb88
4
+ data.tar.gz: f64d12e177c3c4c88927bd71273bb13855c8eb0d05203a3cbe0381a38604b580
5
5
  SHA512:
6
- metadata.gz: c0259fa02a04cd46e67b680b89ecfb1f3619dc5467b8f9c1e90c5f1a4ae03d4d2495b39185284754bc741276fe88d0f5deb712b1073be6f615139dc6a8fd3cef
7
- data.tar.gz: 5ee32213b40b180ba574a5aae7dea828b47f103bd1718852114dffcde2da54a41bce3714751c04fc72335a7e4d47bc3a23ed66a7152b5fb2c6db0727d54b77af
6
+ metadata.gz: 2289fa37584738aa6de0d7239cc1f4cccec419e4db287345ecb440d036a012bfd3055a2ecea4b26b10cacdda50e6965f56516503435789c5a660f90d46394fed
7
+ data.tar.gz: 93d3e88519d3ec7cfebd37a32e7c5e3d51a23c1273c8708de0f82ce8c0cbe5258be1d49ec3270b5901cd15f94fd3cda288383727d8e772dc1e3849ffbc1f6f00
@@ -1,5 +1,10 @@
1
1
  ## CHANGELOG
2
2
 
3
+ ### 2.9.0
4
+
5
+ * Unicode 13
6
+ * Improve terminal width detection / Windows support
7
+
3
8
  ### 2.8.0
4
9
 
5
10
  * Unicode 12
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"
@@ -1,4 +1,4 @@
1
- Copyright (c) 2017 Jan Lelis, mail@janlelis.de
1
+ Copyright (c) 2017-2020 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)](https://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-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
- 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
 
@@ -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)
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Unibits
4
- VERSION = "2.8.0"
5
- UNICODE_VERSION = "12.0.0"
4
+ VERSION = "2.9.0"
5
+ UNICODE_VERSION = "13.0.0"
6
6
  end
@@ -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.5'
22
- gem.add_dependency 'symbolify', '~> 1.3'
23
- gem.add_dependency 'characteristics', '~> 1.2'
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 = "~> 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.8.0
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: 2019-03-05 00:00:00.000000000 Z
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: '1.5'
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: '1.5'
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.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: '1.2'
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.2'
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
- - 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,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.0.1
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
@@ -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