]> git.wincent.com - wikitext.git/log
wikitext.git
8 years agoRemove profiling_parse cruft
Wincent Colaiuta [Sat, 11 Jan 2014 19:03:18 +0000 (14:03 -0500)] 
Remove profiling_parse cruft

I'm not doing any profiling right now and haven't for a while, so let's
clean out the cruft.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
8 years agoUpdate parsing benchmark input/output
Wincent Colaiuta [Sat, 11 Jan 2014 18:45:51 +0000 (13:45 -0500)] 
Update parsing benchmark input/output

A while back we switched from `tt` to `code` elements, so adjust
accordingly to prevent an early abort of the benchmarking process.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
8 years agoMake it easier to see discrepancies in the parsing output
Wincent Colaiuta [Sat, 11 Jan 2014 18:25:24 +0000 (13:25 -0500)] 
Make it easier to see discrepancies in the parsing output

Signed-off-by: Wincent Colaiuta <win@wincent.com>
8 years agoUpdate a require path in benchmarks/parsing.rb
Wincent Colaiuta [Sat, 11 Jan 2014 18:25:02 +0000 (13:25 -0500)] 
Update a require path in benchmarks/parsing.rb

Signed-off-by: Wincent Colaiuta <win@wincent.com>
8 years agoMake user for upload_yard task configurable
Wincent Colaiuta [Wed, 25 Dec 2013 19:21:23 +0000 (11:21 -0800)] 
Make user for upload_yard task configurable

It seems I've had some config changes since the last result that mean
the default user doesn't work any more. Make it configurable.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
8 years agoBump version number for 4.0.3 release 4.0.3
Wincent Colaiuta [Wed, 25 Dec 2013 19:15:19 +0000 (11:15 -0800)] 
Bump version number for 4.0.3 release

Signed-off-by: Wincent Colaiuta <win@wincent.com>
8 years agoMake tweaks for Ruby 2.1.0 compatibility
Wincent Colaiuta [Wed, 25 Dec 2013 19:12:32 +0000 (11:12 -0800)] 
Make tweaks for Ruby 2.1.0 compatibility

Looks like everything should work as before under 2.1.0.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
9 years agoBump version number post-release
Wincent Colaiuta [Tue, 19 Mar 2013 05:28:37 +0000 (22:28 -0700)] 
Bump version number post-release

Signed-off-by: Wincent Colaiuta <win@wincent.com>
9 years agoUpdate Gemfile.lock to sync with 4.0.2 release
Wincent Colaiuta [Tue, 19 Mar 2013 05:28:17 +0000 (22:28 -0700)] 
Update Gemfile.lock to sync with 4.0.2 release

Signed-off-by: Wincent Colaiuta <win@wincent.com>
9 years agoUpdate release notes for 4.0.2 4.0.2
Wincent Colaiuta [Tue, 19 Mar 2013 05:21:33 +0000 (22:21 -0700)] 
Update release notes for 4.0.2

Signed-off-by: Wincent Colaiuta <win@wincent.com>
9 years agoBump version for 4.0.2 release
Wincent Colaiuta [Tue, 19 Mar 2013 05:20:33 +0000 (22:20 -0700)] 
Bump version for 4.0.2 release

Signed-off-by: Wincent Colaiuta <win@wincent.com>
9 years agoFix bad paths in gemspec
Wincent Colaiuta [Tue, 19 Mar 2013 05:19:30 +0000 (22:19 -0700)] 
Fix bad paths in gemspec

Looks like the 4.0.1 release was entirely busted due to commit fcefbd9.
Hadn't exposed this in manual tested on my local development machine or
remotely.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
9 years agoBump version number post-release
Wincent Colaiuta [Wed, 27 Feb 2013 08:46:34 +0000 (00:46 -0800)] 
Bump version number post-release

Signed-off-by: Wincent Colaiuta <win@wincent.com>
9 years agoPrep for 4.0.1 release 4.0.1
Wincent Colaiuta [Wed, 27 Feb 2013 08:41:24 +0000 (00:41 -0800)] 
Prep for 4.0.1 release

Signed-off-by: Wincent Colaiuta <win@wincent.com>
9 years agoAttempted fix for build issues on Linux with RubyGems 2.0.0
Wincent Colaiuta [Wed, 27 Feb 2013 08:37:46 +0000 (00:37 -0800)] 
Attempted fix for build issues on Linux with RubyGems 2.0.0

On Linux the build is failing with:

  make install
  /usr/bin/install -c -m 0755 wikitext.so /data/shared/bundle/ruby/2.0.0/gems/wikitext-4.0/ext
  /usr/bin/install: `wikitext.so' and `/data/shared/bundle/ruby/2.0.0/gems/wikitext-4.0/ext/wikitext.so' are the same file

Looks to affect many gems with native components:

  https://github.com/rubygems/rubygems/issues/411
  https://bugs.ruby-lang.org/issues/7344
  https://bugs.ruby-lang.org/issues/7698

The workaround applied here is to move the extension files down one
level in the hierarchy.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
9 years agoBump version number post-release
Wincent Colaiuta [Wed, 27 Feb 2013 06:13:45 +0000 (22:13 -0800)] 
Bump version number post-release

Signed-off-by: Wincent Colaiuta <win@wincent.com>
9 years agoRemove dependency on HighLine
Wincent Colaiuta [Wed, 27 Feb 2013 06:10:50 +0000 (22:10 -0800)] 
Remove dependency on HighLine

Degrade gracefully in the absence of HighLine.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
9 years agoAdd license
Wincent Colaiuta [Wed, 27 Feb 2013 05:51:53 +0000 (21:51 -0800)] 
Add license

Signed-off-by: Wincent Colaiuta <win@wincent.com>
9 years agoSilence deprecation warnings in Rakefile 4.0
Wincent Colaiuta [Wed, 27 Feb 2013 05:44:10 +0000 (21:44 -0800)] 
Silence deprecation warnings in Rakefile

RbConfig is the new Config.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
9 years agoLoosen version requirements in gemspec
Wincent Colaiuta [Wed, 27 Feb 2013 05:41:28 +0000 (21:41 -0800)] 
Loosen version requirements in gemspec

Signed-off-by: Wincent Colaiuta <win@wincent.com>
9 years agoUse rbenv locally to peg development environment at 2.0.0-p0
Wincent Colaiuta [Wed, 27 Feb 2013 05:40:35 +0000 (21:40 -0800)] 
Use rbenv locally to peg development environment at 2.0.0-p0

Signed-off-by: Wincent Colaiuta <win@wincent.com>
9 years agoBundle update
Wincent Colaiuta [Wed, 27 Feb 2013 05:36:58 +0000 (21:36 -0800)] 
Bundle update

Signed-off-by: Wincent Colaiuta <win@wincent.com>
9 years agoVarious fixes for Ruby 2.0.0 compatibility
Wincent Colaiuta [Wed, 27 Feb 2013 05:22:45 +0000 (21:22 -0800)] 
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>
9 years agoRemove unnecessary shebang lines from spec suite
Wincent Colaiuta [Wed, 27 Feb 2013 05:19:56 +0000 (21:19 -0800)] 
Remove unnecessary shebang lines from spec suite

We only ever run specs using the No examples found.

Finished in 0.00003 seconds
0 examples, 0 failures command line helper,
so these shebang lines can go away.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
9 years agoSilence some Clang warnings
Wincent Colaiuta [Tue, 26 Feb 2013 08:46:07 +0000 (00:46 -0800)] 
Silence some Clang warnings

Signed-off-by: Wincent Colaiuta <win@wincent.com>
9 years agoBump version number post-release
Wincent Colaiuta [Sat, 16 Feb 2013 20:19:21 +0000 (12:19 -0800)] 
Bump version number post-release

Signed-off-by: Wincent Colaiuta <win@wincent.com>
9 years agoPrepare for 3.1 release 3.1
Wincent Colaiuta [Sat, 16 Feb 2013 20:09:07 +0000 (12:09 -0800)] 
Prepare for 3.1 release

Signed-off-by: Wincent Colaiuta <win@wincent.com>
9 years agoMake it easier to set a link_proc
Wincent Colaiuta [Sat, 16 Feb 2013 19:58:38 +0000 (11:58 -0800)] 
Make it easier to set a link_proc

In addition to being able to set a link_proc at parse time, make it
possible to do so at or after initialization as well.

This will be useful in the Rails context:

  Wikitext::Parser.shared_parser.link_proc = ...

See also:

  https://wincent.com/issues/2061

Signed-off-by: Wincent Colaiuta <win@wincent.com>
9 years agoSilence a Clang warning about use of an uninitialized variable
Wincent Colaiuta [Sat, 16 Feb 2013 19:51:23 +0000 (11:51 -0800)] 
Silence a Clang warning about use of an uninitialized variable

  parser.c:350:14: warning: variable 'dest' is used uninitialized whenever 'if' condition is false
      else if ((src[0] & 0xf8) == 0xf0)
              ^~~~~~~~~~~~~~~~~~~~~~~
  parser.c:375:12: note: uninitialized use occurs here
      return dest;
            ^~~~
  parser.c:350:10: note: remove the 'if' if its condition is always true
      else if ((src[0] & 0xf8) == 0xf0)
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
  parser.c:307:18: note: initialize the variable 'dest' to silence this warning
      uint32_t dest;
                  ^
                    = 0

In this case the warning is spurious (the `else` branch raises an
exception, so it is not possible for `dest` to be used unuinitialized).
But Clang doesn't know that, so keep it happy by initializing the
variable every time.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
9 years agoEnsure ampersands in URIs are adequately entified
Wincent Colaiuta [Thu, 29 Nov 2012 08:25:49 +0000 (00:25 -0800)] 
Ensure ampersands in URIs are adequately entified

Fixes:

  https://wincent.com/issues/2010

Signed-off-by: Wincent Colaiuta <win@wincent.com>
9 years agoMove some functions around to avoid the forward declarations
Wincent Colaiuta [Thu, 29 Nov 2012 07:58:16 +0000 (23:58 -0800)] 
Move some functions around to avoid the forward declarations

In order to fix a bug I'm going to need to use
wiki_append_sanitized_link_target and, therefore, a couple of its
dependencies high up in the file.

Just move the functions up so as to avoid the need to make a forward
declaration.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
9 years agoSimplify Wikitext_parser_sanitize_link_target
Wincent Colaiuta [Thu, 29 Nov 2012 07:50:56 +0000 (23:50 -0800)] 
Simplify Wikitext_parser_sanitize_link_target

Commit 778839e made the wiki_append_sanitized_link_target function more
flexible by making it accept a str_t instead of a parser_t. This in turn
means that we can simplify the Wikitext_parser_sanitize_link_target
function; it can deal with a str_t directly rather than working with a
throwaway parser_t.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
9 years agoTeach wiki_append_sanitized_link_target to take a str_t
Wincent Colaiuta [Thu, 29 Nov 2012 07:46:30 +0000 (23:46 -0800)] 
Teach wiki_append_sanitized_link_target to take a str_t

Rather than passing in a parser_t and assuming the text we want to
operate on is the one in the struct, pass in the link target str_t
explicitly. This added flexibility will make the
wiki_append_sanitized_link_target function suitable for wider use, which
I am presently going to do in order to fix a bug.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
9 years agoUpdate to RSpec 2.12.0
Wincent Colaiuta [Thu, 29 Nov 2012 06:56:25 +0000 (22:56 -0800)] 
Update to RSpec 2.12.0

Signed-off-by: Wincent Colaiuta <win@wincent.com>
10 years agoUpdate some copyright year ranges
Wincent Colaiuta [Sun, 4 Mar 2012 00:50:52 +0000 (16:50 -0800)] 
Update some copyright year ranges

Just the relevant project-wide files, the README and the LICENSE.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
10 years agoBump version number post-release
Wincent Colaiuta [Sun, 4 Mar 2012 00:47:20 +0000 (16:47 -0800)] 
Bump version number post-release

Signed-off-by: Wincent Colaiuta <win@wincent.com>
10 years agoBump version number for 3.0.1 release 3.0.1
Wincent Colaiuta [Sun, 4 Mar 2012 00:43:46 +0000 (16:43 -0800)] 
Bump version number for 3.0.1 release

Signed-off-by: Wincent Colaiuta <win@wincent.com>
10 years agoAllow email addresses inside external link text
Wincent Colaiuta [Sun, 4 Mar 2012 00:25:21 +0000 (16:25 -0800)] 
Allow email addresses inside external link text

Previously we allowed:

  [mailto:user@example.com text]

but dealt poorly with:

  [mailto:user@example.com user@example.com]

While that might seem like a contrived example (because you could
dispense with the explicit external link entirely and instead rely on
the standard auto-linkification) it also meant that we couldn't handle
perfectly reasonable and useful input like:

  [mailto:user@example.com contact me at user@example.com for info]

Note the problem wasn't just limited to URIs with the "mailto:" schema;
we also choked on stuff like:

  [http://google.com/?q=user@example.com Google for user@example.com]

Reported here:

  https://wincent.com/issues/1955

Signed-off-by: Wincent Colaiuta <win@wincent.com>
10 years agoBump version number post-release
Wincent Colaiuta [Fri, 11 Nov 2011 06:24:45 +0000 (22:24 -0800)] 
Bump version number post-release

Signed-off-by: Wincent Colaiuta <win@wincent.com>
10 years agoPrepare for 3.0 release 3.0
Wincent Colaiuta [Thu, 10 Nov 2011 08:57:23 +0000 (00:57 -0800)] 
Prepare for 3.0 release

Signed-off-by: Wincent Colaiuta <win@wincent.com>
10 years agoFix for lines beginning with slashes in PRE blocks
Wincent Colaiuta [Thu, 10 Nov 2011 08:33:25 +0000 (00:33 -0800)] 
Fix for lines beginning with slashes in PRE blocks

I've fixed quite a few of these bugs over the years. I'd aimed to shake
them all out in commit 27681bab (back in 2008), but looks like I missed
one.

Fixes:
  https://wincent.com/issues/1891

Signed-off-by: Wincent Colaiuta <win@wincent.com>
11 years agoUpdate docs for 3.0b release 3.0b
Wincent Colaiuta [Sat, 28 May 2011 07:36:44 +0000 (00:36 -0700)] 
Update docs for 3.0b release

Signed-off-by: Wincent Colaiuta <win@wincent.com>
11 years agoRakefile: execute yardoc in bundle context
Wincent Colaiuta [Sat, 28 May 2011 07:26:37 +0000 (00:26 -0700)] 
Rakefile: execute yardoc in bundle context

Signed-off-by: Wincent Colaiuta <win@wincent.com>
11 years agoBump version number for 3.0b release
Wincent Colaiuta [Sat, 28 May 2011 07:24:20 +0000 (00:24 -0700)] 
Bump version number for 3.0b release

Bumpig the major version number here because this is a
compatibility-breaking release (supporting only Rails 3.1.0 and above).
As Rails 3.1.0 isn't finalized yet, marking this one as a beta, as other
tweaks may be required by the time Rails 3.1.0 goes final.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
11 years agoModernize version spec
Wincent Colaiuta [Sat, 28 May 2011 07:20:26 +0000 (00:20 -0700)] 
Modernize version spec

By "modernize" here I mean avoid an unnecessary "should"
for conciseness.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
11 years agoWhitespace cleanup
Wincent Colaiuta [Sat, 28 May 2011 07:14:50 +0000 (00:14 -0700)] 
Whitespace cleanup

Signed-off-by: Wincent Colaiuta <win@wincent.com>
11 years agoRename spec/trash -> spec/.trash
Wincent Colaiuta [Sat, 28 May 2011 07:12:29 +0000 (00:12 -0700)] 
Rename spec/trash -> spec/.trash

This has a number of benefits:

  - things which search (like Command-T and ack) won't waste time
    looking at the enormous quantity of stuff that accumulates in the
    trash dir
  - RSpec won't try to run stuff buried deep down inside the trash dir,
    almost certainly breaking

Signed-off-by: Wincent Colaiuta <win@wincent.com>
11 years agoRakefile: run spec task in bundle context
Wincent Colaiuta [Sat, 28 May 2011 07:08:00 +0000 (00:08 -0700)] 
Rakefile: run spec task in bundle context

Signed-off-by: Wincent Colaiuta <win@wincent.com>
11 years agoBundle update RSpec (2.2.0 -> 2.6.0)
Wincent Colaiuta [Sat, 28 May 2011 06:15:51 +0000 (23:15 -0700)] 
Bundle update RSpec (2.2.0 -> 2.6.0)

Signed-off-by: Wincent Colaiuta <win@wincent.com>
11 years agoDrop support for Rails 3.0.x
Wincent Colaiuta [Sat, 28 May 2011 06:07:12 +0000 (23:07 -0700)] 
Drop support for Rails 3.0.x

In the interests of moving forward, older versions of Rails will
continue to be supported with the last Wikitext release (2.1.1, 2.1.x),
but the current version will only support Rails 3.1.0 and above.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
11 years agoAvoid another Rails 3.1 deprecation warning
Wincent Colaiuta [Sat, 28 May 2011 05:48:26 +0000 (22:48 -0700)] 
Avoid another Rails 3.1 deprecation warning

Specifically:

  DEPRECATION WARNING: Including Compilable in your template handler is
  deprecated. Since Rails 3, all the API your template handler needs to
  implement is to respond to #call.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
11 years agoAvoid a Rails 3.1 deprecation warning
Wincent Colaiuta [Sat, 28 May 2011 05:45:03 +0000 (22:45 -0700)] 
Avoid a Rails 3.1 deprecation warning

Specifically:

  DEPRECATION WARNING: Inheriting from ActionView::Template::Handler is
  deprecated. Since Rails 3, all the API your template handler needs to
  implement is to respond to #call.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
11 years agoRemove special case code for Rails 2
Wincent Colaiuta [Sat, 28 May 2011 05:44:34 +0000 (22:44 -0700)] 
Remove special case code for Rails 2

Signed-off-by: Wincent Colaiuta <win@wincent.com>
11 years agoRemove rails/init.rb
Wincent Colaiuta [Sat, 28 May 2011 05:37:43 +0000 (22:37 -0700)] 
Remove rails/init.rb

This used to be evaluated automatically under Rails 2, but this is no
longer the case with Rails 3.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
11 years agoManage Arel version as well when setting up Rails test apps
Wincent Colaiuta [Sun, 15 May 2011 23:36:40 +0000 (16:36 -0700)] 
Manage Arel version as well when setting up Rails test apps

This gets the spec suite passing in a hopefully robust and independent,
"bundlerized" way, for Rails version 3.0.1 through 3.0.7. It even works
on the current "Edge" Rails.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
11 years agoMore attempts at getting Bundlerized test Rails app working
Wincent Colaiuta [Sun, 15 May 2011 19:53:02 +0000 (12:53 -0700)] 
More attempts at getting Bundlerized test Rails app working

Trying with the latest Bundler (1.0.13) and RubyGems (1.8.2) I see the
test environment also winds up with GEM_PATH and GEM_HOME set, so be a
little more careful about how we clean the environment (note that before
we were going too far, cleaning the entire environment). We now clean
any environment variables starting with GEM_ or BUNDLE_.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
11 years agoUpdate Bundle to get autotest working
Wincent Colaiuta [Sun, 15 May 2011 19:36:42 +0000 (12:36 -0700)] 
Update Bundle to get autotest working

Note that we must also add a .rspec file to get autodiscovery working.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
11 years agoAdd ZenTest as a development dependency so we can run autotest
Wincent Colaiuta [Sun, 15 May 2011 19:34:23 +0000 (12:34 -0700)] 
Add ZenTest as a development dependency so we can run autotest

Signed-off-by: Wincent Colaiuta <win@wincent.com>
11 years agoUpdate Bundle with new Bundler (1.0.13)
Wincent Colaiuta [Sun, 15 May 2011 19:25:19 +0000 (12:25 -0700)] 
Update Bundle with new Bundler (1.0.13)

Signed-off-by: Wincent Colaiuta <win@wincent.com>
11 years agoRemove has_rdoc from gemspec, as RubyGems 1.8 is complaining about it
Wincent Colaiuta [Sun, 15 May 2011 19:21:28 +0000 (12:21 -0700)] 
Remove has_rdoc from gemspec, as RubyGems 1.8 is complaining about it

Signed-off-by: Wincent Colaiuta <win@wincent.com>
11 years agoFuture-proof version-number detection
Wincent Colaiuta [Sun, 15 May 2011 09:58:33 +0000 (02:58 -0700)] 
Future-proof version-number detection

With this we'll be good to go until Rails 10...

Signed-off-by: Wincent Colaiuta <win@wincent.com>
11 years agoRemove some dead code
Wincent Colaiuta [Sun, 15 May 2011 09:41:17 +0000 (02:41 -0700)] 
Remove some dead code

Signed-off-by: Wincent Colaiuta <win@wincent.com>
11 years agoBundlerize test Rails apps
Wincent Colaiuta [Sun, 15 May 2011 09:41:05 +0000 (02:41 -0700)] 
Bundlerize test Rails apps

This gets all versions 3.0.1 through 3.0.7 passing, although we still have
problems with "Edge" Rails.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
11 years agoSet Rails app version aggressively
Wincent Colaiuta [Sun, 15 May 2011 09:40:23 +0000 (02:40 -0700)] 
Set Rails app version aggressively

It's the only way to be sure.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
11 years agoBe more verbose about raised exception if Rails spec set-up fails
Wincent Colaiuta [Sun, 15 May 2011 09:39:57 +0000 (02:39 -0700)] 
Be more verbose about raised exception if Rails spec set-up fails

Signed-off-by: Wincent Colaiuta <win@wincent.com>
11 years agoUse Wopen3.system method for convenience
Wincent Colaiuta [Sun, 15 May 2011 08:28:10 +0000 (01:28 -0700)] 
Use Wopen3.system method for convenience

Signed-off-by: Wincent Colaiuta <win@wincent.com>
11 years agoDon't test against Rails 2 versions
Wincent Colaiuta [Sun, 15 May 2011 04:15:22 +0000 (21:15 -0700)] 
Don't test against Rails 2 versions

Testing against so many versions of Rails is proving to be a
maintenance nightmare, so we're going to change tack: I'll continue to
support the current 2.x series of the Wikitext gem, and it will work
perfectly with Rails 2.x.

I'll also be supporting a new 3.x series of the gem, which will support
only Rails 3.x. It is relatively easy to support multiple versions of
the gem, each tailored for a particular version of Rails, compared with
trying to get a single version fo the gem to support all versions (see
the hoops that Haml jumps through to do this).

Additionally, testing against so many versions is complicated even more
when Bundler is added to the equation. From here on I'll be
concentrating on making the Rails specs Bundler-aware, but evidently
only in the 3.x branch, and only against Rails 3.x.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
11 years agoUpdate version numbers for Rails specs
Wincent Colaiuta [Sun, 15 May 2011 04:08:45 +0000 (21:08 -0700)] 
Update version numbers for Rails specs

Reformat for readability, add a couple of missing versions to the list,
and remove versions which we no longer test against.

We only test released versions, and it appears that some versions have
(eg. 2.3.2.1, 2.3.3.1) have been pulled from the gem servers (or at
least they no longer show up in the output of "gem list --remote --all
rails").

Signed-off-by: Wincent Colaiuta <win@wincent.com>
11 years agoSilence warnings about already defined constant
Wincent Colaiuta [Sun, 15 May 2011 03:59:19 +0000 (20:59 -0700)] 
Silence warnings about already defined constant

Signed-off-by: Wincent Colaiuta <win@wincent.com>
11 years agoFix typo in code comment
Wincent Colaiuta [Fri, 3 Dec 2010 16:09:02 +0000 (17:09 +0100)] 
Fix typo in code comment

See:

  https://wincent.com/issues/1754

Signed-off-by: Wincent Colaiuta <win@wincent.com>
11 years agoUpdate to RSpec 2.2 for faster spec runs
Wincent Colaiuta [Wed, 1 Dec 2010 14:31:02 +0000 (15:31 +0100)] 
Update to RSpec 2.2 for faster spec runs

Signed-off-by: Wincent Colaiuta <win@wincent.com>
11 years agoBump version number post-release
Wincent Colaiuta [Sat, 6 Nov 2010 00:15:42 +0000 (01:15 +0100)] 
Bump version number post-release

Signed-off-by: Wincent Colaiuta <win@wincent.com>
11 years agoBump version number for 2.1.1 release 2.1.1
Wincent Colaiuta [Sat, 6 Nov 2010 00:09:47 +0000 (01:09 +0100)] 
Bump version number for 2.1.1 release

Signed-off-by: Wincent Colaiuta <win@wincent.com>
11 years agoClear RUBYOPT in spec environment to keep Bundler out
Wincent Colaiuta [Sat, 6 Nov 2010 00:08:39 +0000 (01:08 +0100)] 
Clear RUBYOPT in spec environment to keep Bundler out

Bundler injects itself into subprocesses, which wreaks havoc with our
Rails tests.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
11 years agoFix another token-dropping bug
Wincent Colaiuta [Sat, 6 Nov 2010 00:07:05 +0000 (01:07 +0100)] 
Fix another token-dropping bug

Signed-off-by: Wincent Colaiuta <win@wincent.com>
11 years agoAdd another example for token-swallowing bug
Wincent Colaiuta [Fri, 5 Nov 2010 23:56:07 +0000 (00:56 +0100)] 
Add another example for token-swallowing bug

Signed-off-by: Wincent Colaiuta <win@wincent.com>
11 years agoDon't drop unexpected token on the floor after failed external link
Wincent Colaiuta [Fri, 5 Nov 2010 23:51:12 +0000 (00:51 +0100)] 
Don't drop unexpected token on the floor after failed external link

This specifically arises after an EXT_LINK_START + PATH sequence. At
this point we expect a SPACE token, but if we don't get it, we were just
dropping it on the floor, which is bad.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
11 years agoRemove BASEDIR constant from spec_helper
Wincent Colaiuta [Sun, 17 Oct 2010 17:47:53 +0000 (19:47 +0200)] 
Remove BASEDIR constant from spec_helper

We can rely on Ruby itself to guard against double-evaluating the
spec_helper file seeing as we always require it as "spec_helper" and
rely on the load path being set up in order to find it.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
11 years agoRemove explicit rubygems require from spec_helper
Wincent Colaiuta [Sun, 17 Oct 2010 17:46:38 +0000 (19:46 +0200)] 
Remove explicit rubygems require from spec_helper

As we should always be run via Bundler (specifically, bin/rspec) there
is no need to ever require rubygems explicitly as it will already have
been loaded and the load path set up by Bundler.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
11 years agoDon't use absolute path when requiring spec_helper.rb
Wincent Colaiuta [Sun, 17 Oct 2010 17:42:59 +0000 (19:42 +0200)] 
Don't use absolute path when requiring spec_helper.rb

RSpec 2.0 adds the spec directory to the load path, so it is no longer
necessary to specify an absolute path in order to ensure that the helper
only gets evaluated once.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
11 years agoUse Bundler to manage development environment
Wincent Colaiuta [Sun, 17 Oct 2010 15:41:32 +0000 (17:41 +0200)] 
Use Bundler to manage development environment

Note that this actually breaks many (all?) of the specs which run
in the scratch Rails environments set up to test the extension against
different versions of Rails.

This is because Bundler tries to apply the same restrictions to those
sub-environments as apply to the parent environment, so more changes
will be needed to adapt those Rails tests to work in a Bundler-dominated
world.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
11 years agoBump version number post-release
Wincent Colaiuta [Sun, 17 Oct 2010 15:09:03 +0000 (17:09 +0200)] 
Bump version number post-release

Signed-off-by: Wincent Colaiuta <win@wincent.com>
11 years agoBump version number for 2.1 release 2.1
Wincent Colaiuta [Sun, 17 Oct 2010 15:07:35 +0000 (17:07 +0200)] 
Bump version number for 2.1 release

Signed-off-by: Wincent Colaiuta <win@wincent.com>
11 years agoAdd docs and specs for external_link_rel attribute
Wincent Colaiuta [Sun, 17 Oct 2010 15:04:07 +0000 (17:04 +0200)] 
Add docs and specs for external_link_rel attribute

Signed-off-by: Wincent Colaiuta <win@wincent.com>
11 years agoAdd ability to override external_link_rel at parse time
Wincent Colaiuta [Sun, 17 Oct 2010 14:42:10 +0000 (16:42 +0200)] 
Add ability to override external_link_rel at parse time

Signed-off-by: Wincent Colaiuta <win@wincent.com>
11 years agoAdd ability to override external_link_rel via an accessor
Wincent Colaiuta [Sun, 17 Oct 2010 14:41:31 +0000 (16:41 +0200)] 
Add ability to override external_link_rel via an accessor

Signed-off-by: Wincent Colaiuta <win@wincent.com>
11 years agoSwitch to RSpec 2.0
Wincent Colaiuta [Sun, 17 Oct 2010 13:23:08 +0000 (15:23 +0200)] 
Switch to RSpec 2.0

Signed-off-by: Wincent Colaiuta <win@wincent.com>
11 years agoAdd ability to add rel="nofollow" to external links
Mike Stangel [Sun, 17 Oct 2010 12:36:48 +0000 (14:36 +0200)] 
Add ability to add rel="nofollow" to external links

Signed-off-by: Wincent Colaiuta <win@wincent.com>
12 years agoRemove references to old (GPL) license
Wincent Colaiuta [Thu, 29 Jul 2010 07:25:48 +0000 (09:25 +0200)] 
Remove references to old (GPL) license

Signed-off-by: Wincent Colaiuta <win@wincent.com>
12 years agoMake Yardoc upload site configurable
Wincent Colaiuta [Mon, 26 Jul 2010 17:26:01 +0000 (19:26 +0200)] 
Make Yardoc upload site configurable

Signed-off-by: Wincent Colaiuta <win@wincent.com>
12 years agodocs: add list examples
Wincent Colaiuta [Sun, 11 Jul 2010 09:34:18 +0000 (11:34 +0200)] 
docs: add list examples

Signed-off-by: Wincent Colaiuta <win@wincent.com>
12 years agoFormat all "pre" blocks for YARD
Wincent Colaiuta [Wed, 23 Jun 2010 16:12:20 +0000 (18:12 +0200)] 
Format all "pre" blocks for YARD

This means marking all non-Ruby "pre" blocks using a "!!!wikitext" or
"!!!html" marker.

At the moment there is no syntax highlighting for wikitext or HTML, so
those tags are effectively equivalent to "!!!plain", but the important
thing is that we stop YARD from inappropriately applying Ruby syntax
highlighting rules to non-ruby code, and if syntax highlighting for the
other languages is ever added, we will be ready for it.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
12 years agoBump YARD requirement to 0.5.8
Wincent Colaiuta [Wed, 23 Jun 2010 15:34:47 +0000 (17:34 +0200)] 
Bump YARD requirement to 0.5.8

From the official announcement:

  Yesterday I released YARD 0.5.7. Unfortunately a few important bug fixes
  were omitted from the release because they were lost in the 0.6-master
  branch and I did not merge them back. That was a total screwup on my
  part. Hopefully this doesn't happen again (some extra specs were added
  to make sure this issue stays fixed).

Signed-off-by: Wincent Colaiuta <win@wincent.com>
12 years agoRequire at least 0.5.7 of YARD
Wincent Colaiuta [Tue, 22 Jun 2010 06:37:34 +0000 (08:37 +0200)] 
Require at least 0.5.7 of YARD

0.5.7 is needed as it includes a fix for "!!!plain" syntax. See:

  http://groups.google.com/group/yardoc/browse_thread/thread/85c49739f6df5a84

Signed-off-by: Wincent Colaiuta <win@wincent.com>
12 years agoHandle missing "add_development_dependency" by defining it
Wincent Colaiuta [Tue, 22 Jun 2010 06:35:56 +0000 (08:35 +0200)] 
Handle missing "add_development_dependency" by defining it

This will allow us to conveniently add requirements where needed.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
12 years agodoc: add custom title to generated documentation
Wincent Colaiuta [Sun, 13 Jun 2010 18:23:17 +0000 (20:23 +0200)] 
doc: add custom title to generated documentation

Signed-off-by: Wincent Colaiuta <win@wincent.com>
12 years agogit: ignore .yardoc directory
Wincent Colaiuta [Sun, 13 Jun 2010 17:45:03 +0000 (19:45 +0200)] 
git: ignore .yardoc directory

Signed-off-by: Wincent Colaiuta <win@wincent.com>
12 years agoDRY up gemspec
Wincent Colaiuta [Sun, 13 Jun 2010 17:37:24 +0000 (19:37 +0200)] 
DRY up gemspec

Rather than repeating the gem names (4 of them), repeat the
"respond_to?" check (1 check) each time through the loop.

Speed not an issue, here, so just run the check every time
through the loop rather than sacrificing readability by
cluttering things up with a local variable.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
12 years agoUse YARD for doc generation instead of RDoc
Wincent Colaiuta [Sun, 13 Jun 2010 17:34:39 +0000 (19:34 +0200)] 
Use YARD for doc generation instead of RDoc

The documentation is still going to require some tweaks, but this commit
switches over the build process to use YARD.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
12 years agoRemove RDoc hack notes; we're switching to YARD
Wincent Colaiuta [Sun, 13 Jun 2010 17:25:37 +0000 (19:25 +0200)] 
Remove RDoc hack notes; we're switching to YARD

Signed-off-by: Wincent Colaiuta <win@wincent.com>