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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 4d80ef9c4f6abc327fc91b3551c412da1be6f0f2
4
- data.tar.gz: e8f1793a2de0a8edb0f71a4c50f1f3732801ebb7
2
+ SHA256:
3
+ metadata.gz: 59070483ff719b4075da7931e7480b8e3bce0462071f401989b2cd2caac62910
4
+ data.tar.gz: afacda6a8e0aa4f002636d1762b556bbc44f1f6ea9fa7aa117fec06b2587de3b
5
5
  SHA512:
6
- metadata.gz: 5408b2545d686f3fc9fab6bb327ceae284bcdc9d05389dde12ac9a593c1b7f1a7d5de77666b6db2e5cc3626eab8e7b85f9c2d362ff9ab5c919dc8ad41858f74d
7
- data.tar.gz: 31053172fbda051a8516b7f5e6e41fbfb98852340c9bd0d9f97f38213dd059a33e643133bf0a2e32977ddf7704537f329a72f1fb4a96e2d9c3888ab766405df3
6
+ metadata.gz: 3c4b90161ae75e9fcbdcb7080b8ba3fecad9c2e5bc6d2ae5555f7a8b2bdd6d369c6a075475eed98580439dd0ef0ee039bbeb93bad143905d9af1c60e02017c7f
7
+ data.tar.gz: 3b9a483138307b00100e74e59704e375558f106f3ae6b5f575eed3038ca21dd82073d73ef2056647bfce0b8da430d4d69d3dc528ff2d3242268f4996f601bcdc
data/.gitignore CHANGED
@@ -15,3 +15,4 @@ spec/reports
15
15
  test/tmp
16
16
  test/version_tmp
17
17
  tmp
18
+ .idea
@@ -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.
@@ -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
- alias_method :write_attribute_without_normalize_charwidth, :write_attribute
16
- alias_method :write_attribute, :write_attribute_with_normalize_charwidth
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
@@ -1,3 +1,3 @@
1
1
  module Charwidth
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  end
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
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: 2017-05-02 00:00:00.000000000 Z
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: '0'
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: '0'
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.10
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