Skip to content

Commit

Permalink
Version 4.3.4 (#125)
Browse files Browse the repository at this point in the history
* Remove the default value for store param

* Fix rubocop issues

* Update changelog
  • Loading branch information
kraft001 authored May 16, 2023
1 parent d3c96ed commit 2d4f76c
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 13 deletions.
4 changes: 2 additions & 2 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ AllCops:
NewCops: enable
TargetRubyVersion: 2.7

Metrics/LineLength:
Layout/LineLength:
Max: 120

IneffectiveAccessModifier:
Lint/IneffectiveAccessModifier:
Enabled: false

Style/HashTransformKeys:
Expand Down
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelog

## 4.3.4 — 2023-05-16

### Changed

* Use `auto` as the default value for the `store` param.


## 4.3.3 — 2023-04-14

### Changed
Expand Down
7 changes: 7 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,12 @@

source 'https://rubygems.org'

gem 'byebug', '~> 11.1'
gem 'rake', '~> 13.0'
gem 'rspec', '~> 3.0'
gem 'rubocop', '~> 1.48'
gem 'vcr', '~> 6.1'
gem 'webmock', '~> 3.18'

# Specify your gem's dependencies in uploadcare-ruby.gemspec
gemspec
1 change: 0 additions & 1 deletion lib/uploadcare/client/multipart_upload_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ def upload(object, options = {}, &block)

# Asks Uploadcare server to create a number of storage bin for uploads
def upload_start(object, options = {})
options.merge!(store: options[:store] || false)
body = HTTP::FormData::Multipart.new(
Param::Upload::UploadParamsGenerator.call(options).merge(form_data_for(object))
)
Expand Down
2 changes: 1 addition & 1 deletion lib/uploadcare/entity/conversion/base_converter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class << self
# Converts files
#
# @param doc_params [Array] of hashes with params or [Hash]
# @option options [Boolean] :store (false) whether to store file on servers.
# @option options [Boolean] :store whether to store file on servers.
def convert(params, options = {})
files_params = params.is_a?(Hash) ? [params] : params
conversion_client.new.convert_many(files_params, options)
Expand Down
2 changes: 1 addition & 1 deletion lib/uploadcare/entity/uploader.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class Uploader < Entity
#
# @param object [Array], [String] or [File]
# @param [Hash] options options for upload
# @option options [Boolean] :store (false) whether to store file on servers.
# @option options [Boolean] :store whether to store file on servers.
def self.upload(object, options = {})
if big_file?(object)
multipart_upload(object, options)
Expand Down
2 changes: 1 addition & 1 deletion lib/uploadcare/ruby/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module Uploadcare
VERSION = '4.3.3'
VERSION = '4.3.4'
end
7 changes: 0 additions & 7 deletions uploadcare-ruby.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,4 @@ Gem::Specification.new do |spec|
spec.add_dependency 'parallel', '~> 1.22'
spec.add_dependency 'retries', '~> 0.0'
spec.add_dependency 'uploadcare-api_struct', '>= 1.1', '< 2'

spec.add_development_dependency 'byebug', '~> 11.1'
spec.add_development_dependency 'rake', '~> 13.0'
spec.add_development_dependency 'rspec', '~> 3.0'
spec.add_development_dependency 'rubocop', '~> 1.48'
spec.add_development_dependency 'vcr', '~> 6.1'
spec.add_development_dependency 'webmock', '~> 3.18'
end

0 comments on commit 2d4f76c

Please sign in to comment.