tiny_mce_helper 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/CHANGELOG +4 -0
  2. data/README +10 -8
  3. data/Rakefile +1 -2
  4. data/lib/tiny_mce_helper.rb +8 -8
  5. metadata +5 -13
data/CHANGELOG CHANGED
@@ -1,5 +1,9 @@
1
1
  *SVN*
2
2
 
3
+ *0.0.2* (September 26th, 2007)
4
+
5
+ * Remove gem dependency on actionpack
6
+
3
7
  *0.0.1* (August 20th, 2007)
4
8
 
5
9
  * Add README documentation
data/README CHANGED
@@ -1,6 +1,6 @@
1
1
  = tiny_mce_helper
2
2
 
3
- tiny_mce_helper adds helper methods for creating the TinyMCE initialization
3
+ +tiny_mce_helper+ adds helper methods for creating the TinyMCE initialization
4
4
  script.
5
5
 
6
6
  == Resources
@@ -15,7 +15,7 @@ Wiki
15
15
 
16
16
  Announcement
17
17
 
18
- * http://www.pluginaweek.org/
18
+ * http://www.pluginaweek.org
19
19
 
20
20
  Source
21
21
 
@@ -25,17 +25,19 @@ Development
25
25
 
26
26
  * http://dev.pluginaweek.org/browser/trunk/plugins/action_pack/tiny_mce_helper
27
27
 
28
- == Requirements
29
-
30
- Currently, you must be running a version of Linux in order to run the rake
31
- tasks.
32
-
33
28
  == Description
34
29
 
35
30
  TinyMCE is a rich text editor written in Javascript. This helper plugin helps
36
31
  make it easier to validate your code and include the TinyMCE initialization
37
32
  script. It also provides various tasks for installing/updating TinyMCE.
38
33
 
34
+ === Usage
35
+
36
+ === Requirements
37
+
38
+ Currently, you must be running a version of Linux in order to run the rake
39
+ tasks.
40
+
39
41
  === Installing TinyMCE
40
42
 
41
43
  To install TinyMCE, you can use the tiny_mce:install task. This will download
@@ -141,7 +143,7 @@ application.rhtml:
141
143
  tiny_mce_init_script(
142
144
  :theme => 'advanced',
143
145
  :editor_selector => 'rich_text',
144
- :content_css => '/stylesheets/tiny_mce_content.css',
146
+ :content_css => '/stylesheets/tiny_mce_content.css',
145
147
  :editor_css => '/stylesheets/tiny_mce_editor.css',
146
148
  :auto_reset_designmode => true
147
149
  )
data/Rakefile CHANGED
@@ -4,7 +4,7 @@ require 'rake/gempackagetask'
4
4
  require 'rake/contrib/sshpublisher'
5
5
 
6
6
  PKG_NAME = 'tiny_mce_helper'
7
- PKG_VERSION = '0.0.1'
7
+ PKG_VERSION = '0.0.2'
8
8
  PKG_FILE_NAME = "#{PKG_NAME}-#{PKG_VERSION}"
9
9
  RUBY_FORGE_PROJECT = 'pluginaweek'
10
10
 
@@ -38,7 +38,6 @@ spec = Gem::Specification.new do |s|
38
38
  s.autorequire = 'tiny_mce_helper'
39
39
  s.has_rdoc = true
40
40
  s.test_files = Dir['test/**/*_test.rb']
41
- s.add_dependency 'actionpack', '>= 1.13.1'
42
41
 
43
42
  s.author = 'Aaron Pfeifer, Neil Abraham'
44
43
  s.email = 'info@pluginaweek.org'
@@ -37,7 +37,7 @@ module PluginAWeek #:nodoc:
37
37
  #
38
38
  # == Target path
39
39
  #
40
- # By default, this will install TinyMCE into RAILS_ROOT/public/javascripts/tinymce.
40
+ # By default, this will install TinyMCE into RAILS_ROOT/public/javascripts/tiny_mce.
41
41
  # If you want to install it to a different directory, you can pass in
42
42
  # a parameter with the relative path from RAILS_ROOT.
43
43
  #
@@ -48,7 +48,7 @@ module PluginAWeek #:nodoc:
48
48
  options.reverse_merge!(:force => false)
49
49
 
50
50
  version = options[:version]
51
- base_target = options[:target] || 'public/javascripts/tinymce'
51
+ base_target = options[:target] || 'public/javascripts/tiny_mce'
52
52
  source_path = 'tinymce'
53
53
  target_path = File.expand_path(File.join(RAILS_ROOT, base_target))
54
54
 
@@ -87,7 +87,7 @@ module PluginAWeek #:nodoc:
87
87
  system("tar xf #{filename} &> tar.log")
88
88
  File.delete(filename)
89
89
  FileUtils.mkdir_p(target_path)
90
- FileUtils.cp_r("#{source_path}/.", target_path)
90
+ FileUtils.cp_r("#{source_path}/jscripts/tiny_mce/.", target_path)
91
91
  FileUtils.rmtree(source_path)
92
92
  puts 'Done!' if verbose
93
93
  rescue Object => e
@@ -103,7 +103,7 @@ module PluginAWeek #:nodoc:
103
103
  File.delete(OPTIONS_FILE_PATH)
104
104
 
105
105
  # Remove the TinyMCE installation
106
- FileUtils.rm_rf("#{RAILS_ROOT}/public/javascripts/tinymce")
106
+ FileUtils.rm_rf("#{RAILS_ROOT}/public/javascripts/tiny_mce")
107
107
  end
108
108
 
109
109
  # Updates the list of possible configuration options that can be used
@@ -145,12 +145,12 @@ module PluginAWeek #:nodoc:
145
145
  # == Customizing initialization options
146
146
  #
147
147
  # To customize the options to be included in the initialization script,
148
- # you can pass in a hash to #tiny_mce_init_script. For example,
148
+ # you can pass in a hash to +tiny_mce_init_script+. For example,
149
149
  #
150
150
  # tiny_mce_init_script(
151
151
  # :theme => 'advanced',
152
152
  # :editor_selector => 'rich_text',
153
- # :content_css => '/stylesheets/tiny_mce_content.css',
153
+ # :content_css => '/stylesheets/tiny_mce_content.css',
154
154
  # :editor_css => '/stylesheets/tiny_mce_editor.css',
155
155
  # :auto_reset_designmode => true
156
156
  # )
@@ -216,7 +216,7 @@ module PluginAWeek #:nodoc:
216
216
  # issues that occur within TinyMCE. In production, the compressed version
217
217
  # of TinyMCE will be used in order to increased download speed.
218
218
  def tiny_mce_file_name
219
- RAILS_ENV == 'development' ? 'tinymce/tiny_mce_src' : 'tinymce/tiny_mce'
219
+ RAILS_ENV == 'development' ? 'tiny_mce/tiny_mce_src' : 'tiny_mce/tiny_mce'
220
220
  end
221
221
 
222
222
  # Generates the javascript include for TinyMCE. For example,
@@ -225,7 +225,7 @@ module PluginAWeek #:nodoc:
225
225
  #
226
226
  # will generate:
227
227
  #
228
- # <script type="text/javascript" src="/javascripts/tinymce/tiny_mce.js"></script>
228
+ # <script type="text/javascript" src="/javascripts/tiny_mce/tiny_mce.js"></script>
229
229
  def javascript_include_tiny_mce
230
230
  javascript_include_tag tiny_mce_file_name
231
231
  end
metadata CHANGED
@@ -1,10 +1,10 @@
1
1
  --- !ruby/object:Gem::Specification
2
- rubygems_version: 0.9.0
2
+ rubygems_version: 0.9.4
3
3
  specification_version: 1
4
4
  name: tiny_mce_helper
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.0.1
7
- date: 2007-08-20 00:00:00 -04:00
6
+ version: 0.0.2
7
+ date: 2007-09-26 00:00:00 -04:00
8
8
  summary: Adds helper methods for creating the TinyMCE initialization script.
9
9
  require_paths:
10
10
  - lib
@@ -62,13 +62,5 @@ extensions: []
62
62
 
63
63
  requirements: []
64
64
 
65
- dependencies:
66
- - !ruby/object:Gem::Dependency
67
- name: actionpack
68
- version_requirement:
69
- version_requirements: !ruby/object:Gem::Version::Requirement
70
- requirements:
71
- - - ">="
72
- - !ruby/object:Gem::Version
73
- version: 1.13.1
74
- version:
65
+ dependencies: []
66
+