activeadmin_simplemde 0.1.0 → 0.2.0

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: 560fde386e68b62333626e8f85cd5b220b5d05c3
4
- data.tar.gz: 14b51a9801216e436d79fbafa14cda062e5d48c9
3
+ metadata.gz: fb870ed6833766cecf2283aab4cbb2fea8e5c34a
4
+ data.tar.gz: 3c55e61b5f55548d2eb88170b056bb40871443cd
5
5
  SHA512:
6
- metadata.gz: d48e09d82297a92e74570a09913c3956a430e1a9257cc5763e856ed13244e9f5dfff05e0d6a8fff0747d1f1809dd66dfd105a93ff04cffa63fde89cb2e3f8924
7
- data.tar.gz: 1b9d48fe65b6ce3c8ed7b2037140785847e2905de258e58ceee27be7398442c6a1e0064f292c62ddbc39f488253c3ff344c7774e0e4d9aad04cb315200a165a0
6
+ metadata.gz: 0bb8a34bc3c4a59fb99dbeaba2972086625d37fbf5a0a29b01e87c4e84428f64fe3232105e84f58df42b16cd032517d645ee5d1ad2f11d3c541ad0978b04f3f8
7
+ data.tar.gz: 493612eac568edcbe35850e969bf9f929aaa7452fe4aa08c19367d3f8c97942d21d737621637511ea37375dff2122e9bf4bafd200f88b4fbc56a81cfaa6c7da3
data/README.md CHANGED
@@ -1,13 +1,8 @@
1
- # ActiveadminSimplemde
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 [![Gem Version](https://badge.fury.io/rb/activeadmin_simplemde.svg)](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
- TODO: Write usage instructions here
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
- ## Development
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
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
46
+ ## Do you like it? Star it!
30
47
 
31
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
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
 
@@ -1,5 +1,5 @@
1
1
  module ActiveAdmin
2
2
  module SimplemdeEditor
3
- VERSION = '0.1.0'
3
+ VERSION = '0.2.0'
4
4
  end
5
5
  end
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.1.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
@@ -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__)
data/bin/setup DELETED
@@ -1,8 +0,0 @@
1
- #!/usr/bin/env bash
2
- set -euo pipefail
3
- IFS=$'\n\t'
4
- set -vx
5
-
6
- bundle install
7
-
8
- # Do any other automated setup that you need to do here