RedCloth 4.2.7-x86-mingw32 → 4.2.9-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of RedCloth might be problematic. Click here for more details.

data/CHANGELOG CHANGED
@@ -1,4 +1,13 @@
1
- == 4.2.7 / Febrary 10, 2011
1
+ == 4.2.9 / November 25, 2011
2
+
3
+ * Fix RbConfig / Config warning in Ruby 1.9.3. [Steve Purcell, Robert Gleeson, and unclaimedbaggage]
4
+ * Use RSTRING_NOT_MODIFIED header for Rubinius [Dirkjan Bussink]
5
+
6
+ == 4.2.8 / August 17, 2011
7
+
8
+ * Do not treat warnings as errors so it compiles cleanly. [Tomasz Wałkuski]
9
+
10
+ == 4.2.7 / February 10, 2011
2
11
 
3
12
  * Fixed typo in gemspec to make case-sensitive require work. [Gabe da Silveira]
4
13
  * Tested installing the gem and requiring it with both cases on Ubuntu 8.04, 10.10 and OS X Version 10.6.6.
@@ -45,11 +45,11 @@ To compile MRI, JRuby, and win32 gems, you need rvm and rake-compiler. These
45
45
  and other dependencies can be installed with bundler. Then rake build:all
46
46
  takes care of compiling and packaging all gems.
47
47
 
48
- # gem install bundler
49
- # bundle install
50
- # rake-compiler cross-ruby VERSION=1.8.6-p398
51
- # rake-compiler cross-ruby VERSION=1.9.1-p243
52
- # rake build:all
48
+ 1. gem install bundler
49
+ 2. bundle install
50
+ 3. rake-compiler cross-ruby VERSION=1.8.6-p398
51
+ 4. rake-compiler cross-ruby VERSION=1.9.1-p243
52
+ 5. rake build:all
53
53
 
54
54
  == Bugs
55
55
 
@@ -5,15 +5,16 @@
5
5
  *
6
6
  * Copyright (C) 2009 Jason Garber
7
7
  */
8
+ #define RSTRING_NOT_MODIFIED
8
9
  #include <ruby.h>
9
10
  #include "redcloth.h"
10
11
 
11
12
 
12
- #line 15 "ragel/redcloth_attributes.c.rl"
13
+ #line 16 "ragel/redcloth_attributes.c.rl"
13
14
 
14
15
 
15
16
 
16
- #line 17 "ext/redcloth_scan/redcloth_attributes.c"
17
+ #line 18 "ext/redcloth_scan/redcloth_attributes.c"
17
18
  static const char _redcloth_attributes_actions[] = {
18
19
  0, 1, 2, 1, 4, 1, 5, 1,
19
20
  6, 1, 7, 1, 8, 1, 11, 1,
@@ -405,7 +406,7 @@ static const int redcloth_attributes_en_inline = 61;
405
406
  static const int redcloth_attributes_en_link_says = 29;
406
407
 
407
408
 
408
- #line 18 "ragel/redcloth_attributes.c.rl"
409
+ #line 19 "ragel/redcloth_attributes.c.rl"
409
410
 
410
411
 
411
412
  VALUE
@@ -420,7 +421,7 @@ redcloth_attribute_parser(machine, self, p, pe)
420
421
  VALUE attr_regs = rb_hash_new();
421
422
 
422
423
 
423
- #line 424 "ext/redcloth_scan/redcloth_attributes.c"
424
+ #line 425 "ext/redcloth_scan/redcloth_attributes.c"
424
425
  {
425
426
  cs = redcloth_attributes_start;
426
427
  ts = 0;
@@ -428,12 +429,12 @@ redcloth_attribute_parser(machine, self, p, pe)
428
429
  act = 0;
429
430
  }
430
431
 
431
- #line 32 "ragel/redcloth_attributes.c.rl"
432
+ #line 33 "ragel/redcloth_attributes.c.rl"
432
433
 
433
434
  cs = machine;
434
435
 
435
436
 
436
- #line 437 "ext/redcloth_scan/redcloth_attributes.c"
437
+ #line 438 "ext/redcloth_scan/redcloth_attributes.c"
437
438
  {
438
439
  int _klen;
439
440
  unsigned int _trans;
@@ -454,7 +455,7 @@ _resume:
454
455
  #line 1 "NONE"
455
456
  {ts = p;}
456
457
  break;
457
- #line 458 "ext/redcloth_scan/redcloth_attributes.c"
458
+ #line 459 "ext/redcloth_scan/redcloth_attributes.c"
458
459
  }
459
460
  }
460
461
 
@@ -592,7 +593,7 @@ _eof_trans:
592
593
  #line 26 "ragel/redcloth_attributes.rl"
593
594
  {{p = ((te))-1;}{ SET_ATTRIBUTE("name_without_attributes", "name"); }}
594
595
  break;
595
- #line 596 "ext/redcloth_scan/redcloth_attributes.c"
596
+ #line 597 "ext/redcloth_scan/redcloth_attributes.c"
596
597
  }
597
598
  }
598
599
 
@@ -605,7 +606,7 @@ _again:
605
606
  #line 1 "NONE"
606
607
  {ts = 0;}
607
608
  break;
608
- #line 609 "ext/redcloth_scan/redcloth_attributes.c"
609
+ #line 610 "ext/redcloth_scan/redcloth_attributes.c"
609
610
  }
610
611
  }
611
612
 
@@ -625,7 +626,7 @@ _again:
625
626
  _out: {}
626
627
  }
627
628
 
628
- #line 36 "ragel/redcloth_attributes.c.rl"
629
+ #line 37 "ragel/redcloth_attributes.c.rl"
629
630
 
630
631
  return regs;
631
632
  }
@@ -5,15 +5,16 @@
5
5
  *
6
6
  * Copyright (C) 2009 Jason Garber
7
7
  */
8
+ #define RSTRING_NOT_MODIFIED
8
9
  #include <ruby.h>
9
10
  #include "redcloth.h"
10
11
 
11
12
 
12
- #line 15 "ragel/redcloth_inline.c.rl"
13
+ #line 16 "ragel/redcloth_inline.c.rl"
13
14
 
14
15
 
15
16
 
16
- #line 17 "ext/redcloth_scan/redcloth_inline.c"
17
+ #line 18 "ext/redcloth_scan/redcloth_inline.c"
17
18
  static const char _redcloth_inline_actions[] = {
18
19
  0, 1, 0, 1, 1, 1, 3, 1,
19
20
  4, 1, 8, 1, 9, 1, 10, 1,
@@ -7114,7 +7115,7 @@ static const int redcloth_inline_en_code_tag = 1516;
7114
7115
  static const int redcloth_inline_en_main = 1270;
7115
7116
 
7116
7117
 
7117
- #line 18 "ragel/redcloth_inline.c.rl"
7118
+ #line 19 "ragel/redcloth_inline.c.rl"
7118
7119
 
7119
7120
  VALUE
7120
7121
  red_pass(VALUE self, VALUE regs, VALUE ref, ID meth, VALUE refs)
@@ -7255,7 +7256,7 @@ redcloth_inline(self, p, pe, refs)
7255
7256
  VALUE attr_regs = Qnil;
7256
7257
 
7257
7258
 
7258
- #line 7259 "ext/redcloth_scan/redcloth_inline.c"
7259
+ #line 7260 "ext/redcloth_scan/redcloth_inline.c"
7259
7260
  {
7260
7261
  cs = redcloth_inline_start;
7261
7262
  ts = 0;
@@ -7263,10 +7264,10 @@ redcloth_inline(self, p, pe, refs)
7263
7264
  act = 0;
7264
7265
  }
7265
7266
 
7266
- #line 158 "ragel/redcloth_inline.c.rl"
7267
+ #line 159 "ragel/redcloth_inline.c.rl"
7267
7268
 
7268
7269
 
7269
- #line 7270 "ext/redcloth_scan/redcloth_inline.c"
7270
+ #line 7271 "ext/redcloth_scan/redcloth_inline.c"
7270
7271
  {
7271
7272
  int _klen;
7272
7273
  unsigned int _trans;
@@ -7292,7 +7293,7 @@ _resume:
7292
7293
  #line 1 "NONE"
7293
7294
  {ts = p;}
7294
7295
  break;
7295
- #line 7296 "ext/redcloth_scan/redcloth_inline.c"
7296
+ #line 7297 "ext/redcloth_scan/redcloth_inline.c"
7296
7297
  }
7297
7298
  }
7298
7299
 
@@ -7915,7 +7916,7 @@ _eof_trans:
7915
7916
  }
7916
7917
  }
7917
7918
  break;
7918
- #line 7919 "ext/redcloth_scan/redcloth_inline.c"
7919
+ #line 7920 "ext/redcloth_scan/redcloth_inline.c"
7919
7920
  }
7920
7921
  }
7921
7922
 
@@ -7928,7 +7929,7 @@ _again:
7928
7929
  #line 1 "NONE"
7929
7930
  {ts = 0;}
7930
7931
  break;
7931
- #line 7932 "ext/redcloth_scan/redcloth_inline.c"
7932
+ #line 7933 "ext/redcloth_scan/redcloth_inline.c"
7932
7933
  }
7933
7934
  }
7934
7935
 
@@ -7948,7 +7949,7 @@ _again:
7948
7949
  _out: {}
7949
7950
  }
7950
7951
 
7951
- #line 160 "ragel/redcloth_inline.c.rl"
7952
+ #line 161 "ragel/redcloth_inline.c.rl"
7952
7953
 
7953
7954
  return block;
7954
7955
  }
@@ -7,6 +7,7 @@
7
7
  */
8
8
  #define redcloth_scan_c
9
9
 
10
+ #define RSTRING_NOT_MODIFIED
10
11
  #include <ruby.h>
11
12
  #include "redcloth.h"
12
13
 
@@ -14,11 +15,11 @@ VALUE mRedCloth, super_ParseError, super_RedCloth, super_HTML, super_LATEX;
14
15
  VALUE SYM_escape_preformatted, SYM_escape_attributes;
15
16
 
16
17
 
17
- #line 23 "ragel/redcloth_scan.c.rl"
18
+ #line 24 "ragel/redcloth_scan.c.rl"
18
19
 
19
20
 
20
21
 
21
- #line 22 "ext/redcloth_scan/redcloth_scan.c"
22
+ #line 23 "ext/redcloth_scan/redcloth_scan.c"
22
23
  static const unsigned char _redcloth_scan_actions[] = {
23
24
  0, 1, 0, 1, 2, 1, 3, 1,
24
25
  4, 1, 5, 1, 6, 1, 7, 1,
@@ -23042,7 +23043,7 @@ static const int redcloth_scan_en_dl = 2484;
23042
23043
  static const int redcloth_scan_en_main = 2250;
23043
23044
 
23044
23045
 
23045
- #line 26 "ragel/redcloth_scan.c.rl"
23046
+ #line 27 "ragel/redcloth_scan.c.rl"
23046
23047
 
23047
23048
  VALUE
23048
23049
  redcloth_transform(self, p, pe, refs)
@@ -23068,7 +23069,7 @@ redcloth_transform(self, p, pe, refs)
23068
23069
  VALUE refs_found = rb_hash_new();
23069
23070
 
23070
23071
 
23071
- #line 23072 "ext/redcloth_scan/redcloth_scan.c"
23072
+ #line 23073 "ext/redcloth_scan/redcloth_scan.c"
23072
23073
  {
23073
23074
  cs = redcloth_scan_start;
23074
23075
  ts = 0;
@@ -23076,10 +23077,10 @@ redcloth_transform(self, p, pe, refs)
23076
23077
  act = 0;
23077
23078
  }
23078
23079
 
23079
- #line 51 "ragel/redcloth_scan.c.rl"
23080
+ #line 52 "ragel/redcloth_scan.c.rl"
23080
23081
 
23081
23082
 
23082
- #line 23083 "ext/redcloth_scan/redcloth_scan.c"
23083
+ #line 23084 "ext/redcloth_scan/redcloth_scan.c"
23083
23084
  {
23084
23085
  int _klen;
23085
23086
  unsigned int _trans;
@@ -23101,7 +23102,7 @@ _resume:
23101
23102
  #line 1 "NONE"
23102
23103
  {ts = p;}
23103
23104
  break;
23104
- #line 23105 "ext/redcloth_scan/redcloth_scan.c"
23105
+ #line 23106 "ext/redcloth_scan/redcloth_scan.c"
23105
23106
  }
23106
23107
  }
23107
23108
 
@@ -23321,7 +23322,7 @@ _eof_trans:
23321
23322
  { STORE_ATTR("start"); }
23322
23323
  break;
23323
23324
  case 24:
23324
- #line 19 "ragel/redcloth_scan.c.rl"
23325
+ #line 20 "ragel/redcloth_scan.c.rl"
23325
23326
  { extend = rb_hash_aref(regs, ID2SYM(rb_intern("type"))); }
23326
23327
  break;
23327
23328
  case 25:
@@ -24192,7 +24193,7 @@ _eof_trans:
24192
24193
  }
24193
24194
  }
24194
24195
  break;
24195
- #line 24196 "ext/redcloth_scan/redcloth_scan.c"
24196
+ #line 24197 "ext/redcloth_scan/redcloth_scan.c"
24196
24197
  }
24197
24198
  }
24198
24199
 
@@ -24205,7 +24206,7 @@ _again:
24205
24206
  #line 1 "NONE"
24206
24207
  {ts = 0;}
24207
24208
  break;
24208
- #line 24209 "ext/redcloth_scan/redcloth_scan.c"
24209
+ #line 24210 "ext/redcloth_scan/redcloth_scan.c"
24209
24210
  }
24210
24211
  }
24211
24212
 
@@ -24225,7 +24226,7 @@ _again:
24225
24226
  _out: {}
24226
24227
  }
24227
24228
 
24228
- #line 53 "ragel/redcloth_scan.c.rl"
24229
+ #line 54 "ragel/redcloth_scan.c.rl"
24229
24230
 
24230
24231
  if (RSTRING_LEN(block) > 0)
24231
24232
  {
Binary file
Binary file
@@ -7,7 +7,8 @@ Object.send(:remove_const, :RedCloth) if Object.const_defined?(:RedCloth) && Red
7
7
 
8
8
  require 'rbconfig'
9
9
  begin
10
- prefix = Config::CONFIG['arch'] =~ /mswin|mingw/ ? "#{Config::CONFIG['MAJOR']}.#{Config::CONFIG['MINOR']}/" : ''
10
+ conf = Object.const_get(defined?(RbConfig) ? :RbConfig : :Config)::CONFIG
11
+ prefix = conf['arch'] =~ /mswin|mingw/ ? "#{conf['MAJOR']}.#{conf['MINOR']}/" : ''
11
12
  lib = "#{prefix}redcloth_scan"
12
13
  require lib
13
14
  rescue LoadError => e
@@ -41,4 +42,4 @@ begin
41
42
  require 'redcloth/erb_extension'
42
43
  include ERB::Util
43
44
  rescue LoadError
44
- end
45
+ end
@@ -2,7 +2,7 @@ module RedCloth
2
2
  module VERSION
3
3
  MAJOR = 4
4
4
  MINOR = 2
5
- TINY = 7
5
+ TINY = 9
6
6
  RELEASE_CANDIDATE = nil
7
7
 
8
8
  STRING = [MAJOR, MINOR, TINY, RELEASE_CANDIDATE].compact.join('.')
@@ -1,14 +1,14 @@
1
1
  CLEAN.include [
2
2
  'tmp',
3
3
  '**/*.{o,obj,class,pdb,lib,def,exp,log,rbc}',
4
- 'ext/redcloth_scan/**/redcloth_*.rb',
4
+ 'ext/redcloth_scan/**/redcloth_*.rb',
5
5
  'ext/redcloth_scan/Makefile', 'ext/redcloth_scan/extconf.rb',
6
6
  ]
7
7
  CLOBBER.include [
8
8
  'pkg',
9
9
  '**/*.{c,java}',
10
- 'lib/**/*.{bundle,so,o,obj,pdb,lib,def,exp,jar}',
11
- 'lib/redcloth_scan.rb',
10
+ 'lib/**/*.{bundle,so,o,obj,pdb,lib,def,exp,jar}',
11
+ 'lib/redcloth_scan.rb',
12
12
  ]
13
13
 
14
14
  # Load the Gem specification for the current platform (Ruby or JRuby).
@@ -22,7 +22,7 @@ require File.dirname(__FILE__) + '/ragel_extension_task'
22
22
 
23
23
  if defined?(JRUBY_VERSION)
24
24
  Rake::JavaRagelExtensionTask.new('redcloth_scan', gemspec)
25
- else
25
+ else
26
26
  extconf = "ext/redcloth_scan/extconf.rb"
27
27
  file extconf do
28
28
  FileUtils.mkdir(File.dirname(extconf)) unless File.directory?(File.dirname(extconf))
@@ -30,7 +30,7 @@ else
30
30
  io.write(<<-EOF)
31
31
  require 'mkmf'
32
32
  CONFIG['warnflags'].gsub!(/-Wshorten-64-to-32/, '') if CONFIG['warnflags']
33
- $CFLAGS << ' -O0 -Wall -Werror' if CONFIG['CC'] =~ /gcc/
33
+ $CFLAGS << ' -O0 -Wall ' if CONFIG['CC'] =~ /gcc/
34
34
  dir_config("redcloth_scan")
35
35
  have_library("c", "main")
36
36
  create_makefile("redcloth_scan")
@@ -38,10 +38,10 @@ create_makefile("redcloth_scan")
38
38
  end
39
39
  end
40
40
 
41
- Rake::RagelExtensionTask.new("redcloth_scan", gemspec) do |ext|
41
+ Rake::RagelExtensionTask.new("redcloth_scan", gemspec) do |ext|
42
42
  if ENV['RUBY_CC_VERSION']
43
43
  ext.cross_compile = true
44
44
  ext.cross_platform = ['i386-mingw32', 'i386-mswin32-60']
45
45
  end
46
46
  end
47
- end
47
+ end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: RedCloth
3
3
  version: !ruby/object:Gem::Version
4
- hash: 57
4
+ hash: 37
5
5
  prerelease:
6
6
  segments:
7
7
  - 4
8
8
  - 2
9
- - 7
10
- version: 4.2.7
9
+ - 9
10
+ version: 4.2.9
11
11
  platform: x86-mingw32
12
12
  authors:
13
13
  - Jason Garber
@@ -17,7 +17,7 @@ autorequire:
17
17
  bindir: bin
18
18
  cert_chain: []
19
19
 
20
- date: 2011-02-11 00:00:00 -06:00
20
+ date: 2011-11-27 00:00:00 -05:00
21
21
  default_executable: redcloth
22
22
  dependencies:
23
23
  - !ruby/object:Gem::Dependency
@@ -144,7 +144,6 @@ files:
144
144
  - lib/redcloth/textile_doc.rb
145
145
  - lib/redcloth/version.rb
146
146
  - lib/redcloth.rb
147
- - lib/redcloth_scan.jar
148
147
  - lib/tasks/pureruby.rake
149
148
  - redcloth.gemspec
150
149
  - spec/benchmark_spec.rb
@@ -232,7 +231,7 @@ rubyforge_project: redcloth
232
231
  rubygems_version: 1.5.0
233
232
  signing_key:
234
233
  specification_version: 3
235
- summary: RedCloth-4.2.7
234
+ summary: RedCloth-4.2.9
236
235
  test_files:
237
236
  - spec/benchmark_spec.rb
238
237
  - spec/custom_tags_spec.rb
Binary file