Rakefile in rakuten_web_service-1.9.1 vs Rakefile in rakuten_web_service-1.9.2

- old
+ new

@@ -1,7 +1,20 @@ 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