unf_ext 0.0.7.3-x64-mingw32 → 0.0.8-x64-mingw32

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: a51ef1a4bd9295ae45ec2a0bb62b749fb3580284
4
- data.tar.gz: fac7f3232cb66aca71c0698891309e64d3ff7afe
2
+ SHA256:
3
+ metadata.gz: a1518d4d6171a01f22fb1223abfc1f37f18733242ca06997738dc066a7cd2607
4
+ data.tar.gz: ecd9a868a98974ae66c2858a0326a51567e825065d0fcf93f7d1ca9007be017e
5
5
  SHA512:
6
- metadata.gz: 25e975726acdb3ae5e5ee77a801d143edb13f924350be3508f7409fbc5a5efce0f36c48c0d298ccb11e4fc64955ea10fbfb51333bc18fda87636f88a707ae897
7
- data.tar.gz: ffd6ed978341bf2af83cfd0be67829f83b0c729c5d4232321def9574fcb91b3bce8f2b13b2a87568ae6eae204bf60d1b06fc769f22313c045378d8be849c57cf
6
+ metadata.gz: 259d3d0b28a21f20572a888a967979c324ce3381b1a767bf38958f656f21299d481c23ac8b66033faff8b28644bed7dd53bd16ce1a64e1a0689c2f514a0e9880
7
+ data.tar.gz: d5390a8a94710720c92bfe51231bc621ad3cb05387df72cf7f97cfb0524a1462e5199042e327ca41b70701689bea0d3914a8b51804055868afca03640472b9c9
@@ -0,0 +1,49 @@
1
+ name: CI
2
+
3
+ on: [push, pull_request]
4
+
5
+ jobs:
6
+ build:
7
+ name: >-
8
+ ${{ matrix.os }} ${{ matrix.ruby }}
9
+
10
+ runs-on: ${{ matrix.os }}
11
+ strategy:
12
+ fail-fast: false
13
+ matrix:
14
+ os: [ ubuntu-20.04, macos-11.0, windows-2019 ]
15
+ ruby: [ 2.2, 2.3, 2.4, 2.5, 2.6, 2.7, 3.0, head ]
16
+ include:
17
+ - { os: windows-2019, ruby: mingw }
18
+ exclude:
19
+ - { os: macos-11.0, ruby: 2.2 }
20
+ - { os: macos-11.0, ruby: 2.3 }
21
+ - { os: windows-2019, ruby: head }
22
+
23
+ steps:
24
+ - name: repo checkout
25
+ uses: actions/checkout@v2
26
+
27
+ - name: load ruby cross-compilation toolkit
28
+ uses: MSP-Greg/setup-ruby-pkgs@v1
29
+ with:
30
+ ruby-version: ${{ matrix.ruby }}
31
+ mingw: _upgrade_
32
+
33
+ - name: bundle install
34
+ shell: pwsh
35
+ run: |
36
+ # update RubyGems in Ruby 2.2, bundle install
37
+ if ('${{ matrix.ruby }}' -lt '2.3') {
38
+ gem update --system 2.7.10 --no-document
39
+ }
40
+ bundle config set --local path .bundle/vendor
41
+ bundle install --jobs 4 --retry 3
42
+
43
+ - name: compile
44
+ timeout-minutes: 5
45
+ run: bundle exec rake compile
46
+
47
+ - name: test
48
+ timeout-minutes: 5
49
+ run: bundle exec rake test
data/CHANGELOG.md CHANGED
@@ -1,3 +1,27 @@
1
+ ## 0.0.8
2
+
3
+ - No functional change in the library code.
4
+ - Include Windows binaries for Ruby 3.0.
5
+ - Drop support for Ruby 2.1 and earlier.
6
+ - Replace Travis CI with Github Actions.
7
+ - Fix cross-build after upgrading rake-compiler/rake-compiler-dock to 1.1.1/1.1.0.
8
+
9
+ ## 0.0.7.7 (2020-03-30)
10
+
11
+ - Include Windows binaries for Ruby 2.7.
12
+
13
+ ## 0.0.7.6 (2019-03-19)
14
+
15
+ - Include Windows binaries for Ruby 2.6.
16
+
17
+ ## 0.0.7.5 (2018-02-06)
18
+
19
+ - Include Windows binaries for Ruby 2.5.
20
+
21
+ ## 0.0.7.4 (2017-04-19)
22
+
23
+ - Fix build on ARM and GCC 6 again.
24
+
1
25
  ## 0.0.7.3 (2017-04-11)
2
26
 
3
27
  - Update the base Unicode version to 9.
@@ -6,7 +30,7 @@
6
30
 
7
31
  ## 0.0.7.2 (2016-02-01)
8
32
 
9
- - Version bump just for adding Windows binaries for Ruby 2.3.
33
+ - Include Windows binaries for Ruby 2.3.
10
34
 
11
35
  ## 0.0.7.1 (2015-04-18)
12
36
 
data/LICENSE.txt CHANGED
@@ -1,7 +1,7 @@
1
1
  The MIT License
2
2
 
3
3
  Copyright (c) 2010 Takeru Ohta <phjgt308@gmail.com>
4
- Copyright (c) 2011-2015 Akinori MUSHA <knu@idaemons.org> (extended Ruby support)
4
+ Copyright (c) 2011-2018 Akinori MUSHA <knu@idaemons.org> (extended Ruby support)
5
5
 
6
6
  Permission is hereby granted, free of charge, to any person obtaining a copy
7
7
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
@@ -17,7 +17,7 @@ Description
17
17
  normalizer.normalize(string, :nfc) #=> string in NFC
18
18
  }
19
19
 
20
- * Compliant with Unicode 6.0
20
+ * Compliant with Unicode 9.0
21
21
 
22
22
  Requirement
23
23
  -----------
@@ -51,7 +51,7 @@ License
51
51
  -------
52
52
 
53
53
  Copyright (c) 2010-2017 Takeru Ohta
54
- Copyright (c) 2011-2017 Akinori MUSHA
54
+ Copyright (c) 2011-2018 Akinori MUSHA
55
55
 
56
56
  Licensed under the MIT license.
57
57
  See `LICENSE` for details.
data/Rakefile CHANGED
@@ -1,4 +1,3 @@
1
- # -*- coding: utf-8 -*-
2
1
  require 'bundler/gem_tasks'
3
2
 
4
3
  gemspec = Bundler::GemHelper.gemspec
@@ -13,13 +12,17 @@ end
13
12
  namespace :gem do
14
13
  task :native do
15
14
  require 'rake_compiler_dock'
16
- RakeCompilerDock.sh "(bundle --local --quiet || bundle) && rake cross native gem"
15
+ sh 'bundle package --all'
16
+ %w[
17
+ x64-mingw32
18
+ x86-mingw32
19
+ ].each do |plat|
20
+ RakeCompilerDock.sh "bundle --local && rake native:#{plat} gem", platform: plat
21
+ end
17
22
  end
18
-
19
- task :all => [:build, :native]
20
23
  end
21
24
 
22
- task :gems => :'gem:all'
25
+ task :gems => %i[build gem:native]
23
26
 
24
27
  require 'rake/testtask'
25
28
  Rake::TestTask.new(:test) do |test|
@@ -4,6 +4,26 @@ if with_config('static-libstdc++')
4
4
  $LDFLAGS << ' ' << `#{CONFIG['CC']} -print-file-name=libstdc++.a`.chomp
5
5
  else
6
6
  have_library('stdc++')
7
+
8
+ case RbConfig::CONFIG['host_os']
9
+ when /solaris(!?2.11)/
10
+ # Do a little trickery here to enable C++ standard on Solaris 11 if found.
11
+ # This also forces 64bit compilation mode.
12
+ $CXX = CONFIG['CXX']
13
+ $CXX << ' ' << '-m64'
14
+ $CFLAGS = CONFIG['CFLAGS'].gsub(/-std=c99/, '')
15
+ $CFLAGS << ' ' << '-m64 -std=c++11'
16
+ $CPPFLAGS = CONFIG['CFLAGS'].gsub(/-std=c99/, '')
17
+ $CPPFLAGS << ' ' << '-m64 -std=c++11'
18
+ $CXXFLAGS = CONFIG['CFLAGS'].gsub(/-std=c99/, '')
19
+ $CXXFLAGS << ' ' << '-m64 -std=c++11'
20
+ when /aix/
21
+ # Compiler flags necessary on AIX.
22
+ # rubocop:disable Style/GlobalVars
23
+ $CFLAGS << ' ' << '-D_ALL_SOURCE=1'
24
+ $CPPFLAGS << ' ' << '-D_ALL_SOURCE=1'
25
+ $CXXFLAGS << ' ' << '-D_ALL_SOURCE=1'
26
+ end
7
27
  end
8
28
 
9
29
  create_makefile 'unf_ext'
@@ -6365,7 +6365,7 @@ const unsigned NODES[]={
6365
6365
  0xFF000000,0xFF000000,0xFF000000,0xFF000000,0xFF000000,0xFF000000,0xFF000000,0xFF000000,0xFF000000,0xFF000000,
6366
6366
  0xFF000000,0xFF000000,0xFF000000};
6367
6367
 
6368
- const char STRINGS[]={
6368
+ const signed char STRINGS[]={
6369
6369
  -27,-113, -81, -27, -66,-105, -23,-123,-115, -27,-106, -74, -25,-108, -77, -26, -70,-128, -27,-112,
6370
6370
  -120, -25, -87, -70, -25, -90,-127, -26,-116,-121, -23,-127,-118, -26,-115,-107, -26,-118,-107, -26,
6371
6371
  -68,-108, -27,-112, -71, -27, -93, -80, -24, -78, -87, -25, -75,-126, -27,-120, -99, -26,-106, -80,
data/lib/2.3/unf_ext.so CHANGED
Binary file
data/lib/2.4/unf_ext.so CHANGED
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -1,5 +1,5 @@
1
1
  module UNF
2
2
  class Normalizer
3
- VERSION = "0.0.7.3"
3
+ VERSION = "0.0.8"
4
4
  end
5
5
  end
data/test/test_unf_ext.rb CHANGED
@@ -1,4 +1,3 @@
1
- # -*- coding: utf-8 -*-
2
1
  require 'helper'
3
2
  require 'pathname'
4
3
 
@@ -12,30 +11,30 @@ class TestUnf < Test::Unit::TestCase
12
11
  normalizer = UNF::Normalizer.new
13
12
  open(Pathname(__FILE__).dirname + 'normalization-test.txt', 'r:utf-8').each_slice(6) { |lines|
14
13
  flunk "broken test file" if lines.size != 6 || lines.pop !~ /^$/
15
- str, nfd, nfc, nfkd, nfkc = lines
16
- assert nfd, normalizer.normalize(str, :nfd)
17
- assert nfd, normalizer.normalize(nfd, :nfd)
18
- assert nfd, normalizer.normalize(nfc, :nfd)
19
- assert nfkd, normalizer.normalize(nfkc, :nfd)
20
- assert nfkd, normalizer.normalize(nfkc, :nfd)
14
+ str, nfc, nfd, nfkc, nfkd = lines
15
+ assert_equal nfd, normalizer.normalize(str, :nfd)
16
+ assert_equal nfd, normalizer.normalize(nfd, :nfd)
17
+ assert_equal nfd, normalizer.normalize(nfc, :nfd)
18
+ assert_equal nfkd, normalizer.normalize(nfkc, :nfd)
19
+ assert_equal nfkd, normalizer.normalize(nfkc, :nfd)
21
20
 
22
- assert nfc, normalizer.normalize(str, :nfd)
23
- assert nfc, normalizer.normalize(nfd, :nfc)
24
- assert nfc, normalizer.normalize(nfc, :nfc)
25
- assert nfkc, normalizer.normalize(nfkc, :nfc)
26
- assert nfkc, normalizer.normalize(nfkd, :nfc)
21
+ assert_equal nfc, normalizer.normalize(str, :nfc)
22
+ assert_equal nfc, normalizer.normalize(nfd, :nfc)
23
+ assert_equal nfc, normalizer.normalize(nfc, :nfc)
24
+ assert_equal nfkc, normalizer.normalize(nfkc, :nfc)
25
+ assert_equal nfkc, normalizer.normalize(nfkd, :nfc)
27
26
 
28
- assert nfkd, normalizer.normalize(str, :nfkd)
29
- assert nfkd, normalizer.normalize(nfd, :nfkd)
30
- assert nfkd, normalizer.normalize(nfc, :nfkd)
31
- assert nfkd, normalizer.normalize(nfkc, :nfkd)
32
- assert nfkd, normalizer.normalize(nfkd, :nfkd)
27
+ assert_equal nfkd, normalizer.normalize(str, :nfkd)
28
+ assert_equal nfkd, normalizer.normalize(nfd, :nfkd)
29
+ assert_equal nfkd, normalizer.normalize(nfc, :nfkd)
30
+ assert_equal nfkd, normalizer.normalize(nfkc, :nfkd)
31
+ assert_equal nfkd, normalizer.normalize(nfkd, :nfkd)
33
32
 
34
- assert nfkc, normalizer.normalize(str, :nfkc)
35
- assert nfkc, normalizer.normalize(nfd, :nfkc)
36
- assert nfkc, normalizer.normalize(nfc, :nfkc)
37
- assert nfkc, normalizer.normalize(nfkc, :nfkc)
38
- assert nfkc, normalizer.normalize(nfkd, :nfkc)
33
+ assert_equal nfkc, normalizer.normalize(str, :nfkc)
34
+ assert_equal nfkc, normalizer.normalize(nfd, :nfkc)
35
+ assert_equal nfkc, normalizer.normalize(nfc, :nfkc)
36
+ assert_equal nfkc, normalizer.normalize(nfkc, :nfkc)
37
+ assert_equal nfkc, normalizer.normalize(nfkd, :nfkc)
39
38
  }
40
39
  end
41
40
  end
data/unf_ext.gemspec CHANGED
@@ -1,4 +1,3 @@
1
- # -*- encoding: utf-8 -*-
2
1
  lib = File.expand_path('../lib', __FILE__)
3
2
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
3
  require 'unf_ext/version'
@@ -24,19 +23,12 @@ Gem::Specification.new do |gem|
24
23
  "README.md"
25
24
  ]
26
25
 
27
- if RUBY_VERSION < "1.9"
28
- gem.add_development_dependency("rake", [">= 0.9.2.2", "< 11"])
29
- gem.add_development_dependency('i18n', '< 0.7.0')
30
- # Cap dependency on activesupport with < 4.0 on behalf of
31
- # shoulda-matchers to satisfy bundler.
32
- gem.add_development_dependency("activesupport", ["< 4.0"])
33
- gem.add_development_dependency("test-unit", ["= 3.1.5"])
34
- else
35
- gem.add_development_dependency("rake", [">= 0.9.2.2"])
36
- gem.add_development_dependency("test-unit")
37
- end
26
+ gem.required_ruby_version = '>= 2.2'
27
+
28
+ gem.add_development_dependency("rake", [">= 0.9.2.2"])
29
+ gem.add_development_dependency("test-unit")
38
30
  gem.add_development_dependency("rdoc", ["> 2.4.2"])
39
31
  gem.add_development_dependency("bundler", [">= 1.2"])
40
- gem.add_development_dependency("rake-compiler", [">= 0.7.9"])
41
- gem.add_development_dependency("rake-compiler-dock", ["~> 0.6.0"])
32
+ gem.add_development_dependency("rake-compiler", [">= 1.1.1"])
33
+ gem.add_development_dependency("rake-compiler-dock", [">= 1.1.0"])
42
34
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unf_ext
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7.3
4
+ version: 0.0.8
5
5
  platform: x64-mingw32
6
6
  authors:
7
7
  - Takeru Ohta
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-04-11 00:00:00.000000000 Z
12
+ date: 2021-09-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
@@ -73,28 +73,28 @@ dependencies:
73
73
  requirements:
74
74
  - - ">="
75
75
  - !ruby/object:Gem::Version
76
- version: 0.7.9
76
+ version: 1.1.1
77
77
  type: :development
78
78
  prerelease: false
79
79
  version_requirements: !ruby/object:Gem::Requirement
80
80
  requirements:
81
81
  - - ">="
82
82
  - !ruby/object:Gem::Version
83
- version: 0.7.9
83
+ version: 1.1.1
84
84
  - !ruby/object:Gem::Dependency
85
85
  name: rake-compiler-dock
86
86
  requirement: !ruby/object:Gem::Requirement
87
87
  requirements:
88
- - - "~>"
88
+ - - ">="
89
89
  - !ruby/object:Gem::Version
90
- version: 0.6.0
90
+ version: 1.1.0
91
91
  type: :development
92
92
  prerelease: false
93
93
  version_requirements: !ruby/object:Gem::Requirement
94
94
  requirements:
95
- - - "~>"
95
+ - - ">="
96
96
  - !ruby/object:Gem::Version
97
- version: 0.6.0
97
+ version: 1.1.0
98
98
  description: Unicode Normalization Form support library for CRuby
99
99
  email:
100
100
  - knu@idaemons.org
@@ -105,8 +105,8 @@ extra_rdoc_files:
105
105
  - README.md
106
106
  files:
107
107
  - ".document"
108
+ - ".github/workflows/unf_ext.yml"
108
109
  - ".gitignore"
109
- - ".travis.yml"
110
110
  - CHANGELOG.md
111
111
  - Gemfile
112
112
  - LICENSE.txt
@@ -120,11 +120,12 @@ files:
120
120
  - ext/unf_ext/unf/trie/node.hh
121
121
  - ext/unf_ext/unf/trie/searcher.hh
122
122
  - ext/unf_ext/unf/util.hh
123
- - lib/2.0/unf_ext.so
124
- - lib/2.1/unf_ext.so
125
- - lib/2.2/unf_ext.so
126
123
  - lib/2.3/unf_ext.so
127
124
  - lib/2.4/unf_ext.so
125
+ - lib/2.5/unf_ext.so
126
+ - lib/2.6/unf_ext.so
127
+ - lib/2.7/unf_ext.so
128
+ - lib/3.0/unf_ext.so
128
129
  - lib/unf_ext.rb
129
130
  - lib/unf_ext/version.rb
130
131
  - test/helper.rb
@@ -143,18 +144,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
143
144
  requirements:
144
145
  - - ">="
145
146
  - !ruby/object:Gem::Version
146
- version: '2.0'
147
+ version: '2.3'
147
148
  - - "<"
148
149
  - !ruby/object:Gem::Version
149
- version: '2.5'
150
+ version: 3.1.dev
150
151
  required_rubygems_version: !ruby/object:Gem::Requirement
151
152
  requirements:
152
153
  - - ">="
153
154
  - !ruby/object:Gem::Version
154
155
  version: '0'
155
156
  requirements: []
156
- rubyforge_project:
157
- rubygems_version: 2.6.8
157
+ rubygems_version: 3.2.3
158
158
  signing_key:
159
159
  specification_version: 4
160
160
  summary: Unicode Normalization Form support library for CRuby
data/.travis.yml DELETED
@@ -1,22 +0,0 @@
1
- language: ruby
2
- sudo: false
3
- rvm:
4
- - 1.8.7
5
- - ree
6
- - 1.9.3
7
- - 2.0
8
- - 2.1
9
- - 2.2
10
- - 2.3.0
11
- - ruby-head
12
- - rbx-18mode
13
- - rbx-19mode
14
- matrix:
15
- allow_failures:
16
- - rvm: ruby-head
17
- - rvm: rbx-18mode
18
- - rvm: rbx-19mode
19
- before_install:
20
- - gem install bundler
21
- before_script:
22
- - rake compile
data/lib/2.0/unf_ext.so DELETED
Binary file
data/lib/2.1/unf_ext.so DELETED
Binary file
data/lib/2.2/unf_ext.so DELETED
Binary file