kakasi 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -1
- data/ext/kakasi-config/extconf.rb +1 -1
- data/lib/kakasi/platform.rb +28 -15
- data/lib/kakasi/version.rb +1 -1
- 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: 66d7391e47bb8403e1b2c4711dc44adf48cbff50
|
4
|
+
data.tar.gz: 0aac6eb3409293b0151931accfb7d59871895f23
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5da52e4274de105c3820fab94dca18ce7f273354a7ac6ccbb4e57a45e3bc5400a06f14ad637587367a9510e2053d2341878d108d97434be325eb5957e2c389d6
|
7
|
+
data.tar.gz: 78d8247745fb951906e9a53d05f4a1a9654466e1d8c62483073df834e5d286ab5ce5a3c2d6f2d112a876515bdf7a6b41244503fcea26ea56ccabb354e2a1240c
|
data/.travis.yml
CHANGED
data/lib/kakasi/platform.rb
CHANGED
@@ -27,7 +27,7 @@ module Kakasi
|
|
27
27
|
|
28
28
|
DEFLIBPATH =
|
29
29
|
begin
|
30
|
-
[RbConfig::CONFIG['
|
30
|
+
[RbConfig::CONFIG['libdir']] |
|
31
31
|
case RbConfig::CONFIG['host_os']
|
32
32
|
when /mingw|mswin/i
|
33
33
|
[]
|
@@ -36,24 +36,37 @@ module Kakasi
|
|
36
36
|
end
|
37
37
|
end.freeze
|
38
38
|
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
def self.try_load(libpath = LIBPATH)
|
44
|
-
basename = map_library_name('kakasi')
|
45
|
-
(libpath | DEFLIBPATH).each { |dir|
|
46
|
-
begin
|
39
|
+
class << self
|
40
|
+
def try_load(libpath = LIBPATH)
|
41
|
+
basename = map_library_name('kakasi')
|
42
|
+
(libpath | DEFLIBPATH).each { |dir|
|
47
43
|
filename = File.join(dir, basename)
|
48
|
-
|
44
|
+
begin
|
45
|
+
yield filename
|
46
|
+
rescue LoadError
|
47
|
+
next
|
48
|
+
rescue
|
49
|
+
next
|
50
|
+
end
|
49
51
|
return filename
|
50
|
-
|
51
|
-
|
52
|
+
}
|
53
|
+
|
54
|
+
begin
|
55
|
+
yield basename
|
56
|
+
rescue LoadError
|
57
|
+
raise
|
58
|
+
rescue
|
59
|
+
raise LoadError, $!.message
|
52
60
|
end
|
53
|
-
}
|
54
61
|
|
55
|
-
|
56
|
-
|
62
|
+
return basename
|
63
|
+
end
|
64
|
+
|
65
|
+
private
|
66
|
+
|
67
|
+
def map_library_name(name)
|
68
|
+
"#{LIBPREFIX}#{name}.#{LIBSUFFIX}"
|
69
|
+
end
|
57
70
|
end
|
58
71
|
end
|
59
72
|
end
|
data/lib/kakasi/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kakasi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Akinori MUSHA
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-10-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|