hebrew 0.1.8 → 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/hebrew.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5a8c1321cb8e5040931921ab180b86295427e64f
|
4
|
+
data.tar.gz: fe567fbdb5384b967dfff2a0b787a1b403433a7a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 33ec8188e66991dca122aef6ecbb69a34ab566b79ede6fabce62f6de6975f97eeed2be3b4c176b74f4c1b03da3ef44283bb01017b67c2d3e25c86fb2c5619734
|
7
|
+
data.tar.gz: 674d5e7ca61a186d7713d245459e4b19b856b0fdc2fc56bd42d557a7e0d0d035ba87b0e194a8f0c5a27a91ffe751d7c247b2b04dda8293b79cf6351cdbb948e3
|
data/lib/hebrew.rb
CHANGED
@@ -31,7 +31,7 @@ class String
|
|
31
31
|
target = ''.force_encoding('windows-1255')
|
32
32
|
self.each_codepoint {|cp|
|
33
33
|
unless self.class.is_codepoint_nikkud_cp1255(cp)
|
34
|
-
target
|
34
|
+
target << cp.chr(Encoding::CP1255) # is there a neater way?
|
35
35
|
end
|
36
36
|
}
|
37
37
|
return target
|
@@ -40,7 +40,7 @@ class String
|
|
40
40
|
target = ''
|
41
41
|
self.each_codepoint {|cp|
|
42
42
|
unless self.class.is_codepoint_nikkud_utf8(cp)
|
43
|
-
target
|
43
|
+
target << cp.chr(Encoding::UTF_8)
|
44
44
|
end
|
45
45
|
}
|
46
46
|
return target
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hebrew
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Asaf Bartov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-10-21 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Some useful code to identify, transcode, and manipulate Hebrew text
|
14
14
|
email: asaf.bartov@gmail.com
|