unf_ext 0.0.6-x86-mingw32 → 0.0.7.1-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/.travis.yml +18 -0
- data/CHANGELOG.md +20 -0
- data/LICENSE.txt +1 -1
- data/README.md +1 -1
- data/Rakefile +3 -2
- data/ext/unf_ext/extconf.rb +7 -2
- data/lib/unf_ext/version.rb +1 -1
- data/test/helper.rb +0 -1
- data/test/test_unf_ext.rb +2 -2
- data/unf_ext.gemspec +8 -2
- metadata +29 -20
checksums.yaml
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
---
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
MmY2ZDkzOTNlMWVkODJjMjY4YjhkNGVjOTMzODMwN2I0MmExMmYxZQ==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
NjliZmQ4OGRiNzMxMzQwOGUzZWU3ZjY3ODcxNmFlN2JmZjE0YjExZA==
|
7
|
+
SHA512:
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
ODE4NWIyYjNjMTk3ZTZhNTQzYzZhYjgxMzNmYTBkZjg5MjY4ZjNiMzU1YjVl
|
10
|
+
OTdjM2YwYTU3ODg3Y2E5MjU5NzBjNDc1NjlhYWIyNjE3YTY0OWMzZTQ2YmEz
|
11
|
+
ZmRjY2JhNjM5YmQwYThhMDVjZmMwNDg4ODIwMjVjNDFmYzY5ZTY=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
Yjg1ZDQ4OGNjMDkxNjk3MWMwOWZlMjMzYmQ5ZmZkZDRkMzdhMjE2ZjMyYjY4
|
14
|
+
NThjOGNkMTQwMTcwYzdjY2YxNmRlMzhkNDc4NDA0OWFkZWE0NjAxYmUxMWIy
|
15
|
+
ZjM0MDAwYjQ0Zjk3Y2M3NzdlMmUwNGM4Mzg0NGFhNDdkNzQ2ZjQ=
|
data/.travis.yml
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
language: ruby
|
2
|
+
rvm:
|
3
|
+
- 1.8.7
|
4
|
+
- ree
|
5
|
+
- 1.9.3
|
6
|
+
- 2.0.0
|
7
|
+
- 2.1.6
|
8
|
+
- 2.2.2
|
9
|
+
- ruby-head
|
10
|
+
- rbx-18mode
|
11
|
+
- rbx-19mode
|
12
|
+
matrix:
|
13
|
+
allow_failures:
|
14
|
+
- rvm: ruby-head
|
15
|
+
- rvm: rbx-18mode
|
16
|
+
- rvm: rbx-19mode
|
17
|
+
before_script:
|
18
|
+
- rake compile
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
## 0.0.7.1 (2015-04-18)
|
2
|
+
|
3
|
+
- Windows fat binary gems no longer require libstd++ to
|
4
|
+
run, which are statically linked.
|
5
|
+
|
6
|
+
- Add a fat binary gem for x64-mingw32 (64bit Windows).
|
7
|
+
|
8
|
+
- Windows fat binary gems now include binaries for Ruby up to 2.2.
|
9
|
+
|
10
|
+
## 0.0.6 (2013-02-16)
|
11
|
+
|
12
|
+
- Migrate from Jeweler to Bundler.
|
13
|
+
|
14
|
+
## 0.0.5 (2012-05-30)
|
15
|
+
|
16
|
+
- Fix a type error for strict compilers.
|
17
|
+
|
18
|
+
## 0.0.4 (2011-12-08)
|
19
|
+
|
20
|
+
- Release under the current name of `unf_ext`.
|
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
|
4
|
+
Copyright (c) 2011-2015 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
data/Rakefile
CHANGED
@@ -5,8 +5,9 @@ gemspec = Bundler::GemHelper.gemspec
|
|
5
5
|
|
6
6
|
require 'rake/extensiontask'
|
7
7
|
Rake::ExtensionTask.new('unf_ext', gemspec) do |ext|
|
8
|
-
|
9
|
-
|
8
|
+
ext.cross_compile = true
|
9
|
+
ext.cross_platform = %w[x86-mingw32 x64-mingw32]
|
10
|
+
ext.cross_config_options << '--with-ldflags="-static-libgcc"' << '--with-static-libstdc++'
|
10
11
|
end
|
11
12
|
|
12
13
|
require 'rake/testtask'
|
data/ext/unf_ext/extconf.rb
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
require 'mkmf'
|
2
|
-
|
3
|
-
|
2
|
+
|
3
|
+
if with_config('static-libstdc++')
|
4
|
+
$LDFLAGS << ' ' << `#{CONFIG['CC']} -print-file-name=libstdc++.a`.chomp
|
5
|
+
else
|
6
|
+
have_library('stdc++')
|
7
|
+
end
|
8
|
+
|
4
9
|
create_makefile 'unf_ext'
|
5
10
|
|
6
11
|
unless CONFIG['CXX']
|
data/lib/unf_ext/version.rb
CHANGED
data/test/helper.rb
CHANGED
data/test/test_unf_ext.rb
CHANGED
@@ -3,12 +3,12 @@ require 'helper'
|
|
3
3
|
require 'pathname'
|
4
4
|
|
5
5
|
class TestUnf < Test::Unit::TestCase
|
6
|
-
|
6
|
+
test "raise ArgumentError if an unknown normalization form is given" do
|
7
7
|
normalizer = UNF::Normalizer.new
|
8
8
|
assert_raises(ArgumentError) { normalizer.normalize("が", :nfck) }
|
9
9
|
end
|
10
10
|
|
11
|
-
|
11
|
+
test "pass all tests bundled with the original unf" do
|
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 !~ /^$/
|
data/unf_ext.gemspec
CHANGED
@@ -24,9 +24,15 @@ Gem::Specification.new do |gem|
|
|
24
24
|
"README.md"
|
25
25
|
]
|
26
26
|
|
27
|
-
|
27
|
+
if RUBY_VERSION < "1.9"
|
28
|
+
gem.add_development_dependency('i18n', '< 0.7.0')
|
29
|
+
# Cap dependency on activesupport with < 4.0 on behalf of
|
30
|
+
# shoulda-matchers to satisfy bundler.
|
31
|
+
gem.add_development_dependency("activesupport", ["< 4.0"])
|
32
|
+
end
|
33
|
+
gem.add_development_dependency("rake", [">= 0.9.2.2"])
|
28
34
|
gem.add_development_dependency("rdoc", ["> 2.4.2"])
|
29
35
|
gem.add_development_dependency("bundler", [">= 1.2"])
|
30
36
|
gem.add_development_dependency("rake-compiler", [">= 0.7.9"])
|
31
|
-
|
37
|
+
gem.add_development_dependency 'test-unit'
|
32
38
|
end
|
metadata
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: unf_ext
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
5
|
-
prerelease:
|
4
|
+
version: 0.0.7.1
|
6
5
|
platform: x86-mingw32
|
7
6
|
authors:
|
8
7
|
- Takeru Ohta
|
@@ -10,28 +9,25 @@ authors:
|
|
10
9
|
autorequire:
|
11
10
|
bindir: bin
|
12
11
|
cert_chain: []
|
13
|
-
date:
|
12
|
+
date: 2015-04-17 00:00:00.000000000 Z
|
14
13
|
dependencies:
|
15
14
|
- !ruby/object:Gem::Dependency
|
16
|
-
name:
|
15
|
+
name: rake
|
17
16
|
requirement: !ruby/object:Gem::Requirement
|
18
|
-
none: false
|
19
17
|
requirements:
|
20
18
|
- - ! '>='
|
21
19
|
- !ruby/object:Gem::Version
|
22
|
-
version:
|
20
|
+
version: 0.9.2.2
|
23
21
|
type: :development
|
24
22
|
prerelease: false
|
25
23
|
version_requirements: !ruby/object:Gem::Requirement
|
26
|
-
none: false
|
27
24
|
requirements:
|
28
25
|
- - ! '>='
|
29
26
|
- !ruby/object:Gem::Version
|
30
|
-
version:
|
27
|
+
version: 0.9.2.2
|
31
28
|
- !ruby/object:Gem::Dependency
|
32
29
|
name: rdoc
|
33
30
|
requirement: !ruby/object:Gem::Requirement
|
34
|
-
none: false
|
35
31
|
requirements:
|
36
32
|
- - ! '>'
|
37
33
|
- !ruby/object:Gem::Version
|
@@ -39,7 +35,6 @@ dependencies:
|
|
39
35
|
type: :development
|
40
36
|
prerelease: false
|
41
37
|
version_requirements: !ruby/object:Gem::Requirement
|
42
|
-
none: false
|
43
38
|
requirements:
|
44
39
|
- - ! '>'
|
45
40
|
- !ruby/object:Gem::Version
|
@@ -47,7 +42,6 @@ dependencies:
|
|
47
42
|
- !ruby/object:Gem::Dependency
|
48
43
|
name: bundler
|
49
44
|
requirement: !ruby/object:Gem::Requirement
|
50
|
-
none: false
|
51
45
|
requirements:
|
52
46
|
- - ! '>='
|
53
47
|
- !ruby/object:Gem::Version
|
@@ -55,7 +49,6 @@ dependencies:
|
|
55
49
|
type: :development
|
56
50
|
prerelease: false
|
57
51
|
version_requirements: !ruby/object:Gem::Requirement
|
58
|
-
none: false
|
59
52
|
requirements:
|
60
53
|
- - ! '>='
|
61
54
|
- !ruby/object:Gem::Version
|
@@ -63,7 +56,6 @@ dependencies:
|
|
63
56
|
- !ruby/object:Gem::Dependency
|
64
57
|
name: rake-compiler
|
65
58
|
requirement: !ruby/object:Gem::Requirement
|
66
|
-
none: false
|
67
59
|
requirements:
|
68
60
|
- - ! '>='
|
69
61
|
- !ruby/object:Gem::Version
|
@@ -71,11 +63,24 @@ dependencies:
|
|
71
63
|
type: :development
|
72
64
|
prerelease: false
|
73
65
|
version_requirements: !ruby/object:Gem::Requirement
|
74
|
-
none: false
|
75
66
|
requirements:
|
76
67
|
- - ! '>='
|
77
68
|
- !ruby/object:Gem::Version
|
78
69
|
version: 0.7.9
|
70
|
+
- !ruby/object:Gem::Dependency
|
71
|
+
name: test-unit
|
72
|
+
requirement: !ruby/object:Gem::Requirement
|
73
|
+
requirements:
|
74
|
+
- - ! '>='
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: '0'
|
77
|
+
type: :development
|
78
|
+
prerelease: false
|
79
|
+
version_requirements: !ruby/object:Gem::Requirement
|
80
|
+
requirements:
|
81
|
+
- - ! '>='
|
82
|
+
- !ruby/object:Gem::Version
|
83
|
+
version: '0'
|
79
84
|
description: Unicode Normalization Form support library for CRuby
|
80
85
|
email:
|
81
86
|
- knu@idaemons.org
|
@@ -87,6 +92,8 @@ extra_rdoc_files:
|
|
87
92
|
files:
|
88
93
|
- .document
|
89
94
|
- .gitignore
|
95
|
+
- .travis.yml
|
96
|
+
- CHANGELOG.md
|
90
97
|
- Gemfile
|
91
98
|
- LICENSE.txt
|
92
99
|
- README.md
|
@@ -99,38 +106,40 @@ files:
|
|
99
106
|
- ext/unf_ext/unf/trie/node.hh
|
100
107
|
- ext/unf_ext/unf/trie/searcher.hh
|
101
108
|
- ext/unf_ext/unf/util.hh
|
109
|
+
- lib/1.8/unf_ext.so
|
110
|
+
- lib/1.9/unf_ext.so
|
111
|
+
- lib/2.0/unf_ext.so
|
112
|
+
- lib/2.1/unf_ext.so
|
113
|
+
- lib/2.2/unf_ext.so
|
102
114
|
- lib/unf_ext.rb
|
103
115
|
- lib/unf_ext/version.rb
|
104
116
|
- test/helper.rb
|
105
117
|
- test/normalization-test.txt
|
106
118
|
- test/test_unf_ext.rb
|
107
119
|
- unf_ext.gemspec
|
108
|
-
- lib/1.8/unf_ext.so
|
109
|
-
- lib/1.9/unf_ext.so
|
110
120
|
homepage: https://github.com/knu/ruby-unf_ext
|
111
121
|
licenses:
|
112
122
|
- MIT
|
123
|
+
metadata: {}
|
113
124
|
post_install_message:
|
114
125
|
rdoc_options: []
|
115
126
|
require_paths:
|
116
127
|
- lib
|
117
128
|
required_ruby_version: !ruby/object:Gem::Requirement
|
118
|
-
none: false
|
119
129
|
requirements:
|
120
130
|
- - ! '>='
|
121
131
|
- !ruby/object:Gem::Version
|
122
132
|
version: '0'
|
123
133
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
124
|
-
none: false
|
125
134
|
requirements:
|
126
135
|
- - ! '>='
|
127
136
|
- !ruby/object:Gem::Version
|
128
137
|
version: '0'
|
129
138
|
requirements: []
|
130
139
|
rubyforge_project:
|
131
|
-
rubygems_version:
|
140
|
+
rubygems_version: 2.4.3
|
132
141
|
signing_key:
|
133
|
-
specification_version:
|
142
|
+
specification_version: 4
|
134
143
|
summary: Unicode Normalization Form support library for CRuby
|
135
144
|
test_files:
|
136
145
|
- test/test_unf_ext.rb
|