characteristics 0.7.0 → 1.3.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: 8bd09e16bed3587eaa18057790766a6e720e3d25
4
- data.tar.gz: 0bb97a8df68aa447fce5b04750573ef9da8a7373
2
+ SHA256:
3
+ metadata.gz: 52d5c09bac185e905a98a3b1e7c78aaa76b44e4235d34a7990f8cf057c93a25e
4
+ data.tar.gz: f5a778f2276c1467fbe6be8e04bd6675a156f9df9c4719557bc3918b39aaf8b8
5
5
  SHA512:
6
- metadata.gz: '0519adb1524a00105cb7bc54b329aadac50ad2fd350bbe0fda9356474e038a52796ad6548cd3a33865b943f1fd66ae22c5c6bf0673c8528b31cfdf2b5296626e'
7
- data.tar.gz: 4a10cc4ec190ca4ed5fdf075449ce8d655182a70cc09faeb75e3805a02a0c7798b762901e6ff881723170f5a7bf51bc119c4af18c44be51c8fb803722db956f7
6
+ metadata.gz: ad26ac1547647198a679ad53fb36b83d680053d38986968980ca8e794d31cc00334f29e07d555cfee382fb6902d022a3cc69fdd5b849b9d4dddc0a4798d89d9e
7
+ data.tar.gz: 298b7e4cd6c2233de6f392254d737a070299b56dc5884750fe34255a1d4f141b0348ebd2bc180560cb6ed83dfb0f2719c3ad55eff0bdf84ef808d0f95813c327
@@ -1,5 +1,26 @@
1
1
  ## CHANGELOG
2
2
 
3
+ ### 1.3.0
4
+
5
+ * Unicode 13 (general categories)
6
+ * Relax Ruby version requirement to allow Ruby 3.0
7
+
8
+ ### 1.2.0
9
+
10
+ * Unicode 12 (general categories)
11
+
12
+ ### 1.1.0
13
+
14
+ * Unicode 11 (general categories)
15
+
16
+ ### 1.0.0
17
+
18
+ * Mark as production-ready, no API changes
19
+
20
+ ### 0.8.0
21
+
22
+ * Unicode 10 (general categories)
23
+
3
24
  ### 0.7.0
4
25
 
5
26
  * Add more Unicode properties
@@ -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
- # Characteristics [![[version]](https://badge.fury.io/rb/characteristics.svg)](http://badge.fury.io/rb/characteristics) [![[travis]](https://travis-ci.org/janlelis/characteristics.svg)](https://travis-ci.org/janlelis/characteristics)
1
+ # Characteristics [![[version]](https://badge.fury.io/rb/characteristics.svg)](https://badge.fury.io/rb/characteristics) [![[ci]](https://github.com/janlelis/characteristics/workflows/Test/badge.svg)](https://github.com/janlelis/characteristics/actions?query=workflow%3ATest)
2
2
 
3
3
  A Ruby library that provides additional info about characters:¹
4
4
 
@@ -8,7 +8,7 @@ A Ruby library that provides additional info about characters:¹
8
8
 
9
9
  Extra data is available for Unicode characters (see below).
10
10
 
11
- The [unibits](https://github.com/janlelis/unibits) and [uniscribe](https://github.com/janlelis/uniscribe) gems makes use of this data to visualize it accordingliy.
11
+ The [unibits](https://github.com/janlelis/unibits) and [uniscribe](https://github.com/janlelis/uniscribe) gems makes use of this data to visualize it accordingly.
12
12
 
13
13
  ¹ in the sense of [codepoints](https://en.wikipedia.org/wiki/Codepoint)
14
14
 
@@ -118,4 +118,4 @@ This flag is *true* only for special formatting characters, which are not contro
118
118
 
119
119
  ## MIT License
120
120
 
121
- Copyright (C) 2017 Jan Lelis <http://janlelis.com>. Released under the MIT license.
121
+ 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
 
@@ -5,10 +5,10 @@ require File.dirname(__FILE__) + "/lib/characteristics/version"
5
5
  Gem::Specification.new do |gem|
6
6
  gem.name = "characteristics"
7
7
  gem.version = Characteristics::VERSION
8
- gem.summary = "Basic character properties."
9
- gem.description = "A Ruby library which provides some basic information about how characters behave in different encodings."
8
+ gem.summary = "Basic character properties"
9
+ gem.description = "Provides basic information about how characters behave in different encodings"
10
10
  gem.authors = ["Jan Lelis"]
11
- gem.email = ["mail@janlelis.de"]
11
+ gem.email = ["hi@ruby.consulting.com"]
12
12
  gem.homepage = "https://github.com/janlelis/characteristics"
13
13
  gem.license = "MIT"
14
14
 
@@ -17,6 +17,6 @@ Gem::Specification.new do |gem|
17
17
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
18
18
  gem.require_paths = ["lib"]
19
19
 
20
- gem.required_ruby_version = "~> 2.0"
21
- gem.add_dependency 'unicode-categories', '~> 1.1', '>= 1.1.2'
20
+ gem.required_ruby_version = ">= 2.0"
21
+ gem.add_dependency 'unicode-categories', '~> 1.6'
22
22
  end
@@ -3,6 +3,9 @@
3
3
  require "unicode/categories"
4
4
 
5
5
  class UnicodeCharacteristics < Characteristics
6
+ # Note that this list is maintained by hand and might not cover the latest Unicode updates
7
+ # Please open an issue or pull request is you find another character that is rendered invisible:
8
+ # - https://github.com/janlelis/characteristics/issues/new
6
9
  BLANKS = [
7
10
  0x0009,
8
11
  0x0020,
@@ -46,8 +49,8 @@ class UnicodeCharacteristics < Characteristics
46
49
  0x206E,
47
50
  0x206F,
48
51
  0x3000,
49
- 0x3164,
50
52
  0x2800,
53
+ 0x3164,
51
54
  0xFEFF,
52
55
  0xFFA0,
53
56
  0x110B1,
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class Characteristics
4
- VERSION = "0.7.0".freeze
5
- UNICODE_VERSION = "9.0.0".freeze
4
+ VERSION = "1.3.0"
5
+ UNICODE_VERSION = "13.0.0"
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: characteristics
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 1.3.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-03-31 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: unicode-categories
@@ -16,30 +16,22 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.1'
20
- - - ">="
21
- - !ruby/object:Gem::Version
22
- version: 1.1.2
19
+ version: '1.6'
23
20
  type: :runtime
24
21
  prerelease: false
25
22
  version_requirements: !ruby/object:Gem::Requirement
26
23
  requirements:
27
24
  - - "~>"
28
25
  - !ruby/object:Gem::Version
29
- version: '1.1'
30
- - - ">="
31
- - !ruby/object:Gem::Version
32
- version: 1.1.2
33
- description: A Ruby library which provides some basic information about how characters
34
- behave in different encodings.
26
+ version: '1.6'
27
+ description: Provides basic information about how characters behave in different encodings
35
28
  email:
36
- - mail@janlelis.de
29
+ - hi@ruby.consulting.com
37
30
  executables: []
38
31
  extensions: []
39
32
  extra_rdoc_files: []
40
33
  files:
41
34
  - ".gitignore"
42
- - ".travis.yml"
43
35
  - CHANGELOG.md
44
36
  - CODE_OF_CONDUCT.md
45
37
  - Gemfile
@@ -65,7 +57,7 @@ require_paths:
65
57
  - lib
66
58
  required_ruby_version: !ruby/object:Gem::Requirement
67
59
  requirements:
68
- - - "~>"
60
+ - - ">="
69
61
  - !ruby/object:Gem::Version
70
62
  version: '2.0'
71
63
  required_rubygems_version: !ruby/object:Gem::Requirement
@@ -74,10 +66,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
74
66
  - !ruby/object:Gem::Version
75
67
  version: '0'
76
68
  requirements: []
77
- rubyforge_project:
78
- rubygems_version: 2.6.8
69
+ rubygems_version: 3.2.3
79
70
  signing_key:
80
71
  specification_version: 4
81
- summary: Basic character properties.
72
+ summary: Basic character properties
82
73
  test_files:
83
74
  - spec/characteristics_spec.rb
@@ -1,22 +0,0 @@
1
- sudo: false
2
- language: ruby
3
-
4
- rvm:
5
- - ruby-head
6
- - 2.4.1
7
- - 2.3.4
8
- - 2.2
9
- - 2.1
10
- - 2.0
11
- - jruby-head
12
- - jruby-9.1.8.0
13
-
14
- cache:
15
- - bundler
16
-
17
- matrix:
18
- allow_failures:
19
- - rvm: jruby-head
20
- - rvm: ruby-head
21
- - rvm: 2.0
22
- # fast_finish: true