administrate-field-simple_markdown 0.1.0 → 0.1.1

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
  SHA256:
3
- metadata.gz: 6d3a701c9d55c3e017033cd492ee81b1498389ae51a8c744b2502016016badc9
4
- data.tar.gz: ceead71e4f9cc8e1540720eec50a741313b9089f779e0d33217883e3481cbeb4
3
+ metadata.gz: e26f353b8fc2e1dd3b1565677fef72250852cbc1a0c4783ba2afdff790f87562
4
+ data.tar.gz: b4b18e280b4a45f2212f8a916a1c7327f6687de3442dcec8a208e3b7441aa596
5
5
  SHA512:
6
- metadata.gz: 050efe13f5c9e1d2c29ee61d2cdde82e98261e1672bce77597428c0626deaf447e6b1571bc6e17ed8d8d392823ea8a9bf3769bfad1787d6240490198cbad3617
7
- data.tar.gz: 5dc7dce3ab88f7018570894be90ae5e5baff9d5435f731a9b105e8ea353f4cad61cbe33e08ef51c5fd5cb33ce8ebb2bfe72ce5cd88c2cf6ae9d5ca10a4ec2486
6
+ metadata.gz: 4c07daf044dae27c2bcd13e3fc4c9cffe89a57e7d220cd2d2cb0c67206627f77f152771b773a144744d7ebce4a723ce8077f316d13b016397465187c5ab9e02a
7
+ data.tar.gz: a5bf892e1ad4d76ad5cde1ac66290cbf28a4bda05dfc3a8b813145a3265ab7d8062b3342df5a6b3fb707fbc876df08b9045377f1c1c3c0e04121d36559ec1e3e
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## [v0.1.1](https://github.com/zooppa/administrate-field-simple_markdown/tree/v0.1.1) (2018-03-09)
4
+
5
+ [Full Changelog](https://github.com/zooppa/administrate-field-simple_markdown/compare/v0.1.0...v0.1.1)
6
+
7
+ * Restore list styles for Markdown elements (thanks @pedantic-git)
8
+
3
9
  ## [v0.1.0](https://github.com/zooppa/administrate-field-simple_markdown/tree/v0.1.0) (2018-01-23)
4
10
 
5
11
  [Full Changelog](https://github.com/zooppa/administrate-field-simple_markdown/compare/v0.0.4...v0.1.0)
data/LICENSE.md CHANGED
@@ -1,6 +1,6 @@
1
- The MIT License (MIT)
1
+ MIT License
2
2
 
3
- Copyright (c) 2015-2016 z.productions.
3
+ Copyright (c) 2018 Zooppa
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -9,13 +9,13 @@ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
9
  copies of the Software, and to permit persons to whom the Software is
10
10
  furnished to do so, subject to the following conditions:
11
11
 
12
- The above copyright notice and this permission notice shall be included in
13
- all copies or substantial portions of the Software.
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
14
 
15
15
  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
16
  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
17
  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
18
  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
19
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
- THE SOFTWARE.
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
data/README.md CHANGED
@@ -1,6 +1,7 @@
1
1
  # Administrate::Field::SimpleMarkdown
2
2
 
3
3
  [![Code Climate](https://codeclimate.com/github/zooppa/administrate-field-simple_markdown/badges/gpa.svg)](https://codeclimate.com/github/zooppa/administrate-field-simple_markdown)
4
+ [![Build Status](https://semaphoreci.com/api/v1/zooppa/administrate-field-simple_markdown/branches/master/badge.svg)](https://semaphoreci.com/zooppa/administrate-field-simple_markdown)
4
5
 
5
6
  A plugin to edit Markdown text in [Administrate] using [SimpleMDE] v1.11.2.
6
7
 
@@ -11,7 +12,7 @@ A plugin to edit Markdown text in [Administrate] using [SimpleMDE] v1.11.2.
11
12
  Add it to your `Gemfile`:
12
13
 
13
14
  ```ruby
14
- gem 'administrate-field-simple_markdown', '~> 0.1.0'
15
+ gem 'administrate-field-simple_markdown', '~> 0.1.1'
15
16
  ```
16
17
 
17
18
  Run:
@@ -2,7 +2,7 @@ $:.push File.expand_path('../lib', __FILE__)
2
2
 
3
3
  Gem::Specification.new do |gem|
4
4
  gem.name = 'administrate-field-simple_markdown'
5
- gem.version = '0.1.0'
5
+ gem.version = '0.1.1'
6
6
  gem.authors = ['Michele Gerarduzzi']
7
7
  gem.email = ['michele.gerarduzzi@gmail.com']
8
8
  gem.homepage = 'https://github.com/zooppa/administrate-field-simple_markdown'
@@ -2,3 +2,16 @@
2
2
  *= require_self
3
3
  *= require simplemde.min
4
4
  */
5
+
6
+ .simple_markdown ul, .simple_markdown ol {
7
+ margin: 0.5em 0;
8
+ padding-left: 2em;
9
+ }
10
+
11
+ .simple_markdown ul {
12
+ list-style-type: disc;
13
+ }
14
+
15
+ .simple_markdown ol {
16
+ list-style-type: decimal;
17
+ }
@@ -14,7 +14,7 @@ This partial renders a WYSIWYG text area to help writing Markdown text
14
14
  <div class="field-unit__label">
15
15
  <%= f.label field.attribute %>
16
16
  </div>
17
- <div class="field-unit__field">
17
+ <div class="field-unit__field simple_markdown">
18
18
  <%= f.text_area field.attribute %>
19
19
  </div>
20
20
  <%= content_for :javascript do %>
@@ -9,4 +9,4 @@ This partial renders a Markdown field to HTML
9
9
  An instance of Administrate::Field::SimpleMarkdown.
10
10
  %>
11
11
 
12
- <%= field.to_html %>
12
+ <div class="simple_markdown"><%= field.to_html %></div>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: administrate-field-simple_markdown
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michele Gerarduzzi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-01-24 00:00:00.000000000 Z
11
+ date: 2018-03-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: administrate
@@ -132,7 +132,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
132
132
  version: '0'
133
133
  requirements: []
134
134
  rubyforge_project:
135
- rubygems_version: 2.7.3
135
+ rubygems_version: 2.7.6
136
136
  signing_key:
137
137
  specification_version: 4
138
138
  summary: Markdown editor for Administrate