unf 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +17 -0
- data/Gemfile +3 -14
- data/{LICENSE.txt → LICENSE} +1 -1
- data/README.md +1 -1
- data/Rakefile +2 -56
- data/lib/unf.rb +2 -0
- data/lib/unf/version.rb +3 -0
- data/test/test_unf.rb +1 -1
- data/unf.gemspec +22 -61
- metadata +34 -32
- data/.document +0 -5
- data/VERSION +0 -1
data/.gitignore
ADDED
data/Gemfile
CHANGED
@@ -1,15 +1,4 @@
|
|
1
|
-
source
|
2
|
-
# Add dependencies required to use your gem here.
|
3
|
-
# Example:
|
4
|
-
# gem "activesupport", ">= 2.3.5"
|
1
|
+
source 'https://rubygems.org'
|
5
2
|
|
6
|
-
|
7
|
-
|
8
|
-
# Add dependencies to develop your gem here.
|
9
|
-
# Include everything needed to run rake, tests, features, etc.
|
10
|
-
group :development do
|
11
|
-
gem "shoulda", ">= 0"
|
12
|
-
gem "bundler", "~> 1.0.0"
|
13
|
-
gem "jeweler", "~> 1.6.4"
|
14
|
-
gem "rcov", ">= 0"
|
15
|
-
end
|
3
|
+
# Specify your gem's dependencies in unf.gemspec
|
4
|
+
gemspec
|
data/{LICENSE.txt → LICENSE}
RENAMED
data/README.md
CHANGED
data/Rakefile
CHANGED
@@ -1,56 +1,2 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
require 'rubygems'
|
4
|
-
require 'bundler'
|
5
|
-
begin
|
6
|
-
Bundler.setup(:default, :development)
|
7
|
-
rescue Bundler::BundlerError => e
|
8
|
-
$stderr.puts e.message
|
9
|
-
$stderr.puts "Run `bundle install` to install missing gems"
|
10
|
-
exit e.status_code
|
11
|
-
end
|
12
|
-
require 'rake'
|
13
|
-
|
14
|
-
require 'jeweler'
|
15
|
-
Jeweler::Tasks.new do |gem|
|
16
|
-
# gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
|
17
|
-
gem.name = "unf"
|
18
|
-
gem.homepage = "http://github.com/knu/unf"
|
19
|
-
gem.license = "MIT"
|
20
|
-
gem.summary = %Q{A wrapper library to bring Unicode Normalization Form support to Ruby/JRuby}
|
21
|
-
gem.description = <<-'EOS'
|
22
|
-
This is a wrapper library to bring Unicode Normalization Form support
|
23
|
-
to Ruby/JRuby.
|
24
|
-
EOS
|
25
|
-
gem.email = "knu@idaemons.org"
|
26
|
-
gem.authors = ["Akinori MUSHA"]
|
27
|
-
# dependencies defined in Gemfile
|
28
|
-
end
|
29
|
-
Jeweler::RubygemsDotOrgTasks.new
|
30
|
-
|
31
|
-
require 'rake/testtask'
|
32
|
-
Rake::TestTask.new(:test) do |test|
|
33
|
-
test.libs << 'lib' << 'test'
|
34
|
-
test.pattern = 'test/**/test_*.rb'
|
35
|
-
test.verbose = true
|
36
|
-
end
|
37
|
-
|
38
|
-
require 'rcov/rcovtask'
|
39
|
-
Rcov::RcovTask.new do |test|
|
40
|
-
test.libs << 'test'
|
41
|
-
test.pattern = 'test/**/test_*.rb'
|
42
|
-
test.verbose = true
|
43
|
-
test.rcov_opts << '--exclude "gems/*"'
|
44
|
-
end
|
45
|
-
|
46
|
-
task :default => :test
|
47
|
-
|
48
|
-
require 'rake/rdoctask'
|
49
|
-
Rake::RDocTask.new do |rdoc|
|
50
|
-
version = File.exist?('VERSION') ? File.read('VERSION') : ""
|
51
|
-
|
52
|
-
rdoc.rdoc_dir = 'rdoc'
|
53
|
-
rdoc.title = "unf #{version}"
|
54
|
-
rdoc.rdoc_files.include('README*')
|
55
|
-
rdoc.rdoc_files.include('lib/**/*.rb')
|
56
|
-
end
|
1
|
+
#!/usr/bin/env rake
|
2
|
+
require "bundler/gem_tasks"
|
data/lib/unf.rb
CHANGED
data/lib/unf/version.rb
ADDED
data/test/test_unf.rb
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
require 'helper'
|
3
3
|
require 'pathname'
|
4
4
|
|
5
|
-
class
|
5
|
+
class TestUNF < Test::Unit::TestCase
|
6
6
|
should "raise ArgumentError if an unknown normalization form is given" do
|
7
7
|
normalizer = UNF::Normalizer.new
|
8
8
|
assert_raises(ArgumentError) { normalizer.normalize("が", :nfck) }
|
data/unf.gemspec
CHANGED
@@ -1,67 +1,28 @@
|
|
1
|
-
# Generated by jeweler
|
2
|
-
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
1
|
# -*- encoding: utf-8 -*-
|
2
|
+
require File.expand_path('../lib/unf/version', __FILE__)
|
5
3
|
|
6
|
-
Gem::Specification.new do |
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
s.authors = [%q{Akinori MUSHA}]
|
12
|
-
s.date = %q{2011-12-09}
|
13
|
-
s.description = %q{This is a wrapper library to bring Unicode Normalization Form support
|
4
|
+
Gem::Specification.new do |gem|
|
5
|
+
gem.authors = ["Akinori MUSHA"]
|
6
|
+
gem.email = ["knu@idaemons.org"]
|
7
|
+
gem.description = <<-'EOS'
|
8
|
+
This is a wrapper library to bring Unicode Normalization Form support
|
14
9
|
to Ruby/JRuby.
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
"README.md"
|
20
|
-
]
|
21
|
-
s.files = [
|
22
|
-
".document",
|
23
|
-
"Gemfile",
|
24
|
-
"LICENSE.txt",
|
25
|
-
"README.md",
|
26
|
-
"Rakefile",
|
27
|
-
"VERSION",
|
28
|
-
"lib/unf.rb",
|
29
|
-
"lib/unf/normalizer.rb",
|
30
|
-
"lib/unf/normalizer_cruby.rb",
|
31
|
-
"lib/unf/normalizer_jruby.rb",
|
32
|
-
"test/helper.rb",
|
33
|
-
"test/normalization-test.txt",
|
34
|
-
"test/test_unf.rb",
|
35
|
-
"unf.gemspec"
|
36
|
-
]
|
37
|
-
s.homepage = %q{http://github.com/knu/unf}
|
38
|
-
s.licenses = [%q{MIT}]
|
39
|
-
s.require_paths = [%q{lib}]
|
40
|
-
s.rubygems_version = %q{1.8.5}
|
41
|
-
s.summary = %q{A wrapper library to bring Unicode Normalization Form support to Ruby/JRuby}
|
10
|
+
EOS
|
11
|
+
gem.summary = %q{A wrapper library to bring Unicode Normalization Form support to Ruby/JRuby}
|
12
|
+
gem.homepage = "https://github.com/knu/ruby-unf"
|
13
|
+
gem.platform = defined?(JRUBY_VERSION) ? 'jruby' : Gem::Platform::RUBY
|
42
14
|
|
43
|
-
|
44
|
-
|
15
|
+
gem.files = `git ls-files`.split("\n")
|
16
|
+
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
17
|
+
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
18
|
+
gem.name = "unf"
|
19
|
+
gem.require_paths = ["lib"]
|
20
|
+
gem.version = UNF::VERSION
|
45
21
|
|
46
|
-
|
47
|
-
s.add_runtime_dependency(%q<unf_ext>, [">= 0"])
|
48
|
-
s.add_development_dependency(%q<shoulda>, [">= 0"])
|
49
|
-
s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
|
50
|
-
s.add_development_dependency(%q<jeweler>, ["~> 1.6.4"])
|
51
|
-
s.add_development_dependency(%q<rcov>, [">= 0"])
|
52
|
-
else
|
53
|
-
s.add_dependency(%q<unf_ext>, [">= 0"])
|
54
|
-
s.add_dependency(%q<shoulda>, [">= 0"])
|
55
|
-
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
56
|
-
s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
|
57
|
-
s.add_dependency(%q<rcov>, [">= 0"])
|
58
|
-
end
|
59
|
-
else
|
60
|
-
s.add_dependency(%q<unf_ext>, [">= 0"])
|
61
|
-
s.add_dependency(%q<shoulda>, [">= 0"])
|
62
|
-
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
63
|
-
s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
|
64
|
-
s.add_dependency(%q<rcov>, [">= 0"])
|
65
|
-
end
|
66
|
-
end
|
22
|
+
gem.add_dependency 'unf_ext', '>= 0' unless defined?(JRUBY_VERSION)
|
67
23
|
|
24
|
+
gem.add_development_dependency 'shoulda', '>= 0'
|
25
|
+
gem.add_development_dependency 'bundler', '~> 1.0.0'
|
26
|
+
gem.add_development_dependency 'jeweler', '~> 1.6.4'
|
27
|
+
gem.add_development_dependency 'rcov', '>= 0'
|
28
|
+
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: unf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 21
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 5
|
10
|
+
version: 0.0.5
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Akinori MUSHA
|
@@ -15,11 +15,12 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date:
|
18
|
+
date: 2012-03-04 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: unf_ext
|
22
|
-
|
22
|
+
prerelease: false
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
23
24
|
none: false
|
24
25
|
requirements:
|
25
26
|
- - ">="
|
@@ -29,11 +30,11 @@ dependencies:
|
|
29
30
|
- 0
|
30
31
|
version: "0"
|
31
32
|
type: :runtime
|
32
|
-
|
33
|
-
prerelease: false
|
33
|
+
version_requirements: *id001
|
34
34
|
- !ruby/object:Gem::Dependency
|
35
35
|
name: shoulda
|
36
|
-
|
36
|
+
prerelease: false
|
37
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
37
38
|
none: false
|
38
39
|
requirements:
|
39
40
|
- - ">="
|
@@ -43,11 +44,11 @@ dependencies:
|
|
43
44
|
- 0
|
44
45
|
version: "0"
|
45
46
|
type: :development
|
46
|
-
|
47
|
-
prerelease: false
|
47
|
+
version_requirements: *id002
|
48
48
|
- !ruby/object:Gem::Dependency
|
49
49
|
name: bundler
|
50
|
-
|
50
|
+
prerelease: false
|
51
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
51
52
|
none: false
|
52
53
|
requirements:
|
53
54
|
- - ~>
|
@@ -59,11 +60,11 @@ dependencies:
|
|
59
60
|
- 0
|
60
61
|
version: 1.0.0
|
61
62
|
type: :development
|
62
|
-
|
63
|
-
prerelease: false
|
63
|
+
version_requirements: *id003
|
64
64
|
- !ruby/object:Gem::Dependency
|
65
65
|
name: jeweler
|
66
|
-
|
66
|
+
prerelease: false
|
67
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
67
68
|
none: false
|
68
69
|
requirements:
|
69
70
|
- - ~>
|
@@ -75,11 +76,11 @@ dependencies:
|
|
75
76
|
- 4
|
76
77
|
version: 1.6.4
|
77
78
|
type: :development
|
78
|
-
|
79
|
-
prerelease: false
|
79
|
+
version_requirements: *id004
|
80
80
|
- !ruby/object:Gem::Dependency
|
81
81
|
name: rcov
|
82
|
-
|
82
|
+
prerelease: false
|
83
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
83
84
|
none: false
|
84
85
|
requirements:
|
85
86
|
- - ">="
|
@@ -89,38 +90,37 @@ dependencies:
|
|
89
90
|
- 0
|
90
91
|
version: "0"
|
91
92
|
type: :development
|
92
|
-
|
93
|
-
prerelease: false
|
93
|
+
version_requirements: *id005
|
94
94
|
description: |
|
95
95
|
This is a wrapper library to bring Unicode Normalization Form support
|
96
96
|
to Ruby/JRuby.
|
97
97
|
|
98
|
-
email:
|
98
|
+
email:
|
99
|
+
- knu@idaemons.org
|
99
100
|
executables: []
|
100
101
|
|
101
102
|
extensions: []
|
102
103
|
|
103
|
-
extra_rdoc_files:
|
104
|
-
|
105
|
-
- README.md
|
104
|
+
extra_rdoc_files: []
|
105
|
+
|
106
106
|
files:
|
107
|
-
- .
|
107
|
+
- .gitignore
|
108
108
|
- Gemfile
|
109
|
-
- LICENSE
|
109
|
+
- LICENSE
|
110
110
|
- README.md
|
111
111
|
- Rakefile
|
112
|
-
- VERSION
|
113
112
|
- lib/unf.rb
|
114
113
|
- lib/unf/normalizer.rb
|
115
114
|
- lib/unf/normalizer_cruby.rb
|
116
115
|
- lib/unf/normalizer_jruby.rb
|
116
|
+
- lib/unf/version.rb
|
117
117
|
- test/helper.rb
|
118
118
|
- test/normalization-test.txt
|
119
119
|
- test/test_unf.rb
|
120
120
|
- unf.gemspec
|
121
|
-
homepage:
|
122
|
-
licenses:
|
123
|
-
|
121
|
+
homepage: https://github.com/knu/ruby-unf
|
122
|
+
licenses: []
|
123
|
+
|
124
124
|
post_install_message:
|
125
125
|
rdoc_options: []
|
126
126
|
|
@@ -147,9 +147,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
147
147
|
requirements: []
|
148
148
|
|
149
149
|
rubyforge_project:
|
150
|
-
rubygems_version: 1.8.
|
150
|
+
rubygems_version: 1.8.15
|
151
151
|
signing_key:
|
152
152
|
specification_version: 3
|
153
153
|
summary: A wrapper library to bring Unicode Normalization Form support to Ruby/JRuby
|
154
|
-
test_files:
|
155
|
-
|
154
|
+
test_files:
|
155
|
+
- test/helper.rb
|
156
|
+
- test/normalization-test.txt
|
157
|
+
- test/test_unf.rb
|
data/.document
DELETED
data/VERSION
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
0.0.4
|