Sha256: d2a8b4e3c24f33f838b35db038642dede6c1db49c60f1e74917224bdd657b1f1

Contents?: true

Size: 797 Bytes

Versions: 36

Compression:

Stored size: 797 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 ./lib/submodules/ably-ruby/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

36 entries across 36 versions & 1 rubygems

Version Path
ably-rest-1.2.7 Rakefile
ably-rest-1.2.6 Rakefile
ably-rest-1.2.4 Rakefile
ably-rest-1.2.3 Rakefile
ably-rest-1.2.2 Rakefile
ably-rest-1.2.1 Rakefile
ably-rest-1.2.0 Rakefile
ably-rest-1.1.8 Rakefile
ably-rest-1.1.7 Rakefile
ably-rest-1.1.6 Rakefile
ably-rest-1.1.5 Rakefile
ably-rest-1.1.4 Rakefile
ably-rest-1.1.4.rc Rakefile
ably-rest-1.1.3 Rakefile
ably-rest-1.1.2 Rakefile
ably-rest-1.1.2.rc1 Rakefile
ably-rest-1.1.0 Rakefile
ably-rest-1.0.6 Rakefile
ably-rest-1.0.5 Rakefile
ably-rest-1.0.0 Rakefile