use_tinymce 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +19 -13
- data/lib/use_tinymce/use_tinymce.rb +2 -1
- metadata +3 -13
data/Rakefile
CHANGED
@@ -2,18 +2,20 @@ require 'rake'
|
|
2
2
|
require 'fileutils'
|
3
3
|
require 'zlib'
|
4
4
|
|
5
|
+
gem_name = 'use_tinymce'
|
6
|
+
|
5
7
|
# snarf gemspec and set version
|
6
|
-
|
7
|
-
|
8
|
+
gem_spec = eval File.new("#{gem_name}.gemspec").read
|
9
|
+
gem_version = gem_spec.version.to_s
|
8
10
|
tinymce_version = Dir.new('./assets/').map { |x| $1 if x =~ /tinymce_(.*).zip/ }.select {|x| x }.max
|
9
|
-
|
10
|
-
|
11
|
+
gem_zip = "#{gem_name}_#{gem_version}.zip"
|
12
|
+
gem_tgz = "#{gem_name}_#{gem_version}.tgz"
|
11
13
|
|
12
14
|
task :default => :test
|
13
15
|
|
14
16
|
desc "Run ManageMeta unit tests"
|
15
17
|
task :test do
|
16
|
-
require
|
18
|
+
require "./test/#{gem_name}_base_test"
|
17
19
|
end
|
18
20
|
|
19
21
|
desc "run rdoc to create doc"
|
@@ -23,22 +25,26 @@ end
|
|
23
25
|
|
24
26
|
desc "build gem"
|
25
27
|
task :gem do
|
26
|
-
system
|
28
|
+
system "gem build #{gem_name}.gemspec"
|
27
29
|
end
|
28
30
|
|
29
31
|
desc "commit changes"
|
30
32
|
task :commit do
|
31
33
|
system 'git add .'
|
32
|
-
system
|
34
|
+
system "git commit -m \"checkin version #{gem_version}\""
|
33
35
|
end
|
34
36
|
|
35
|
-
desc "commit changes and tag as #{
|
37
|
+
desc "commit changes and tag as #{gem_version}"
|
36
38
|
task :tag => :commit do
|
37
|
-
system "git tag #{
|
39
|
+
system "git tag #{gem_version}"
|
40
|
+
end
|
41
|
+
|
42
|
+
desc "push to github"
|
43
|
+
task :git_push do
|
44
|
+
system 'git push'
|
38
45
|
end
|
39
46
|
|
40
|
-
desc "
|
41
|
-
task :
|
42
|
-
system "gem push
|
43
|
-
system "git push use_tinymce"
|
47
|
+
desc "push to rubygems"
|
48
|
+
task :gem_push => :gem do
|
49
|
+
system "gem push #{gem_name}-#{gem_version}.gem"
|
44
50
|
end
|
@@ -26,7 +26,8 @@ module UseTinymce
|
|
26
26
|
if defined? Rails
|
27
27
|
module Link
|
28
28
|
def use_tinymce_link
|
29
|
-
javascript_include_tag 'tinymce/jscripts/tiny_mce/tiny_mce', 'use_tinymce_init'
|
29
|
+
javascript_include_tag 'tinymce/jscripts/tiny_mce/tiny_mce', 'use_tinymce_init' \
|
30
|
+
if defined? params && use_tinymce?(params[:action])
|
30
31
|
end
|
31
32
|
end
|
32
33
|
end
|
metadata
CHANGED
@@ -1,13 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: use_tinymce
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash: 29
|
5
4
|
prerelease:
|
6
|
-
|
7
|
-
- 0
|
8
|
-
- 0
|
9
|
-
- 1
|
10
|
-
version: 0.0.1
|
5
|
+
version: 0.0.2
|
11
6
|
platform: ruby
|
12
7
|
authors:
|
13
8
|
- Mike Howard
|
@@ -15,7 +10,7 @@ autorequire:
|
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
12
|
|
18
|
-
date: 2011-04-
|
13
|
+
date: 2011-04-26 00:00:00 Z
|
19
14
|
dependencies: []
|
20
15
|
|
21
16
|
description: |-
|
@@ -329,18 +324,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
329
324
|
requirements:
|
330
325
|
- - ">="
|
331
326
|
- !ruby/object:Gem::Version
|
332
|
-
hash: 3
|
333
|
-
segments:
|
334
|
-
- 0
|
335
327
|
version: "0"
|
336
328
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
337
329
|
none: false
|
338
330
|
requirements:
|
339
331
|
- - ">="
|
340
332
|
- !ruby/object:Gem::Version
|
341
|
-
hash: 3
|
342
|
-
segments:
|
343
|
-
- 0
|
344
333
|
version: "0"
|
345
334
|
requirements: []
|
346
335
|
|
@@ -351,3 +340,4 @@ specification_version: 3
|
|
351
340
|
summary: UseTinymce - Yet Another tinyMCE integrations gem for Rails 3
|
352
341
|
test_files: []
|
353
342
|
|
343
|
+
has_rdoc:
|