lib/gooddata/rest/client.rb in gooddata-0.6.19 vs lib/gooddata/rest/client.rb in gooddata-0.6.20

- old
+ new

@@ -65,11 +65,11 @@ if username.nil? && password.nil? username = ENV['GD_GEM_USER'] password = ENV['GD_GEM_PASSWORD'] end - username = username.symbolize_keys if username.is_a?(Hash) + username = GoodData::Helpers.symbolize_keys(username) if username.is_a?(Hash) new_opts = opts.dup if username.is_a?(Hash) && username.key?(:sst_token) new_opts = username elsif username.is_a? Hash @@ -142,11 +142,11 @@ # Create factory bound to previously created connection @factory = ObjectFactory.new(self) end - def create_project(options = { title: 'Project', auth_token: ENV['GD_PROJECT_TOKEN'] }) + def create_project(options = { title: 'Project' }) GoodData::Project.create({ client: self }.merge(options)) end def create_project_from_blueprint(blueprint, options = {}) GoodData::Model::ProjectCreator.migrate(options.merge(spec: blueprint, client: self)) @@ -244,9 +244,11 @@ project = GoodData::Project[p, opts] fail ArgumentError, 'Wrong :project specified' if project.nil? url = project.links['uploads'] fail 'Project WebDAV not supported in this Data Center' unless url + + GoodData.logger.warn 'Beware! Project webdav is deprecated and should not be used.' url end def user_webdav_path(opts = { project: GoodData.project }) p = opts[:project]