plugems 1.1.1 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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