ckeditor_rails 4.1.1 → 4.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a2a656e07ed475d103b848faeef5dbeac0baffb1
4
- data.tar.gz: a5ff7c21d6f7debc6bd1bb43a99b14133264046c
3
+ metadata.gz: 89c638a27b24d1602edf0aadbf447ed132809cf3
4
+ data.tar.gz: c59c1eb3f9ca3bd6181da3e1dc06b1f6bde52492
5
5
  SHA512:
6
- metadata.gz: 6a6b600a169acd54b2532717ba8187c9634d432af1e5cf886ed37c24b78375d75b84c0fd5ffc350b871021ae7ac681ffabca76f5828cc7ac15217c22b502284c
7
- data.tar.gz: 90709d40300144954d9b096c78436607842c2e36e28dbf0f7a9869835d90a37ee3e60005ace68e69b4bcf038c0c2bf42381fbcb06b93cf760a95bab41a74a6e8
6
+ metadata.gz: cd3aa3b2a134400ef2f3038b37a03c241e1d23a6f06f6f8b41c11e0c977000146a5e9bc76dd7ed80eb8d88ea1d7436714331f93643d727d339b936f1e1c438b2
7
+ data.tar.gz: 27699159a4a740b7f1cd1d37ef63e90fb645da4fe4de86764e34ac7d3836be791e65fd4dea7011dc6d797ceaf4349aa95ead4f77a5c98ded057aae8708b3f816
data/README.md CHANGED
@@ -4,6 +4,11 @@
4
4
 
5
5
  The `ckeditor_rails` gem integrates the `CKEditor` with the Rails asset pipeline.
6
6
 
7
+ And it would work with following environments:
8
+
9
+ * ruby 1.9.3+
10
+ * rails 3.0+
11
+
7
12
  ## Basic Usage
8
13
 
9
14
  ### Install ckeditor_rails gem
@@ -71,7 +76,7 @@ Maintain `ckeditor_rails` gem with `Rake` commands.
71
76
 
72
77
  Update origin CKEditor source files.
73
78
 
74
- rake update_ckeditor VERSION=4.1
79
+ rake update_ckeditor VERSION=4.1.1
75
80
 
76
81
  Publish gem.
77
82
 
@@ -2,10 +2,13 @@ require 'ckeditor-rails/version'
2
2
 
3
3
  module Ckeditor
4
4
  module Rails
5
- if ::Rails.version < '3.1'
6
- require 'ckeditor-rails/railtie'
7
- else
5
+ case ::Rails.version.to_s
6
+ when /^4/
8
7
  require 'ckeditor-rails/engine'
8
+ when /^3\.[12]/
9
+ require 'ckeditor-rails/engine3'
10
+ when /^3\.[0]/
11
+ require 'ckeditor-rails/railtie'
9
12
  end
10
13
  end
11
14
  end
@@ -1,9 +1,14 @@
1
1
  module Ckeditor
2
2
  module Rails
3
3
  class Engine < ::Rails::Engine
4
- initializer 'configure assets of ckeditor', :group => :all do |app|
5
- app.config.assets.precompile += %w( ckeditor/*.js ckeditor/*.css )
6
- end
4
+ config.assets.precompile += %W(
5
+ ckeditor/*.js
6
+ ckeditor/*.css
7
+ ckeditor/*.png
8
+ ckeditor/*.gif
9
+ ckeditor/*.html
10
+ ckeditor/*.md
11
+ )
7
12
  end
8
13
  end
9
14
  end
@@ -0,0 +1,16 @@
1
+ module Ckeditor
2
+ module Rails
3
+ class Engine < ::Rails::Engine
4
+ initializer 'ckeditor.assets.precompile', group: :all do |app|
5
+ app.config.assets.precompile += %W(
6
+ ckeditor/*.js
7
+ ckeditor/*.css
8
+ ckeditor/*.png
9
+ ckeditor/*.gif
10
+ ckeditor/*.html
11
+ ckeditor/*.md
12
+ )
13
+ end
14
+ end
15
+ end
16
+ end
@@ -1,8 +1,15 @@
1
1
  module Ckeditor
2
2
  module Rails
3
3
  class Railtie < ::Rails::Railtie
4
- initializer 'configure assets of ckeditor', :group => :all do |app|
5
- app.config.assets.precompile += %w( ckeditor/*.js ckeditor/*.css )
4
+ initializer 'ckeditor.assets.precompile', group: :all do |app|
5
+ app.config.assets.precompile += %W(
6
+ ckeditor/*.js
7
+ ckeditor/*.css
8
+ ckeditor/*.png
9
+ ckeditor/*.gif
10
+ ckeditor/*.html
11
+ ckeditor/*.md
12
+ )
6
13
  end
7
14
  end
8
15
  end
@@ -1,6 +1,6 @@
1
1
  module Ckeditor
2
2
  module Rails
3
- VERSION = '4.1.1'
3
+ VERSION = '4.1.2'
4
4
  EDITOR_VERSION = '4.1.1'
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ckeditor_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.1.1
4
+ version: 4.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tse-Ching Ho
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-04-24 00:00:00.000000000 Z
11
+ date: 2013-05-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -86,6 +86,7 @@ files:
86
86
  - lib/assets/javascripts/ckeditor/jquery.js
87
87
  - lib/ckeditor-rails.rb
88
88
  - lib/ckeditor-rails/engine.rb
89
+ - lib/ckeditor-rails/engine3.rb
89
90
  - lib/ckeditor-rails/railtie.rb
90
91
  - lib/ckeditor-rails/source_file.rb
91
92
  - lib/ckeditor-rails/version.rb