re_expand 0.1.2 → 0.1.3
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.
- checksums.yaml +4 -4
- data/Makefile +4 -4
- data/lib/re_expand/Generator.rb +2 -2
- data/lib/re_expand/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: b97783d5952aea1330b540fa63aa80b14cf82080
|
|
4
|
+
data.tar.gz: b2d13e0fe110f06bc465c3dbb5a2e1af43a11c7c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c28456242150f7de94c4034bf402b9f92d57036936511316cc39296a0ccf7f76eb9cc158adedf3c797fc460567000ab2ded3092be13f812caef26930bc65a24f
|
|
7
|
+
data.tar.gz: 689aa0473db96274cfa215c6d3bd2c99dc2c4f784be4192d6011c84da52d262b60c647bff38b0b14fee796e9045c8b7538b2fea6e0311d1f592184583c7b84b7
|
data/Makefile
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
VERSION=0.1.
|
|
1
|
+
VERSION=0.1.3
|
|
2
2
|
.PHONY: test
|
|
3
3
|
|
|
4
4
|
test:
|
|
5
5
|
rake test
|
|
6
6
|
|
|
7
|
-
# Build re_expand
|
|
7
|
+
# Build re_expand gem into the pkg directory
|
|
8
8
|
build:
|
|
9
9
|
rake build
|
|
10
10
|
|
|
11
|
-
# Build and install re_expand
|
|
11
|
+
# Build and install re_expand gem into system gems
|
|
12
12
|
install:
|
|
13
13
|
rake install
|
|
14
14
|
|
|
15
|
-
# Create tag
|
|
15
|
+
# Create tag v?.?.? and build and push re_expand gem to Rubygems
|
|
16
16
|
release:
|
|
17
17
|
rake release
|
|
18
18
|
|
data/lib/re_expand/Generator.rb
CHANGED
|
@@ -79,7 +79,7 @@ module ExpandRuby
|
|
|
79
79
|
lists[0] = list
|
|
80
80
|
#
|
|
81
81
|
loopcount = 0
|
|
82
|
-
(0..
|
|
82
|
+
(0..10000).each { |length|
|
|
83
83
|
#loop do
|
|
84
84
|
# length = loopcount
|
|
85
85
|
list = lists[length]
|
|
@@ -87,7 +87,7 @@ module ExpandRuby
|
|
|
87
87
|
# puts "#{length} - #{list.length}"
|
|
88
88
|
list.each { |entry|
|
|
89
89
|
srcnode = Node.node(entry.id)
|
|
90
|
-
if list.length * srcnode.trans.length <
|
|
90
|
+
if list.length * srcnode.trans.length < 100000 then
|
|
91
91
|
srcnode.trans.each { |trans|
|
|
92
92
|
ss = entry.substrings.dup
|
|
93
93
|
srcnode.pars.each { |i|
|
data/lib/re_expand/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: re_expand
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Toshiyuki Masui
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-
|
|
11
|
+
date: 2016-05-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|