krasivotokak-tiny_mce 0.0.2 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.2
1
+ 0.0.4
@@ -1,6 +1,6 @@
1
1
  module TinyMCE
2
2
  # The base module we include into ActionController::Base
3
- module Controller
3
+ module Base
4
4
  # When this module is included, extend it with the available class methods
5
5
  def self.included(base)
6
6
  base.extend(ClassMethods)
@@ -12,7 +12,7 @@ module TinyMCE
12
12
  # Parse the options file and load it into an array
13
13
  # (this method is called when tiny_mce is initialized - see init.rb)
14
14
  def load
15
- @@valid_options = File.open(File.dirname(__FILE__) + "/../tiny_mce_options.yml") { |f| YAML.load(f.read) }
15
+ @@valid_options = File.open(File.dirname(__FILE__) + '/../../tiny_mce_options.yml') { |f| YAML.load(f.read) }
16
16
  self.plugins = Array.new
17
17
  end
18
18
 
File without changes
data/lib/tiny_mce.rb CHANGED
@@ -1,12 +1,16 @@
1
- module TinyMCE
2
- end
3
-
4
1
  # Require all the necessary files to run TinyMCE
5
- require 'tiny_mce/controller.rb'
6
- require 'tiny_mce/options_validator'
7
- require 'tiny_mce/spellchecker'
2
+ require 'tiny_mce/base'
3
+ require 'tiny_mce/option_validator'
4
+ require 'tiny_mce/spell_checker'
8
5
  require 'tiny_mce/helpers'
9
6
 
7
+ module TinyMCE
8
+ module Base
9
+ include TinyMCE::OptionValidator
10
+ include TinyMCE::SpellChecker
11
+ end
12
+ end
13
+
10
14
  # Load up the available configuration options (we do it here because
11
15
  # the result doesn't, so we don't want to load it per request)
12
16
  TinyMCE::OptionValidator.load
@@ -14,6 +18,6 @@ TinyMCE::OptionValidator.load
14
18
  # Include the TinyMCE methods and TinyMCE Helpers into ActionController::Base
15
19
 
16
20
  if defined?(Rails) && defined?(ActionController)
17
- ActionController::Base.send(:include, TinyMCE::Controller)
18
- ActionController::Base.send(:helper, TinyMCEHelpers)
21
+ ActionController::Base.send(:include, TinyMCE::Base)
22
+ ActionController::Base.send(:helper, TinyMCE::Helpers)
19
23
  end
data/tiny_mce.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{tiny_mce}
8
- s.version = "0.0.2"
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 = ["Blake Watters", "Kieran Pilkington", "Alexander Semyonov"]
@@ -27,10 +27,10 @@ Gem::Specification.new do |s|
27
27
  "init.rb",
28
28
  "install.rb",
29
29
  "lib/tiny_mce.rb",
30
- "lib/tiny_mce/controller.rb",
30
+ "lib/tiny_mce/base.rb",
31
31
  "lib/tiny_mce/helpers.rb",
32
- "lib/tiny_mce/options_validator.rb",
33
- "lib/tiny_mce/spellchecker.rb",
32
+ "lib/tiny_mce/option_validator.rb",
33
+ "lib/tiny_mce/spell_checker.rb",
34
34
  "public/javascripts/tiny_mce/langs/ar.js",
35
35
  "public/javascripts/tiny_mce/langs/az.js",
36
36
  "public/javascripts/tiny_mce/langs/be.js",
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: krasivotokak-tiny_mce
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Blake Watters
@@ -35,10 +35,10 @@ files:
35
35
  - init.rb
36
36
  - install.rb
37
37
  - lib/tiny_mce.rb
38
- - lib/tiny_mce/controller.rb
38
+ - lib/tiny_mce/base.rb
39
39
  - lib/tiny_mce/helpers.rb
40
- - lib/tiny_mce/options_validator.rb
41
- - lib/tiny_mce/spellchecker.rb
40
+ - lib/tiny_mce/option_validator.rb
41
+ - lib/tiny_mce/spell_checker.rb
42
42
  - public/javascripts/tiny_mce/langs/ar.js
43
43
  - public/javascripts/tiny_mce/langs/az.js
44
44
  - public/javascripts/tiny_mce/langs/be.js
@@ -1316,7 +1316,6 @@ files:
1316
1316
  - tiny_mce_options.yml
1317
1317
  has_rdoc: false
1318
1318
  homepage: http://github.com/krasivotokak/tiny_mce
1319
- licenses:
1320
1319
  post_install_message:
1321
1320
  rdoc_options:
1322
1321
  - --charset=UTF-8
@@ -1337,7 +1336,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1337
1336
  requirements: []
1338
1337
 
1339
1338
  rubyforge_project:
1340
- rubygems_version: 1.3.5
1339
+ rubygems_version: 1.2.0
1341
1340
  signing_key:
1342
1341
  specification_version: 3
1343
1342
  summary: TinyMCE editor for your rails applications