konjak 0.0.9 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/konjak/segment/gtt.rb +2 -1
- data/lib/konjak/segment.rb +1 -0
- data/lib/konjak/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: 29484a9e63b485e559b41dca4a526535cf770c18
|
4
|
+
data.tar.gz: 8d91043131275ad2977dd8430d352ca4e6229455
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 17d33b3f64c467ef0fa29c18b4b96ef50c319fdf96f3dab1ade86b4cef1dcd01265738ff4a2828086d0600886c6ff6f8b2b0c0825be2cd7d81ffe7d33114b1c7
|
7
|
+
data.tar.gz: b4229903cadcc6ffabe7da76f9cca328e4cb5059692da16acb83924b6d9be86ada2e834ea1ad0db9aaf9450d5b401bdc2c7627122fe2b399681c4c29c9f413e2
|
data/lib/konjak/segment/gtt.rb
CHANGED
@@ -10,7 +10,8 @@ module Konjak
|
|
10
10
|
regexp = regexp.gsub(/\\\{#{n}\\\}/) { "\\k<n#{n}>" }
|
11
11
|
regexp = regexp.gsub(/\\\{\/#{n}\\\}/) { "</\\k<_#{n}>>" }
|
12
12
|
end
|
13
|
-
regexp = regexp.gsub(/(\\\s|\n)/m)
|
13
|
+
regexp = regexp.gsub(/(\\\s|\n)/m) { '\s+' }
|
14
|
+
regexp = regexp.gsub(/(\\s\+)+/) {|s| ('\s' * (s.size / '\s+'.size)) + '+' }
|
14
15
|
Regexp.compile(regexp)
|
15
16
|
end
|
16
17
|
|
data/lib/konjak/segment.rb
CHANGED
data/lib/konjak/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: konjak
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Seiei Higa
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-06-
|
11
|
+
date: 2015-06-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mem
|