ckeditor_rails 4.1.1 → 4.1.2
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.
- checksums.yaml +4 -4
 - data/README.md +6 -1
 - data/lib/ckeditor-rails.rb +6 -3
 - data/lib/ckeditor-rails/engine.rb +8 -3
 - data/lib/ckeditor-rails/engine3.rb +16 -0
 - data/lib/ckeditor-rails/railtie.rb +9 -2
 - data/lib/ckeditor-rails/version.rb +1 -1
 - metadata +3 -2
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA1:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: 89c638a27b24d1602edf0aadbf447ed132809cf3
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: c59c1eb3f9ca3bd6181da3e1dc06b1f6bde52492
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 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 
     | 
    
         | 
    
        data/lib/ckeditor-rails.rb
    CHANGED
    
    | 
         @@ -2,10 +2,13 @@ require 'ckeditor-rails/version' 
     | 
|
| 
       2 
2 
     | 
    
         | 
| 
       3 
3 
     | 
    
         
             
            module Ckeditor
         
     | 
| 
       4 
4 
     | 
    
         
             
              module Rails
         
     | 
| 
       5 
     | 
    
         
            -
                 
     | 
| 
       6 
     | 
    
         
            -
             
     | 
| 
       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 
     | 
    
         
            -
                   
     | 
| 
       5 
     | 
    
         
            -
                     
     | 
| 
       6 
     | 
    
         
            -
             
     | 
| 
      
 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 ' 
     | 
| 
       5 
     | 
    
         
            -
                    app.config.assets.precompile += % 
     | 
| 
      
 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
         
     | 
    
        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. 
     | 
| 
      
 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- 
     | 
| 
      
 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
         
     |