Skip to content

Commit

Permalink
fix: remove support of ruby <2.4 and rails <4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
isqad committed Apr 28, 2022
1 parent ec9deb6 commit ae9f1c2
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 43 deletions.
20 changes: 0 additions & 20 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,26 +49,6 @@ steps:
RAILS_ENV: test
<<: *spec_step_common

- name: Tests Ruby 2.2
environment:
COMPOSE_FILE_EXT: drone
DOCKER_RUBY_VERSION: 2.2
RUBY_IMAGE_TAG: 2.2-latest
POSTGRES_IMAGE_TAG: 11
REDIS_IMAGE_TAG: 4-alpine
RAILS_ENV: test
<<: *spec_step_common

- name: Tests Ruby 2.3
environment:
COMPOSE_FILE_EXT: drone
DOCKER_RUBY_VERSION: 2.3
RUBY_IMAGE_TAG: 2.3-latest
POSTGRES_IMAGE_TAG: 11
REDIS_IMAGE_TAG: 4-alpine
RAILS_ENV: test
<<: *spec_step_common

- name: release
image: abakpress/gem-publication:latest
pull: if-not-exists
Expand Down
6 changes: 0 additions & 6 deletions Appraisals
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
if RUBY_VERSION < '2.4'
appraise 'rails4.0' do
gem 'rails', '~> 4.0.0'
end
end

appraise 'rails4.2' do
gem 'rails', '~> 4.2.0'
end
16 changes: 0 additions & 16 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,6 @@ gemspec

gem 'pg', '< 1.0.0'

if RUBY_VERSION < '2.3'
gem 'nokogiri', '< 1.10.0', require: false
gem 'pry-byebug', '< 3.7.0', require: false
gem 'public_suffix', '< 3.1.0', require: false
gem 'redis', '< 4.1.2', require: false
gem 'oj', '< 3.8.0', require: false
gem 'rspec-rails', '< 4', require: false
end

if RUBY_VERSION < '2.4'
gem 'mock_redis', '< 0.20.0', require: false
gem 'shoulda-matchers', '< 4.1.0', require: false
gem 'redis-namespace', '< 1.7.0', require: false
gem 'simplecov-html', '< 0.11.0', require: false
end

if RUBY_VERSION < '2.5'
gem 'sprockets', '< 4.0.0', require: false
end
Expand Down
2 changes: 1 addition & 1 deletion treasury.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Gem::Specification.new do |spec|

spec.metadata['allowed_push_host'] = 'https://gems.railsc.ru'

spec.add_runtime_dependency 'rails', '>= 4.0.13', '< 5'
spec.add_runtime_dependency 'rails', '>= 4.2.0', '< 5'
spec.add_runtime_dependency 'daemons', '>= 1.1.9'
spec.add_runtime_dependency 'class_logger', '>= 1.0.1'
spec.add_runtime_dependency 'callbacks_rb', '>= 0.0.1'
Expand Down

0 comments on commit ae9f1c2

Please sign in to comment.