mymatrix 0.0.7 → 0.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. data/lib/mymatrix.rb +14 -2
  2. data/lib/mymatrix/version.rb +1 -1
  3. metadata +2 -2
@@ -61,7 +61,13 @@ class MyMatrix
61
61
  out = NKF.nkf('-W -x -s --cp932', str)
62
62
  else
63
63
  str = MyMatrix.cp932ize(str)
64
- out = str.encode("Windows-31J")
64
+ begin
65
+ out = str.encode("Windows-31J")
66
+ rescue => e
67
+ p e
68
+ p str
69
+ out = str
70
+ end
65
71
  end
66
72
  return out
67
73
  end
@@ -965,7 +971,13 @@ class MyMatrix
965
971
  # todo:よく使う文字(http://www.geocities.jp/laut6/mojibakesetumei/mojibakesetumei2.html より)
966
972
 
967
973
  #spaces
968
- ['[\u2000]', ' '],['[\u2001]', ' '],['[\u2002]', ' '],['[\u2003]', ' '],['[\u2004]', ' '],['[\u2005]', ' '],['[\u2006]', ' '],['[\u2007]', ' '],['[\u2008]', ' '],['[\u2009]', ' '],['[\u200A]', ' '],['[\u205F]', ' ']
974
+ ['[\u2000]', ' '],['[\u2001]', ' '],['[\u2002]', ' '],['[\u2003]', ' '],['[\u2004]', ' '],['[\u2005]', ' '],['[\u2006]', ' '],['[\u2007]', ' '],['[\u2008]', ' '],['[\u2009]', ' '],['[\u200A]', ' '],['[\u205F]', ' '],
975
+
976
+ #Japanese Addresses
977
+ ['鵢崎', 'みさ崎'],
978
+ ['繫', '繋'],
979
+ ['萊', '莱']
980
+
969
981
  ]
970
982
 
971
983
 
@@ -1,3 +1,3 @@
1
1
  class MyMatrix
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mymatrix
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-04-21 00:00:00.000000000 Z
12
+ date: 2012-06-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec