unf 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,17 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
data/Gemfile CHANGED
@@ -1,15 +1,4 @@
1
- source "http://rubygems.org"
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
- gem "unf_ext", :platforms => [:ruby, :mingw, :mswin] # !JRuby
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
@@ -1,4 +1,4 @@
1
- Copyright (c) 2011 Akinori MUSHA
1
+ Copyright (c) 2011, 2012 Akinori MUSHA
2
2
 
3
3
  All rights reserved.
4
4
 
data/README.md CHANGED
@@ -33,7 +33,7 @@ Installation
33
33
  License
34
34
  -------
35
35
 
36
- Copyright (c) 2011 Akinori MUSHA
36
+ Copyright (c) 2011, 2012 Akinori MUSHA
37
37
 
38
38
  Licensed under the 2-clause BSD license.
39
39
  See `LICENSE` for details.
data/Rakefile CHANGED
@@ -1,56 +1,2 @@
1
- # encoding: utf-8
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
@@ -1,3 +1,5 @@
1
+ require 'unf/version'
2
+
1
3
  module UNF
2
4
  autoload :Normalizer, 'unf/normalizer'
3
5
  end
@@ -0,0 +1,3 @@
1
+ module UNF
2
+ VERSION = '0.0.5'
3
+ end
@@ -2,7 +2,7 @@
2
2
  require 'helper'
3
3
  require 'pathname'
4
4
 
5
- class TestUnf < Test::Unit::TestCase
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) }
@@ -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 |s|
7
- s.name = %q{unf}
8
- s.version = "0.0.4"
9
-
10
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
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
- s.email = %q{knu@idaemons.org}
17
- s.extra_rdoc_files = [
18
- "LICENSE.txt",
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
- if s.respond_to? :specification_version then
44
- s.specification_version = 3
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
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
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: 23
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 4
10
- version: 0.0.4
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: 2011-12-09 00:00:00 Z
18
+ date: 2012-03-04 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: unf_ext
22
- version_requirements: &id001 !ruby/object:Gem::Requirement
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
- requirement: *id001
33
- prerelease: false
33
+ version_requirements: *id001
34
34
  - !ruby/object:Gem::Dependency
35
35
  name: shoulda
36
- version_requirements: &id002 !ruby/object:Gem::Requirement
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
- requirement: *id002
47
- prerelease: false
47
+ version_requirements: *id002
48
48
  - !ruby/object:Gem::Dependency
49
49
  name: bundler
50
- version_requirements: &id003 !ruby/object:Gem::Requirement
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
- requirement: *id003
63
- prerelease: false
63
+ version_requirements: *id003
64
64
  - !ruby/object:Gem::Dependency
65
65
  name: jeweler
66
- version_requirements: &id004 !ruby/object:Gem::Requirement
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
- requirement: *id004
79
- prerelease: false
79
+ version_requirements: *id004
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: rcov
82
- version_requirements: &id005 !ruby/object:Gem::Requirement
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
- requirement: *id005
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: knu@idaemons.org
98
+ email:
99
+ - knu@idaemons.org
99
100
  executables: []
100
101
 
101
102
  extensions: []
102
103
 
103
- extra_rdoc_files:
104
- - LICENSE.txt
105
- - README.md
104
+ extra_rdoc_files: []
105
+
106
106
  files:
107
- - .document
107
+ - .gitignore
108
108
  - Gemfile
109
- - LICENSE.txt
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: http://github.com/knu/unf
122
- licenses:
123
- - MIT
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.5
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
@@ -1,5 +0,0 @@
1
- lib/**/*.rb
2
- bin/*
3
- -
4
- features/**/*.feature
5
- LICENSE.txt
data/VERSION DELETED
@@ -1 +0,0 @@
1
- 0.0.4