Skip to content

Commit

Permalink
Remove support for Rails <4.0 and Ruby <1.9.3
Browse files Browse the repository at this point in the history
Rails 3.2 has been unsupported since Tolk 1.4.
  • Loading branch information
dnrce committed Sep 15, 2014
1 parent ce930a2 commit ace3660
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 10 deletions.
6 changes: 0 additions & 6 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,3 @@ source "http://rubygems.org"
gemspec

gem "rails", ENV['RAILS_VERSION']

group 'development' do
if RUBY_VERSION < '1.9'
gem "ruby-debug", ">= 0.10.3"
end
end
6 changes: 2 additions & 4 deletions lib/tolk/engine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,8 @@ class Engine < Rails::Engine

isolate_namespace Tolk

if Rails.version >= '3.1'
initializer :assets do |app|
app.config.assets.precompile += ['tolk/libraries.js']
end
initializer :assets do |app|
app.config.assets.precompile += ['tolk/libraries.js']
end
end
end
3 changes: 3 additions & 0 deletions tolk.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ Gem::Specification.new do |s|

s.platform = Gem::Platform::RUBY

s.required_ruby_version = '>= 1.9.3'

s.add_runtime_dependency 'rails', '~> 4.0.0'
s.add_runtime_dependency 'will_paginate'
s.add_runtime_dependency 'safe_yaml', ">= 0.8.6"

Expand Down

0 comments on commit ace3660

Please sign in to comment.