lib/datapimp/sync.rb in datapimp-1.2.1 vs lib/datapimp/sync.rb in datapimp-1.2.2
- old
+ new
@@ -2,19 +2,19 @@
# which we are pushing or pulling files and data from. It will wrap the client
# implementation we are using.
module Datapimp
module Sync
def self.data_source_types
- %w(dropbox amazon github google json excel nokogiri)
+ %w(dropbox amazon github google pivotal json excel nokogiri)
end
def self.dispatch_sync_data_action(args, options)
source = args.first
type = options[:type]
result = case type
when "github"
- Datapimp::Sources::GithubRepository.new(source, options)
+ Datapimp::Sources::GithubRepository.new(args, options)
when "google", "google-spreadsheet"
require 'google_drive'
Datapimp::Sources::GoogleSpreadsheet.new(nil, key: source)
when "pivotal" then
Datapimp::Sources::Pivotal.new(args, options)