use_tinymce 0.0.13 → 0.0.14
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/tasks/use_tinymce.rake +4 -4
- metadata +1 -1
data/lib/tasks/use_tinymce.rake
CHANGED
@@ -5,8 +5,8 @@ unless defined?(Rails)
|
|
5
5
|
puts "This rake task only runs on Rails"
|
6
6
|
exit
|
7
7
|
end
|
8
|
-
unless Rails.version =~ /^3.[
|
9
|
-
puts "Don't know how to install on Rails Version #{Rails.version}"
|
8
|
+
unless Rails.version =~ /^3.[012]/
|
9
|
+
puts "use_tinymce Error: Don't know how to install on Rails Version #{Rails.version}"
|
10
10
|
exit
|
11
11
|
end
|
12
12
|
|
@@ -111,7 +111,7 @@ namespace :use_tinymce do
|
|
111
111
|
task :install_jquery => :install_tinymce_jquery do
|
112
112
|
UseTinyMCE::RakeSupport::copy_init_script('use_tinymce_init_jquery.js')
|
113
113
|
end
|
114
|
-
when /^3
|
114
|
+
when /^3\.[12]/
|
115
115
|
desc "Install tinymce jquery plugin with 'advanced' initialization"
|
116
116
|
task :install => :uninstall do
|
117
117
|
raise Exception.new("Cannot install: #{UseTinyMCE::RakeSupport::JAVASCRIPT_ROOT} does not exist") unless UseTinyMCE::RakeSupport.mkdir_tree UseTinyMCE::RakeSupport::JAVASCRIPT_ROOT
|
@@ -119,7 +119,7 @@ namespace :use_tinymce do
|
|
119
119
|
UseTinyMCE::RakeSupport::copy_init_script('use_tinymce_init_jquery.js')
|
120
120
|
end
|
121
121
|
else
|
122
|
-
puts "Don't know how to install in Rails #{Rails.version}"
|
122
|
+
puts "use_tinymce error: Don't know how to install in Rails #{Rails.version}"
|
123
123
|
exit 1
|
124
124
|
end
|
125
125
|
end
|