Sha256: 07c98887643baca1cba753c31c274b53e59792d375630906ebfa436ce3a04820

Contents?: true

Size: 522 Bytes

Versions: 7

Compression:

Stored size: 522 Bytes

Contents

require 'bundler/gem_tasks'
require 'rspec/core/rake_task'

task :endpoints do
  require 'rakuten_web_service'
  require 'terminal-table'

  table = Terminal::Table.new(headings: %w[Resource Endpoint]) do |t|
    RakutenWebService::Resource.subclasses.each do |resource|
      t << [resource.name, resource.endpoint] unless resource.endpoint.nil?
    end
  end

  puts table
end

RSpec::Core::RakeTask.new do |t|
  t.pattern = 'spec/**/*_spec.rb'
  t.rspec_opts = '-c -fd'
end

task :rspec => :spec
task :default => :spec

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
rakuten_web_service-1.13.2 Rakefile
rakuten_web_service-1.13.1 Rakefile
rakuten_web_service-1.13.0 Rakefile
rakuten_web_service-1.12.0 Rakefile
rakuten_web_service-1.11.0 Rakefile
rakuten_web_service-1.10.0 Rakefile
rakuten_web_service-1.9.2 Rakefile