hobo_ckeditor 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/.DS_Store ADDED
Binary file
data/.gitignore ADDED
@@ -0,0 +1,18 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .idea
6
+ .yardoc
7
+ Gemfile.lock
8
+ InstalledFiles
9
+ _yardoc
10
+ coverage
11
+ doc/
12
+ lib/bundler/man
13
+ pkg
14
+ rdoc
15
+ spec/reports
16
+ test/tmp
17
+ test/version_tmp
18
+ tmp
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in hobo_ckeditor.gemspec
4
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2013 Peter Pavlovich
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,29 @@
1
+ # HoboCkeditor
2
+
3
+ TODO: Write a gem description
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ gem 'hobo_ckeditor'
10
+
11
+ And then execute:
12
+
13
+ $ bundle
14
+
15
+ Or install it yourself as:
16
+
17
+ $ gem install hobo_ckeditor
18
+
19
+ ## Usage
20
+
21
+ TODO: Write usage instructions here
22
+
23
+ ## Contributing
24
+
25
+ 1. Fork it
26
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
27
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
28
+ 4. Push to the branch (`git push origin my-new-feature`)
29
+ 5. Create new Pull Request
data/Rakefile ADDED
@@ -0,0 +1 @@
1
+ require "bundler/gem_tasks"
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 0.0.2
@@ -0,0 +1,29 @@
1
+ # -*- encoding: utf-8 -*-
2
+ name = File.basename( __FILE__, '.gemspec' )
3
+ version = File.read(File.expand_path('../VERSION', __FILE__)).strip
4
+ lib = File.expand_path('../lib', __FILE__)
5
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
6
+ require 'date'
7
+
8
+ Gem::Specification.new do |gem|
9
+ gem.name = name
10
+ gem.version = version
11
+ gem.date = Date.today.to_s
12
+ #gem.rubyforge_project = 'hobo_ckeditor'
13
+ gem.authors = ["Peter Pavlovich"]
14
+ gem.email = ["pavlovich@gmail.com"]
15
+ gem.description = %q{Provides a rich Hobo text type optimized for use with CKEditor}
16
+ gem.summary = %q{Provides a rich Hobo text type optimized for use with CKEditor}
17
+ gem.homepage = "https://github.com/ppavlovich/hobo_ckeditor"
18
+
19
+ gem.files = `git ls-files`.split($/)
20
+
21
+ gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
22
+ gem.required_rubygems_version = ">= 1.3.6"
23
+ gem.rdoc_options = ["--charset=UTF-8"]
24
+ gem.require_paths = ["lib", "taglibs"]
25
+
26
+ gem.add_runtime_dependency('hobo_fields')
27
+ gem.add_runtime_dependency('hobo_rapid')
28
+ gem.add_runtime_dependency('ckeditor')
29
+ end
@@ -0,0 +1,20 @@
1
+ module HoboFields
2
+ module Types
3
+ class CKEditorText < HtmlString
4
+
5
+ #def initialize(model, name, type, options={})
6
+ # super(model, name, type, options={})
7
+ # #raise ArgumentError, "you cannot provide a field spec for the primary key" if name == model.primary_key
8
+ # #self.model = model
9
+ # #self.name = name.to_sym
10
+ # #self.type = type.is_a?(String) ? type.to_sym : type
11
+ # #position = options.delete(:position)
12
+ # #self.options = options
13
+ # #self.position = position || model.field_specs.length
14
+ #end
15
+
16
+ HoboFields.register_type(:cktext, self)
17
+
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,10 @@
1
+ require 'ckeditor'
2
+ require 'hobo_fields'
3
+ require 'hobo_rapid'
4
+ require 'hobo_ckeditor/types/ck_editor_text'
5
+
6
+ module HoboCkeditor
7
+ VERSION = File.read(File.expand_path('../../VERSION', __FILE__)).strip
8
+ @@root = Pathname.new File.expand_path('../..', __FILE__)
9
+ def self.root; @@root; end
10
+ end
@@ -0,0 +1,3 @@
1
+ <def tag="input" for="cktext">
2
+ <%= cktext_area :custom_page, :contents, :ckeditor => {:uiColor => "#AADC6E", :toolbar => "mini"} %>
3
+ </def>
@@ -0,0 +1,3 @@
1
+ <def tag="view" for="cktext">
2
+ YOU ARE HERE !!!
3
+ </def>
metadata ADDED
@@ -0,0 +1,110 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: hobo_ckeditor
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.2
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Peter Pavlovich
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2013-02-27 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: hobo_fields
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
30
+ - !ruby/object:Gem::Dependency
31
+ name: hobo_rapid
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ type: :runtime
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
46
+ - !ruby/object:Gem::Dependency
47
+ name: ckeditor
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ! '>='
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
54
+ type: :runtime
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ description: Provides a rich Hobo text type optimized for use with CKEditor
63
+ email:
64
+ - pavlovich@gmail.com
65
+ executables: []
66
+ extensions: []
67
+ extra_rdoc_files: []
68
+ files:
69
+ - .DS_Store
70
+ - .gitignore
71
+ - Gemfile
72
+ - LICENSE.txt
73
+ - README.md
74
+ - Rakefile
75
+ - VERSION
76
+ - hobo_ckeditor.gemspec
77
+ - lib/hobo_ckeditor.rb
78
+ - lib/hobo_ckeditor/types/ck_editor_text.rb
79
+ - taglibs/input_for_cktext.dryml
80
+ - taglibs/view_for_cktext.dryml
81
+ homepage: https://github.com/ppavlovich/hobo_ckeditor
82
+ licenses: []
83
+ post_install_message:
84
+ rdoc_options:
85
+ - --charset=UTF-8
86
+ require_paths:
87
+ - lib
88
+ - taglibs
89
+ required_ruby_version: !ruby/object:Gem::Requirement
90
+ none: false
91
+ requirements:
92
+ - - ! '>='
93
+ - !ruby/object:Gem::Version
94
+ version: '0'
95
+ segments:
96
+ - 0
97
+ hash: 22393869537307037
98
+ required_rubygems_version: !ruby/object:Gem::Requirement
99
+ none: false
100
+ requirements:
101
+ - - ! '>='
102
+ - !ruby/object:Gem::Version
103
+ version: 1.3.6
104
+ requirements: []
105
+ rubyforge_project:
106
+ rubygems_version: 1.8.24
107
+ signing_key:
108
+ specification_version: 3
109
+ summary: Provides a rich Hobo text type optimized for use with CKEditor
110
+ test_files: []