]> git.wincent.com - wikitext.git/log
wikitext.git
6 years agoMark Ruby 2.4 as supported
Wincent Colaiuta [Thu, 12 Jan 2017 02:20:16 +0000 (12:50 +1030)] 
Mark Ruby 2.4 as supported

Closes: https://github.com/wincent/wikitext/issues/4
7 years agoUpdate to Ruby 2.3.0 for development purposes
Wincent Colaiuta [Fri, 1 Jan 2016 15:23:46 +0000 (16:23 +0100)] 
Update to Ruby 2.3.0 for development purposes

Note that I also switched to using chruby/ruby-install in order to get
2.3.0 on the system, and that doesn't play nicely with these Bundler
bin-stubs, so I had to rip those out in favor of explicit `bundle exec`
invocations.

7 years agoPrepare for 4.3 release 4.3
Wincent Colaiuta [Fri, 1 Jan 2016 14:39:03 +0000 (15:39 +0100)] 
Prepare for 4.3 release

7 years agoMark Ruby 2.3.0 as supported
Wincent Colaiuta [Fri, 1 Jan 2016 07:47:14 +0000 (08:47 +0100)] 
Mark Ruby 2.3.0 as supported

Fixes: https://github.com/wincent/wikitext/issues/3
7 years agoPrepare 4.2 release 4.2
Wincent Colaiuta [Mon, 14 Dec 2015 17:53:57 +0000 (09:53 -0800)] 
Prepare 4.2 release

7 years agoDrop reference to Gemcutter
Wincent Colaiuta [Mon, 14 Dec 2015 17:51:56 +0000 (09:51 -0800)] 
Drop reference to Gemcutter

7 years agoRemove YARD upload
Wincent Colaiuta [Mon, 14 Dec 2015 17:51:10 +0000 (09:51 -0800)] 
Remove YARD upload

We're instead going to be deploying the file via Masochist (manually,
but such is life).

7 years agoAdd :pre_code option
Wincent Colaiuta [Mon, 14 Dec 2015 17:48:43 +0000 (09:48 -0800)] 
Add :pre_code option

Closes: https://github.com/wincent/wikitext/issues/2
7 years agoRemove some references to Rails
Wincent Colaiuta [Mon, 14 Dec 2015 08:20:39 +0000 (00:20 -0800)] 
Remove some references to Rails

Remove the brittle tests, and also a reference to a long-deleted file
that was lingering in the gemspec.

7 years agoUse --one-file mode in YARD to sidestep link issues
Wincent Colaiuta [Mon, 14 Dec 2015 08:00:59 +0000 (00:00 -0800)] 
Use --one-file mode in YARD to sidestep link issues

Relative paths in the generated docs are freaking out in combination
with my current nginx config. Jam it all in one file completely avoids
the problem, at a minor cost, so let's do it.

7 years agoUpdate Gemfile.lock
Wincent Colaiuta [Mon, 14 Dec 2015 08:00:04 +0000 (00:00 -0800)] 
Update Gemfile.lock

First run on this machine, so no bundle; figure I may as well update
while I am here.

8 years agoTighten up gemspec dependencies to quieten `gem build` warnings
Wincent Colaiuta [Tue, 21 Jul 2015 19:08:40 +0000 (12:08 -0700)] 
Tighten up gemspec dependencies to quieten `gem build` warnings

These are development dependencies, so I can afford to make them fairly
tight. I'm basing them on the current versions in the Gemfile.lock.

8 years agoNote in release notes that version 4.1.1 was yanked
Wincent Colaiuta [Tue, 21 Jul 2015 19:04:40 +0000 (12:04 -0700)] 
Note in release notes that version 4.1.1 was yanked

8 years agoUpdate release notes for 4.1.2 release
Wincent Colaiuta [Tue, 21 Jul 2015 19:02:41 +0000 (12:02 -0700)] 
Update release notes for 4.1.2 release

8 years agoBump version number post-release
Wincent Colaiuta [Tue, 21 Jul 2015 19:01:54 +0000 (12:01 -0700)] 
Bump version number post-release

8 years agoBump version number to 4.1.2 4.1.2
Wincent Colaiuta [Tue, 21 Jul 2015 18:40:15 +0000 (11:40 -0700)] 
Bump version number to 4.1.2

Going to have to yank 4.1.1 due to some kind of as-yet-undiagnosed build
breakage, as reported here: https://github.com/wincent/wikitext/issues/1

8 years agoUpdate release notes for 4.1.1
Wincent Colaiuta [Fri, 17 Jul 2015 01:04:41 +0000 (18:04 -0700)] 
Update release notes for 4.1.1

I forgot to do this previously. Also fixed up the broken heading styling
on the 4.1 release.

8 years agoUpdate author info and copyright notices
Wincent Colaiuta [Fri, 17 Jul 2015 00:58:19 +0000 (17:58 -0700)] 
Update author info and copyright notices

Change or remove all references to Wincent Colaiuta. Update the
copyright year ranges (and switch to "-present" to make them a little
more future-proof). Remove the donations section.

8 years agoUpdate Gemfile.lock
Wincent Colaiuta [Fri, 17 Jul 2015 00:50:10 +0000 (17:50 -0700)] 
Update Gemfile.lock

8 years agoSwitch to Ruby 2.2.2 for local development
Wincent Colaiuta [Fri, 17 Jul 2015 00:43:12 +0000 (17:43 -0700)] 
Switch to Ruby 2.2.2 for local development

8 years agoBump version number for 4.1.1 release 4.1.1
Wincent Colaiuta [Fri, 17 Jul 2015 00:41:24 +0000 (17:41 -0700)] 
Bump version number for 4.1.1 release

8 years agoUpdate some stale links in the documentation
Wincent Colaiuta [Fri, 17 Jul 2015 00:41:07 +0000 (17:41 -0700)] 
Update some stale links in the documentation

8 years agoOfficially support Ruby 2.2.x
Wincent Colaiuta [Fri, 17 Jul 2015 00:40:57 +0000 (17:40 -0700)] 
Officially support Ruby 2.2.x

9 years agoBump version number post-release
Wincent Colaiuta [Tue, 14 Jan 2014 02:36:16 +0000 (21:36 -0500)] 
Bump version number post-release

Signed-off-by: Wincent Colaiuta <win@wincent.com>
9 years agoBump version number for 4.1 release 4.1
Wincent Colaiuta [Tue, 14 Jan 2014 02:01:07 +0000 (21:01 -0500)] 
Bump version number for 4.1 release

Signed-off-by: Wincent Colaiuta <win@wincent.com>
9 years agoApply some stylistic fixes
Wincent Colaiuta [Tue, 14 Jan 2014 01:58:42 +0000 (20:58 -0500)] 
Apply some stylistic fixes

Included here:

  - add missing # on blank lines in license comments
  - switch to Ruby 1.9+ hash syntax (we dropped 1.8 support long ago)
  - uphold convention of commenting `end` lines for modules and classes
  - use parens around method param list declarations

Signed-off-by: Wincent Colaiuta <win@wincent.com>
9 years agoDrop code that only existed to support Rails 2
Wincent Colaiuta [Tue, 14 Jan 2014 01:44:04 +0000 (20:44 -0500)] 
Drop code that only existed to support Rails 2

We dropped support for Rails 2 back in the 3.0b release, so there is no
need to keep this crud lying around.

If somebody attempts to use the Gem with Rails 2, it should explode with
a NoMethodError when we call ActiveSupport.on_load(:action_view), which
seems fair enough.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
9 years agoAdd optional Haml filter
Wincent Colaiuta [Tue, 14 Jan 2014 01:43:40 +0000 (20:43 -0500)] 
Add optional Haml filter

Signed-off-by: Wincent Colaiuta <win@wincent.com>
9 years agoUpdate other benchmark file require statements
Wincent Colaiuta [Sat, 11 Jan 2014 19:04:43 +0000 (14:04 -0500)] 
Update other benchmark file require statements

This commit gets the remaining files in the benchmarks subdirectory
working again.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
11 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>
11 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>
11 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>
11 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>
11 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>
11 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>
11 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>