]> git.wincent.com - wikitext.git/commit
Various fixes for Ruby 2.0.0 compatibility
authorWincent Colaiuta <win@wincent.com>
Wed, 27 Feb 2013 05:22:45 +0000 (21:22 -0800)
committerWincent Colaiuta <win@wincent.com>
Wed, 27 Feb 2013 05:35:41 +0000 (21:35 -0800)
commitea1038bc951faa2dbd7b737f4d39e94fe2427b1a
treed9828ec6aa45e7b23e82d95dfc893fb62c9cc3ce
parenteb485efb6cab36461ff8d2907fd486eb25451ab3
Various fixes for Ruby 2.0.0 compatibility

  - switch Gemfile source from :gemcutter to 'https://rubygems.org'
    (silences security warnings)
  - bump version number prior to 4.0.0 release
  - drop unnecessary `encoding` magic comments from source files
  - drop support for versions of Ruby < 2.0.0
  - make sure string_from_str() returns a string that is marked as UTF-8
    encoded; otherwise a string marked as "ASCII-8BIT" will be returned
    and string comparisons will fail; this was noticed due to the
    breakage of the "redlink" specs which were failing otherwise
  - drop references to now-dead iconv
  - swap some `proc` for `Proc.new`
  - swap some `lambda` for `expect` in the spec suite; this is not
    merely cosmetic as the LocalJumpError tests were failing without it
  - drop some "should" from `it` descriptions in the spec suite
  - loosen brittle TypeError assertions in spec suite which would
    otherwise have failed (the error message has changed since 1.9.x)
  - always use a space after a comma separating arguments
  - replace `not` and `or` with `!` and `!!`
  - use `__dir__` in lieu of `File.dirname(__FILE__)`
  - update copyright year ranges in touched files
  - update docs prior to release

Signed-off-by: Wincent Colaiuta <win@wincent.com>
25 files changed:
Gemfile
Gemfile.lock
README.rdoc
benchmarks/parsing.rb
benchmarks/profile_parsing.rb
benchmarks/tokenizing.rb
doc/RELEASE-NOTES
ext/extconf.rb
ext/parser.c
ext/str.c
lib/wikitext/version.rb
spec/encoding_spec.rb
spec/external_link_spec.rb
spec/fulltext_spec.rb
spec/img_spec.rb
spec/integration_spec.rb
spec/internal_link_spec.rb
spec/link_encoding_spec.rb
spec/link_sanitizing_spec.rb
spec/nowiki_spec.rb
spec/pre_spec.rb
spec/regressions_spec.rb
spec/spec_helper.rb
spec/wikitext_spec.rb
wikitext.gemspec