ansel 2.0.2 → 2.0.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d0d96eec49a1d4008d8ef14c8cbf1c505d0d38b029dffe45fb620ef937893e0d
4
- data.tar.gz: 6467f1407d9e10319118e331e366b25671ef38df66504417c5d2e793c45fefa3
3
+ metadata.gz: 62cde28a3279d7068c333fb731a16251cf6f6e00d8ac02e1b83de3187e8a0ba7
4
+ data.tar.gz: d62a0f210919e2d6397e6aca92e8e31e990e36485ba6a916abfc973312c8998a
5
5
  SHA512:
6
- metadata.gz: b907611f72f613d6166261254fb087c95758ca7fef860a0c34e80d348e9d65e040d1254c49f5eb5f746d0fd89750dd9e35592f4b19480febf2fbf536eeccb0f0
7
- data.tar.gz: 26cdf2206a40576641e57b4ca9332176281e9ce1d792c1795bfaf2ff485e9d879d464a7b7e9d6909a6b7492b4cd803af370642670160bc20ff0b5ef63d9df86a
6
+ metadata.gz: 5870556f15bc7fd3dd87a9c007b0c46772493941979539c474cc53db649a673a6f5efa4df30ef963eb2bc81c8fcb776dfef7b58e42c19b977efea74ca9c137f1
7
+ data.tar.gz: 8f67eb504eebc5280d42b9e844de38ff65507aaabbd3f6c9612b85b8c7fcf481278091592efc6cb7eb53f39d1f66edb49b77119c50582afc3c04e48eefd7bad0
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2009-2019 Keith Morrison <keithm@infused.org>
1
+ Copyright (c) 2009-2023 Keith Morrison <keithm@infused.org>
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,14 +1,12 @@
1
1
  # ANSEL
2
2
 
3
3
  [![Version](http://img.shields.io/gem/v/ansel.svg?style=flat)](https://rubygems.org/gems/ansel)
4
- [![Build Status](http://img.shields.io/travis/infused/ansel/master.svg?style=flat)](http://travis-ci.org/infused/ansel)
4
+ [![Build Status](https://github.com/infused/ansel/actions/workflows/build.yml/badge.svg)](https://github.com/infused/ansel/actions/workflows/build.yml)
5
5
  [![Total Downloads](https://img.shields.io/gem/dt/ansel.svg)](https://rubygems.org/gems/ansel/)
6
6
  [![License](https://img.shields.io/github/license/infused/ansel.svg)](https://github.com/infused/ansel)
7
7
 
8
8
  ANSEL provides character set conversion from ANSEL to UTF-8
9
9
 
10
- Copyright (c) 2006-2019 Keith Morrison <mailto:keithm@infused.org>, <http://www.infused.org>
11
-
12
10
  - Project page: <http://github.com/infused/ansel>
13
11
  - API Documentation: <http://rubydoc.info/github/infused/ansel/>
14
12
  - Report bugs: <http://github.com/infused/ansel/issues>
@@ -17,18 +15,18 @@ Copyright (c) 2006-2019 Keith Morrison <mailto:keithm@infused.org>, <http://www.
17
15
 
18
16
  ## Compatibility
19
17
 
20
- ANSEL is [tested](https://travis-ci.org/infused/ansel) to be compatible with the following Rubies:
18
+ ANSEL is compatible with the following Rubies:
21
19
 
22
- * 1.9.2, 1.9.3
23
- * 2.0.x
24
- * 2.1.x
25
20
  * 2.2.x
26
21
  * 2.3.x
27
22
  * 2.4.x
28
23
  * 2.5.x
29
- * jruby 1.7+
24
+ * 2.7.x
25
+ * 3.0.x
26
+ * 3.1.x
27
+ * 3.2.x
30
28
 
31
- If you need ANSEL convesion in Ruby 1.8, see my [ansel_iconv](http://github.com/infused/ansel_iconv) project.
29
+ If you need ANSEL conversion in Ruby 1.8, see my [ansel_iconv](http://github.com/infused/ansel_iconv) project.
32
30
 
33
31
  ## Installation
34
32
 
@@ -54,9 +52,9 @@ encodings supported by the [Gedcom
54
52
  5.5](http://homepages.rootsweb.ancestry.com/~pmcbride/gedcom/55gctoc.htm)
55
53
  standard.
56
54
 
57
- ## LICENSE:
55
+ ## LICENSE
58
56
 
59
- Copyright (c) 2006-2019 8Keith Morrison <keithm@infused.org>
57
+ Copyright (c) 2006-2023 Keith Morrison <keithm@infused.org>
60
58
 
61
59
  Permission is hereby granted, free of charge, to any person obtaining
62
60
  a copy of this software and associated documentation files (the
data/ansel.gemspec CHANGED
@@ -1,13 +1,13 @@
1
1
  # encoding: ascii-8bit
2
2
 
3
3
  lib = File.expand_path('../lib/', __FILE__)
4
- $:.unshift lib unless $:.include?(lib)
4
+ $LOAD_PATH.unshift lib unless $:.include?(lib)
5
5
  require 'ansel/version'
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = 'ansel'
9
9
  s.version = ANSEL::VERSION
10
- s.authors = ["Keith Morrison"]
10
+ s.authors = ['Keith Morrison']
11
11
  s.email = 'keithm@infused.org'
12
12
  s.homepage = 'http://github.com/infused/ansel'
13
13
  s.summary = 'Convert ANSEL encoded text to UTF-8'
@@ -15,8 +15,7 @@ Gem::Specification.new do |s|
15
15
 
16
16
  s.rdoc_options = ['--charset=UTF-8']
17
17
  s.extra_rdoc_files = ['README.md', 'CHANGELOG.md', 'LICENSE']
18
- s.files = Dir['[A-Z]*', '{lib,test}/**/*', 'ansel.gemspec']
19
- s.test_files = Dir.glob('test/**/*_test.rb')
18
+ s.files = Dir['README.md', 'CHANGELOG.md', 'LICENSE', 'lib/**/*', 'ansel.gemspec']
20
19
  s.require_paths = ['lib']
21
20
 
22
21
  s.required_rubygems_version = '>= 1.3.0'
@@ -26,13 +26,14 @@ module ANSEL
26
26
  output << byte
27
27
  when 0x88..0xC8
28
28
  output << utf16_to_utf8(ANSI_TO_UTF16_MAP[char_hex] || ANSI_TO_UTF16_MAP['ERR'])
29
- last_byte = scanner.get_byte if scanner.check(/\00/)
29
+ scanner.get_byte if scanner.check(/\00/)
30
30
  when 0xE0..0xFB
31
31
  [2, 1, 0].each do |n| # try 3 bytes, then 2 bytes, then 1 byte
32
32
  bytes = [char_hex]
33
33
  scanner.peek(n).each_byte { |b| bytes << b.to_s(16).upcase }
34
34
  hex_key = bytes.join('+')
35
35
  next unless ANSI_TO_UTF16_MAP.key?(hex_key)
36
+
36
37
  output << utf16_to_utf8(ANSI_TO_UTF16_MAP[hex_key])
37
38
  n.times { scanner.get_byte }
38
39
  break
data/lib/ansel/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # encoding: ascii-8bit
2
2
 
3
3
  module ANSEL
4
- VERSION = '2.0.2'
4
+ VERSION = '2.0.3'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ansel
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.2
4
+ version: 2.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Keith Morrison
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-01-30 00:00:00.000000000 Z
11
+ date: 2023-05-30 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Convert ANSEL encoded text to UTF-8
14
14
  email: keithm@infused.org
@@ -20,13 +20,8 @@ extra_rdoc_files:
20
20
  - LICENSE
21
21
  files:
22
22
  - CHANGELOG.md
23
- - Gemfile
24
- - Gemfile.lock
25
- - Gemfile.travis
26
- - Gemfile.travis19
27
23
  - LICENSE
28
24
  - README.md
29
- - Rakefile
30
25
  - ansel.gemspec
31
26
  - lib/ansel.rb
32
27
  - lib/ansel/character_map.rb
@@ -35,7 +30,7 @@ files:
35
30
  homepage: http://github.com/infused/ansel
36
31
  licenses: []
37
32
  metadata: {}
38
- post_install_message:
33
+ post_install_message:
39
34
  rdoc_options:
40
35
  - "--charset=UTF-8"
41
36
  require_paths:
@@ -51,8 +46,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
51
46
  - !ruby/object:Gem::Version
52
47
  version: 1.3.0
53
48
  requirements: []
54
- rubygems_version: 3.0.1
55
- signing_key:
49
+ rubygems_version: 3.4.13
50
+ signing_key:
56
51
  specification_version: 4
57
52
  summary: Convert ANSEL encoded text to UTF-8
58
53
  test_files: []
data/Gemfile DELETED
@@ -1,8 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- gemspec
4
-
5
- group :development, :test do
6
- gem 'rubocop'
7
- gem 'rspec'
8
- end
data/Gemfile.lock DELETED
@@ -1,51 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- ansel (2.0.1)
5
-
6
- GEM
7
- remote: https://rubygems.org/
8
- specs:
9
- ast (2.4.0)
10
- byebug (10.0.2)
11
- diff-lcs (1.2.5)
12
- jaro_winkler (1.5.2)
13
- parallel (1.13.0)
14
- parser (2.6.0.0)
15
- ast (~> 2.4.0)
16
- powerpack (0.1.2)
17
- rainbow (3.0.0)
18
- rspec (3.1.0)
19
- rspec-core (~> 3.1.0)
20
- rspec-expectations (~> 3.1.0)
21
- rspec-mocks (~> 3.1.0)
22
- rspec-core (3.1.7)
23
- rspec-support (~> 3.1.0)
24
- rspec-expectations (3.1.2)
25
- diff-lcs (>= 1.2.0, < 2.0)
26
- rspec-support (~> 3.1.0)
27
- rspec-mocks (3.1.3)
28
- rspec-support (~> 3.1.0)
29
- rspec-support (3.1.2)
30
- rubocop (0.63.1)
31
- jaro_winkler (~> 1.5.1)
32
- parallel (~> 1.10)
33
- parser (>= 2.5, != 2.5.1.1)
34
- powerpack (~> 0.1)
35
- rainbow (>= 2.2.2, < 4.0)
36
- ruby-progressbar (~> 1.7)
37
- unicode-display_width (~> 1.4.0)
38
- ruby-progressbar (1.10.0)
39
- unicode-display_width (1.4.1)
40
-
41
- PLATFORMS
42
- ruby
43
-
44
- DEPENDENCIES
45
- ansel!
46
- byebug
47
- rspec
48
- rubocop
49
-
50
- BUNDLED WITH
51
- 1.17.2
data/Gemfile.travis DELETED
@@ -1,7 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- gemspec
4
-
5
- group :development, :test do
6
- gem 'rspec'
7
- end
data/Gemfile.travis19 DELETED
@@ -1,7 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- gemspec
4
-
5
- group :development, :test do
6
- gem 'rspec'
7
- end
data/Rakefile DELETED
@@ -1,17 +0,0 @@
1
- # encoding: ascii-8bit
2
-
3
- require 'rubygems'
4
- require 'bundler/setup';
5
- Bundler.setup(:default, :development)
6
-
7
- require 'rspec/core/rake_task'
8
- RSpec::Core::RakeTask.new :spec do |t|
9
- t.rspec_opts = %w(--color)
10
- end
11
-
12
- task :default => :spec
13
-
14
- desc "Open an irb session preloaded with this library"
15
- task :console do
16
- sh "irb -rubygems -I lib -r ansel.rb"
17
- end