dtext_rb 1.0.7 → 1.0.8

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.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. data/dtext_rb.gemspec +2 -2
  4. data/ext/dtext/dtext.c +10 -8
  5. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3389aa2b65f1a568864c8136e154eafbeaf09f29
4
- data.tar.gz: 842011dd39bf4a210c6dc7c352d02472c8c7c856
3
+ metadata.gz: 75d154f405d4e6e9c96083403234349b8421058f
4
+ data.tar.gz: 8feb551419a768ccaf74e8710523bfc1c7150ec7
5
5
  SHA512:
6
- metadata.gz: d4c2db410a97e5a192fc1a24d7bf48bbebd27a36c0892cd0417e70d14489eaa8dd59bf4f4db150bad17cdf19d23ceec2f413bcb731b56ee0e015f69f3d0fd68c
7
- data.tar.gz: e3d79e5054b7429f6c9753181b6550359f5ca6a1ad2e3473b1ca6cfec36fa249101e7ae8420f06c28da0f65c189a4d5cef6a3c3faacb6fc8fd61f6d52cc032d5
6
+ metadata.gz: 0379bdab7d9fbcd1fecd1508f92a1cbaade90b36386a7760f0c74688bb7c943add5e8203e8e69d5c1ee2baf9251e54dd43e1e02a8bfff413a97d8929f5799d80
7
+ data.tar.gz: 812ecfcc8f1cdeeb3b27b1cfa18005dcf198a96545b812a7a08ab169f0ba5e415eb6599ee07e45f81f3ab3b1c8fcc5500b5a1f94e843c52ea2291ce545eb76aa
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.7
1
+ 1.0.8
@@ -2,12 +2,12 @@
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.7 ruby lib
5
+ # stub: dtext_rb 1.0.8 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.7"
10
+ s.version = "1.0.8"
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"]
@@ -496,6 +496,7 @@ static void free_machine(StateMachine * sm) {
496
496
 
497
497
  static VALUE parse(int argc, VALUE * argv, VALUE self) {
498
498
  VALUE input;
499
+ VALUE input0;
499
500
  VALUE options;
500
501
  VALUE opt_inline;
501
502
  VALUE opt_strip;
@@ -510,10 +511,11 @@ static VALUE parse(int argc, VALUE * argv, VALUE self) {
510
511
  }
511
512
 
512
513
  input = argv[0];
514
+ input0 = rb_str_dup(input);
513
515
 
514
516
  sm = (StateMachine *)g_malloc0(sizeof(StateMachine));
515
- input = rb_str_cat(input, "\0", 1);
516
- init_machine(sm, input);
517
+ input0 = rb_str_cat(input0, "\0", 1);
518
+ init_machine(sm, input0);
517
519
 
518
520
  if (argc > 1) {
519
521
  options = argv[1];
@@ -532,7 +534,7 @@ static VALUE parse(int argc, VALUE * argv, VALUE self) {
532
534
  }
533
535
 
534
536
 
535
- #line 536 "ext/dtext/dtext.c"
537
+ #line 538 "ext/dtext/dtext.c"
536
538
  {
537
539
  sm->cs = dtext_start;
538
540
  ( sm->top) = 0;
@@ -541,9 +543,9 @@ static VALUE parse(int argc, VALUE * argv, VALUE self) {
541
543
  ( sm->act) = 0;
542
544
  }
543
545
 
544
- #line 1333 "ext/dtext/dtext.rl"
546
+ #line 1335 "ext/dtext/dtext.rl"
545
547
 
546
- #line 547 "ext/dtext/dtext.c"
548
+ #line 549 "ext/dtext/dtext.c"
547
549
  {
548
550
  if ( ( sm->p) == ( sm->pe) )
549
551
  goto _test_eof;
@@ -555,7 +557,7 @@ _resume:
555
557
  #line 1 "NONE"
556
558
  {( sm->ts) = ( sm->p);}
557
559
  break;
558
- #line 559 "ext/dtext/dtext.c"
560
+ #line 561 "ext/dtext/dtext.c"
559
561
  }
560
562
 
561
563
  switch ( sm->cs ) {
@@ -4086,7 +4088,7 @@ _again:
4086
4088
  #line 1 "NONE"
4087
4089
  {( sm->ts) = 0;}
4088
4090
  break;
4089
- #line 4090 "ext/dtext/dtext.c"
4091
+ #line 4092 "ext/dtext/dtext.c"
4090
4092
  }
4091
4093
 
4092
4094
  if ( sm->cs == 0 )
@@ -4405,7 +4407,7 @@ _again:
4405
4407
  _out: {}
4406
4408
  }
4407
4409
 
4408
- #line 1334 "ext/dtext/dtext.rl"
4410
+ #line 1336 "ext/dtext/dtext.rl"
4409
4411
 
4410
4412
  dstack_close(sm);
4411
4413
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dtext_rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.7
4
+ version: 1.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - r888888888