unf_ext 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,19 @@
1
+ *.gem
2
+ *.rbc
3
+ *.so
4
+ .bundle
5
+ .config
6
+ .yardoc
7
+ Gemfile.lock
8
+ InstalledFiles
9
+ _yardoc
10
+ coverage
11
+ doc/
12
+ lib/bundler/man
13
+ ext/*/Makefile
14
+ pkg
15
+ rdoc
16
+ spec/reports
17
+ test/tmp
18
+ test/version_tmp
19
+ tmp
data/Gemfile CHANGED
@@ -1,14 +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
- # Add dependencies to develop your gem here.
7
- # Include everything needed to run rake, tests, features, etc.
8
- group :development do
9
- gem "shoulda", ">= 0"
10
- gem "bundler", "~> 1.1.3"
11
- gem "jeweler", "~> 1.6.4"
12
- # gem "rcov", ">= 0"
13
- gem "rake-compiler", ">= 0.7.9"
14
- end
3
+ # Specify your gem's dependencies in ruby-unf_ext.gemspec
4
+ gemspec
@@ -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 Akinori MUSHA <knu@idaemons.org> (extended Ruby support)
4
+ Copyright (c) 2011, 2012, 2013 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
@@ -52,7 +52,7 @@ License
52
52
  -------
53
53
 
54
54
  Copyright (c) 2010 Takeru Ohta
55
- Copyright (c) 2011 Akinori MUSHA
55
+ Copyright (c) 2011, 2012, 2013 Akinori MUSHA
56
56
 
57
57
  Licensed under the MIT license.
58
58
  See `LICENSE` for details.
data/Rakefile CHANGED
@@ -1,65 +1,19 @@
1
- # encoding: utf-8
1
+ # -*- coding: utf-8 -*-
2
+ require 'bundler/gem_tasks'
2
3
 
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_ext"
18
- gem.homepage = "http://github.com/knu/ruby-unf_ext"
19
- gem.license = "MIT"
20
- gem.summary = %Q{Unicode Normalization Form support library for CRuby}
21
- gem.description = %Q{Unicode Normalization Form support library for CRuby}
22
- gem.email = "knu@idaemons.org"
23
- gem.authors = ["Takeru Ohta", "Akinori MUSHA"]
24
- # dependencies defined in Gemfile
25
- end
26
- Jeweler::RubygemsDotOrgTasks.new
27
-
28
- def generated_gemspec
29
- eval(File.read(Rake.application.jeweler.gemspec_helper.path))
30
- rescue
31
- nil
32
- end
4
+ gemspec = Bundler::GemHelper.gemspec
33
5
 
34
6
  require 'rake/extensiontask'
35
- Rake::ExtensionTask.new('unf_ext', generated_gemspec) do |ext|
7
+ Rake::ExtensionTask.new('unf_ext', gemspec) do |ext|
36
8
  ext.cross_compile = true
37
9
  ext.cross_platform = 'x86-mingw32'
38
10
  end
39
11
 
40
12
  require 'rake/testtask'
41
13
  Rake::TestTask.new(:test) do |test|
42
- test.libs << 'lib' << 'test'
43
- test.pattern = FileList['test/**/test_*.rb']
14
+ test.libs << 'test'
15
+ test.test_files = gemspec.test_files
44
16
  test.verbose = true
45
17
  end
46
18
 
47
- #require 'rcov/rcovtask'
48
- #Rcov::RcovTask.new do |test|
49
- # test.libs << 'test'
50
- # test.pattern = FileList['test/**/test_*.rb']
51
- # test.verbose = true
52
- # test.rcov_opts << '--exclude "gems/*"'
53
- #end
54
-
55
19
  task :default => :test
56
-
57
- require 'rake/rdoctask'
58
- Rake::RDocTask.new do |rdoc|
59
- version = File.exist?('VERSION') ? File.read('VERSION') : ""
60
-
61
- rdoc.rdoc_dir = 'rdoc'
62
- rdoc.title = "unf_ext #{version}"
63
- rdoc.rdoc_files.include('README*')
64
- rdoc.rdoc_files.include('lib/**/*.rb')
65
- end
@@ -0,0 +1,5 @@
1
+ module UNF
2
+ class Normalizer
3
+ VERSION = "0.0.6"
4
+ end
5
+ end
@@ -1,68 +1,32 @@
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
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'unf_ext/version'
5
5
 
6
- Gem::Specification.new do |s|
7
- s.name = "unf_ext"
8
- s.version = "0.0.5"
6
+ Gem::Specification.new do |gem|
7
+ gem.name = "unf_ext"
8
+ gem.version = UNF::Normalizer::VERSION
9
+ gem.authors = ["Takeru Ohta", "Akinori MUSHA"]
10
+ gem.email = ["knu@idaemons.org"]
11
+ gem.description = %q{Unicode Normalization Form support library for CRuby}
12
+ gem.summary = %q{Unicode Normalization Form support library for CRuby}
13
+ gem.homepage = "https://github.com/knu/ruby-unf_ext"
14
+ gem.licenses = ["MIT"]
9
15
 
10
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["Takeru Ohta", "Akinori MUSHA"]
12
- s.date = "2012-05-30"
13
- s.description = "Unicode Normalization Form support library for CRuby"
14
- s.email = "knu@idaemons.org"
15
- s.extensions = ["ext/unf_ext/extconf.rb"]
16
- s.extra_rdoc_files = [
16
+ gem.files = `git ls-files`.split($/)
17
+ gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
18
+ gem.test_files = gem.files.grep(%r{^(test|spec|features)/}).grep(%r{/test_[^/]+\.rb$})
19
+ gem.require_paths = ["lib"]
20
+ gem.extensions = ["ext/unf_ext/extconf.rb"]
21
+
22
+ gem.extra_rdoc_files = [
17
23
  "LICENSE.txt",
18
24
  "README.md"
19
25
  ]
20
- s.files = [
21
- ".document",
22
- "Gemfile",
23
- "LICENSE.txt",
24
- "README.md",
25
- "Rakefile",
26
- "VERSION",
27
- "ext/unf_ext/extconf.rb",
28
- "ext/unf_ext/unf.cc",
29
- "ext/unf_ext/unf/normalizer.hh",
30
- "ext/unf_ext/unf/table.hh",
31
- "ext/unf_ext/unf/trie/char_stream.hh",
32
- "ext/unf_ext/unf/trie/node.hh",
33
- "ext/unf_ext/unf/trie/searcher.hh",
34
- "ext/unf_ext/unf/util.hh",
35
- "lib/unf_ext.rb",
36
- "test/helper.rb",
37
- "test/normalization-test.txt",
38
- "test/test_unf_ext.rb",
39
- "unf_ext.gemspec"
40
- ]
41
- s.homepage = "http://github.com/knu/ruby-unf_ext"
42
- s.licenses = ["MIT"]
43
- s.require_paths = ["lib"]
44
- s.rubygems_version = "1.8.23"
45
- s.summary = "Unicode Normalization Form support library for CRuby"
46
26
 
47
- if s.respond_to? :specification_version then
48
- s.specification_version = 3
27
+ gem.add_development_dependency("shoulda", [">= 0"])
28
+ gem.add_development_dependency("rdoc", ["> 2.4.2"])
29
+ gem.add_development_dependency("bundler", [">= 1.2"])
30
+ gem.add_development_dependency("rake-compiler", [">= 0.7.9"])
49
31
 
50
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
51
- s.add_development_dependency(%q<shoulda>, [">= 0"])
52
- s.add_development_dependency(%q<bundler>, ["~> 1.1.3"])
53
- s.add_development_dependency(%q<jeweler>, ["~> 1.6.4"])
54
- s.add_development_dependency(%q<rake-compiler>, [">= 0.7.9"])
55
- else
56
- s.add_dependency(%q<shoulda>, [">= 0"])
57
- s.add_dependency(%q<bundler>, ["~> 1.1.3"])
58
- s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
59
- s.add_dependency(%q<rake-compiler>, [">= 0.7.9"])
60
- end
61
- else
62
- s.add_dependency(%q<shoulda>, [">= 0"])
63
- s.add_dependency(%q<bundler>, ["~> 1.1.3"])
64
- s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
65
- s.add_dependency(%q<rake-compiler>, [">= 0.7.9"])
66
- end
67
32
  end
68
-
metadata CHANGED
@@ -1,101 +1,97 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: unf_ext
3
- version: !ruby/object:Gem::Version
4
- hash: 21
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.6
5
5
  prerelease:
6
- segments:
7
- - 0
8
- - 0
9
- - 5
10
- version: 0.0.5
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Takeru Ohta
14
9
  - Akinori MUSHA
15
10
  autorequire:
16
11
  bindir: bin
17
12
  cert_chain: []
18
-
19
- date: 2012-05-30 00:00:00 Z
20
- dependencies:
21
- - !ruby/object:Gem::Dependency
22
- prerelease: false
23
- type: :development
24
- requirement: &id001 !ruby/object:Gem::Requirement
25
- none: false
26
- requirements:
27
- - - ">="
28
- - !ruby/object:Gem::Version
29
- hash: 3
30
- segments:
31
- - 0
32
- version: "0"
33
- version_requirements: *id001
13
+ date: 2013-02-16 00:00:00.000000000 Z
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
34
16
  name: shoulda
35
- - !ruby/object:Gem::Dependency
17
+ requirement: !ruby/object:Gem::Requirement
18
+ none: false
19
+ requirements:
20
+ - - ! '>='
21
+ - !ruby/object:Gem::Version
22
+ version: '0'
23
+ type: :development
36
24
  prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ none: false
27
+ requirements:
28
+ - - ! '>='
29
+ - !ruby/object:Gem::Version
30
+ version: '0'
31
+ - !ruby/object:Gem::Dependency
32
+ name: rdoc
33
+ requirement: !ruby/object:Gem::Requirement
34
+ none: false
35
+ requirements:
36
+ - - ! '>'
37
+ - !ruby/object:Gem::Version
38
+ version: 2.4.2
37
39
  type: :development
38
- requirement: &id002 !ruby/object:Gem::Requirement
40
+ prerelease: false
41
+ version_requirements: !ruby/object:Gem::Requirement
39
42
  none: false
40
- requirements:
41
- - - ~>
42
- - !ruby/object:Gem::Version
43
- hash: 21
44
- segments:
45
- - 1
46
- - 1
47
- - 3
48
- version: 1.1.3
49
- version_requirements: *id002
43
+ requirements:
44
+ - - ! '>'
45
+ - !ruby/object:Gem::Version
46
+ version: 2.4.2
47
+ - !ruby/object:Gem::Dependency
50
48
  name: bundler
51
- - !ruby/object:Gem::Dependency
52
- prerelease: false
53
- type: :development
54
- requirement: &id003 !ruby/object:Gem::Requirement
49
+ requirement: !ruby/object:Gem::Requirement
55
50
  none: false
56
- requirements:
57
- - - ~>
58
- - !ruby/object:Gem::Version
59
- hash: 7
60
- segments:
61
- - 1
62
- - 6
63
- - 4
64
- version: 1.6.4
65
- version_requirements: *id003
66
- name: jeweler
67
- - !ruby/object:Gem::Dependency
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '1.2'
55
+ type: :development
68
56
  prerelease: false
57
+ version_requirements: !ruby/object:Gem::Requirement
58
+ none: false
59
+ requirements:
60
+ - - ! '>='
61
+ - !ruby/object:Gem::Version
62
+ version: '1.2'
63
+ - !ruby/object:Gem::Dependency
64
+ name: rake-compiler
65
+ requirement: !ruby/object:Gem::Requirement
66
+ none: false
67
+ requirements:
68
+ - - ! '>='
69
+ - !ruby/object:Gem::Version
70
+ version: 0.7.9
69
71
  type: :development
70
- requirement: &id004 !ruby/object:Gem::Requirement
72
+ prerelease: false
73
+ version_requirements: !ruby/object:Gem::Requirement
71
74
  none: false
72
- requirements:
73
- - - ">="
74
- - !ruby/object:Gem::Version
75
- hash: 17
76
- segments:
77
- - 0
78
- - 7
79
- - 9
75
+ requirements:
76
+ - - ! '>='
77
+ - !ruby/object:Gem::Version
80
78
  version: 0.7.9
81
- version_requirements: *id004
82
- name: rake-compiler
83
79
  description: Unicode Normalization Form support library for CRuby
84
- email: knu@idaemons.org
80
+ email:
81
+ - knu@idaemons.org
85
82
  executables: []
86
-
87
- extensions:
83
+ extensions:
88
84
  - ext/unf_ext/extconf.rb
89
- extra_rdoc_files:
85
+ extra_rdoc_files:
90
86
  - LICENSE.txt
91
87
  - README.md
92
- files:
88
+ files:
93
89
  - .document
90
+ - .gitignore
94
91
  - Gemfile
95
92
  - LICENSE.txt
96
93
  - README.md
97
94
  - Rakefile
98
- - VERSION
99
95
  - ext/unf_ext/extconf.rb
100
96
  - ext/unf_ext/unf.cc
101
97
  - ext/unf_ext/unf/normalizer.hh
@@ -105,42 +101,35 @@ files:
105
101
  - ext/unf_ext/unf/trie/searcher.hh
106
102
  - ext/unf_ext/unf/util.hh
107
103
  - lib/unf_ext.rb
104
+ - lib/unf_ext/version.rb
108
105
  - test/helper.rb
109
106
  - test/normalization-test.txt
110
107
  - test/test_unf_ext.rb
111
108
  - unf_ext.gemspec
112
- homepage: http://github.com/knu/ruby-unf_ext
113
- licenses:
109
+ homepage: https://github.com/knu/ruby-unf_ext
110
+ licenses:
114
111
  - MIT
115
112
  post_install_message:
116
113
  rdoc_options: []
117
-
118
- require_paths:
114
+ require_paths:
119
115
  - lib
120
- required_ruby_version: !ruby/object:Gem::Requirement
116
+ required_ruby_version: !ruby/object:Gem::Requirement
121
117
  none: false
122
- requirements:
123
- - - ">="
124
- - !ruby/object:Gem::Version
125
- hash: 3
126
- segments:
127
- - 0
128
- version: "0"
129
- required_rubygems_version: !ruby/object:Gem::Requirement
118
+ requirements:
119
+ - - ! '>='
120
+ - !ruby/object:Gem::Version
121
+ version: '0'
122
+ required_rubygems_version: !ruby/object:Gem::Requirement
130
123
  none: false
131
- requirements:
132
- - - ">="
133
- - !ruby/object:Gem::Version
134
- hash: 3
135
- segments:
136
- - 0
137
- version: "0"
124
+ requirements:
125
+ - - ! '>='
126
+ - !ruby/object:Gem::Version
127
+ version: '0'
138
128
  requirements: []
139
-
140
129
  rubyforge_project:
141
- rubygems_version: 1.8.23
130
+ rubygems_version: 1.8.24
142
131
  signing_key:
143
132
  specification_version: 3
144
133
  summary: Unicode Normalization Form support library for CRuby
145
- test_files: []
146
-
134
+ test_files:
135
+ - test/test_unf_ext.rb
data/VERSION DELETED
@@ -1 +0,0 @@
1
- 0.0.5