Sha256: cacdc620ad4f5db071aaa354611e6558aa84b3c9d15fd2493cf9010606804736

Contents?: true

Size: 772 Bytes

Versions: 15

Compression:

Stored size: 772 Bytes

Contents

require 'rubygems'
require 'bundler/setup'
require 'bundler/gem_tasks'
require 'json'

require 'yard'
YARD::Rake::YardocTask.new

begin
  require 'rspec/core/rake_task'

  rspec_task = RSpec::Core::RakeTask.new(:spec)

  task :default => :spec

  namespace :doc do
    desc 'Generate Markdown Specification from the RSpec public API tests'
    task :spec do
      ENV['TEST_LIMIT_PROTOCOLS'] = JSON.dump({ msgpack: 'JSON and MsgPack' })

      rspec_task.rspec_opts = %w(
        --require ./spec/support/markdown_spec_formatter
        --order defined
        --tag ~api_private
        --format documentation
        --format Ably::RSpec::MarkdownSpecFormatter
      ).join(' ')

      Rake::Task[:spec].invoke
    end
  end
rescue LoadError
  # RSpec not available
end

Version data entries

15 entries across 15 versions & 2 rubygems

Version Path
ably-0.8.4 Rakefile
ably-rest-0.8.3 lib/submodules/ably-ruby/Rakefile
ably-0.8.3 Rakefile
ably-rest-0.8.2 lib/submodules/ably-ruby/Rakefile
ably-0.8.2 Rakefile
ably-0.8.1 Rakefile
ably-rest-0.8.1 lib/submodules/ably-ruby/Rakefile
ably-0.8.0 Rakefile
ably-0.7.6 Rakefile
ably-rest-0.7.5 lib/submodules/ably-ruby/Rakefile
ably-0.7.5 Rakefile
ably-0.7.4 Rakefile
ably-rest-0.7.3 lib/submodules/ably-ruby/Rakefile
ably-0.7.2 Rakefile
ably-0.7.1 Rakefile