wikitext 1.10.1 → 1.11

Sign up to get free protection for your applications and to get access to all the features.
data/bin/wikitext CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
- # Copyright 2008-2009 Wincent Colaiuta. All rights reserved.
2
+ # Copyright 2008-2010 Wincent Colaiuta. All rights reserved.
3
3
  #
4
4
  # Redistribution and use in source and binary forms, with or without
5
5
  # modification, are permitted provided that the following conditions are met:
@@ -22,8 +22,8 @@
22
22
  # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
23
23
  # POSSIBILITY OF SUCH DAMAGE.
24
24
 
25
- require File.join(File.dirname(__FILE__), '..', 'ext', 'wikitext')
26
- require File.join(File.dirname(__FILE__), '..', 'lib', 'wikitext', 'version')
25
+ require 'wikitext'
26
+ require 'wikitext/version'
27
27
 
28
28
  module Wikitext
29
29
  module Tool
@@ -1,4 +1,4 @@
1
- # Copyright 2008-2009 Wincent Colaiuta. All rights reserved.
1
+ # Copyright 2008-2010 Wincent Colaiuta. All rights reserved.
2
2
  #
3
3
  # Redistribution and use in source and binary forms, with or without
4
4
  # modification, are permitted provided that the following conditions are met:
@@ -21,9 +21,6 @@
21
21
  # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
22
22
  # POSSIBILITY OF SUCH DAMAGE.
23
23
 
24
- require File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'ext',
25
- 'wikitext'))
26
-
27
24
  class NilClass
28
25
  def to_wikitext options = {}
29
26
  ''
@@ -1,5 +1,4 @@
1
- #!/usr/bin/env ruby
2
- # Copyright 2009 Wincent Colaiuta. All rights reserved.
1
+ # Copyright 2009-2010 Wincent Colaiuta. All rights reserved.
3
2
  #
4
3
  # Redistribution and use in source and binary forms, with or without
5
4
  # modification, are permitted provided that the following conditions are met:
@@ -22,8 +21,7 @@
22
21
  # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
23
22
  # POSSIBILITY OF SUCH DAMAGE.
24
23
 
25
- require File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'ext',
26
- 'wikitext'))
24
+ require 'wikitext'
27
25
 
28
26
  module Wikitext
29
27
  class Parser
@@ -1,4 +1,4 @@
1
- # Copyright 2008-2009 Wincent Colaiuta. All rights reserved.
1
+ # Copyright 2008-2010 Wincent Colaiuta. All rights reserved.
2
2
  #
3
3
  # Redistribution and use in source and binary forms, with or without
4
4
  # modification, are permitted provided that the following conditions are met:
@@ -21,7 +21,8 @@
21
21
  # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
22
22
  # POSSIBILITY OF SUCH DAMAGE.
23
23
 
24
- require File.expand_path(File.join(File.dirname(__FILE__), 'string'))
24
+ require 'wikitext/nil_class'
25
+ require 'wikitext/string'
25
26
 
26
27
  module Wikitext
27
28
  class TemplateHandler
@@ -1,4 +1,4 @@
1
- # Copyright 2008-2009 Wincent Colaiuta. All rights reserved.
1
+ # Copyright 2008-2010 Wincent Colaiuta. All rights reserved.
2
2
  #
3
3
  # Redistribution and use in source and binary forms, with or without
4
4
  # modification, are permitted provided that the following conditions are met:
@@ -21,7 +21,7 @@
21
21
  # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
22
22
  # POSSIBILITY OF SUCH DAMAGE.
23
23
 
24
- require File.expand_path(File.join(File.dirname(__FILE__), 'parser'))
24
+ require 'wikitext/parser'
25
25
 
26
26
  class String
27
27
  def to_wikitext options = {}
@@ -22,5 +22,5 @@
22
22
  # POSSIBILITY OF SUCH DAMAGE.
23
23
 
24
24
  module Wikitext
25
- VERSION = '1.10.1'
25
+ VERSION = '1.11'
26
26
  end # module Wikitext
data/rails/init.rb CHANGED
@@ -1,4 +1,4 @@
1
- # Copyright 2008-2009 Wincent Colaiuta. All rights reserved.
1
+ # Copyright 2008-2010 Wincent Colaiuta. All rights reserved.
2
2
  #
3
3
  # Redistribution and use in source and binary forms, with or without
4
4
  # modification, are permitted provided that the following conditions are met:
@@ -24,8 +24,8 @@
24
24
  # Avoid Rails bug #2266 by not requiring during "rake gems:build"
25
25
  # See: https://rails.lighthouseapp.com/projects/8994/tickets/2266
26
26
  unless $gems_build_rake_task
27
- libdir = File.join(File.dirname(__FILE__), '..', 'lib', 'wikitext')
28
- require File.expand_path(File.join(libdir, 'nil_class'))
29
- require File.expand_path(File.join(libdir, 'string'))
30
- require File.expand_path(File.join(libdir, 'rails'))
27
+ libdir = File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib', 'wikitext'))
28
+ require File.join(libdir, 'nil_class')
29
+ require File.join(libdir, 'string')
30
+ require File.join(libdir, 'rails')
31
31
  end
@@ -1,5 +1,4 @@
1
- #!/usr/bin/env ruby
2
- # Copyright 2007-2009 Wincent Colaiuta. All rights reserved.
1
+ # Copyright 2007-2010 Wincent Colaiuta. All rights reserved.
3
2
  #
4
3
  # Redistribution and use in source and binary forms, with or without
5
4
  # modification, are permitted provided that the following conditions are met:
@@ -23,7 +22,6 @@
23
22
  # POSSIBILITY OF SUCH DAMAGE.
24
23
 
25
24
  require File.join(File.dirname(__FILE__), 'spec_helper.rb')
26
- require 'wikitext'
27
25
 
28
26
  describe Wikitext::Parser, 'autolinking' do
29
27
  before do
@@ -1,4 +1,3 @@
1
- #!/usr/bin/env ruby
2
1
  # Copyright 2009 Wincent Colaiuta. All rights reserved.
3
2
  #
4
3
  # Redistribution and use in source and binary forms, with or without
@@ -1,5 +1,4 @@
1
- #!/usr/bin/env ruby
2
- # Copyright 2007-2009 Wincent Colaiuta. All rights reserved.
1
+ # Copyright 2007-2010 Wincent Colaiuta. All rights reserved.
3
2
  #
4
3
  # Redistribution and use in source and binary forms, with or without
5
4
  # modification, are permitted provided that the following conditions are met:
@@ -23,7 +22,6 @@
23
22
  # POSSIBILITY OF SUCH DAMAGE.
24
23
 
25
24
  require File.join(File.dirname(__FILE__), 'spec_helper.rb')
26
- require 'wikitext'
27
25
 
28
26
  describe Wikitext::Parser, 'standard blockquotes (">" in first column)' do
29
27
  before do
data/spec/em_spec.rb CHANGED
@@ -1,5 +1,4 @@
1
- #!/usr/bin/env ruby
2
- # Copyright 2007-2009 Wincent Colaiuta. All rights reserved.
1
+ # Copyright 2007-2010 Wincent Colaiuta. All rights reserved.
3
2
  #
4
3
  # Redistribution and use in source and binary forms, with or without
5
4
  # modification, are permitted provided that the following conditions are met:
@@ -23,7 +22,6 @@
23
22
  # POSSIBILITY OF SUCH DAMAGE.
24
23
 
25
24
  require File.join(File.dirname(__FILE__), 'spec_helper.rb')
26
- require 'wikitext'
27
25
 
28
26
  describe Wikitext::Parser, 'parsing <em> spans' do
29
27
  before do
@@ -1,5 +1,4 @@
1
- #!/usr/bin/env ruby
2
- # Copyright 2007-2009 Wincent Colaiuta. All rights reserved.
1
+ # Copyright 2007-2010 Wincent Colaiuta. All rights reserved.
3
2
  #
4
3
  # Redistribution and use in source and binary forms, with or without
5
4
  # modification, are permitted provided that the following conditions are met:
@@ -23,7 +22,6 @@
23
22
  # POSSIBILITY OF SUCH DAMAGE.
24
23
 
25
24
  require File.join(File.dirname(__FILE__), 'spec_helper.rb')
26
- require 'wikitext'
27
25
  require 'iconv'
28
26
 
29
27
  describe Wikitext, 'with invalidly encoded input' do
data/spec/entity_spec.rb CHANGED
@@ -1,5 +1,4 @@
1
- #!/usr/bin/env ruby
2
- # Copyright 2007-2009 Wincent Colaiuta. All rights reserved.
1
+ # Copyright 2007-2010 Wincent Colaiuta. All rights reserved.
3
2
  #
4
3
  # Redistribution and use in source and binary forms, with or without
5
4
  # modification, are permitted provided that the following conditions are met:
@@ -23,7 +22,6 @@
23
22
  # POSSIBILITY OF SUCH DAMAGE.
24
23
 
25
24
  require File.join(File.dirname(__FILE__), 'spec_helper.rb')
26
- require 'wikitext'
27
25
 
28
26
  describe Wikitext::Parser, 'parsing entities' do
29
27
  before do
@@ -1,6 +1,5 @@
1
- #!/usr/bin/env ruby
2
1
  # encoding: utf-8
3
- # Copyright 2007-2009 Wincent Colaiuta. All rights reserved.
2
+ # Copyright 2007-2010 Wincent Colaiuta. All rights reserved.
4
3
  #
5
4
  # Redistribution and use in source and binary forms, with or without
6
5
  # modification, are permitted provided that the following conditions are met:
@@ -24,7 +23,6 @@
24
23
  # POSSIBILITY OF SUCH DAMAGE.
25
24
 
26
25
  require File.join(File.dirname(__FILE__), 'spec_helper.rb')
27
- require 'wikitext'
28
26
 
29
27
  describe Wikitext::Parser, 'external links' do
30
28
  before do
@@ -1,6 +1,5 @@
1
- #!/usr/bin/env ruby
2
1
  # encoding: utf-8
3
- # Copyright 2008-2009 Wincent Colaiuta. All rights reserved.
2
+ # Copyright 2008-2010 Wincent Colaiuta. All rights reserved.
4
3
  #
5
4
  # Redistribution and use in source and binary forms, with or without
6
5
  # modification, are permitted provided that the following conditions are met:
@@ -24,7 +23,6 @@
24
23
  # POSSIBILITY OF SUCH DAMAGE.
25
24
 
26
25
  require File.join(File.dirname(__FILE__), 'spec_helper.rb')
27
- require 'wikitext'
28
26
 
29
27
  describe Wikitext::Parser, 'fulltext tokenizing' do
30
28
  before do
data/spec/h1_spec.rb CHANGED
@@ -1,5 +1,4 @@
1
- #!/usr/bin/env ruby
2
- # Copyright 2007-2009 Wincent Colaiuta. All rights reserved.
1
+ # Copyright 2007-2010 Wincent Colaiuta. All rights reserved.
3
2
  #
4
3
  # Redistribution and use in source and binary forms, with or without
5
4
  # modification, are permitted provided that the following conditions are met:
@@ -23,7 +22,6 @@
23
22
  # POSSIBILITY OF SUCH DAMAGE.
24
23
 
25
24
  require File.join(File.dirname(__FILE__), 'spec_helper.rb')
26
- require 'wikitext'
27
25
 
28
26
  describe Wikitext::Parser, 'parsing <h1> blocks' do
29
27
  before do
data/spec/h2_spec.rb CHANGED
@@ -1,5 +1,4 @@
1
- #!/usr/bin/env ruby
2
- # Copyright 2007-2009 Wincent Colaiuta. All rights reserved.
1
+ # Copyright 2007-2010 Wincent Colaiuta. All rights reserved.
3
2
  #
4
3
  # Redistribution and use in source and binary forms, with or without
5
4
  # modification, are permitted provided that the following conditions are met:
@@ -23,7 +22,6 @@
23
22
  # POSSIBILITY OF SUCH DAMAGE.
24
23
 
25
24
  require File.join(File.dirname(__FILE__), 'spec_helper.rb')
26
- require 'wikitext'
27
25
 
28
26
  describe Wikitext::Parser, 'parsing <h2> blocks' do
29
27
  before do
data/spec/h3_spec.rb CHANGED
@@ -1,5 +1,4 @@
1
- #!/usr/bin/env ruby
2
- # Copyright 2007-2009 Wincent Colaiuta. All rights reserved.
1
+ # Copyright 2007-2010 Wincent Colaiuta. All rights reserved.
3
2
  #
4
3
  # Redistribution and use in source and binary forms, with or without
5
4
  # modification, are permitted provided that the following conditions are met:
@@ -23,7 +22,6 @@
23
22
  # POSSIBILITY OF SUCH DAMAGE.
24
23
 
25
24
  require File.join(File.dirname(__FILE__), 'spec_helper.rb')
26
- require 'wikitext'
27
25
 
28
26
  describe Wikitext::Parser, 'parsing <h3> blocks' do
29
27
  before do
data/spec/h4_spec.rb CHANGED
@@ -1,5 +1,4 @@
1
- #!/usr/bin/env ruby
2
- # Copyright 2007-2009 Wincent Colaiuta. All rights reserved.
1
+ # Copyright 2007-2010 Wincent Colaiuta. All rights reserved.
3
2
  #
4
3
  # Redistribution and use in source and binary forms, with or without
5
4
  # modification, are permitted provided that the following conditions are met:
@@ -23,7 +22,6 @@
23
22
  # POSSIBILITY OF SUCH DAMAGE.
24
23
 
25
24
  require File.join(File.dirname(__FILE__), 'spec_helper.rb')
26
- require 'wikitext'
27
25
 
28
26
  describe Wikitext::Parser, 'parsing <h4> blocks' do
29
27
  before do
data/spec/h5_spec.rb CHANGED
@@ -1,5 +1,4 @@
1
- #!/usr/bin/env ruby
2
- # Copyright 2007-2009 Wincent Colaiuta. All rights reserved.
1
+ # Copyright 2007-2010 Wincent Colaiuta. All rights reserved.
3
2
  #
4
3
  # Redistribution and use in source and binary forms, with or without
5
4
  # modification, are permitted provided that the following conditions are met:
@@ -23,7 +22,6 @@
23
22
  # POSSIBILITY OF SUCH DAMAGE.
24
23
 
25
24
  require File.join(File.dirname(__FILE__), 'spec_helper.rb')
26
- require 'wikitext'
27
25
 
28
26
  describe Wikitext::Parser, 'parsing <h5> blocks' do
29
27
  before do
data/spec/h6_spec.rb CHANGED
@@ -1,5 +1,4 @@
1
- #!/usr/bin/env ruby
2
- # Copyright 2007-2009 Wincent Colaiuta. All rights reserved.
1
+ # Copyright 2007-2010 Wincent Colaiuta. All rights reserved.
3
2
  #
4
3
  # Redistribution and use in source and binary forms, with or without
5
4
  # modification, are permitted provided that the following conditions are met:
@@ -23,7 +22,6 @@
23
22
  # POSSIBILITY OF SUCH DAMAGE.
24
23
 
25
24
  require File.join(File.dirname(__FILE__), 'spec_helper.rb')
26
- require 'wikitext'
27
25
 
28
26
  describe Wikitext::Parser, 'parsing <h6> blocks' do
29
27
  before do
data/spec/img_spec.rb CHANGED
@@ -1,6 +1,5 @@
1
- #!/usr/bin/env ruby
2
1
  # encoding: utf-8
3
- # Copyright 2008-2009 Wincent Colaiuta. All rights reserved.
2
+ # Copyright 2008-2010 Wincent Colaiuta. All rights reserved.
4
3
  #
5
4
  # Redistribution and use in source and binary forms, with or without
6
5
  # modification, are permitted provided that the following conditions are met:
@@ -24,7 +23,6 @@
24
23
  # POSSIBILITY OF SUCH DAMAGE.
25
24
 
26
25
  require File.join(File.dirname(__FILE__), 'spec_helper.rb')
27
- require 'wikitext'
28
26
 
29
27
  describe Wikitext::Parser, 'embedding img tags' do
30
28
  before do
@@ -1,5 +1,4 @@
1
- #!/usr/bin/env ruby
2
- # Copyright 2008-2009 Wincent Colaiuta. All rights reserved.
1
+ # Copyright 2008-2010 Wincent Colaiuta. All rights reserved.
3
2
  #
4
3
  # Redistribution and use in source and binary forms, with or without
5
4
  # modification, are permitted provided that the following conditions are met:
@@ -23,7 +22,6 @@
23
22
  # POSSIBILITY OF SUCH DAMAGE.
24
23
 
25
24
  require File.join(File.dirname(__FILE__), 'spec_helper.rb')
26
- require 'wikitext'
27
25
 
28
26
  # this is the inverse of the dedent method in spec_helper.rb
29
27
  # it's only in this file because it isn't needed anywhere else
@@ -1,6 +1,5 @@
1
- #!/usr/bin/env ruby
2
1
  # encoding: utf-8
3
- # Copyright 2007-2009 Wincent Colaiuta. All rights reserved.
2
+ # Copyright 2007-2010 Wincent Colaiuta. All rights reserved.
4
3
  #
5
4
  # Redistribution and use in source and binary forms, with or without
6
5
  # modification, are permitted provided that the following conditions are met:
@@ -24,7 +23,6 @@
24
23
  # POSSIBILITY OF SUCH DAMAGE.
25
24
 
26
25
  require File.join(File.dirname(__FILE__), 'spec_helper.rb')
27
- require 'wikitext'
28
26
 
29
27
  describe Wikitext::Parser, 'with large slab of input text' do
30
28
  before do
@@ -1,6 +1,5 @@
1
- #!/usr/bin/env ruby
2
1
  # encoding: utf-8
3
- # Copyright 2007-2009 Wincent Colaiuta. All rights reserved.
2
+ # Copyright 2007-2010 Wincent Colaiuta. All rights reserved.
4
3
  #
5
4
  # Redistribution and use in source and binary forms, with or without
6
5
  # modification, are permitted provided that the following conditions are met:
@@ -24,7 +23,6 @@
24
23
  # POSSIBILITY OF SUCH DAMAGE.
25
24
 
26
25
  require File.join(File.dirname(__FILE__), 'spec_helper.rb')
27
- require 'wikitext'
28
26
 
29
27
  describe Wikitext::Parser, 'internal links (space to underscore off)' do
30
28
  before do
@@ -1,5 +1,4 @@
1
- #!/usr/bin/env ruby
2
- # Copyright 2007-2009 Wincent Colaiuta. All rights reserved.
1
+ # Copyright 2007-2010 Wincent Colaiuta. All rights reserved.
3
2
  #
4
3
  # Redistribution and use in source and binary forms, with or without
5
4
  # modification, are permitted provided that the following conditions are met:
@@ -23,7 +22,6 @@
23
22
  # POSSIBILITY OF SUCH DAMAGE.
24
23
 
25
24
  require File.join(File.dirname(__FILE__), 'spec_helper.rb')
26
- require 'wikitext'
27
25
 
28
26
  describe Wikitext::Parser do
29
27
  before do
@@ -1,6 +1,5 @@
1
- #!/usr/bin/env ruby
2
1
  # encoding: utf-8
3
- # Copyright 2007-2009 Wincent Colaiuta. All rights reserved.
2
+ # Copyright 2007-2010 Wincent Colaiuta. All rights reserved.
4
3
  #
5
4
  # Redistribution and use in source and binary forms, with or without
6
5
  # modification, are permitted provided that the following conditions are met:
@@ -24,7 +23,6 @@
24
23
  # POSSIBILITY OF SUCH DAMAGE.
25
24
 
26
25
  require File.join(File.dirname(__FILE__), 'spec_helper.rb')
27
- require 'wikitext'
28
26
  require 'uri'
29
27
 
30
28
  describe Wikitext, 'encoding a link target' do
@@ -1,6 +1,5 @@
1
- #!/usr/bin/env ruby
2
1
  # encoding: utf-8
3
- # Copyright 2007-2009 Wincent Colaiuta. All rights reserved.
2
+ # Copyright 2007-2010 Wincent Colaiuta. All rights reserved.
4
3
  #
5
4
  # Redistribution and use in source and binary forms, with or without
6
5
  # modification, are permitted provided that the following conditions are met:
@@ -24,7 +23,6 @@
24
23
  # POSSIBILITY OF SUCH DAMAGE.
25
24
 
26
25
  require File.join(File.dirname(__FILE__), 'spec_helper.rb')
27
- require 'wikitext'
28
26
 
29
27
  describe Wikitext, 'sanitizing a link target' do
30
28
  it 'should complain if passed nil' do
@@ -1,4 +1,3 @@
1
- #!/usr/bin/env ruby
2
1
  # Copyright 2009 Wincent Colaiuta. All rights reserved.
3
2
  #
4
3
  # Redistribution and use in source and binary forms, with or without
data/spec/nowiki_spec.rb CHANGED
@@ -1,6 +1,5 @@
1
- #!/usr/bin/env ruby
2
1
  # encoding: utf-8
3
- # Copyright 2007-2009 Wincent Colaiuta. All rights reserved.
2
+ # Copyright 2007-2010 Wincent Colaiuta. All rights reserved.
4
3
  #
5
4
  # Redistribution and use in source and binary forms, with or without
6
5
  # modification, are permitted provided that the following conditions are met:
@@ -24,7 +23,6 @@
24
23
  # POSSIBILITY OF SUCH DAMAGE.
25
24
 
26
25
  require File.join(File.dirname(__FILE__), 'spec_helper.rb')
27
- require 'wikitext'
28
26
 
29
27
  describe Wikitext::Parser, 'parsing <nowiki> spans' do
30
28
  before do
data/spec/p_spec.rb CHANGED
@@ -1,5 +1,4 @@
1
- #!/usr/bin/env ruby
2
- # Copyright 2007-2009 Wincent Colaiuta. All rights reserved.
1
+ # Copyright 2007-2010 Wincent Colaiuta. All rights reserved.
3
2
  #
4
3
  # Redistribution and use in source and binary forms, with or without
5
4
  # modification, are permitted provided that the following conditions are met:
@@ -23,7 +22,6 @@
23
22
  # POSSIBILITY OF SUCH DAMAGE.
24
23
 
25
24
  require File.join(File.dirname(__FILE__), 'spec_helper.rb')
26
- require 'wikitext'
27
25
 
28
26
  describe Wikitext::Parser, 'parsing paragraphs' do
29
27
  before do
data/spec/parser_spec.rb CHANGED
@@ -1,4 +1,3 @@
1
- #!/usr/bin/env ruby
2
1
  # Copyright 2009 Wincent Colaiuta. All rights reserved.
3
2
  #
4
3
  # Redistribution and use in source and binary forms, with or without
data/spec/pre_spec.rb CHANGED
@@ -1,6 +1,5 @@
1
- #!/usr/bin/env ruby
2
1
  # encoding: utf-8
3
- # Copyright 2007-2009 Wincent Colaiuta. All rights reserved.
2
+ # Copyright 2007-2010 Wincent Colaiuta. All rights reserved.
4
3
  #
5
4
  # Redistribution and use in source and binary forms, with or without
6
5
  # modification, are permitted provided that the following conditions are met:
@@ -24,7 +23,6 @@
24
23
  # POSSIBILITY OF SUCH DAMAGE.
25
24
 
26
25
  require File.join(File.dirname(__FILE__), 'spec_helper.rb')
27
- require 'wikitext'
28
26
 
29
27
  describe Wikitext::Parser, 'parsing PRE blocks' do
30
28
  before do
data/spec/rails_spec.rb CHANGED
@@ -1,4 +1,3 @@
1
- #!/usr/bin/env ruby
2
1
  # Copyright 2009 Wincent Colaiuta. All rights reserved.
3
2
  #
4
3
  # Redistribution and use in source and binary forms, with or without
@@ -1,6 +1,5 @@
1
- #!/usr/bin/env ruby
2
1
  # encoding: utf-8
3
- # Copyright 2008-2009 Wincent Colaiuta. All rights reserved.
2
+ # Copyright 2008-2010 Wincent Colaiuta. All rights reserved.
4
3
  #
5
4
  # Redistribution and use in source and binary forms, with or without
6
5
  # modification, are permitted provided that the following conditions are met:
@@ -24,7 +23,6 @@
24
23
  # POSSIBILITY OF SUCH DAMAGE.
25
24
 
26
25
  require File.join(File.dirname(__FILE__), 'spec_helper.rb')
27
- require 'wikitext'
28
26
 
29
27
  # this is a general-purpose file in which I'll add specs for former bugs to make sure that they don't regress
30
28
  describe Wikitext::Parser, 'regressions' do
data/spec/spec_helper.rb CHANGED
@@ -1,4 +1,4 @@
1
- # Copyright 2007-2009 Wincent Colaiuta. All rights reserved.
1
+ # Copyright 2007-2010 Wincent Colaiuta. All rights reserved.
2
2
  #
3
3
  # Redistribution and use in source and binary forms, with or without
4
4
  # modification, are permitted provided that the following conditions are met:
@@ -53,7 +53,7 @@ end
53
53
 
54
54
  module Wikitext
55
55
  if not const_defined? 'BASEDIR'
56
- # prepend the local "ext" directory to search path if not already present
56
+ # prepend local directories to search path if not already present
57
57
  BASEDIR = Pathname.new(__FILE__).dirname + '..'
58
58
  extdir = (BASEDIR + 'ext').realpath
59
59
  libdir = (BASEDIR + 'lib').realpath
data/spec/string_spec.rb CHANGED
@@ -1,4 +1,3 @@
1
- #!/usr/bin/env ruby
2
1
  # Copyright 2009 Wincent Colaiuta. All rights reserved.
3
2
  #
4
3
  # Redistribution and use in source and binary forms, with or without
@@ -1,5 +1,4 @@
1
- #!/usr/bin/env ruby
2
- # Copyright 2007-2009 Wincent Colaiuta. All rights reserved.
1
+ # Copyright 2007-2010 Wincent Colaiuta. All rights reserved.
3
2
  #
4
3
  # Redistribution and use in source and binary forms, with or without
5
4
  # modification, are permitted provided that the following conditions are met:
@@ -23,7 +22,6 @@
23
22
  # POSSIBILITY OF SUCH DAMAGE.
24
23
 
25
24
  require File.join(File.dirname(__FILE__), 'spec_helper.rb')
26
- require 'wikitext'
27
25
 
28
26
  describe Wikitext::Parser, 'parsing combined <strong>/<em> spans' do
29
27
  before do
data/spec/strong_spec.rb CHANGED
@@ -1,5 +1,4 @@
1
- #!/usr/bin/env ruby
2
- # Copyright 2007-2009 Wincent Colaiuta. All rights reserved.
1
+ # Copyright 2007-2010 Wincent Colaiuta. All rights reserved.
3
2
  #
4
3
  # Redistribution and use in source and binary forms, with or without
5
4
  # modification, are permitted provided that the following conditions are met:
@@ -23,7 +22,6 @@
23
22
  # POSSIBILITY OF SUCH DAMAGE.
24
23
 
25
24
  require File.join(File.dirname(__FILE__), 'spec_helper.rb')
26
- require 'wikitext'
27
25
 
28
26
  describe Wikitext::Parser, 'parsing <strong> spans' do
29
27
  before do
@@ -1,5 +1,4 @@
1
- #!/usr/bin/env ruby
2
- # Copyright 2008-2009 Wincent Colaiuta. All rights reserved.
1
+ # Copyright 2008-2010 Wincent Colaiuta. All rights reserved.
3
2
  #
4
3
  # Redistribution and use in source and binary forms, with or without
5
4
  # modification, are permitted provided that the following conditions are met:
@@ -23,7 +22,6 @@
23
22
  # POSSIBILITY OF SUCH DAMAGE.
24
23
 
25
24
  require File.join(File.dirname(__FILE__), 'spec_helper.rb')
26
- require 'wikitext'
27
25
 
28
26
  describe Wikitext::Parser::Token do
29
27
  before do
data/spec/tt_spec.rb CHANGED
File without changes
data/spec/ul_spec.rb CHANGED
File without changes
File without changes
metadata CHANGED
@@ -1,7 +1,11 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wikitext
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.10.1
4
+ prerelease: false
5
+ segments:
6
+ - 1
7
+ - 11
8
+ version: "1.11"
5
9
  platform: ruby
6
10
  authors:
7
11
  - Wincent Colaiuta
@@ -9,30 +13,34 @@ autorequire:
9
13
  bindir: bin
10
14
  cert_chain: []
11
15
 
12
- date: 2010-03-21 00:00:00 +01:00
16
+ date: 2010-04-26 00:00:00 +02:00
13
17
  default_executable:
14
18
  dependencies:
15
19
  - !ruby/object:Gem::Dependency
16
20
  name: rspec
17
- type: :development
18
- version_requirement:
19
- version_requirements: !ruby/object:Gem::Requirement
21
+ prerelease: false
22
+ requirement: &id001 !ruby/object:Gem::Requirement
20
23
  requirements:
21
24
  - - ">="
22
25
  - !ruby/object:Gem::Version
26
+ segments:
27
+ - 0
23
28
  version: "0"
24
- version:
29
+ type: :development
30
+ version_requirements: *id001
25
31
  - !ruby/object:Gem::Dependency
26
32
  name: wopen3
27
- type: :development
28
- version_requirement:
29
- version_requirements: !ruby/object:Gem::Requirement
33
+ prerelease: false
34
+ requirement: &id002 !ruby/object:Gem::Requirement
30
35
  requirements:
31
36
  - - ">="
32
37
  - !ruby/object:Gem::Version
38
+ segments:
39
+ - 0
33
40
  version: "0"
34
- version:
35
- description: Wikitext is a fast wikitext-to-HTML translator written in C.
41
+ type: :development
42
+ version_requirements: *id002
43
+ description: " Wikitext is a fast wikitext-to-HTML translator written in C.\n"
36
44
  email: win@wincent.com
37
45
  executables:
38
46
  - wikitext
@@ -42,13 +50,13 @@ extra_rdoc_files: []
42
50
 
43
51
  files:
44
52
  - bin/wikitext
45
- - ext/wikitext_ragel.c
46
53
  - ext/extconf.rb
47
54
  - ext/ary.c
48
55
  - ext/parser.c
49
56
  - ext/str.c
50
57
  - ext/token.c
51
58
  - ext/wikitext.c
59
+ - ext/wikitext_ragel.c
52
60
  - ext/ary.h
53
61
  - ext/parser.h
54
62
  - ext/ruby_compat.h
@@ -96,14 +104,15 @@ files:
96
104
  - spec/strong_em_spec.rb
97
105
  - spec/strong_spec.rb
98
106
  - spec/tokenizing_spec.rb
99
- - spec/trash
100
107
  - spec/tt_spec.rb
101
108
  - spec/ul_spec.rb
102
109
  - spec/version_spec.rb
103
110
  - spec/vim_formatter.rb
104
111
  - spec/wikitext_spec.rb
105
112
  has_rdoc: true
106
- homepage: http://wikitext.rubyforge.org/
113
+ homepage: https://wincent.com/products/wikitext
114
+ licenses: []
115
+
107
116
  post_install_message:
108
117
  rdoc_options: []
109
118
 
@@ -114,20 +123,22 @@ required_ruby_version: !ruby/object:Gem::Requirement
114
123
  requirements:
115
124
  - - ">="
116
125
  - !ruby/object:Gem::Version
126
+ segments:
127
+ - 0
117
128
  version: "0"
118
- version:
119
129
  required_rubygems_version: !ruby/object:Gem::Requirement
120
130
  requirements:
121
131
  - - ">="
122
132
  - !ruby/object:Gem::Version
133
+ segments:
134
+ - 0
123
135
  version: "0"
124
- version:
125
136
  requirements: []
126
137
 
127
138
  rubyforge_project: wikitext
128
- rubygems_version: 1.3.1
139
+ rubygems_version: 1.3.6
129
140
  signing_key:
130
- specification_version: 2
141
+ specification_version: 3
131
142
  summary: Wikitext-to-HTML translator
132
143
  test_files: []
133
144