diff --git a/lib/generators/spree_editor/install_generator.rb b/lib/generators/spree_editor/install_generator.rb index ff7c565..8ef6450 100644 --- a/lib/generators/spree_editor/install_generator.rb +++ b/lib/generators/spree_editor/install_generator.rb @@ -1,6 +1,7 @@ module SpreeEditor module Generators class InstallGenerator < Rails::Generators::Base + source_root File.expand_path("../../../templates", __FILE__) def add_javascripts append_file "app/assets/javascripts/admin/all.js", "//= require admin/spree_editor\n" @@ -10,6 +11,9 @@ def add_stylesheets inject_into_file "app/assets/stylesheets/admin/all.css", " *= require admin/spree_editor\n", :before => /\*\//, :verbose => true end + def copy_tinymce_file + copy_file "config/tinymce.yml", "config/tinymce.yml" + end end end end diff --git a/config/tinymce.yml b/lib/templates/config/tinymce.yml similarity index 100% rename from config/tinymce.yml rename to lib/templates/config/tinymce.yml diff --git a/spree_editor.gemspec b/spree_editor.gemspec index dab81e1..57956bb 100644 --- a/spree_editor.gemspec +++ b/spree_editor.gemspec @@ -1,12 +1,12 @@ Gem::Specification.new do |s| s.platform = Gem::Platform::RUBY s.name = 'spree_editor' - s.version = '1.0.0' + s.version = '1.0.1' s.summary = 'Adds support of several WYSIWYG editors to Spree' s.description = 'Atm supported: YUIRichEditor, WYMEditor, TinyMCE' s.required_ruby_version = '>= 1.8.7' - s.authors = ['Alexander Shuhin', 'Roman Smirnov', 'divineforest'] + s.authors = ['Alexander Shuhin', 'Roman Smirnov', 'divineforest', 'Marc Lee'] # s.email = 'david@loudthinking.com' s.homepage = 'http://github.com/spree/spree_editor' # s.rubyforge_project = 'actionmailer'