tinymce_splitblockquote 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -7,25 +7,21 @@ http://github.com/kete/tiny_mce/blob/master/README.rdoc
7
7
 
8
8
  = Usage
9
9
 
10
- To use this plugin, clone the source, submodule init, submodule update, gem build, gem install:
11
-
12
- git clone http://github.com/Tauop/tinymce_splitblockquote.git
13
- git submodule init
14
- git submodule update
15
- gem build tinymce_splitblockquote.gemspec
16
- gem install tinymce_splitblockquote-0.0.1.gem
10
+ To use this plugin, just install it via gem :
11
+ gem install tinymce_splitblockquote
17
12
 
18
13
  and add the following after the tiny_mce gem config line:
19
14
 
20
- config.gem 'tiny_mce-plugin'
15
+ config.gem 'tiny_mce'
21
16
 
22
- Alternatively, you can install it as a plugin. To do so, open a console, and in the root of you Rails application,
23
- install the plugin by running one of the following (depending on the method you use to import plugins):
24
- * script/plugin install git://github.com/Tauop/tinymce_splitblockquote.git
25
- * piston import git://github.com/Tauop/tinymce_splitblockquote.git vendor/plugins/tinymce_splitblockquote
26
- * git submodule add git://github.com/Tauop/tinymce_splitblockquote.git vendor/plugins/tinymce_splitblockquote
27
- * Download the latest files ( http://github.com/Tauop/tinymce_splitblockquote/tarball/master ) and extract to vendor/plugins/tinymce_splitblockquote
17
+ = Build
28
18
 
19
+ To build the gem : clone the source, submodule init, submodule update, gem build, gem install:
20
+
21
+ git clone http://github.com/Tauop/tinymce_splitblockquote.git
22
+ git submodule init && git submodule update
23
+ rake gemspec:generate
24
+ rake build && rake install
29
25
 
30
26
  = Credits
31
27
 
data/Rakefile CHANGED
@@ -5,7 +5,7 @@ begin
5
5
  require 'jeweler'
6
6
  Jeweler::Tasks.new do |gem|
7
7
  gem.name = "tinymce_splitblockquote"
8
- gem.version = "0.0.3"
8
+ gem.version = "0.0.4"
9
9
  gem.summary = %Q{A tiny_mce gem's plugin installing my splitblockquote plugin.}
10
10
  gem.description = %Q{This plugin splits (nested) blockquotes when the user try to break lines into them.}
11
11
 
@@ -29,6 +29,12 @@ unless defined?(TinyMCE::Plugin)
29
29
  def self.install
30
30
  return unless File.directory?(self.assets_path)
31
31
  require 'fileutils'
32
+
33
+ dest = File.join(Rails.root.to_s, 'public', 'javascripts' )
34
+ dest = File.join(dest, 'tiny_mce', 'plugins', 'splitblockquote', 'editor_plugin_src.js' )
35
+ orig = File.join(self.assets_path, 'plugins', 'splitblockquote', 'editor_plugin_src.js' )
36
+
37
+ return if FileUtils.identical?( orig, dest)
32
38
  puts "Installing #{self.name} plugin assets from #{self.assets_path}"
33
39
  FileUtils.cp_r "#{self.assets_path}/.", File.join(Rails.root.to_s, 'public', 'javascripts', 'tiny_mce')
34
40
  end
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{tinymce_splitblockquote}
8
- s.version = "0.0.3"
8
+ s.version = "0.0.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Guiran Patrick"]
12
- s.date = %q{2010-07-22}
12
+ s.date = %q{2010-07-27}
13
13
  s.description = %q{This plugin splits (nested) blockquotes when the user try to break lines into them.}
14
14
  s.email = %q{pguiran@linagora.com}
15
15
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tinymce_splitblockquote
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 23
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 3
10
- version: 0.0.3
9
+ - 4
10
+ version: 0.0.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Guiran Patrick
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-07-22 00:00:00 +02:00
18
+ date: 2010-07-27 00:00:00 +02:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency