administrate-field-ckeditor 0.0.1 → 0.0.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: 436d72ed7307f3165abc6c6ca0534a8ebf3919e0
4
- data.tar.gz: 468b493062674693e1d285fcf8560314ea8dcc4d
3
+ metadata.gz: 43ba8cf1e9ae897501ba602158eabf8f38925ed6
4
+ data.tar.gz: 6bdc720e73cf34b696d01f77a83d3d0f0a54d5de
5
5
  SHA512:
6
- metadata.gz: cad908656b322f1f9cef18cf0085f2140bb3c45ef70d38551d1a955e33bebae623ab365c75132fab43469a6073860160c32544eaa502445d94146e0996749aee
7
- data.tar.gz: 577f58cb1e079d2bc59c159d1bc532d12d1eac93ca0b28d507e72acb6cfda8e29860b5ceedfbf874da57df866184b590df3e0ea7af9ebac79d5b445f83e32d67
6
+ metadata.gz: 692ad92838eac7a6299e100fb4b4a1b1d1ff6db4e98eafd820839920888f6559a40c843f39110c8957166dbfb213050c950fd037b767ecb5815cc9fc602f965d
7
+ data.tar.gz: 37c116a866a89a5e7e76723ef50fd6dff00283152542662e06c2788b8159fb8e6d18ca38cecb0033a8971d6b85f97d098997f0864e797224387d2f202a953d86
data/README.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # Administrate::Field::Ckeditor
2
2
 
3
+ [![Dependency Status](https://gemnasium.com/badges/github.com/jemcode/administrate-field-ckeditor.svg)](https://gemnasium.com/github.com/jemcode/administrate-field-ckeditor)
4
+ [![Code Climate](https://codeclimate.com/github/jemcode/administrate-field-ckeditor/badges/gpa.svg)](https://codeclimate.com/github/jemcode/administrate-field-ckeditor)
5
+
3
6
  A plugin for adding [Ckeditor] support in [Administrate].
4
7
 
5
8
  ## Usage
@@ -7,7 +10,7 @@ A plugin for adding [Ckeditor] support in [Administrate].
7
10
  Add to your `Gemfile`:
8
11
 
9
12
  ```ruby
10
- gem "administrate-field-ckeditor", "~> 0.0.1"
13
+ gem "administrate-field-ckeditor", "~> 0.0.2"
11
14
  ```
12
15
 
13
16
  Run:
@@ -23,21 +26,13 @@ ATTRIBUTE_TYPES = [
23
26
  ]
24
27
  ```
25
28
 
26
- ## Stopgap fix for javascript
27
-
28
- At the moment, Administrate doesn't automatically load javascripts from plugins.
29
- To fix this, you need to generate the Administrate javascript file:
29
+ [Ckeditor]: https://github.com/galetahub/ckeditor
30
+ [Administrate]: https://github.com/thoughtbot/administrate
30
31
 
31
- ```bash
32
- $ rails g administrate:views:layout
33
- ```
32
+ ## About Jemcode
34
33
 
35
- And then add a line to `app/views/admin/application/_javascript.html.erb`
36
- to input the javascript for this gem:
34
+ <img src="https://www.jemco.de/logo.svg" width="400" alt="Jemcode">
37
35
 
38
- ```
39
- <%= javascript_include_tag "administrate-field-ckeditor/application" %>
40
- ```
36
+ Administrate::Field::Ckeditor is maintained and funded by Jemcode Limited. We are [available for hire][hire].
41
37
 
42
- [Ckeditor]: https://github.com/galetahub/ckeditor
43
- [Administrate]: https://github.com/thoughtbot/administrate
38
+ [hire]: https://www.jemco.de?utm_source=github
@@ -16,7 +16,7 @@ Gem::Specification.new do |gem|
16
16
  gem.files = `git ls-files`.split("\n")
17
17
  gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
18
18
 
19
- gem.add_dependency "administrate", "~> 0.2.0"
20
- gem.add_dependency "ckeditor", "~> 4.1"
19
+ gem.add_dependency "administrate", "~> 0.2.1"
21
20
  gem.add_dependency "rails", "~> 4.2"
21
+ gem.add_dependency "ckeditor", "~> 4.1"
22
22
  end
@@ -1,13 +1,15 @@
1
1
  require "administrate/field/text"
2
2
  require "rails"
3
+ require "administrate/engine"
3
4
  require "ckeditor"
4
5
 
5
6
  module Administrate
6
7
  module Field
7
8
  class Ckeditor < Administrate::Field::Text
8
- VERSION = "0.0.1"
9
+ VERSION = "0.0.2"
9
10
 
10
11
  class Engine < ::Rails::Engine
12
+ Administrate::Engine.add_javascript "administrate-field-ckeditor/application"
11
13
  end
12
14
  end
13
15
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: administrate-field-ckeditor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rikki Pitt
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-01 00:00:00.000000000 Z
11
+ date: 2016-05-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: administrate
@@ -16,42 +16,42 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.2.0
19
+ version: 0.2.1
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 0.2.0
26
+ version: 0.2.1
27
27
  - !ruby/object:Gem::Dependency
28
- name: ckeditor
28
+ name: rails
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '4.1'
33
+ version: '4.2'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '4.1'
40
+ version: '4.2'
41
41
  - !ruby/object:Gem::Dependency
42
- name: rails
42
+ name: ckeditor
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '4.2'
47
+ version: '4.1'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '4.2'
54
+ version: '4.1'
55
55
  description: Plugin for adding ckeditor support in Administrate
56
56
  email:
57
57
  - rikkipitt@gmail.com
@@ -87,7 +87,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
87
87
  version: '0'
88
88
  requirements: []
89
89
  rubyforge_project:
90
- rubygems_version: 2.5.1
90
+ rubygems_version: 2.6.4
91
91
  signing_key:
92
92
  specification_version: 4
93
93
  summary: Plugin for adding ckeditor support in Administrate