Sha256: 07fb6793b71f7bb1987a5907363993e171a874704d14bc2e5b4ba411f2d9128c

Contents?: true

Size: 858 Bytes

Versions: 9

Compression:

Stored size: 858 Bytes

Contents

pwd = File.dirname(__FILE__)
$:.unshift pwd

# This is a predicate useful for the doc:guides task of applications.
def bundler?
  # Note that rake sets the cwd to the one that contains the Rakefile
  # being executed.
  File.exists?('Gemfile')
end

# Loading Action Pack requires rack and erubis.
require 'rubygems'

# Guides generation from gems.
gem "actionpack", '>= 3.0'

begin
  require 'redcloth'
rescue LoadError
  # This can happen if doc:guides is executed in an application.
  $stderr.puts('Generating guides requires RedCloth 4.1.1+.')
  $stderr.puts(<<ERROR) if bundler?
Please add

  gem 'RedCloth', '~> 4.2'

to the Gemfile, run

  bundle install

and try again.
ERROR

  exit 1
end

require "jax_guides/textile_extensions"
RedCloth.send(:include, JaxGuides::TextileExtensions)

require "jax_guides/generator"
JaxGuides::Generator.new.generate

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
jax-0.0.0.9 guides/jax_guides.rb
jax-0.0.0.8 guides/jax_guides.rb
jax-0.0.0.7 guides/jax_guides.rb
jax-0.0.0.6 guides/jax_guides.rb
jax-0.0.0.5 guides/jax_guides.rb
jax-0.0.0.4 guides/jax_guides.rb
jax-0.0.0.3 guides/jax_guides.rb
jax-0.0.0.2 guides/jax_guides.rb
jax-0.0.0.1 guides/jax_guides.rb