textile_toolbar 0.5 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore ADDED
@@ -0,0 +1 @@
1
+ pkg
data/README CHANGED
@@ -14,16 +14,12 @@ A link to a Textile reference page is also shown beside the toolbar.
14
14
 
15
15
  Install the gem directly:
16
16
 
17
- sudo gem install pelargir-textile_toolbar --source=http://gems.github.com
17
+ sudo gem install textile_toolbar
18
18
 
19
19
  Or install the gem in your Rails project as a plugin:
20
20
 
21
21
  script/plugin install git://github.com/pelargir/textile_toolbar.git
22
22
 
23
- Or clone the project:
24
-
25
- git clone git://github.com/pelargir/textile_toolbar.git
26
-
27
23
  Then copy the required image and JS files into your Rails project
28
24
 
29
25
  rake textile_toolbar:install
data/Rakefile CHANGED
@@ -1,3 +1,4 @@
1
+ require 'rubygems'
1
2
  require 'rake'
2
3
  require 'rake/testtask'
3
4
  require 'rake/rdoctask'
@@ -20,3 +21,19 @@ Rake::RDocTask.new(:rdoc) do |rdoc|
20
21
  rdoc.rdoc_files.include('README')
21
22
  rdoc.rdoc_files.include('lib/**/*.rb')
22
23
  end
24
+
25
+ begin
26
+ require 'jeweler'
27
+ Jeweler::Tasks.new do |gemspec|
28
+ gemspec.name = "textile_toolbar"
29
+ gemspec.summary = "Adds a handy Textile toolbar to any text area."
30
+ gemspec.description = "Adds a handy Textile toolbar to any text area."
31
+ gemspec.email = "pelargir@gmail.com"
32
+ gemspec.homepage = "http://github.com/pelargir/textile_toolbar"
33
+ gemspec.authors = ["Matthew Bass"]
34
+ end
35
+ rescue LoadError
36
+ puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
37
+ end
38
+
39
+ Dir["#{File.dirname(__FILE__)}/tasks/*.rake"].sort.each { |ext| puts ext; load ext }
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 0.5.1
data/init.rb CHANGED
@@ -1,8 +1 @@
1
- require 'textile_toolbar'
2
- require 'textile_toolbar/asset_copier'
3
-
4
- if RAILS_ENV == "development"
5
- TextileToolbar::AssetCopier.copy "textile_toolbar"
6
- else
7
- TextileToolbar::AssetCopier.warn "textile_toolbar"
8
- end
1
+ require 'textile_toolbar'
@@ -1,3 +1,5 @@
1
+ load File.expand_path(File.dirname(__FILE__) + '/../tasks/textile_toolbar.rake')
2
+
1
3
  module TextileToolbar
2
4
  def textile_area(object_name, method, options={})
3
5
  disable = options.delete(:disable) || {}
@@ -31,4 +33,4 @@ module TextileToolbar
31
33
  end
32
34
 
33
35
  ActionView::Base.send :include, TextileToolbar
34
- ActionView::Helpers::FormBuilder.send :include, TextileToolbar::FormBuilder
36
+ ActionView::Helpers::FormBuilder.send :include, TextileToolbar::FormBuilder
@@ -0,0 +1,9 @@
1
+ require 'rake'
2
+
3
+ namespace :textile_toolbar do
4
+ desc "Install files required by textile_toolbar"
5
+ task :install do
6
+ source = File.expand_path(File.join(File.dirname(__FILE__), '..', 'files'))
7
+ FileUtils.cp_r "#{source}/public", "#{RAILS_ROOT}"
8
+ end
9
+ end
@@ -1,33 +1,60 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
4
+ # -*- encoding: utf-8 -*-
5
+
1
6
  Gem::Specification.new do |s|
2
- s.name = "textile_toolbar"
3
- s.version = "0.5"
4
- s.date = "2008-08-21"
5
- s.summary = "Adds a handy Textile toolbar to any text area."
6
- s.email = "pelargir@gmail.com"
7
- s.homepage = "http://github.com/pelargir/textile_toolbar"
8
- s.description = "Adds a handy Textile toolbar to any text area."
9
- s.has_rdoc = true
10
- s.authors = ["Matthew Bass"]
11
- s.files = [
12
- "CHANGELOG",
13
- "deleted_files",
14
- "files/public/images/textile_toolbar/bold.png",
15
- "files/public/images/textile_toolbar/hyperlink.png",
16
- "files/public/images/textile_toolbar/image.png",
17
- "files/public/images/textile_toolbar/italic.png",
18
- "files/public/javascripts/textile_toolbar.js",
19
- "init.rb",
20
- "install.rb",
21
- "lib/textile_toolbar.rb",
22
- "MIT-LICENSE",
23
- "Rakefile",
24
- "README",
25
- "tasks/asset_copier.rake",
26
- "test/test_helper.rb",
27
- "test/textile_toolbar_test.rb",
28
- "textile_toolbar.gemspec",
29
- "TODO"
30
- ]
31
- s.rdoc_options = ["--main", "README"]
32
- s.extra_rdoc_files = ["README"]
33
- end
7
+ s.name = %q{textile_toolbar}
8
+ s.version = "0.5.1"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["Matthew Bass"]
12
+ s.date = %q{2009-12-14}
13
+ s.description = %q{Adds a handy Textile toolbar to any text area.}
14
+ s.email = %q{pelargir@gmail.com}
15
+ s.extra_rdoc_files = [
16
+ "README",
17
+ "TODO"
18
+ ]
19
+ s.files = [
20
+ ".gitignore",
21
+ "CHANGELOG",
22
+ "MIT-LICENSE",
23
+ "README",
24
+ "Rakefile",
25
+ "TODO",
26
+ "VERSION",
27
+ "files/public/images/textile_toolbar/bold.png",
28
+ "files/public/images/textile_toolbar/hyperlink.png",
29
+ "files/public/images/textile_toolbar/image.png",
30
+ "files/public/images/textile_toolbar/italic.png",
31
+ "files/public/images/textile_toolbar/underline.png",
32
+ "files/public/javascripts/textile_toolbar.js",
33
+ "init.rb",
34
+ "lib/textile_toolbar.rb",
35
+ "tasks/textile_toolbar.rake",
36
+ "test/test_helper.rb",
37
+ "test/textile_toolbar_test.rb",
38
+ "textile_toolbar.gemspec"
39
+ ]
40
+ s.homepage = %q{http://github.com/pelargir/textile_toolbar}
41
+ s.rdoc_options = ["--charset=UTF-8"]
42
+ s.require_paths = ["lib"]
43
+ s.rubygems_version = %q{1.3.5}
44
+ s.summary = %q{Adds a handy Textile toolbar to any text area.}
45
+ s.test_files = [
46
+ "test/test_helper.rb",
47
+ "test/textile_toolbar_test.rb"
48
+ ]
49
+
50
+ if s.respond_to? :specification_version then
51
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
52
+ s.specification_version = 3
53
+
54
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
55
+ else
56
+ end
57
+ else
58
+ end
59
+ end
60
+
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: textile_toolbar
3
3
  version: !ruby/object:Gem::Version
4
- version: "0.5"
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthew Bass
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-08-21 00:00:00 -04:00
12
+ date: 2009-12-14 00:00:00 -05:00
13
13
  default_executable:
14
14
  dependencies: []
15
15
 
@@ -21,33 +21,34 @@ extensions: []
21
21
 
22
22
  extra_rdoc_files:
23
23
  - README
24
+ - TODO
24
25
  files:
26
+ - .gitignore
25
27
  - CHANGELOG
26
- - deleted_files
28
+ - MIT-LICENSE
29
+ - README
30
+ - Rakefile
31
+ - TODO
32
+ - VERSION
27
33
  - files/public/images/textile_toolbar/bold.png
28
34
  - files/public/images/textile_toolbar/hyperlink.png
29
35
  - files/public/images/textile_toolbar/image.png
30
36
  - files/public/images/textile_toolbar/italic.png
37
+ - files/public/images/textile_toolbar/underline.png
31
38
  - files/public/javascripts/textile_toolbar.js
32
39
  - init.rb
33
- - install.rb
34
40
  - lib/textile_toolbar.rb
35
- - MIT-LICENSE
36
- - Rakefile
37
- - README
38
- - tasks/asset_copier.rake
41
+ - tasks/textile_toolbar.rake
39
42
  - test/test_helper.rb
40
43
  - test/textile_toolbar_test.rb
41
44
  - textile_toolbar.gemspec
42
- - TODO
43
45
  has_rdoc: true
44
46
  homepage: http://github.com/pelargir/textile_toolbar
45
47
  licenses: []
46
48
 
47
49
  post_install_message:
48
50
  rdoc_options:
49
- - --main
50
- - README
51
+ - --charset=UTF-8
51
52
  require_paths:
52
53
  - lib
53
54
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -65,9 +66,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
65
66
  requirements: []
66
67
 
67
68
  rubyforge_project:
68
- rubygems_version: 1.3.4
69
+ rubygems_version: 1.3.5
69
70
  signing_key:
70
71
  specification_version: 3
71
72
  summary: Adds a handy Textile toolbar to any text area.
72
- test_files: []
73
-
73
+ test_files:
74
+ - test/test_helper.rb
75
+ - test/textile_toolbar_test.rb
data/deleted_files DELETED
@@ -1,14 +0,0 @@
1
- # Generated by the asset_copier plugin
2
- # http://github.com/pelargir/asset_copier
3
- #
4
- # Files that have been removed from the plugin and should also be removed from
5
- # any Rails projects that use the plugin should be listed here, one entry
6
- # per line. For example:
7
- #
8
- # public/javascripts/foo.js
9
- # app/views/foo/bar.erb.html
10
- #
11
- # Adding the paths above to this file would ensure that foo.js and bar.erb.html
12
- # both get removed from the target Rails project the next time the plugin's
13
- # files are copied over.
14
-
data/install.rb DELETED
@@ -1,20 +0,0 @@
1
- # Generated by the asset_copier plugin
2
- # http://github.com/pelargir/asset_copier
3
-
4
- require 'rake'
5
-
6
- begin
7
- puts "============================================================="
8
- puts "Attempting to install required files into your application..."
9
- puts "============================================================="
10
- RAKE_FILE = File.expand_path(File.join(File.dirname(__FILE__), 'tasks', 'asset_copier.rake'))
11
- load RAKE_FILE
12
-
13
- Rake::Task['textile_toolbar:install'].invoke
14
- puts "=========================================================="
15
- puts "Success!"
16
- puts "=========================================================="
17
- rescue Exception => ex
18
- puts "FAILED TO INSTALL REQUIRED FILES. PLEASE RUN rake textile_toolbar:install."
19
- puts "EXCEPTION: #{ex}"
20
- end
@@ -1,11 +0,0 @@
1
- # Generated by the asset_copier plugin
2
- # http://github.com/pelargir/asset_copier
3
-
4
- require File.expand_path(File.dirname(__FILE__) + '/../lib/textile_toolbar/asset_copier')
5
-
6
- namespace :textile_toolbar do
7
- desc "Install files required by textile_toolbar"
8
- task :install do
9
- TextileToolbar::AssetCopier.copy "textile_toolbar"
10
- end
11
- end