unicode 0.4.4.3-x86-mingw32 → 0.4.4.5-x86-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: a6cc6425a982b8d30c7a54ad59129dd1fc9e68cb
4
- data.tar.gz: e8b8ed2dca057dcaee487f04923ba2e6f85cc274
2
+ SHA256:
3
+ metadata.gz: bd102f4787a73d703bb42973bc393bda7ad71f85e5d2061b2492d2a860237170
4
+ data.tar.gz: 19f4958baa728fffeaab7316d52bb83484e33e9ab891243ce3498df3f5fab48e
5
5
  SHA512:
6
- metadata.gz: 45333294c623713453f872eb33fa85cfc2171c4fbaa8a02822d3f6f30312c8c3477b8ec42a2f0d348b3cf9460e27870252b200cb0f9e49d145d8e60c5e778ece
7
- data.tar.gz: ff8544c3720d769df83cb8d0a65a436d0580db3387ac21cadd2f4ce2c60868af3e68ecec0bd514de77404a44fda6ddf0b90a7b5da1fbc8ed63440ab0ab6cc85b
6
+ metadata.gz: 11f1f66d8e2f95963753900048cddf6d0c2537e2c5b7e46a9fa1dac6c087d894ee0182027f0efbcdbbfe52afafa1189b138f83b3b08e1c8ce450c9a9c32d6139
7
+ data.tar.gz: 144eac9b4f072ac34784e0752cd0bb51e32ae3847ae7e6688cbad2389b18f419bb6c3ceb6bc38300317f9e5075bf0e6e1b3d0531ce3ad2bc626f00674c2ea0cc
data/Rakefile CHANGED
@@ -10,9 +10,11 @@ gem_spec = eval(File.read(File.expand_path('../unicode.gemspec', __FILE__)))
10
10
 
11
11
  gem_task = Gem::PackageTask.new(gem_spec) {|pkg|}
12
12
 
13
+ platforms = %w[x86-mingw32 x86-mswin32-60]
14
+
13
15
  Rake::ExtensionTask.new('unicode_native', gem_spec) do |ext|
14
16
  ext.cross_compile = true
15
- ext.cross_platform = ['x86-mingw32', 'x86-mswin32-60']
17
+ ext.cross_platform = platforms
16
18
  ext.ext_dir = 'ext/unicode'
17
19
  ext.lib_dir = 'lib/unicode'
18
20
  end
@@ -20,7 +22,7 @@ end
20
22
  namespace :gem do
21
23
 
22
24
  desc 'Build all gem files'
23
- task :all => %w[clean gem gem:java gem:windows]
25
+ task all: %w[clean gem gem:java gem:windows]
24
26
 
25
27
  java_gem_spec = gem_spec.dup
26
28
  java_gem_spec.platform = 'java'
@@ -33,7 +35,7 @@ namespace :gem do
33
35
  java_gem_path = File.join(java_gem_dir, java_gem_file)
34
36
 
35
37
  desc "Build the gem file #{java_gem_file}"
36
- task :java => java_gem_path
38
+ task java: java_gem_path
37
39
 
38
40
  file java_gem_path => [java_gem_dir] + java_gem_spec.files do
39
41
  lib_file = 'lib/unicode.rb'
@@ -54,9 +56,10 @@ namespace :gem do
54
56
 
55
57
  desc 'Build native gems for Windows'
56
58
  task :windows do
57
- ENV['RUBY_CC_VERSION'] = '1.9.3:2.0.0:2.1.5:2.2.0'
58
- sh 'rake cross compile'
59
- sh 'rake cross native gem'
59
+ require 'rake_compiler_dock'
60
+ platforms.each { |platform|
61
+ RakeCompilerDock.sh "rake native:#{platform} gem", platform: platform
62
+ }
60
63
  end
61
64
 
62
65
  end
@@ -34,8 +34,9 @@ static rb_encoding* enc_out;
34
34
 
35
35
  inline static VALUE
36
36
  taintObject(VALUE src, VALUE obj) {
37
- if (OBJ_TAINTED(src))
38
- OBJ_TAINT(obj);
37
+ // deprecated: taintedness turned out to be a wrong idea
38
+ //if (OBJ_TAINTED(src))
39
+ // OBJ_TAINT(obj);
39
40
  return obj;
40
41
  }
41
42
  #define TO_(src, obj) (taintObject(src, obj))
@@ -994,8 +995,9 @@ typedef struct _get_categories_param {
994
995
  } get_categories_param;
995
996
 
996
997
  static VALUE
997
- get_categories_internal(get_categories_param* param)
998
+ get_categories_internal(VALUE param_value)
998
999
  {
1000
+ get_categories_param* param = (get_categories_param*)param_value;
999
1001
  WString* wstr = param->wstr;
1000
1002
  VALUE str = param->str;
1001
1003
  VALUE* catname = param->catname;
@@ -1018,8 +1020,9 @@ get_categories_internal(get_categories_param* param)
1018
1020
  }
1019
1021
 
1020
1022
  VALUE
1021
- get_categories_ensure(WString* wstr)
1023
+ get_categories_ensure(VALUE wstr_value)
1022
1024
  {
1025
+ WString* wstr = (WString*)wstr_value;
1023
1026
  WStr_free(wstr);
1024
1027
  return Qnil;
1025
1028
  }
@@ -1131,8 +1134,9 @@ typedef struct _get_text_elements_param {
1131
1134
  } get_text_elements_param;
1132
1135
 
1133
1136
  VALUE
1134
- get_text_elements_internal(get_text_elements_param* param)
1137
+ get_text_elements_internal(VALUE param_value)
1135
1138
  {
1139
+ get_text_elements_param* param = (get_text_elements_param*)param_value;
1136
1140
  WString* wstr = param->wstr;
1137
1141
  VALUE str = param->str;
1138
1142
  int start_pos;
@@ -1206,8 +1210,9 @@ get_text_elements_internal(get_text_elements_param* param)
1206
1210
  }
1207
1211
 
1208
1212
  VALUE
1209
- get_text_elements_ensure(WString* wstr)
1213
+ get_text_elements_ensure(VALUE wstr_value)
1210
1214
  {
1215
+ WString* wstr = (WString*)wstr_value;
1211
1216
  WStr_free(wstr);
1212
1217
  return Qnil;
1213
1218
  }
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
data/unicode.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{unicode}
5
- s.version = "0.4.4.3"
5
+ s.version = "0.4.4.5"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = [%q{Yoshida Masato}]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unicode
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.4.3
4
+ version: 0.4.4.5
5
5
  platform: x86-mingw32
6
6
  authors:
7
7
  - Yoshida Masato
@@ -27,10 +27,14 @@ files:
27
27
  - ext/unicode/wstring.c
28
28
  - ext/unicode/wstring.h
29
29
  - lib/unicode.rb
30
- - lib/unicode/1.9/unicode_native.so
31
- - lib/unicode/2.0/unicode_native.so
32
- - lib/unicode/2.1/unicode_native.so
33
- - lib/unicode/2.2/unicode_native.so
30
+ - lib/unicode/2.4/unicode_native.so
31
+ - lib/unicode/2.5/unicode_native.so
32
+ - lib/unicode/2.6/unicode_native.so
33
+ - lib/unicode/2.7/unicode_native.so
34
+ - lib/unicode/3.0/unicode_native.so
35
+ - lib/unicode/3.1/unicode_native.so
36
+ - lib/unicode/3.2/unicode_native.so
37
+ - lib/unicode/3.3/unicode_native.so
34
38
  - test/test.rb
35
39
  - tools/README
36
40
  - tools/mkunidata.rb
@@ -48,15 +52,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
48
52
  requirements:
49
53
  - - ">="
50
54
  - !ruby/object:Gem::Version
51
- version: '0'
55
+ version: '2.4'
56
+ - - "<"
57
+ - !ruby/object:Gem::Version
58
+ version: 3.4.dev
52
59
  required_rubygems_version: !ruby/object:Gem::Requirement
53
60
  requirements:
54
61
  - - ">="
55
62
  - !ruby/object:Gem::Version
56
63
  version: '0'
57
64
  requirements: []
58
- rubyforge_project:
59
- rubygems_version: 2.4.5
65
+ rubygems_version: 3.3.26
60
66
  signing_key:
61
67
  specification_version: 3
62
68
  summary: Unicode normalization library.
Binary file
Binary file
Binary file