activeadmin_simplemde 0.1.0 → 0.2.0
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 +28 -11
- data/lib/activeadmin/simplemde_editor/version.rb +1 -1
- metadata +1 -3
- data/bin/console +0 -14
- data/bin/setup +0 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fb870ed6833766cecf2283aab4cbb2fea8e5c34a
|
4
|
+
data.tar.gz: 3c55e61b5f55548d2eb88170b056bb40871443cd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0bb8a34bc3c4a59fb99dbeaba2972086625d37fbf5a0a29b01e87c4e84428f64fe3232105e84f58df42b16cd032517d645ee5d1ad2f11d3c541ad0978b04f3f8
|
7
|
+
data.tar.gz: 493612eac568edcbe35850e969bf9f929aaa7452fe4aa08c19367d3f8c97942d21d737621637511ea37375dff2122e9bf4bafd200f88b4fbc56a81cfaa6c7da3
|
data/README.md
CHANGED
@@ -1,13 +1,8 @@
|
|
1
|
-
#
|
2
|
-
|
3
|
-
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/activeadmin_simplemde`. To experiment with that code, run `bin/console` for an interactive prompt.
|
4
|
-
|
5
|
-
TODO: Delete this and the text above, and describe your gem
|
1
|
+
# Activeadmin SimpleMDE Markdown Editor [](https://badge.fury.io/rb/activeadmin_simplemde)
|
6
2
|
|
7
3
|
## Installation
|
8
4
|
|
9
5
|
Add this line to your application's Gemfile:
|
10
|
-
|
11
6
|
```ruby
|
12
7
|
gem 'activeadmin_simplemde'
|
13
8
|
```
|
@@ -20,15 +15,37 @@ Or install it yourself as:
|
|
20
15
|
|
21
16
|
$ gem install activeadmin_simplemde
|
22
17
|
|
23
|
-
## Usage
|
24
18
|
|
25
|
-
|
19
|
+
- Add at the end of your ActiveAdmin styles (_app/assets/stylesheets/active_admin.scss_):
|
20
|
+
```css
|
21
|
+
@import 'activeadmin/simplemde';
|
22
|
+
```
|
23
|
+
- Add at the end of your ActiveAdmin javascripts (_app/assets/javascripts/active_admin.js_):
|
24
|
+
```js
|
25
|
+
//= require activeadmin/simplemde/simplemde
|
26
|
+
//= require activeadmin/simplemde_editor_input
|
27
|
+
```
|
28
|
+
- Use the input with `as: :simplemde_editor` in Active Admin model conf
|
29
|
+
|
30
|
+
|
31
|
+
|
32
|
+
## Usage
|
26
33
|
|
27
|
-
|
34
|
+
```ruby
|
35
|
+
# ActiveAdmin article form conf:
|
36
|
+
form do |f|
|
37
|
+
f.inputs 'Article' do
|
38
|
+
f.input :title
|
39
|
+
f.input :description, as: :simplemde_editor
|
40
|
+
f.input :published
|
41
|
+
end
|
42
|
+
f.actions
|
43
|
+
end
|
44
|
+
```
|
28
45
|
|
29
|
-
|
46
|
+
## Do you like it? Star it!
|
30
47
|
|
31
|
-
|
48
|
+
If you use this component just star it. A developer is more motivated to improve a project when there is some interest.
|
32
49
|
|
33
50
|
## Contributing
|
34
51
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activeadmin_simplemde
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- yevhenii.pylypenko
|
@@ -85,8 +85,6 @@ files:
|
|
85
85
|
- app/assets/javascripts/activeadmin/simplemde/simplemde.js
|
86
86
|
- app/assets/javascripts/activeadmin/simplemde_editor_input.js
|
87
87
|
- app/assets/stylesheets/activeadmin/simplemde.css
|
88
|
-
- bin/console
|
89
|
-
- bin/setup
|
90
88
|
- lib/activeadmin/simplemde_editor.rb
|
91
89
|
- lib/activeadmin/simplemde_editor/engine.rb
|
92
90
|
- lib/activeadmin/simplemde_editor/version.rb
|
data/bin/console
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
|
3
|
-
require "bundler/setup"
|
4
|
-
require "activeadmin_simplemde"
|
5
|
-
|
6
|
-
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
-
# with your gem easier. You can also use a different console, if you like.
|
8
|
-
|
9
|
-
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
-
# require "pry"
|
11
|
-
# Pry.start
|
12
|
-
|
13
|
-
require "irb"
|
14
|
-
IRB.start(__FILE__)
|