Sha256: 5173a5a502b9b32cdfa60e63cfc54f06cc03e1e0a974fad8570254f97e342770

Contents?: true

Size: 1.08 KB

Versions: 5

Compression:

Stored size: 1.08 KB

Contents

require 'bundler'
Bundler::GemHelper.install_tasks

namespace :doc do
  require 'yard'
  YARD::Rake::YardocTask.new do |task|
    task.files   = ['lib/cloud_connect.rb', 'lib/cloud_connect/**/*.rb']
    task.options = [
      '--protected',
      '--output-dir', 'doc/yard',
      '--tag', 'format:Supported formats',
      '--tag', 'authenticated:Requires Authentication',
      '--tag', 'rate_limited:Rate Limited',
      '--markup', 'markdown',
    ]
  end
end

task :irb do
  $:.unshift File.join(File.dirname(__FILE__), *%w[.. lib])
  require 'irb'
  require 'bundler/setup'
  require 'cloud_connect'
  module IRB # :nodoc:
    def self.start_session(binding)
      unless @__initialized
        args = ARGV
        ARGV.replace(ARGV.dup)
        IRB.setup(nil)
        ARGV.replace(args)
        @__initialized = true
      end

      ws  = WorkSpace.new(binding)
      irb = Irb.new(ws)

      @CONF[:IRB_RC].call(irb.context) if @CONF[:IRB_RC]
      @CONF[:MAIN_CONTEXT] = irb.context

      catch(:IRB_EXIT) do
        irb.eval_input
      end
    end

    IRB.start_session(binding)
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
cloud_connect-2.0.2 Rakefile
cloud_connect-2.0.1 Rakefile
cloud_connect-2.0.0 Rakefile
cloud_connect-0.0.2 Rakefile
cloud_connect-0.0.1 Rakefile