Skip to content

Commit

Permalink
Add backwards compability for Rails < 5.0 (#5)
Browse files Browse the repository at this point in the history
* Remove activesupport dependency for rails 4 compability.

* Fix frozen string literal.

* Remove activesupport method to simplify dependencies.

Co-authored-by: Denis Savitskiy <[email protected]>
  • Loading branch information
sadfuzzy and Denis Savitskiy authored Jul 11, 2022
1 parent 8a0a9d8 commit b6355ba
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion lib/tinkoff/request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def default_params

# Ключ=значение дополнительных параметров через “|”, например [email protected]|Phone=+71234567890
def prepare_data
return unless @params[:DATA].present?
return unless @params[:DATA].to_s.empty?

@params[:DATA] = @params[:DATA].to_query.tr('&', '|')
end
Expand Down
1 change: 0 additions & 1 deletion tinkoff.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,5 @@ Gem::Specification.new do |spec|
spec.add_development_dependency 'minitest', '~> 5.0'
spec.add_development_dependency 'rake', '~> 12.3'

spec.add_runtime_dependency 'activesupport', '>= 5.0'
spec.add_runtime_dependency 'httparty', '~> 0.14'
end

0 comments on commit b6355ba

Please sign in to comment.