lib/teaspoon/framework/base.rb in teaspoon-1.0.1 vs lib/teaspoon/framework/base.rb in teaspoon-1.0.2
- old
+ new
@@ -18,10 +18,13 @@
def framework_name(name = nil)
name.present? ? @_framework_name ||= name.to_sym : @_framework_name
end
- def register_version(version, js_runner, dependencies: [], dev_deps: [])
+ def register_version(version, js_runner, options = {})
+ dependencies = options[:dependencies] || []
+ dev_deps = options[:dev_deps] || []
+
if ENV["TEASPOON_DEVELOPMENT"] && dev_deps.any?
dependencies = dev_deps
end
if dependencies.empty?