rails_admin_actiontext 0.0.1

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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 3dc99b09f7918b135890974b1d799a3d6149a03e39039b8d34c898ace413da5f
4
+ data.tar.gz: 14a022da9ec918a2910694adac14861d61834f3c73589f53fb35748ab4f521d7
5
+ SHA512:
6
+ metadata.gz: a407ed51512d08338128126df3226fae8962e3b1ac90ebfbc3a53ee8366f54629fa0cf9185e866cdb394e1450f1fde934d6e37d91d9afeb06ff0563689873220
7
+ data.tar.gz: accb09ab38cefe85e3f41c9efc5c94b99be09edc7219bfdb799f86673cef5fabfecbc203a254d64c20e5eea3087a9817d8ea4096c4888e77cc7dde7b7f6da3e5
data/MIT-LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright 2018 Rikki Pitt
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,40 @@
1
+ # RailsAdminActiontext
2
+
3
+ [![Gem Version](https://badge.fury.io/rb/rails_admin_actiontextk.svg)](http://badge.fury.io/rb/rails_admin_actiontextk)
4
+ [![Code Climate](https://codeclimate.com/github/jemcode/rails_admin_actiontextk/badges/gpa.svg)](https://codeclimate.com/github/jemcode/rails_admin_actiontextk)
5
+
6
+ [RailsAdmin](https://github.com/sferik/rails_admin) extension for enabling the Rails 6 [ActionText](https://github.com/rails/actiontext) editor.
7
+
8
+ ## Installation
9
+
10
+ To enable **rails_admin_actiontext**, add the following to your `Gemfile`:
11
+
12
+ ```ruby
13
+ gem 'rails_admin_actiontext'
14
+ ```
15
+
16
+ It should go without saying that this plugin also requires the actiontext gem.
17
+
18
+ E.g. `gem 'actiontext'`
19
+
20
+
21
+ ## Configuration
22
+ To use ActionText follow their installation instructions.
23
+
24
+ ```ruby
25
+ RailsAdmin.config do |config|
26
+ config.model Team do
27
+ edit do
28
+ field :description, :actiontext
29
+ end
30
+ end
31
+ end
32
+ ```
33
+
34
+ ## About Jemcode
35
+
36
+ [<img src="https://www.jemco.de/logo.svg" width="400" alt="Jemcode">][hire]
37
+
38
+ This repository is maintained and funded by Jemcode Limited. We are [available for hire][hire].
39
+
40
+ [hire]: https://www.jemco.de?utm_source=github
data/Rakefile ADDED
@@ -0,0 +1,19 @@
1
+ begin
2
+ require 'bundler/setup'
3
+ rescue LoadError
4
+ puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
5
+ end
6
+
7
+ require 'rdoc/task'
8
+
9
+ RDoc::Task.new(:rdoc) do |rdoc|
10
+ rdoc.rdoc_dir = 'rdoc'
11
+ rdoc.title = 'RailsAdminActiontext'
12
+ rdoc.options << '--line-numbers'
13
+ rdoc.rdoc_files.include('README.md')
14
+ rdoc.rdoc_files.include('lib/**/*.rb')
15
+ end
16
+
17
+ load 'rails/tasks/statistics.rake'
18
+
19
+ require 'bundler/gem_tasks'
@@ -0,0 +1 @@
1
+ //= require trix/dist/trix
@@ -0,0 +1,2 @@
1
+ //= require trix/dist/trix
2
+ //= require actiontext
@@ -0,0 +1,4 @@
1
+ = stylesheet_link_tag 'rails_admin/ra.actiontext'
2
+ = javascript_include_tag 'rails_admin/ra.actiontext'
3
+
4
+ = form.rich_text_area field.method_name, field.html_attributes
@@ -0,0 +1,7 @@
1
+ module RailsAdminActiontext
2
+ class Engine < ::Rails::Engine
3
+ initializer "RailsAdminActiontext precompile hook", group: :all do |app|
4
+ app.config.assets.precompile += ['rails_admin/ra.actiontext.css', 'rails_admin/ra.actiontext.js']
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,3 @@
1
+ module RailsAdminActiontext
2
+ VERSION = '0.0.1'
3
+ end
@@ -0,0 +1,23 @@
1
+ require "rails_admin_actiontext/engine"
2
+
3
+ module RailsAdminActiontext
4
+ end
5
+
6
+ require 'rails_admin/config/fields'
7
+ require 'rails_admin/config/fields/base'
8
+
9
+ module RailsAdmin
10
+ module Config
11
+ module Fields
12
+ module Types
13
+ class Actiontext < RailsAdmin::Config::Fields::Base
14
+ RailsAdmin::Config::Fields::Types::register(self)
15
+
16
+ register_instance_option :partial do
17
+ :form_actiontext
18
+ end
19
+ end
20
+ end
21
+ end
22
+ end
23
+ end
metadata ADDED
@@ -0,0 +1,108 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rails_admin_actiontext
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Rikki Pitt
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2018-12-31 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rails
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: 5.2.0
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '7'
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: 5.2.0
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: '7'
33
+ - !ruby/object:Gem::Dependency
34
+ name: rails_admin
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - "~>"
38
+ - !ruby/object:Gem::Version
39
+ version: '1.0'
40
+ - - ">="
41
+ - !ruby/object:Gem::Version
42
+ version: 1.0.0
43
+ type: :runtime
44
+ prerelease: false
45
+ version_requirements: !ruby/object:Gem::Requirement
46
+ requirements:
47
+ - - "~>"
48
+ - !ruby/object:Gem::Version
49
+ version: '1.0'
50
+ - - ">="
51
+ - !ruby/object:Gem::Version
52
+ version: 1.0.0
53
+ - !ruby/object:Gem::Dependency
54
+ name: actiontext
55
+ requirement: !ruby/object:Gem::Requirement
56
+ requirements:
57
+ - - "~>"
58
+ - !ruby/object:Gem::Version
59
+ version: '0'
60
+ type: :runtime
61
+ prerelease: false
62
+ version_requirements: !ruby/object:Gem::Requirement
63
+ requirements:
64
+ - - "~>"
65
+ - !ruby/object:Gem::Version
66
+ version: '0'
67
+ description: Enables an integration for the Trix powered ActionText content editor
68
+ for RailsAdmin
69
+ email:
70
+ - rikkipitt@gmail.com
71
+ executables: []
72
+ extensions: []
73
+ extra_rdoc_files: []
74
+ files:
75
+ - MIT-LICENSE
76
+ - README.md
77
+ - Rakefile
78
+ - app/assets/javascripts/rails_admin/ra.actiontext.js
79
+ - app/assets/stylesheets/rails_admin/ra.actiontext.css
80
+ - app/views/rails_admin/main/_form_actiontext.html.haml
81
+ - lib/rails_admin_actiontext.rb
82
+ - lib/rails_admin_actiontext/engine.rb
83
+ - lib/rails_admin_actiontext/version.rb
84
+ homepage: https://github.com/jemcode/rails_admin_actiontext
85
+ licenses:
86
+ - MIT
87
+ metadata: {}
88
+ post_install_message:
89
+ rdoc_options: []
90
+ require_paths:
91
+ - lib
92
+ required_ruby_version: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ required_rubygems_version: !ruby/object:Gem::Requirement
98
+ requirements:
99
+ - - ">="
100
+ - !ruby/object:Gem::Version
101
+ version: '0'
102
+ requirements: []
103
+ rubyforge_project:
104
+ rubygems_version: 2.7.6
105
+ signing_key:
106
+ specification_version: 4
107
+ summary: Action Text integration for Rails Admin
108
+ test_files: []