charwidth 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.gitignore +1 -0
- data/CHANGELOG.md +19 -0
- data/charwidth.gemspec +1 -1
- data/lib/charwidth/active_record.rb +7 -2
- data/lib/charwidth/version.rb +1 -1
- metadata +8 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 59070483ff719b4075da7931e7480b8e3bce0462071f401989b2cd2caac62910
|
4
|
+
data.tar.gz: afacda6a8e0aa4f002636d1762b556bbc44f1f6ea9fa7aa117fec06b2587de3b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3c4b90161ae75e9fcbdcb7080b8ba3fecad9c2e5bc6d2ae5555f7a8b2bdd6d369c6a075475eed98580439dd0ef0ee039bbeb93bad143905d9af1c60e02017c7f
|
7
|
+
data.tar.gz: 3b9a483138307b00100e74e59704e375558f106f3ae6b5f575eed3038ca21dd82073d73ef2056647bfce0b8da430d4d69d3dc528ff2d3242268f4996f601bcdc
|
data/.gitignore
CHANGED
data/CHANGELOG.md
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
### v0.1.5
|
2
|
+
|
3
|
+
- Fix active_record.rb to follow the change of AR after 5.2.
|
4
|
+
|
5
|
+
### v0.1.4
|
6
|
+
|
7
|
+
- Add Charwidth.to_full_width
|
8
|
+
|
9
|
+
### v0.1.3
|
10
|
+
|
11
|
+
- Change CLI behavier (Use ARGV as source text (not file name), show help for no augment with tty)
|
12
|
+
|
13
|
+
### v0.1.1
|
14
|
+
|
15
|
+
- Fix invalid convertion for harf-width katakana: TSU TE TO
|
16
|
+
|
17
|
+
### v0.1.0
|
18
|
+
|
19
|
+
- Initial release.
|
data/charwidth.gemspec
CHANGED
@@ -24,5 +24,5 @@ Gem::Specification.new do |spec|
|
|
24
24
|
spec.add_development_dependency "rspec-its"
|
25
25
|
spec.add_development_dependency "simplecov"
|
26
26
|
spec.add_development_dependency "activerecord", ">= 3"
|
27
|
-
spec.add_development_dependency "sqlite3"
|
27
|
+
spec.add_development_dependency "sqlite3", "< 1.4"
|
28
28
|
end
|
@@ -12,8 +12,13 @@ module Charwidth
|
|
12
12
|
def self.included(base)
|
13
13
|
base.class_eval do
|
14
14
|
include InstanceMethods
|
15
|
-
|
16
|
-
|
15
|
+
if ::ActiveRecord.version<Gem::Version.new("5.2")
|
16
|
+
alias_method :write_attribute_without_normalize_charwidth, :write_attribute
|
17
|
+
alias_method :write_attribute, :write_attribute_with_normalize_charwidth
|
18
|
+
else
|
19
|
+
alias_method :write_attribute_without_normalize_charwidth, :_write_attribute
|
20
|
+
alias_method :_write_attribute, :write_attribute_with_normalize_charwidth
|
21
|
+
end
|
17
22
|
end
|
18
23
|
end
|
19
24
|
end
|
data/lib/charwidth/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: charwidth
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- labocho
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-03-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -98,16 +98,16 @@ dependencies:
|
|
98
98
|
name: sqlite3
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
|
-
- - "
|
101
|
+
- - "<"
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: '
|
103
|
+
version: '1.4'
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
|
-
- - "
|
108
|
+
- - "<"
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: '
|
110
|
+
version: '1.4'
|
111
111
|
description: Normalize Japanese / Korean fullwidth (zenkaku) and halfwidth (hankaku)
|
112
112
|
characters
|
113
113
|
email:
|
@@ -121,6 +121,7 @@ files:
|
|
121
121
|
- ".document"
|
122
122
|
- ".gitignore"
|
123
123
|
- ".rspec"
|
124
|
+
- CHANGELOG.md
|
124
125
|
- Gemfile
|
125
126
|
- Gemfile.lock
|
126
127
|
- LICENSE.txt
|
@@ -157,7 +158,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
157
158
|
version: '0'
|
158
159
|
requirements: []
|
159
160
|
rubyforge_project:
|
160
|
-
rubygems_version: 2.6
|
161
|
+
rubygems_version: 2.7.6
|
161
162
|
signing_key:
|
162
163
|
specification_version: 4
|
163
164
|
summary: Normalize Japanese / Korean fullwidth (zenkaku) and halfwidth (hankaku) characters
|