dtext_rb 1.0.6 → 1.0.7
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/VERSION +1 -1
- data/dtext_rb.gemspec +3 -3
- data/ext/dtext/dtext.rl +4 -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: 3389aa2b65f1a568864c8136e154eafbeaf09f29
|
4
|
+
data.tar.gz: 842011dd39bf4a210c6dc7c352d02472c8c7c856
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d4c2db410a97e5a192fc1a24d7bf48bbebd27a36c0892cd0417e70d14489eaa8dd59bf4f4db150bad17cdf19d23ceec2f413bcb731b56ee0e015f69f3d0fd68c
|
7
|
+
data.tar.gz: e3d79e5054b7429f6c9753181b6550359f5ca6a1ad2e3473b1ca6cfec36fa249101e7ae8420f06c28da0f65c189a4d5cef6a3c3faacb6fc8fd61f6d52cc032d5
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.7
|
data/dtext_rb.gemspec
CHANGED
@@ -2,17 +2,17 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: dtext_rb 1.0.
|
5
|
+
# stub: dtext_rb 1.0.7 ruby lib
|
6
6
|
# stub: ext/dtext/extconf.rb
|
7
7
|
|
8
8
|
Gem::Specification.new do |s|
|
9
9
|
s.name = "dtext_rb"
|
10
|
-
s.version = "1.0.
|
10
|
+
s.version = "1.0.7"
|
11
11
|
|
12
12
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
13
13
|
s.require_paths = ["lib"]
|
14
14
|
s.authors = ["r888888888"]
|
15
|
-
s.date = "2016-
|
15
|
+
s.date = "2016-07-12"
|
16
16
|
s.description = "Compield DText parser"
|
17
17
|
s.email = "r888888888@gmail.com"
|
18
18
|
s.extensions = ["ext/dtext/extconf.rb"]
|
data/ext/dtext/dtext.rl
CHANGED
@@ -1294,6 +1294,7 @@ static void free_machine(StateMachine * sm) {
|
|
1294
1294
|
|
1295
1295
|
static VALUE parse(int argc, VALUE * argv, VALUE self) {
|
1296
1296
|
VALUE input;
|
1297
|
+
VALUE input0;
|
1297
1298
|
VALUE options;
|
1298
1299
|
VALUE opt_inline;
|
1299
1300
|
VALUE opt_strip;
|
@@ -1308,10 +1309,11 @@ static VALUE parse(int argc, VALUE * argv, VALUE self) {
|
|
1308
1309
|
}
|
1309
1310
|
|
1310
1311
|
input = argv[0];
|
1312
|
+
input0 = rb_str_dup(input);
|
1311
1313
|
|
1312
1314
|
sm = (StateMachine *)g_malloc0(sizeof(StateMachine));
|
1313
|
-
|
1314
|
-
init_machine(sm,
|
1315
|
+
input0 = rb_str_cat(input0, "\0", 1);
|
1316
|
+
init_machine(sm, input0);
|
1315
1317
|
|
1316
1318
|
if (argc > 1) {
|
1317
1319
|
options = argv[1];
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dtext_rb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- r888888888
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-07-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitest
|