charwidth 0.1.1 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 0b348719803e3e762056267c4f562cc2b88cd45d
4
+ data.tar.gz: 7f6367623657410b4deeb6b3927bfd983ae2d5c6
5
+ SHA512:
6
+ metadata.gz: 37bbf39dc106e747f4c0a8339e8c1bf58d9de55bea754680e719cbe149570783197cecdfec7a4a5fe5da03d0adf4b3efa6cda28915462d3263eb795bf253d99a
7
+ data.tar.gz: 73fe1f134bb17213ce8dd8859c4d96a4801593fa52445876eaaac0d407cbe178d8f159e834e21bbb05d362e3da6eaa746394a7d62afa10829008434d863b6e6a
data/.gitignore ADDED
@@ -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,13 +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 "rspec", "~> 2.3.0"
10
- gem "bundler", "~> 1.0.0"
11
- gem "jeweler", "~> 1.6.4"
12
- gem "simplecov"
13
- end
3
+ # Specify your gem's dependencies in charwidth_template.gemspec
4
+ gemspec
data/Gemfile.lock CHANGED
@@ -1,32 +1,51 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ charwidth (0.1.3)
5
+
1
6
  GEM
2
- remote: http://rubygems.org/
7
+ remote: https://rubygems.org/
3
8
  specs:
4
- diff-lcs (1.1.3)
5
- git (1.2.5)
6
- jeweler (1.6.4)
7
- bundler (~> 1.0)
8
- git (>= 1.2.5)
9
- rake
9
+ activemodel (3.2.17)
10
+ activesupport (= 3.2.17)
11
+ builder (~> 3.0.0)
12
+ activerecord (3.2.17)
13
+ activemodel (= 3.2.17)
14
+ activesupport (= 3.2.17)
15
+ arel (~> 3.0.2)
16
+ tzinfo (~> 0.3.29)
17
+ activesupport (3.2.17)
18
+ i18n (~> 0.6, >= 0.6.4)
19
+ multi_json (~> 1.0)
20
+ arel (3.0.3)
21
+ builder (3.0.4)
22
+ diff-lcs (1.2.5)
23
+ i18n (0.6.9)
10
24
  multi_json (1.0.4)
11
25
  rake (0.9.2.2)
12
- rspec (2.3.0)
13
- rspec-core (~> 2.3.0)
14
- rspec-expectations (~> 2.3.0)
15
- rspec-mocks (~> 2.3.0)
16
- rspec-core (2.3.1)
17
- rspec-expectations (2.3.0)
18
- diff-lcs (~> 1.1.2)
19
- rspec-mocks (2.3.0)
26
+ rspec (2.14.1)
27
+ rspec-core (~> 2.14.0)
28
+ rspec-expectations (~> 2.14.0)
29
+ rspec-mocks (~> 2.14.0)
30
+ rspec-core (2.14.7)
31
+ rspec-expectations (2.14.4)
32
+ diff-lcs (>= 1.1.3, < 2.0)
33
+ rspec-mocks (2.14.4)
20
34
  simplecov (0.5.4)
21
35
  multi_json (~> 1.0.3)
22
36
  simplecov-html (~> 0.5.3)
23
37
  simplecov-html (0.5.3)
38
+ sqlite3 (1.3.9)
39
+ tzinfo (0.3.39)
24
40
 
25
41
  PLATFORMS
26
42
  ruby
27
43
 
28
44
  DEPENDENCIES
29
- bundler (~> 1.0.0)
30
- jeweler (~> 1.6.4)
31
- rspec (~> 2.3.0)
45
+ activerecord (>= 3)
46
+ bundler (~> 1.3)
47
+ charwidth!
48
+ rake
49
+ rspec
32
50
  simplecov
51
+ sqlite3
data/LICENSE.txt CHANGED
@@ -1,4 +1,6 @@
1
- Copyright (c) 2012 labocho
1
+ Copyright (c) 2013 labocho
2
+
3
+ MIT License
2
4
 
3
5
  Permission is hereby granted, free of charge, to any person obtaining
4
6
  a copy of this software and associated documentation files (the
data/README.md CHANGED
@@ -4,7 +4,18 @@ Normalize Unicode fullwidth / halfwidth (zenkaku / hankaku) characters.
4
4
 
5
5
  # Installation
6
6
 
7
- gem install charwidth
7
+ Add this line to your application's Gemfile:
8
+
9
+ gem 'charwidth_template'
10
+
11
+
12
+ And then execute:
13
+
14
+ $ bundle
15
+
16
+ Or install it yourself as:
17
+
18
+ $ gem install charwidth_template
8
19
 
9
20
  # Usage
10
21
 
@@ -19,19 +30,32 @@ Or extend String class.
19
30
  "Hello, World!".normalize_charwidth # => "Hello, World!"
20
31
  "Hello, World!".normalize_charwidth! # => destructive
21
32
  "「ハローワールド」".normalize_charwidth # => "「ハローワールド」"
22
-
23
- # Contributing to charwidth
24
-
25
- * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
26
- * Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it
27
- * Fork the project
28
- * Start a feature/bugfix branch
29
- * Commit and push until you are happy with your contribution
30
- * Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
31
- * Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
32
-
33
- # Copyright
34
-
35
- Copyright (c) 2012 labocho. See LICENSE.txt for
36
- further details.
37
33
 
34
+ # ActiveRecord integration
35
+
36
+ Write `require "charwidth/active_record"` to normalize all values of ActiveRecord attributes.
37
+
38
+ require "charwidth/active_record"
39
+
40
+ class Article < ActiveRecord::Base
41
+ end
42
+
43
+ a = Article.new(title: "Hello, World!")
44
+ a.title # => "Hello, World!"
45
+
46
+ # CLI
47
+
48
+ # Call charwidth command with arguments
49
+ $ charwidth "Hello, World!"
50
+ Hello, World!
51
+ # Or as STDIN
52
+ $ echo "Hello, World!" | charwidth
53
+ Hello, World!
54
+
55
+ ## Contributing
56
+
57
+ 1. Fork it
58
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
59
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
60
+ 4. Push to the branch (`git push origin my-new-feature`)
61
+ 5. Create new Pull Request
data/Rakefile CHANGED
@@ -1,51 +1 @@
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
- require "#{File.dirname(__FILE__)}/lib/charwidth/version"
16
- Jeweler::Tasks.new do |gem|
17
- # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
18
- gem.name = "charwidth"
19
- gem.version = Charwidth::Version::STRING
20
- gem.homepage = "http://github.com/labocho/charwidth"
21
- gem.license = "MIT"
22
- gem.summary = %Q{Normalize Japanese / Korean fullwidth (zenkaku) and halfwidth (hankaku) characters}
23
- gem.description = %Q{Normalize Japanese / Korean fullwidth (zenkaku) and halfwidth (hankaku) characters}
24
- gem.email = "labocho@penguinlab.jp"
25
- gem.authors = ["labocho"]
26
- # dependencies defined in Gemfile
27
- end
28
- Jeweler::RubygemsDotOrgTasks.new
29
-
30
- require 'rspec/core'
31
- require 'rspec/core/rake_task'
32
- RSpec::Core::RakeTask.new(:spec) do |spec|
33
- spec.pattern = FileList['spec/**/*_spec.rb']
34
- end
35
-
36
- RSpec::Core::RakeTask.new(:rcov) do |spec|
37
- spec.pattern = 'spec/**/*_spec.rb'
38
- spec.rcov = true
39
- end
40
-
41
- task :default => :spec
42
-
43
- require 'rake/rdoctask'
44
- Rake::RDocTask.new do |rdoc|
45
- version = File.exist?('VERSION') ? File.read('VERSION') : ""
46
-
47
- rdoc.rdoc_dir = 'rdoc'
48
- rdoc.title = "charwidth #{version}"
49
- rdoc.rdoc_files.include('README*')
50
- rdoc.rdoc_files.include('lib/**/*.rb')
51
- end
1
+ require "bundler/gem_tasks"
data/bin/charwidth ADDED
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require "charwidth"
3
+ Charwidth::CLI.run(ARGV)
data/charwidth.gemspec CHANGED
@@ -1,63 +1,27 @@
1
- # Generated by jeweler
2
- # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
- # -*- encoding: utf-8 -*-
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'charwidth/version'
5
5
 
6
- Gem::Specification.new do |s|
7
- s.name = "charwidth"
8
- s.version = "0.1.1"
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "charwidth"
8
+ spec.version = Charwidth::VERSION
9
+ spec.authors = ["labocho"]
10
+ spec.email = ["labocho@penguinlab.jp"]
11
+ spec.description = %q{Normalize Japanese / Korean fullwidth (zenkaku) and halfwidth (hankaku) characters}
12
+ spec.summary = %q{Normalize Japanese / Korean fullwidth (zenkaku) and halfwidth (hankaku) characters}
13
+ spec.homepage = "https://github.com/labocho/charwidth"
14
+ spec.license = "MIT"
9
15
 
10
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["labocho"]
12
- s.date = "2012-08-21"
13
- s.description = "Normalize Japanese / Korean fullwidth (zenkaku) and halfwidth (hankaku) characters"
14
- s.email = "labocho@penguinlab.jp"
15
- s.extra_rdoc_files = [
16
- "LICENSE.txt",
17
- "README.md"
18
- ]
19
- s.files = [
20
- ".cleancode",
21
- ".document",
22
- ".rspec",
23
- "Gemfile",
24
- "Gemfile.lock",
25
- "LICENSE.txt",
26
- "README.md",
27
- "Rakefile",
28
- "charwidth.gemspec",
29
- "lib/charwidth.rb",
30
- "lib/charwidth/characters.rb",
31
- "lib/charwidth/string.rb",
32
- "lib/charwidth/version.rb",
33
- "spec/charwidth_spec.rb",
34
- "spec/spec_helper.rb"
35
- ]
36
- s.homepage = "http://github.com/labocho/charwidth"
37
- s.licenses = ["MIT"]
38
- s.require_paths = ["lib"]
39
- s.rubygems_version = "1.8.23"
40
- s.summary = "Normalize Japanese / Korean fullwidth (zenkaku) and halfwidth (hankaku) characters"
16
+ spec.files = `git ls-files`.split($/)
17
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
+ spec.require_paths = ["lib"]
41
20
 
42
- if s.respond_to? :specification_version then
43
- s.specification_version = 3
44
-
45
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
46
- s.add_development_dependency(%q<rspec>, ["~> 2.3.0"])
47
- s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
48
- s.add_development_dependency(%q<jeweler>, ["~> 1.6.4"])
49
- s.add_development_dependency(%q<simplecov>, [">= 0"])
50
- else
51
- s.add_dependency(%q<rspec>, ["~> 2.3.0"])
52
- s.add_dependency(%q<bundler>, ["~> 1.0.0"])
53
- s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
54
- s.add_dependency(%q<simplecov>, [">= 0"])
55
- end
56
- else
57
- s.add_dependency(%q<rspec>, ["~> 2.3.0"])
58
- s.add_dependency(%q<bundler>, ["~> 1.0.0"])
59
- s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
60
- s.add_dependency(%q<simplecov>, [">= 0"])
61
- end
21
+ spec.add_development_dependency "bundler", "~> 1.3"
22
+ spec.add_development_dependency "rake"
23
+ spec.add_development_dependency "rspec"
24
+ spec.add_development_dependency "simplecov"
25
+ spec.add_development_dependency "activerecord", ">= 3"
26
+ spec.add_development_dependency "sqlite3"
62
27
  end
63
-
data/lib/charwidth.rb CHANGED
@@ -1,7 +1,9 @@
1
+ require "charwidth/version"
2
+
1
3
  module Charwidth
2
4
  autoload :String, "charwidth/string"
3
5
  autoload :Characters, "charwidth/characters"
4
- autoload :Version, "charwidth/version"
6
+ autoload :CLI, "charwidth/cli"
5
7
 
6
8
  module ClassMethods
7
9
  # Normalize Unicode fullwidth / halfwidth (zenkaku / hankaku) characters
@@ -0,0 +1,22 @@
1
+ require "charwidth"
2
+
3
+ module Charwidth
4
+ module ActiveRecord
5
+ module InstanceMethods
6
+ def write_attribute_with_normalize_charwidth(attr_name, value)
7
+ value = value.is_a?(String) ? Charwidth.normalize(value) : value
8
+ write_attribute_without_normalize_charwidth(attr_name, value)
9
+ end
10
+ end
11
+
12
+ def self.included(base)
13
+ base.class_eval do
14
+ include InstanceMethods
15
+ alias_method :write_attribute_without_normalize_charwidth, :write_attribute
16
+ alias_method :write_attribute, :write_attribute_with_normalize_charwidth
17
+ end
18
+ end
19
+ end
20
+ end
21
+
22
+ ActiveRecord::Base.send(:include, Charwidth::ActiveRecord)
@@ -0,0 +1,31 @@
1
+ require "optparse"
2
+ module Charwidth
3
+ class CLI
4
+ def self.run(argv)
5
+ new.run(argv)
6
+ end
7
+
8
+ def run(argv)
9
+ options = {}
10
+ optparse = OptionParser.new do |o|
11
+ o.banner += " TEXT\nNormalize character width in arguments or STDIN.\nAvailable character types are #{Charwidth::ClassMethods::TYPES.join(",")}."
12
+ o.on("--only=TYPES", "Comma separated character types that should be converted"){|types| options[:only] = types.split(",").map(&:to_sym) }
13
+ o.on("--except=TYPES", "Comma separated character types that should not be converted"){|types| options[:except] = types.split(",").map(&:to_sym) }
14
+ o.parse!(argv)
15
+ end
16
+ src = nil
17
+ if ARGV.empty?
18
+ if STDIN.tty?
19
+ STDERR.puts optparse.banner
20
+ STDERR.puts optparse.help
21
+ exit 1
22
+ else
23
+ src = STDIN.read
24
+ end
25
+ else
26
+ src = ARGV.join(" ")
27
+ end
28
+ print Charwidth.normalize(src, options)
29
+ end
30
+ end
31
+ end
@@ -1,9 +1,3 @@
1
1
  module Charwidth
2
- module Version
3
- MAJOR = 0
4
- MINOR = 1
5
- PATCH = 1
6
- BUILD = nil
7
- STRING = [MAJOR, MINOR, PATCH, BUILD].compact.join('.')
8
- end
2
+ VERSION = "0.1.3"
9
3
  end
@@ -0,0 +1,39 @@
1
+ # encoding: UTF-8
2
+ require "spec_helper"
3
+ require "active_record"
4
+ require "charwidth/active_record"
5
+
6
+ describe Charwidth::ActiveRecord do
7
+ before(:all) do
8
+ ActiveRecord::Base.establish_connection(
9
+ adapter: "sqlite3",
10
+ database: ":memory:"
11
+ )
12
+ ActiveRecord::Base.connection.execute <<-SQL
13
+ CREATE TABLE users (
14
+ id integer PRIMARY KEY AUTOINCREMENT,
15
+ name text NOT NULL
16
+ )
17
+ SQL
18
+
19
+ class User < ActiveRecord::Base; end
20
+ end
21
+
22
+ subject { User.new }
23
+ context 'assign unnormalized valud' do
24
+ before(:each) do
25
+ subject.name = "ABCアイウ"
26
+ end
27
+ its(:name) { should == "ABCアイウ" }
28
+ end
29
+ context 'assign nil' do
30
+ before(:each) do
31
+ subject.name = nil
32
+ end
33
+ its(:name) { should == nil }
34
+ end
35
+ context 'mass assignment' do
36
+ subject { User.new(name: "ABCアイウ") }
37
+ its(:name) { should == "ABCアイウ" }
38
+ end
39
+ end
metadata CHANGED
@@ -1,130 +1,153 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: charwidth
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
5
- prerelease:
4
+ version: 0.1.3
6
5
  platform: ruby
7
6
  authors:
8
7
  - labocho
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2012-08-21 00:00:00.000000000 Z
11
+ date: 2014-04-04 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
- name: rspec
14
+ name: bundler
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ~>
17
+ - - "~>"
20
18
  - !ruby/object:Gem::Version
21
- version: 2.3.0
19
+ version: '1.3'
22
20
  type: :development
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ~>
24
+ - - "~>"
28
25
  - !ruby/object:Gem::Version
29
- version: 2.3.0
26
+ version: '1.3'
30
27
  - !ruby/object:Gem::Dependency
31
- name: bundler
28
+ name: rake
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ~>
31
+ - - ">="
36
32
  - !ruby/object:Gem::Version
37
- version: 1.0.0
33
+ version: '0'
38
34
  type: :development
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ~>
38
+ - - ">="
44
39
  - !ruby/object:Gem::Version
45
- version: 1.0.0
40
+ version: '0'
46
41
  - !ruby/object:Gem::Dependency
47
- name: jeweler
42
+ name: rspec
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
- - - ~>
45
+ - - ">="
52
46
  - !ruby/object:Gem::Version
53
- version: 1.6.4
47
+ version: '0'
54
48
  type: :development
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
- - - ~>
52
+ - - ">="
60
53
  - !ruby/object:Gem::Version
61
- version: 1.6.4
54
+ version: '0'
62
55
  - !ruby/object:Gem::Dependency
63
56
  name: simplecov
64
57
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
58
  requirements:
67
- - - ! '>='
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: activerecord
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '3'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '3'
83
+ - !ruby/object:Gem::Dependency
84
+ name: sqlite3
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
68
88
  - !ruby/object:Gem::Version
69
89
  version: '0'
70
90
  type: :development
71
91
  prerelease: false
72
92
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
93
  requirements:
75
- - - ! '>='
94
+ - - ">="
76
95
  - !ruby/object:Gem::Version
77
96
  version: '0'
78
97
  description: Normalize Japanese / Korean fullwidth (zenkaku) and halfwidth (hankaku)
79
98
  characters
80
- email: labocho@penguinlab.jp
81
- executables: []
99
+ email:
100
+ - labocho@penguinlab.jp
101
+ executables:
102
+ - charwidth
82
103
  extensions: []
83
- extra_rdoc_files:
84
- - LICENSE.txt
85
- - README.md
104
+ extra_rdoc_files: []
86
105
  files:
87
- - .cleancode
88
- - .document
89
- - .rspec
106
+ - ".cleancode"
107
+ - ".document"
108
+ - ".gitignore"
109
+ - ".rspec"
90
110
  - Gemfile
91
111
  - Gemfile.lock
92
112
  - LICENSE.txt
93
113
  - README.md
94
114
  - Rakefile
115
+ - bin/charwidth
95
116
  - charwidth.gemspec
96
117
  - lib/charwidth.rb
118
+ - lib/charwidth/active_record.rb
97
119
  - lib/charwidth/characters.rb
120
+ - lib/charwidth/cli.rb
98
121
  - lib/charwidth/string.rb
99
122
  - lib/charwidth/version.rb
123
+ - spec/charwidth/active_record_spec.rb
100
124
  - spec/charwidth_spec.rb
101
125
  - spec/spec_helper.rb
102
- homepage: http://github.com/labocho/charwidth
126
+ homepage: https://github.com/labocho/charwidth
103
127
  licenses:
104
128
  - MIT
129
+ metadata: {}
105
130
  post_install_message:
106
131
  rdoc_options: []
107
132
  require_paths:
108
133
  - lib
109
134
  required_ruby_version: !ruby/object:Gem::Requirement
110
- none: false
111
135
  requirements:
112
- - - ! '>='
136
+ - - ">="
113
137
  - !ruby/object:Gem::Version
114
138
  version: '0'
115
- segments:
116
- - 0
117
- hash: -548817087615038840
118
139
  required_rubygems_version: !ruby/object:Gem::Requirement
119
- none: false
120
140
  requirements:
121
- - - ! '>='
141
+ - - ">="
122
142
  - !ruby/object:Gem::Version
123
143
  version: '0'
124
144
  requirements: []
125
145
  rubyforge_project:
126
- rubygems_version: 1.8.23
146
+ rubygems_version: 2.2.0
127
147
  signing_key:
128
- specification_version: 3
148
+ specification_version: 4
129
149
  summary: Normalize Japanese / Korean fullwidth (zenkaku) and halfwidth (hankaku) characters
130
- test_files: []
150
+ test_files:
151
+ - spec/charwidth/active_record_spec.rb
152
+ - spec/charwidth_spec.rb
153
+ - spec/spec_helper.rb