unicode 0.4.4.2 → 0.4.4.5

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: 6e7d90f7bef7b1f195712031da3eaee512809702
4
- data.tar.gz: d056307874ebd2b0690e43332a90e5c34ce85aed
2
+ SHA256:
3
+ metadata.gz: 72bf9153cb3f93efebe6abfa848238ebc37b42ab3e0b133e2f5fdbc6de50716b
4
+ data.tar.gz: a18db454577d61788e0951d3b57d365eea508ad91e76029f9fc70c00a6b1aad4
5
5
  SHA512:
6
- metadata.gz: 61ee55986f081caad1113ab57dd300881e8bd3fe8d95336739735d651804ba9e7494bb9befe63d12828135fffff1b3e0a09464e0e9cdeb0d0feb59c5d91b743c
7
- data.tar.gz: c59a73bf232c38ba337dae48d2308ac8a7d112453ffe5842b79cbd90fcbabc031b4f164ff7c81753f8ef638bd2834068f4af24953b0ed415440cae4b362a77fb
6
+ metadata.gz: a1727062e4ef7dbc4013ab8d6d88b4f0ab740fa181fa53137ae6dd9241275c3e3d62d12e3aa1f83825f5bd9c45cac4d39349fa5b4e83a0905b87eb57b64c263c
7
+ data.tar.gz: 96267c0b7bd29948ab2f4c9561e21bbcbfc59c93b4c06e50a191e39b7df012f1260a40f18f84fa0f9257a7ebb3ee55d693c04b56371d58556a234842ba0bc2ee
data/Rakefile CHANGED
@@ -20,7 +20,7 @@ end
20
20
  namespace :gem do
21
21
 
22
22
  desc 'Build all gem files'
23
- task :all => %w[clean gem gem:java gem:windows]
23
+ task all: %w[clean gem gem:java gem:windows]
24
24
 
25
25
  java_gem_spec = gem_spec.dup
26
26
  java_gem_spec.platform = 'java'
@@ -33,7 +33,7 @@ namespace :gem do
33
33
  java_gem_path = File.join(java_gem_dir, java_gem_file)
34
34
 
35
35
  desc "Build the gem file #{java_gem_file}"
36
- task :java => java_gem_path
36
+ task java: java_gem_path
37
37
 
38
38
  file java_gem_path => [java_gem_dir] + java_gem_spec.files do
39
39
  lib_file = 'lib/unicode.rb'
@@ -54,7 +54,7 @@ namespace :gem do
54
54
 
55
55
  desc 'Build native gems for Windows'
56
56
  task :windows do
57
- ENV['RUBY_CC_VERSION'] = '1.9.3:2.0.0:2.1.5'
57
+ ENV['RUBY_CC_VERSION'] = '1.9.3:2.0.0:2.1.5:2.2.2:2.3.0'
58
58
  sh 'rake cross compile'
59
59
  sh 'rake cross native gem'
60
60
  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
  }
data/lib/unicode.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  begin
2
- RUBY_VERSION =~ /(\d+.\d+)/
3
- require "unicode/#{$1}/unicode_native"
4
- rescue LoadError
2
+ require "unicode/#{RUBY_VERSION[/\d+.\d+/]}/unicode_native"
3
+ rescue LoadError => err
4
+ raise if err.respond_to?(:path) && !err.path
5
5
  require 'unicode/unicode_native'
6
6
  end
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.2"
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.2
4
+ version: 0.4.4.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yoshida Masato
@@ -52,8 +52,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
52
52
  - !ruby/object:Gem::Version
53
53
  version: '0'
54
54
  requirements: []
55
- rubyforge_project:
56
- rubygems_version: 2.4.4
55
+ rubygems_version: 3.3.26
57
56
  signing_key:
58
57
  specification_version: 3
59
58
  summary: Unicode normalization library.