lib/teaspoon-devkit.rb in teaspoon-1.0.1 vs lib/teaspoon-devkit.rb in teaspoon-1.0.2

- old
+ new

@@ -19,11 +19,17 @@ if !loaded_from_teaspoon_root? load File.join(RAKEFILE) end end - def self.setup_framework_tasks(framework:, framework_name:, framework_const:, framework_root:, compile_assets:) + def self.setup_framework_tasks(options) extend Rake::DSL + + framework = options[:framework] + framework_name = options[:framework_name] + framework_const = options[:framework_const] + framework_root = options[:framework_root] + compile_assets = options[:compile_assets] namespace :teaspoon do namespace framework do desc "Run the #{framework_name} code examples" RSpec::Core::RakeTask.new(:spec) do |t|