plugems 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/plugems.rb +4 -0
- metadata +1 -1
data/lib/plugems.rb
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
module RailsVersionVerifier
|
2
|
+
ver = Rails::VERSION::STRING.split('.').map(&:to_i).extend(Comparable)
|
3
|
+
fail("The rails version #{ Rails::VERSION::STRING } is not supported by plugems") unless (ver >= [1,1,6] && ver <= [1,2,3])
|
4
|
+
end
|
1
5
|
# Rails 1.1.16 is not very extensible in how it loads rake tasks.
|
2
6
|
# There is a file called tasks/rails.rb, required from the default RAILS_ROOT/Rakefile,
|
3
7
|
# that has 3 lines of Dir['foo'].each {|a| load a}, which is not very extensible
|
metadata
CHANGED