lib/datapimp/sync.rb in datapimp-1.2.3 vs lib/datapimp/sync.rb in datapimp-1.2.4
- old
+ new
@@ -6,10 +6,10 @@
def self.data_source_types
%w(dropbox amazon github google pivotal json excel nokogiri)
end
def self.dispatch_sync_data_action(args, options)
- source = args.first
+ source = Array(args).first
type = options[:type]
result = case type
when "github"
Datapimp::Sources::GithubRepository.new(args, options)