unf_ext 0.0.7.3 → 0.0.7.4

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
  SHA1:
3
- metadata.gz: 0abbd7aeedf1b4ded994562cc0f4b74aea3515c8
4
- data.tar.gz: 7dc2a3fb8efd24ce912f228a96f4eabefa121b22
3
+ metadata.gz: b010ee3223e79d023ad40e8528844286567cf39e
4
+ data.tar.gz: c7935a64d73ee2c5d4ac6009e806139bed2b8ba7
5
5
  SHA512:
6
- metadata.gz: 400ae9f9025237fb611959d66feb5d08415e10d2af91dc2bd9d052a95cd48e52b1dd2c2d60d8baf5ba89ff822c347f769caa3f5535815d0e053999fe40756f50
7
- data.tar.gz: a17daebdc455116e092e8794200e78a0f767f9536064b983574b016b6e79761905891df69da3bcf5c5ee6cfce70b934586b157526435a4dff5d6b988e6edfee1
6
+ metadata.gz: 64440f97edb8ef1e1ce1515e0c23e60ba64f4df72553f45b638b3981e1aa5224972a9f97c59d8a2c8d9475be30c5b2d7c96b477e467dd8bbfcbf9b1d215fc398
7
+ data.tar.gz: ee105de117dca9b5e901ce7edb3fa3734f3f744227a760db7973c972080519153e550ec0428f1235ab4f90c879401dd7d1dd03ef2dda03711dceabefec759fc3
data/.travis.yml CHANGED
@@ -7,7 +7,8 @@ rvm:
7
7
  - 2.0
8
8
  - 2.1
9
9
  - 2.2
10
- - 2.3.0
10
+ - 2.3.4
11
+ - 2.4.1
11
12
  - ruby-head
12
13
  - rbx-18mode
13
14
  - rbx-19mode
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.0.7.4 (2017-04-19)
2
+
3
+ - Fix build on ARM and GCC 6 again.
4
+
1
5
  ## 0.0.7.3 (2017-04-11)
2
6
 
3
7
  - Update the base Unicode version to 9.
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-2017 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
  -----------
@@ -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,
@@ -1,5 +1,5 @@
1
1
  module UNF
2
2
  class Normalizer
3
- VERSION = "0.0.7.3"
3
+ VERSION = "0.0.7.4"
4
4
  end
5
5
  end
data/test/test_unf_ext.rb CHANGED
@@ -12,30 +12,30 @@ class TestUnf < Test::Unit::TestCase
12
12
  normalizer = UNF::Normalizer.new
13
13
  open(Pathname(__FILE__).dirname + 'normalization-test.txt', 'r:utf-8').each_slice(6) { |lines|
14
14
  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)
15
+ str, nfc, nfd, nfkc, nfkd = lines
16
+ assert_equal nfd, normalizer.normalize(str, :nfd)
17
+ assert_equal nfd, normalizer.normalize(nfd, :nfd)
18
+ assert_equal nfd, normalizer.normalize(nfc, :nfd)
19
+ assert_equal nfkd, normalizer.normalize(nfkc, :nfd)
20
+ assert_equal nfkd, normalizer.normalize(nfkc, :nfd)
21
21
 
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)
22
+ assert_equal nfc, normalizer.normalize(str, :nfc)
23
+ assert_equal nfc, normalizer.normalize(nfd, :nfc)
24
+ assert_equal nfc, normalizer.normalize(nfc, :nfc)
25
+ assert_equal nfkc, normalizer.normalize(nfkc, :nfc)
26
+ assert_equal nfkc, normalizer.normalize(nfkd, :nfc)
27
27
 
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)
28
+ assert_equal nfkd, normalizer.normalize(str, :nfkd)
29
+ assert_equal nfkd, normalizer.normalize(nfd, :nfkd)
30
+ assert_equal nfkd, normalizer.normalize(nfc, :nfkd)
31
+ assert_equal nfkd, normalizer.normalize(nfkc, :nfkd)
32
+ assert_equal nfkd, normalizer.normalize(nfkd, :nfkd)
33
33
 
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)
34
+ assert_equal nfkc, normalizer.normalize(str, :nfkc)
35
+ assert_equal nfkc, normalizer.normalize(nfd, :nfkc)
36
+ assert_equal nfkc, normalizer.normalize(nfc, :nfkc)
37
+ assert_equal nfkc, normalizer.normalize(nfkc, :nfkc)
38
+ assert_equal nfkc, normalizer.normalize(nfkd, :nfkc)
39
39
  }
40
40
  end
41
41
  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.7.4
5
5
  platform: ruby
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: 2017-04-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
@@ -147,7 +147,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
147
147
  version: '0'
148
148
  requirements: []
149
149
  rubyforge_project:
150
- rubygems_version: 2.6.6
150
+ rubygems_version: 2.5.2
151
151
  signing_key:
152
152
  specification_version: 4
153
153
  summary: Unicode Normalization Form support library for CRuby