simple_form_markdown_editor 0.0.5 → 0.0.6
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/Gemfile.lock +84 -69
- data/README.md +22 -8
- data/config/routes.rb +1 -1
- data/lib/simple_form_markdown_editor.rb +8 -8
- data/lib/simple_form_markdown_editor/configuration.rb +5 -0
- data/lib/simple_form_markdown_editor/markdown_editor_input.rb +17 -19
- data/lib/simple_form_markdown_editor/renderer.rb +5 -1
- data/lib/simple_form_markdown_editor/version.rb +1 -1
- data/simple_form_markdown_editor.gemspec +14 -13
- data/test/dummy/Gemfile +2 -3
- data/test/dummy/config/initializers/simple_form_markdown_editor.rb +1 -1
- metadata +19 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 309c8f09e79203a3ffb66ed768cc8252018b5d53
|
|
4
|
+
data.tar.gz: d0963ad2722d91aa48f6a50c0a8fd68829f83262
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c32065f5bfd8d76cfadebf2cf2b2de8110eeb9fe4d9da5cb5dad9e02470d0a578e0bf88df38ca9cf876e6783d2208de65f3617794a89324d728ae9d5056201b8
|
|
7
|
+
data.tar.gz: 041a1ce60257997d365d46b6b8422f53c43f4ee894ff5680bab191f28c360f898c9ccb5300be0df6dbeffe502cac9ee37aed2c5674230bdcb110652470808b0f
|
data/Gemfile.lock
CHANGED
|
@@ -1,107 +1,119 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
simple_form_markdown_editor (0.0.
|
|
4
|
+
simple_form_markdown_editor (0.0.6)
|
|
5
5
|
rails (>= 4.2)
|
|
6
6
|
redcarpet
|
|
7
|
+
responders
|
|
7
8
|
simple_form (>= 3.0.2)
|
|
8
9
|
|
|
9
10
|
GEM
|
|
10
11
|
remote: https://rubygems.org/
|
|
11
12
|
specs:
|
|
12
|
-
|
|
13
|
-
actionpack (=
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
actioncable (5.0.0.1)
|
|
14
|
+
actionpack (= 5.0.0.1)
|
|
15
|
+
nio4r (~> 1.2)
|
|
16
|
+
websocket-driver (~> 0.6.1)
|
|
17
|
+
actionmailer (5.0.0.1)
|
|
18
|
+
actionpack (= 5.0.0.1)
|
|
19
|
+
actionview (= 5.0.0.1)
|
|
20
|
+
activejob (= 5.0.0.1)
|
|
16
21
|
mail (~> 2.5, >= 2.5.4)
|
|
17
|
-
rails-dom-testing (~>
|
|
18
|
-
actionpack (
|
|
19
|
-
actionview (=
|
|
20
|
-
activesupport (=
|
|
21
|
-
rack (~>
|
|
22
|
-
rack-test (~> 0.6.
|
|
23
|
-
rails-dom-testing (~>
|
|
22
|
+
rails-dom-testing (~> 2.0)
|
|
23
|
+
actionpack (5.0.0.1)
|
|
24
|
+
actionview (= 5.0.0.1)
|
|
25
|
+
activesupport (= 5.0.0.1)
|
|
26
|
+
rack (~> 2.0)
|
|
27
|
+
rack-test (~> 0.6.3)
|
|
28
|
+
rails-dom-testing (~> 2.0)
|
|
24
29
|
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
|
25
|
-
actionview (
|
|
26
|
-
activesupport (=
|
|
30
|
+
actionview (5.0.0.1)
|
|
31
|
+
activesupport (= 5.0.0.1)
|
|
27
32
|
builder (~> 3.1)
|
|
28
33
|
erubis (~> 2.7.0)
|
|
29
|
-
rails-dom-testing (~>
|
|
34
|
+
rails-dom-testing (~> 2.0)
|
|
30
35
|
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
|
31
|
-
activejob (
|
|
32
|
-
activesupport (=
|
|
33
|
-
globalid (>= 0.3.
|
|
34
|
-
activemodel (
|
|
35
|
-
activesupport (=
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
36
|
+
activejob (5.0.0.1)
|
|
37
|
+
activesupport (= 5.0.0.1)
|
|
38
|
+
globalid (>= 0.3.6)
|
|
39
|
+
activemodel (5.0.0.1)
|
|
40
|
+
activesupport (= 5.0.0.1)
|
|
41
|
+
activerecord (5.0.0.1)
|
|
42
|
+
activemodel (= 5.0.0.1)
|
|
43
|
+
activesupport (= 5.0.0.1)
|
|
44
|
+
arel (~> 7.0)
|
|
45
|
+
activesupport (5.0.0.1)
|
|
46
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
|
42
47
|
i18n (~> 0.7)
|
|
43
|
-
json (~> 1.7, >= 1.7.7)
|
|
44
48
|
minitest (~> 5.1)
|
|
45
|
-
thread_safe (~> 0.3, >= 0.3.4)
|
|
46
49
|
tzinfo (~> 1.1)
|
|
47
|
-
arel (
|
|
50
|
+
arel (7.1.4)
|
|
48
51
|
builder (3.2.2)
|
|
52
|
+
concurrent-ruby (1.0.2)
|
|
49
53
|
erubis (2.7.0)
|
|
50
|
-
globalid (0.3.
|
|
54
|
+
globalid (0.3.7)
|
|
51
55
|
activesupport (>= 4.1.0)
|
|
52
56
|
i18n (0.7.0)
|
|
53
|
-
json (1.8.3)
|
|
54
57
|
loofah (2.0.3)
|
|
55
58
|
nokogiri (>= 1.5.9)
|
|
56
|
-
mail (2.6.
|
|
57
|
-
mime-types (>= 1.16, <
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
59
|
+
mail (2.6.4)
|
|
60
|
+
mime-types (>= 1.16, < 4)
|
|
61
|
+
method_source (0.8.2)
|
|
62
|
+
mime-types (3.1)
|
|
63
|
+
mime-types-data (~> 3.2015)
|
|
64
|
+
mime-types-data (3.2016.0521)
|
|
65
|
+
mini_portile2 (2.1.0)
|
|
66
|
+
minitest (5.9.1)
|
|
67
|
+
nio4r (1.2.1)
|
|
68
|
+
nokogiri (1.6.8.1)
|
|
69
|
+
mini_portile2 (~> 2.1.0)
|
|
70
|
+
rack (2.0.1)
|
|
64
71
|
rack-test (0.6.3)
|
|
65
72
|
rack (>= 1.0)
|
|
66
|
-
rails (
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
73
|
+
rails (5.0.0.1)
|
|
74
|
+
actioncable (= 5.0.0.1)
|
|
75
|
+
actionmailer (= 5.0.0.1)
|
|
76
|
+
actionpack (= 5.0.0.1)
|
|
77
|
+
actionview (= 5.0.0.1)
|
|
78
|
+
activejob (= 5.0.0.1)
|
|
79
|
+
activemodel (= 5.0.0.1)
|
|
80
|
+
activerecord (= 5.0.0.1)
|
|
81
|
+
activesupport (= 5.0.0.1)
|
|
74
82
|
bundler (>= 1.3.0, < 2.0)
|
|
75
|
-
railties (=
|
|
76
|
-
sprockets-rails
|
|
77
|
-
rails-
|
|
78
|
-
activesupport (>= 4.2.0.
|
|
79
|
-
rails-dom-testing (1.0.7)
|
|
80
|
-
activesupport (>= 4.2.0.beta, < 5.0)
|
|
83
|
+
railties (= 5.0.0.1)
|
|
84
|
+
sprockets-rails (>= 2.0.0)
|
|
85
|
+
rails-dom-testing (2.0.1)
|
|
86
|
+
activesupport (>= 4.2.0, < 6.0)
|
|
81
87
|
nokogiri (~> 1.6.0)
|
|
82
|
-
|
|
83
|
-
rails-html-sanitizer (1.0.2)
|
|
88
|
+
rails-html-sanitizer (1.0.3)
|
|
84
89
|
loofah (~> 2.0)
|
|
85
|
-
railties (
|
|
86
|
-
actionpack (=
|
|
87
|
-
activesupport (=
|
|
90
|
+
railties (5.0.0.1)
|
|
91
|
+
actionpack (= 5.0.0.1)
|
|
92
|
+
activesupport (= 5.0.0.1)
|
|
93
|
+
method_source
|
|
88
94
|
rake (>= 0.8.7)
|
|
89
95
|
thor (>= 0.18.1, < 2.0)
|
|
90
|
-
rake (
|
|
91
|
-
redcarpet (3.3.
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
sprockets
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
96
|
+
rake (11.3.0)
|
|
97
|
+
redcarpet (3.3.4)
|
|
98
|
+
responders (2.3.0)
|
|
99
|
+
railties (>= 4.2.0, < 5.1)
|
|
100
|
+
simple_form (3.3.1)
|
|
101
|
+
actionpack (> 4, < 5.1)
|
|
102
|
+
activemodel (> 4, < 5.1)
|
|
103
|
+
sprockets (3.7.0)
|
|
104
|
+
concurrent-ruby (~> 1.0)
|
|
105
|
+
rack (> 1, < 3)
|
|
106
|
+
sprockets-rails (3.2.0)
|
|
107
|
+
actionpack (>= 4.0)
|
|
108
|
+
activesupport (>= 4.0)
|
|
109
|
+
sprockets (>= 3.0.0)
|
|
101
110
|
thor (0.19.1)
|
|
102
111
|
thread_safe (0.3.5)
|
|
103
112
|
tzinfo (1.2.2)
|
|
104
113
|
thread_safe (~> 0.1)
|
|
114
|
+
websocket-driver (0.6.4)
|
|
115
|
+
websocket-extensions (>= 0.1.0)
|
|
116
|
+
websocket-extensions (0.1.2)
|
|
105
117
|
|
|
106
118
|
PLATFORMS
|
|
107
119
|
ruby
|
|
@@ -110,3 +122,6 @@ DEPENDENCIES
|
|
|
110
122
|
bundler (~> 1.6)
|
|
111
123
|
rake
|
|
112
124
|
simple_form_markdown_editor!
|
|
125
|
+
|
|
126
|
+
BUNDLED WITH
|
|
127
|
+
1.12.5
|
data/README.md
CHANGED
|
@@ -8,33 +8,47 @@ A simple [Markdown](http://daringfireball.net/projects/markdown/) editor inspire
|
|
|
8
8
|
|
|
9
9
|
Add this line to your application's Gemfile:
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
```ruby
|
|
12
|
+
gem 'simple_form_markdown_editor'
|
|
13
|
+
```
|
|
12
14
|
|
|
13
15
|
And then execute:
|
|
14
16
|
|
|
15
|
-
|
|
17
|
+
```sh
|
|
18
|
+
$ bundle
|
|
19
|
+
```
|
|
16
20
|
|
|
17
21
|
Or install it yourself as:
|
|
18
22
|
|
|
19
|
-
|
|
23
|
+
```sh
|
|
24
|
+
$ gem install simple_form_markdown_editor
|
|
25
|
+
```
|
|
20
26
|
|
|
21
27
|
## Usage
|
|
22
28
|
|
|
23
29
|
Require the javascripts in `application.js`:
|
|
24
30
|
|
|
25
|
-
|
|
31
|
+
```jsx
|
|
32
|
+
//= require simple_form_markdown_editor
|
|
33
|
+
```
|
|
26
34
|
|
|
27
35
|
And require the stylesheets in `application.css`:
|
|
28
36
|
|
|
29
|
-
|
|
37
|
+
```css
|
|
38
|
+
*= require simple_form_markdown_editor
|
|
39
|
+
```
|
|
30
40
|
|
|
31
41
|
Finally mount the engine in your routes:
|
|
32
42
|
|
|
33
|
-
|
|
43
|
+
```ruby
|
|
44
|
+
mount SimpleFormMarkdownEditor::Engine => "/"
|
|
45
|
+
```
|
|
34
46
|
|
|
35
47
|
Use in forms:
|
|
36
48
|
|
|
37
|
-
|
|
49
|
+
```slim
|
|
50
|
+
= form.input :markdown, as: :markdown_editor
|
|
51
|
+
```
|
|
38
52
|
|
|
39
53
|
## Configuration
|
|
40
54
|
|
|
@@ -56,6 +70,7 @@ SimpleFormMarkdownEditor::MarkdownEditorInput.configure do |c|
|
|
|
56
70
|
lax_spacing: true,
|
|
57
71
|
escape_html: false
|
|
58
72
|
}
|
|
73
|
+
c.render_class = CustomRenderClass
|
|
59
74
|
c.render_options = {
|
|
60
75
|
no_images: true,
|
|
61
76
|
no_links: true
|
|
@@ -105,7 +120,6 @@ The gem includes a rails app for easy testing, simply `cd test/dummy`, `bundle i
|
|
|
105
120
|
## Todo
|
|
106
121
|
|
|
107
122
|
* How to make it possible to plug in other render engines?
|
|
108
|
-
* How to implement "custom Markdown" (basic gsub)?
|
|
109
123
|
* Highlighting trailing spaces (for linebreaks)?
|
|
110
124
|
* Implement keyboard shortcuts
|
|
111
125
|
* Implement Ctrl+z
|
data/config/routes.rb
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
require
|
|
1
|
+
require 'simple_form'
|
|
2
2
|
|
|
3
|
-
require
|
|
4
|
-
require
|
|
5
|
-
require
|
|
6
|
-
require
|
|
7
|
-
require
|
|
3
|
+
require 'simple_form_markdown_editor/configuration'
|
|
4
|
+
require 'simple_form_markdown_editor/engine'
|
|
5
|
+
require 'simple_form_markdown_editor/markdown_editor_input'
|
|
6
|
+
require 'simple_form_markdown_editor/renderer'
|
|
7
|
+
require 'simple_form_markdown_editor/version'
|
|
8
8
|
|
|
9
|
-
require
|
|
9
|
+
require 'i18n'
|
|
10
10
|
|
|
11
11
|
# ---------------------------------------------------------------------
|
|
12
12
|
|
|
@@ -18,4 +18,4 @@ end
|
|
|
18
18
|
|
|
19
19
|
# ---------------------------------------------------------------------
|
|
20
20
|
|
|
21
|
-
I18n.load_path += Dir.glob(File.join(
|
|
21
|
+
I18n.load_path += Dir.glob(File.join(File.dirname(__FILE__), 'config', 'locales', '*.yml'))
|
|
@@ -3,6 +3,7 @@ module SimpleFormMarkdownEditor
|
|
|
3
3
|
attr_accessor :buttons
|
|
4
4
|
attr_accessor :extensions
|
|
5
5
|
attr_accessor :help
|
|
6
|
+
attr_accessor :render_class
|
|
6
7
|
attr_accessor :render_options
|
|
7
8
|
attr_accessor :route
|
|
8
9
|
|
|
@@ -35,6 +36,10 @@ module SimpleFormMarkdownEditor
|
|
|
35
36
|
}
|
|
36
37
|
end
|
|
37
38
|
|
|
39
|
+
def render_class
|
|
40
|
+
@render_class ||= Redcarpet::Render::HTML
|
|
41
|
+
end
|
|
42
|
+
|
|
38
43
|
def render_options
|
|
39
44
|
@render_options ||= {}
|
|
40
45
|
end
|
|
@@ -18,7 +18,7 @@ module SimpleFormMarkdownEditor
|
|
|
18
18
|
|
|
19
19
|
# =====================================================================
|
|
20
20
|
|
|
21
|
-
def input
|
|
21
|
+
def input(wrapper_options)
|
|
22
22
|
template.content_tag :div, merge_wrapper_options(input_html_options, wrapper_options) do
|
|
23
23
|
template.concat header
|
|
24
24
|
template.concat help
|
|
@@ -31,9 +31,7 @@ module SimpleFormMarkdownEditor
|
|
|
31
31
|
|
|
32
32
|
def input_html_options
|
|
33
33
|
super[:data] ||= {}
|
|
34
|
-
super[:data].
|
|
35
|
-
preview_path: options.fetch(:route, MarkdownEditorInput.configuration.route)
|
|
36
|
-
)
|
|
34
|
+
super[:data][:preview_path] = options.fetch(:route, MarkdownEditorInput.configuration.route)
|
|
37
35
|
super
|
|
38
36
|
end
|
|
39
37
|
|
|
@@ -60,7 +58,7 @@ module SimpleFormMarkdownEditor
|
|
|
60
58
|
def tabs
|
|
61
59
|
template.content_tag :div, class: 'editor_tabs' do
|
|
62
60
|
template.content_tag :ul, class: 'tabs' do
|
|
63
|
-
tab_list.map{ |t| tab(t) }.flatten.join.html_safe
|
|
61
|
+
tab_list.map { |t| tab(t) }.flatten.join.html_safe
|
|
64
62
|
end
|
|
65
63
|
end
|
|
66
64
|
end
|
|
@@ -69,11 +67,11 @@ module SimpleFormMarkdownEditor
|
|
|
69
67
|
%w(edit preview)
|
|
70
68
|
end
|
|
71
69
|
|
|
72
|
-
def tab
|
|
70
|
+
def tab(name)
|
|
73
71
|
template.content_tag :li, class: ['tab', name.to_s.underscore.downcase], data: { command: name.to_s } do
|
|
74
72
|
template.content_tag :span,
|
|
75
|
-
|
|
76
|
-
|
|
73
|
+
I18n.t(name.to_sym, scope: 'simple_form_markdown_editor.tabs'),
|
|
74
|
+
class: name.to_s.underscore.downcase
|
|
77
75
|
end
|
|
78
76
|
end
|
|
79
77
|
|
|
@@ -87,19 +85,19 @@ module SimpleFormMarkdownEditor
|
|
|
87
85
|
|
|
88
86
|
def button_groups
|
|
89
87
|
template.content_tag :ul, class: 'button_groups' do
|
|
90
|
-
button_list.map{ |group| button_group(group) }.flatten.join.html_safe
|
|
88
|
+
button_list.map { |group| button_group(group) }.flatten.join.html_safe
|
|
91
89
|
end
|
|
92
90
|
end
|
|
93
91
|
|
|
94
|
-
def button_group
|
|
92
|
+
def button_group(g)
|
|
95
93
|
template.content_tag :li, class: 'button_group', data: { buttons: g.join(' ') } do
|
|
96
94
|
template.content_tag :ul, class: 'buttons' do
|
|
97
|
-
g.map{ |b| button(b) }.flatten.join.html_safe
|
|
95
|
+
g.map { |b| button(b) }.flatten.join.html_safe
|
|
98
96
|
end
|
|
99
97
|
end
|
|
100
98
|
end
|
|
101
99
|
|
|
102
|
-
def button
|
|
100
|
+
def button(b)
|
|
103
101
|
return if b == 'help' && !help_enabled?
|
|
104
102
|
template.content_tag :li, class: ['button', b], data: { toggle: b } do
|
|
105
103
|
template.content_tag :button, I18n.t(b.to_sym, scope: 'simple_form_markdown_editor.buttons'), class: b, value: b, role: '', state: '', name: '', type: 'button'
|
|
@@ -135,11 +133,11 @@ module SimpleFormMarkdownEditor
|
|
|
135
133
|
|
|
136
134
|
def help_sections
|
|
137
135
|
template.content_tag :ul, class: %w(sections) do
|
|
138
|
-
i18n_help.map{ |section, content| help_section(section, content) }.flatten.join.html_safe
|
|
136
|
+
i18n_help.map { |section, content| help_section(section, content) }.flatten.join.html_safe
|
|
139
137
|
end
|
|
140
138
|
end
|
|
141
139
|
|
|
142
|
-
def help_section
|
|
140
|
+
def help_section(section, content)
|
|
143
141
|
return unless content[:title]
|
|
144
142
|
template.content_tag :li, class: ['section', section.to_s], data: { toggle: section.to_s } do
|
|
145
143
|
template.content_tag :span, content[:title].to_s, class: section.to_s
|
|
@@ -149,12 +147,12 @@ module SimpleFormMarkdownEditor
|
|
|
149
147
|
def help_sub_sections
|
|
150
148
|
i18n_help.map do |section, content|
|
|
151
149
|
template.content_tag :ul, class: ['sub_sections', section.to_s] do
|
|
152
|
-
content[:elements].map{ |
|
|
150
|
+
content[:elements].map { |sec, con| help_sub_section(sec, con) }.flatten.join.html_safe
|
|
153
151
|
end
|
|
154
152
|
end.flatten.join.html_safe
|
|
155
153
|
end
|
|
156
154
|
|
|
157
|
-
def help_sub_section
|
|
155
|
+
def help_sub_section(section, content)
|
|
158
156
|
return unless content[:title]
|
|
159
157
|
template.content_tag :li, class: ['sub_section', section.to_s], data: { toggle: section.to_s } do
|
|
160
158
|
template.content_tag :span, content[:title].to_s, class: section.to_s
|
|
@@ -163,9 +161,9 @@ module SimpleFormMarkdownEditor
|
|
|
163
161
|
|
|
164
162
|
def help_texts
|
|
165
163
|
i18n_help.map do |section, content|
|
|
166
|
-
content[:elements].map do |
|
|
167
|
-
template.content_tag :div, class: ['help_text',
|
|
168
|
-
Renderer.call(
|
|
164
|
+
content[:elements].map do |el, con|
|
|
165
|
+
template.content_tag :div, class: ['help_text', el.to_s], data: { section: section.to_s, sub_section: el.to_s } do
|
|
166
|
+
Renderer.call(con[:text], render_options: render_options, extensions: extensions)
|
|
169
167
|
end
|
|
170
168
|
end
|
|
171
169
|
end.flatten.join.html_safe
|
|
@@ -10,6 +10,10 @@ module SimpleFormMarkdownEditor
|
|
|
10
10
|
@options ||= {}
|
|
11
11
|
end
|
|
12
12
|
|
|
13
|
+
def render_class
|
|
14
|
+
@render_class ||= options.fetch(:render_class, MarkdownEditorInput.configuration.render_class)
|
|
15
|
+
end
|
|
16
|
+
|
|
13
17
|
def render_options
|
|
14
18
|
@render_options ||= options.fetch(:render_options, MarkdownEditorInput.configuration.render_options)
|
|
15
19
|
end
|
|
@@ -27,7 +31,7 @@ module SimpleFormMarkdownEditor
|
|
|
27
31
|
|
|
28
32
|
def markdown_renderer
|
|
29
33
|
Redcarpet::Markdown.new(
|
|
30
|
-
|
|
34
|
+
render_class.new(render_options), extensions
|
|
31
35
|
)
|
|
32
36
|
end
|
|
33
37
|
end
|
|
@@ -4,24 +4,25 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
|
4
4
|
require 'simple_form_markdown_editor/version'
|
|
5
5
|
|
|
6
6
|
Gem::Specification.new do |spec|
|
|
7
|
-
spec.name =
|
|
7
|
+
spec.name = 'simple_form_markdown_editor'
|
|
8
8
|
spec.version = SimpleFormMarkdownEditor::VERSION
|
|
9
|
-
spec.authors = [
|
|
10
|
-
spec.email = [
|
|
11
|
-
spec.summary =
|
|
12
|
-
spec.description =
|
|
13
|
-
spec.homepage =
|
|
14
|
-
spec.license =
|
|
9
|
+
spec.authors = ['Tomas Celizna', 'Asger Behncke Jacobsen']
|
|
10
|
+
spec.email = ['mail@tomascelizna.com', 'asger@8kilo.com']
|
|
11
|
+
spec.summary = 'Simple Markdown editor (inspired by GitHub editor).'
|
|
12
|
+
spec.description = 'Simple Markdown editor (inspired by GitHub editor).'
|
|
13
|
+
spec.homepage = 'https://github.com/tomasc/simple_form_markdown_editor'
|
|
14
|
+
spec.license = 'MIT'
|
|
15
15
|
|
|
16
16
|
spec.files = `git ls-files -z`.split("\x0")
|
|
17
17
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
|
18
18
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
|
19
|
-
spec.require_paths = [
|
|
19
|
+
spec.require_paths = ['lib']
|
|
20
20
|
|
|
21
|
-
spec.add_dependency
|
|
22
|
-
spec.add_dependency
|
|
23
|
-
spec.add_dependency
|
|
21
|
+
spec.add_dependency 'rails', '>= 4.2'
|
|
22
|
+
spec.add_dependency 'simple_form', '>= 3.0.2'
|
|
23
|
+
spec.add_dependency 'redcarpet'
|
|
24
|
+
spec.add_dependency 'responders'
|
|
24
25
|
|
|
25
|
-
spec.add_development_dependency
|
|
26
|
-
spec.add_development_dependency
|
|
26
|
+
spec.add_development_dependency 'bundler', '~> 1.6'
|
|
27
|
+
spec.add_development_dependency 'rake'
|
|
27
28
|
end
|
data/test/dummy/Gemfile
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
source 'https://rubygems.org'
|
|
2
2
|
|
|
3
|
-
|
|
4
3
|
gem 'rails', '4.2.0'
|
|
5
4
|
gem 'sass-rails', '~> 5.0'
|
|
6
5
|
gem 'uglifier', '>= 1.3.0'
|
|
@@ -14,12 +13,12 @@ gem 'sdoc', '~> 0.4.0', group: :doc
|
|
|
14
13
|
gem 'slim'
|
|
15
14
|
|
|
16
15
|
gem 'mongoid'
|
|
16
|
+
gem 'responders'
|
|
17
17
|
|
|
18
|
-
gem 'simple_form_markdown_editor'
|
|
18
|
+
gem 'simple_form_markdown_editor', path: '../..'
|
|
19
19
|
|
|
20
20
|
group :development, :test do
|
|
21
21
|
gem 'byebug'
|
|
22
22
|
gem 'web-console', '~> 2.0'
|
|
23
23
|
gem 'spring'
|
|
24
24
|
end
|
|
25
|
-
|
metadata
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: simple_form_markdown_editor
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
|
-
-
|
|
7
|
+
- Tomas Celizna
|
|
8
8
|
- Asger Behncke Jacobsen
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date:
|
|
12
|
+
date: 2016-11-04 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: rails
|
|
@@ -53,6 +53,20 @@ dependencies:
|
|
|
53
53
|
- - ">="
|
|
54
54
|
- !ruby/object:Gem::Version
|
|
55
55
|
version: '0'
|
|
56
|
+
- !ruby/object:Gem::Dependency
|
|
57
|
+
name: responders
|
|
58
|
+
requirement: !ruby/object:Gem::Requirement
|
|
59
|
+
requirements:
|
|
60
|
+
- - ">="
|
|
61
|
+
- !ruby/object:Gem::Version
|
|
62
|
+
version: '0'
|
|
63
|
+
type: :runtime
|
|
64
|
+
prerelease: false
|
|
65
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
66
|
+
requirements:
|
|
67
|
+
- - ">="
|
|
68
|
+
- !ruby/object:Gem::Version
|
|
69
|
+
version: '0'
|
|
56
70
|
- !ruby/object:Gem::Dependency
|
|
57
71
|
name: bundler
|
|
58
72
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -83,7 +97,7 @@ dependencies:
|
|
|
83
97
|
version: '0'
|
|
84
98
|
description: Simple Markdown editor (inspired by GitHub editor).
|
|
85
99
|
email:
|
|
86
|
-
-
|
|
100
|
+
- mail@tomascelizna.com
|
|
87
101
|
- asger@8kilo.com
|
|
88
102
|
executables: []
|
|
89
103
|
extensions: []
|
|
@@ -186,7 +200,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
186
200
|
version: '0'
|
|
187
201
|
requirements: []
|
|
188
202
|
rubyforge_project:
|
|
189
|
-
rubygems_version: 2.4.
|
|
203
|
+
rubygems_version: 2.4.5.1
|
|
190
204
|
signing_key:
|
|
191
205
|
specification_version: 4
|
|
192
206
|
summary: Simple Markdown editor (inspired by GitHub editor).
|