unicode 0.4.4.1-x86-mswin32-60 → 0.4.4.2-x86-mswin32-60
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +51 -14
- data/lib/unicode/1.9/unicode_native.so +0 -0
- data/lib/unicode/2.0/unicode_native.so +0 -0
- data/lib/unicode/2.1/unicode_native.so +0 -0
- data/unicode.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d854c44fcff39ef9fa52f0af65627cd313088aca
|
4
|
+
data.tar.gz: c06632c0201bd35038f5c8c4d07dc6f0bb9f7b16
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 321fd4e43963d10444c0d09af20439d0e26d20b2d834dcff27f77b3fd612e19c0c55bd5c7b962d2d2bb462f1c286dd71f83a18d0659f5c3d070337b7362491bf
|
7
|
+
data.tar.gz: 0bceca0779ee16695c10ed87f24558879d3eca6a6b2e4462bfaebe0ac78475496aeee6fcfde87b75102ffb7ebc8214e9b4b5e4d3e6d47152592e48b02419deb2
|
data/Rakefile
CHANGED
@@ -1,30 +1,67 @@
|
|
1
|
-
require
|
2
|
-
require
|
3
|
-
require
|
1
|
+
require 'rake/clean'
|
2
|
+
require 'rake/extensiontask'
|
3
|
+
require 'rubygems/package_task'
|
4
4
|
|
5
|
-
CLEAN <<
|
5
|
+
CLEAN << 'pkg' << 'tmp' << 'lib/unicode'
|
6
6
|
|
7
7
|
UPSTREAM_URL = 'http://www.yoshidam.net/unicode-%s.tar.gz'
|
8
8
|
|
9
|
-
gem_spec = eval(File.read(File.expand_path(
|
9
|
+
gem_spec = eval(File.read(File.expand_path('../unicode.gemspec', __FILE__)))
|
10
10
|
|
11
|
-
Gem::PackageTask.new(gem_spec) {|pkg|}
|
11
|
+
gem_task = Gem::PackageTask.new(gem_spec) {|pkg|}
|
12
12
|
|
13
13
|
Rake::ExtensionTask.new('unicode_native', gem_spec) do |ext|
|
14
14
|
ext.cross_compile = true
|
15
15
|
ext.cross_platform = ['x86-mingw32', 'x86-mswin32-60']
|
16
|
-
ext.ext_dir =
|
17
|
-
ext.lib_dir =
|
16
|
+
ext.ext_dir = 'ext/unicode'
|
17
|
+
ext.lib_dir = 'lib/unicode'
|
18
18
|
end
|
19
19
|
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
20
|
+
namespace :gem do
|
21
|
+
|
22
|
+
desc 'Build all gem files'
|
23
|
+
task :all => %w[clean gem gem:java gem:windows]
|
24
|
+
|
25
|
+
java_gem_spec = gem_spec.dup
|
26
|
+
java_gem_spec.platform = 'java'
|
27
|
+
java_gem_spec.extensions.clear
|
28
|
+
java_gem_spec.files.delete_if { |f| f.start_with?('ext/') }
|
29
|
+
|
30
|
+
directory java_gem_dir = gem_task.package_dir
|
31
|
+
|
32
|
+
java_gem_file = File.basename(java_gem_spec.cache_file)
|
33
|
+
java_gem_path = File.join(java_gem_dir, java_gem_file)
|
34
|
+
|
35
|
+
desc "Build the gem file #{java_gem_file}"
|
36
|
+
task :java => java_gem_path
|
37
|
+
|
38
|
+
file java_gem_path => [java_gem_dir] + java_gem_spec.files do
|
39
|
+
lib_file = 'lib/unicode.rb'
|
40
|
+
tmp_file = "#{lib_file}.tmp-#{$$}"
|
41
|
+
jrb_file = lib_file.sub('.', '-java.')
|
42
|
+
|
43
|
+
begin
|
44
|
+
mv lib_file, tmp_file
|
45
|
+
ln jrb_file, lib_file
|
46
|
+
|
47
|
+
Gem::Package.build(java_gem_spec)
|
48
|
+
|
49
|
+
mv java_gem_file, java_gem_dir
|
50
|
+
ensure
|
51
|
+
mv tmp_file, lib_file if File.exist?(tmp_file)
|
52
|
+
end
|
53
|
+
end
|
54
|
+
|
55
|
+
desc 'Build native gems for Windows'
|
56
|
+
task :windows do
|
57
|
+
ENV['RUBY_CC_VERSION'] = '1.9.3:2.0.0:2.1.5'
|
58
|
+
sh 'rake cross compile'
|
59
|
+
sh 'rake cross native gem'
|
60
|
+
end
|
61
|
+
|
25
62
|
end
|
26
63
|
|
27
|
-
desc
|
64
|
+
desc 'Update from upstream'
|
28
65
|
task :update, [:version] do |t, args|
|
29
66
|
require 'zlib'
|
30
67
|
require 'open-uri'
|
Binary file
|
Binary file
|
Binary file
|
data/unicode.gemspec
CHANGED
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.
|
4
|
+
version: 0.4.4.2
|
5
5
|
platform: x86-mswin32-60
|
6
6
|
authors:
|
7
7
|
- Yoshida Masato
|
@@ -55,7 +55,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
55
55
|
version: '0'
|
56
56
|
requirements: []
|
57
57
|
rubyforge_project:
|
58
|
-
rubygems_version: 2.
|
58
|
+
rubygems_version: 2.4.4
|
59
59
|
signing_key:
|
60
60
|
specification_version: 3
|
61
61
|
summary: Unicode normalization library.
|