simple_form_markdown_editor 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (89) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +2 -0
  3. data/Gemfile +4 -0
  4. data/Gemfile.lock +126 -0
  5. data/README.md +111 -0
  6. data/Rakefile +1 -0
  7. data/app/controllers/simple_form_markdown_editor/previews_controller.rb +21 -0
  8. data/config/routes.rb +7 -0
  9. data/lib/assets/javascripts/simple_form_markdown_editor/simple_form_markdown_editor_buttons.js.coffee +135 -0
  10. data/lib/assets/javascripts/simple_form_markdown_editor/simple_form_markdown_editor_help.js.coffee +100 -0
  11. data/lib/assets/javascripts/simple_form_markdown_editor/simple_form_markdown_editor_tabs.js.coffee +84 -0
  12. data/lib/assets/javascripts/simple_form_markdown_editor.js +3 -0
  13. data/lib/assets/stylesheets/simple_form_markdown_editor/simple_form_markdown_editor.css.scss +275 -0
  14. data/lib/assets/stylesheets/simple_form_markdown_editor.css +3 -0
  15. data/lib/config/locales/simple_form_markdown_editor.en.yml +96 -0
  16. data/lib/simple_form_markdown_editor/configuration.rb +26 -0
  17. data/lib/simple_form_markdown_editor/engine.rb +4 -0
  18. data/lib/simple_form_markdown_editor/renderer.rb +50 -0
  19. data/lib/simple_form_markdown_editor/simple_form_markdown_editor.rb +183 -0
  20. data/lib/simple_form_markdown_editor/version.rb +3 -0
  21. data/lib/simple_form_markdown_editor.rb +21 -0
  22. data/simple_form_markdown_editor.gemspec +30 -0
  23. data/test/dummy/.gitignore +13 -0
  24. data/test/dummy/Gemfile +25 -0
  25. data/test/dummy/Gemfile.lock +195 -0
  26. data/test/dummy/README.rdoc +28 -0
  27. data/test/dummy/Rakefile +6 -0
  28. data/test/dummy/app/assets/images/.keep +0 -0
  29. data/test/dummy/app/assets/javascripts/application.js +4 -0
  30. data/test/dummy/app/assets/javascripts/editor_tests.coffee +3 -0
  31. data/test/dummy/app/assets/stylesheets/application.css +5 -0
  32. data/test/dummy/app/assets/stylesheets/editor_tests.scss +32 -0
  33. data/test/dummy/app/controllers/application_controller.rb +5 -0
  34. data/test/dummy/app/controllers/concerns/.keep +0 -0
  35. data/test/dummy/app/controllers/editor_tests_controller.rb +5 -0
  36. data/test/dummy/app/helpers/application_helper.rb +2 -0
  37. data/test/dummy/app/helpers/editor_tests_helper.rb +2 -0
  38. data/test/dummy/app/mailers/.keep +0 -0
  39. data/test/dummy/app/models/.keep +0 -0
  40. data/test/dummy/app/models/concerns/.keep +0 -0
  41. data/test/dummy/app/models/editor_test.rb +4 -0
  42. data/test/dummy/app/views/editor_tests/new.html.slim +2 -0
  43. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  44. data/test/dummy/bin/bundle +3 -0
  45. data/test/dummy/bin/rails +8 -0
  46. data/test/dummy/bin/rake +8 -0
  47. data/test/dummy/bin/setup +29 -0
  48. data/test/dummy/bin/spring +15 -0
  49. data/test/dummy/config/application.rb +31 -0
  50. data/test/dummy/config/boot.rb +3 -0
  51. data/test/dummy/config/environment.rb +5 -0
  52. data/test/dummy/config/environments/development.rb +38 -0
  53. data/test/dummy/config/environments/production.rb +76 -0
  54. data/test/dummy/config/environments/test.rb +42 -0
  55. data/test/dummy/config/initializers/assets.rb +11 -0
  56. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  57. data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
  58. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  59. data/test/dummy/config/initializers/inflections.rb +16 -0
  60. data/test/dummy/config/initializers/mime_types.rb +4 -0
  61. data/test/dummy/config/initializers/session_store.rb +3 -0
  62. data/test/dummy/config/initializers/simple_form_markdown_editor.rb +5 -0
  63. data/test/dummy/config/initializers/wrap_parameters.rb +9 -0
  64. data/test/dummy/config/locales/en.yml +23 -0
  65. data/test/dummy/config/routes.rb +5 -0
  66. data/test/dummy/config/secrets.yml +22 -0
  67. data/test/dummy/config.ru +4 -0
  68. data/test/dummy/db/seeds.rb +7 -0
  69. data/test/dummy/lib/assets/.keep +0 -0
  70. data/test/dummy/lib/tasks/.keep +0 -0
  71. data/test/dummy/log/.keep +0 -0
  72. data/test/dummy/public/404.html +67 -0
  73. data/test/dummy/public/422.html +67 -0
  74. data/test/dummy/public/500.html +66 -0
  75. data/test/dummy/public/favicon.ico +0 -0
  76. data/test/dummy/public/robots.txt +5 -0
  77. data/test/dummy/test/controllers/.keep +0 -0
  78. data/test/dummy/test/controllers/editor_tests_controller_test.rb +7 -0
  79. data/test/dummy/test/fixtures/.keep +0 -0
  80. data/test/dummy/test/fixtures/editor_tests.yml +7 -0
  81. data/test/dummy/test/helpers/.keep +0 -0
  82. data/test/dummy/test/integration/.keep +0 -0
  83. data/test/dummy/test/mailers/.keep +0 -0
  84. data/test/dummy/test/models/.keep +0 -0
  85. data/test/dummy/test/models/editor_test_test.rb +7 -0
  86. data/test/dummy/test/test_helper.rb +7 -0
  87. data/test/dummy/vendor/assets/javascripts/.keep +0 -0
  88. data/test/dummy/vendor/assets/stylesheets/.keep +0 -0
  89. metadata +297 -0
metadata ADDED
@@ -0,0 +1,297 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: simple_form_markdown_editor
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Tomáš Celizna
8
+ - Asger Behncke Jacobsen
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2015-03-19 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rails
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - ">="
19
+ - !ruby/object:Gem::Version
20
+ version: '4.2'
21
+ type: :runtime
22
+ prerelease: false
23
+ version_requirements: !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - ">="
26
+ - !ruby/object:Gem::Version
27
+ version: '4.2'
28
+ - !ruby/object:Gem::Dependency
29
+ name: simple_form
30
+ requirement: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - ">="
33
+ - !ruby/object:Gem::Version
34
+ version: 3.0.2
35
+ type: :runtime
36
+ prerelease: false
37
+ version_requirements: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - ">="
40
+ - !ruby/object:Gem::Version
41
+ version: 3.0.2
42
+ - !ruby/object:Gem::Dependency
43
+ name: redcarpet
44
+ requirement: !ruby/object:Gem::Requirement
45
+ requirements:
46
+ - - ">="
47
+ - !ruby/object:Gem::Version
48
+ version: '0'
49
+ type: :runtime
50
+ prerelease: false
51
+ version_requirements: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - ">="
54
+ - !ruby/object:Gem::Version
55
+ version: '0'
56
+ - !ruby/object:Gem::Dependency
57
+ name: autoprefixer-rails
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'
70
+ - !ruby/object:Gem::Dependency
71
+ name: responders
72
+ requirement: !ruby/object:Gem::Requirement
73
+ requirements:
74
+ - - "~>"
75
+ - !ruby/object:Gem::Version
76
+ version: '2.0'
77
+ type: :runtime
78
+ prerelease: false
79
+ version_requirements: !ruby/object:Gem::Requirement
80
+ requirements:
81
+ - - "~>"
82
+ - !ruby/object:Gem::Version
83
+ version: '2.0'
84
+ - !ruby/object:Gem::Dependency
85
+ name: bundler
86
+ requirement: !ruby/object:Gem::Requirement
87
+ requirements:
88
+ - - "~>"
89
+ - !ruby/object:Gem::Version
90
+ version: '1.6'
91
+ type: :development
92
+ prerelease: false
93
+ version_requirements: !ruby/object:Gem::Requirement
94
+ requirements:
95
+ - - "~>"
96
+ - !ruby/object:Gem::Version
97
+ version: '1.6'
98
+ - !ruby/object:Gem::Dependency
99
+ name: rake
100
+ requirement: !ruby/object:Gem::Requirement
101
+ requirements:
102
+ - - ">="
103
+ - !ruby/object:Gem::Version
104
+ version: '0'
105
+ type: :development
106
+ prerelease: false
107
+ version_requirements: !ruby/object:Gem::Requirement
108
+ requirements:
109
+ - - ">="
110
+ - !ruby/object:Gem::Version
111
+ version: '0'
112
+ description: Simple Markdown editor (inspired by GitHub editor).
113
+ email:
114
+ - tomas.celizna@gmail.com
115
+ - asger@8kilo.com
116
+ executables: []
117
+ extensions: []
118
+ extra_rdoc_files: []
119
+ files:
120
+ - ".gitignore"
121
+ - Gemfile
122
+ - Gemfile.lock
123
+ - README.md
124
+ - Rakefile
125
+ - app/controllers/simple_form_markdown_editor/previews_controller.rb
126
+ - config/routes.rb
127
+ - lib/assets/javascripts/simple_form_markdown_editor.js
128
+ - lib/assets/javascripts/simple_form_markdown_editor/simple_form_markdown_editor_buttons.js.coffee
129
+ - lib/assets/javascripts/simple_form_markdown_editor/simple_form_markdown_editor_help.js.coffee
130
+ - lib/assets/javascripts/simple_form_markdown_editor/simple_form_markdown_editor_tabs.js.coffee
131
+ - lib/assets/stylesheets/simple_form_markdown_editor.css
132
+ - lib/assets/stylesheets/simple_form_markdown_editor/simple_form_markdown_editor.css.scss
133
+ - lib/config/locales/simple_form_markdown_editor.en.yml
134
+ - lib/simple_form_markdown_editor.rb
135
+ - lib/simple_form_markdown_editor/configuration.rb
136
+ - lib/simple_form_markdown_editor/engine.rb
137
+ - lib/simple_form_markdown_editor/renderer.rb
138
+ - lib/simple_form_markdown_editor/simple_form_markdown_editor.rb
139
+ - lib/simple_form_markdown_editor/version.rb
140
+ - simple_form_markdown_editor.gemspec
141
+ - test/dummy/.gitignore
142
+ - test/dummy/Gemfile
143
+ - test/dummy/Gemfile.lock
144
+ - test/dummy/README.rdoc
145
+ - test/dummy/Rakefile
146
+ - test/dummy/app/assets/images/.keep
147
+ - test/dummy/app/assets/javascripts/application.js
148
+ - test/dummy/app/assets/javascripts/editor_tests.coffee
149
+ - test/dummy/app/assets/stylesheets/application.css
150
+ - test/dummy/app/assets/stylesheets/editor_tests.scss
151
+ - test/dummy/app/controllers/application_controller.rb
152
+ - test/dummy/app/controllers/concerns/.keep
153
+ - test/dummy/app/controllers/editor_tests_controller.rb
154
+ - test/dummy/app/helpers/application_helper.rb
155
+ - test/dummy/app/helpers/editor_tests_helper.rb
156
+ - test/dummy/app/mailers/.keep
157
+ - test/dummy/app/models/.keep
158
+ - test/dummy/app/models/concerns/.keep
159
+ - test/dummy/app/models/editor_test.rb
160
+ - test/dummy/app/views/editor_tests/new.html.slim
161
+ - test/dummy/app/views/layouts/application.html.erb
162
+ - test/dummy/bin/bundle
163
+ - test/dummy/bin/rails
164
+ - test/dummy/bin/rake
165
+ - test/dummy/bin/setup
166
+ - test/dummy/bin/spring
167
+ - test/dummy/config.ru
168
+ - test/dummy/config/application.rb
169
+ - test/dummy/config/boot.rb
170
+ - test/dummy/config/environment.rb
171
+ - test/dummy/config/environments/development.rb
172
+ - test/dummy/config/environments/production.rb
173
+ - test/dummy/config/environments/test.rb
174
+ - test/dummy/config/initializers/assets.rb
175
+ - test/dummy/config/initializers/backtrace_silencers.rb
176
+ - test/dummy/config/initializers/cookies_serializer.rb
177
+ - test/dummy/config/initializers/filter_parameter_logging.rb
178
+ - test/dummy/config/initializers/inflections.rb
179
+ - test/dummy/config/initializers/mime_types.rb
180
+ - test/dummy/config/initializers/session_store.rb
181
+ - test/dummy/config/initializers/simple_form_markdown_editor.rb
182
+ - test/dummy/config/initializers/wrap_parameters.rb
183
+ - test/dummy/config/locales/en.yml
184
+ - test/dummy/config/routes.rb
185
+ - test/dummy/config/secrets.yml
186
+ - test/dummy/db/seeds.rb
187
+ - test/dummy/lib/assets/.keep
188
+ - test/dummy/lib/tasks/.keep
189
+ - test/dummy/log/.keep
190
+ - test/dummy/public/404.html
191
+ - test/dummy/public/422.html
192
+ - test/dummy/public/500.html
193
+ - test/dummy/public/favicon.ico
194
+ - test/dummy/public/robots.txt
195
+ - test/dummy/test/controllers/.keep
196
+ - test/dummy/test/controllers/editor_tests_controller_test.rb
197
+ - test/dummy/test/fixtures/.keep
198
+ - test/dummy/test/fixtures/editor_tests.yml
199
+ - test/dummy/test/helpers/.keep
200
+ - test/dummy/test/integration/.keep
201
+ - test/dummy/test/mailers/.keep
202
+ - test/dummy/test/models/.keep
203
+ - test/dummy/test/models/editor_test_test.rb
204
+ - test/dummy/test/test_helper.rb
205
+ - test/dummy/vendor/assets/javascripts/.keep
206
+ - test/dummy/vendor/assets/stylesheets/.keep
207
+ homepage: https://github.com/tomasc/simple_form_markdown_editor
208
+ licenses:
209
+ - MIT
210
+ metadata: {}
211
+ post_install_message:
212
+ rdoc_options: []
213
+ require_paths:
214
+ - lib
215
+ required_ruby_version: !ruby/object:Gem::Requirement
216
+ requirements:
217
+ - - ">="
218
+ - !ruby/object:Gem::Version
219
+ version: '0'
220
+ required_rubygems_version: !ruby/object:Gem::Requirement
221
+ requirements:
222
+ - - ">="
223
+ - !ruby/object:Gem::Version
224
+ version: '0'
225
+ requirements: []
226
+ rubyforge_project:
227
+ rubygems_version: 2.4.6
228
+ signing_key:
229
+ specification_version: 4
230
+ summary: Simple Markdown editor (inspired by GitHub editor).
231
+ test_files:
232
+ - test/dummy/.gitignore
233
+ - test/dummy/Gemfile
234
+ - test/dummy/Gemfile.lock
235
+ - test/dummy/README.rdoc
236
+ - test/dummy/Rakefile
237
+ - test/dummy/app/assets/images/.keep
238
+ - test/dummy/app/assets/javascripts/application.js
239
+ - test/dummy/app/assets/javascripts/editor_tests.coffee
240
+ - test/dummy/app/assets/stylesheets/application.css
241
+ - test/dummy/app/assets/stylesheets/editor_tests.scss
242
+ - test/dummy/app/controllers/application_controller.rb
243
+ - test/dummy/app/controllers/concerns/.keep
244
+ - test/dummy/app/controllers/editor_tests_controller.rb
245
+ - test/dummy/app/helpers/application_helper.rb
246
+ - test/dummy/app/helpers/editor_tests_helper.rb
247
+ - test/dummy/app/mailers/.keep
248
+ - test/dummy/app/models/.keep
249
+ - test/dummy/app/models/concerns/.keep
250
+ - test/dummy/app/models/editor_test.rb
251
+ - test/dummy/app/views/editor_tests/new.html.slim
252
+ - test/dummy/app/views/layouts/application.html.erb
253
+ - test/dummy/bin/bundle
254
+ - test/dummy/bin/rails
255
+ - test/dummy/bin/rake
256
+ - test/dummy/bin/setup
257
+ - test/dummy/bin/spring
258
+ - test/dummy/config.ru
259
+ - test/dummy/config/application.rb
260
+ - test/dummy/config/boot.rb
261
+ - test/dummy/config/environment.rb
262
+ - test/dummy/config/environments/development.rb
263
+ - test/dummy/config/environments/production.rb
264
+ - test/dummy/config/environments/test.rb
265
+ - test/dummy/config/initializers/assets.rb
266
+ - test/dummy/config/initializers/backtrace_silencers.rb
267
+ - test/dummy/config/initializers/cookies_serializer.rb
268
+ - test/dummy/config/initializers/filter_parameter_logging.rb
269
+ - test/dummy/config/initializers/inflections.rb
270
+ - test/dummy/config/initializers/mime_types.rb
271
+ - test/dummy/config/initializers/session_store.rb
272
+ - test/dummy/config/initializers/simple_form_markdown_editor.rb
273
+ - test/dummy/config/initializers/wrap_parameters.rb
274
+ - test/dummy/config/locales/en.yml
275
+ - test/dummy/config/routes.rb
276
+ - test/dummy/config/secrets.yml
277
+ - test/dummy/db/seeds.rb
278
+ - test/dummy/lib/assets/.keep
279
+ - test/dummy/lib/tasks/.keep
280
+ - test/dummy/log/.keep
281
+ - test/dummy/public/404.html
282
+ - test/dummy/public/422.html
283
+ - test/dummy/public/500.html
284
+ - test/dummy/public/favicon.ico
285
+ - test/dummy/public/robots.txt
286
+ - test/dummy/test/controllers/.keep
287
+ - test/dummy/test/controllers/editor_tests_controller_test.rb
288
+ - test/dummy/test/fixtures/.keep
289
+ - test/dummy/test/fixtures/editor_tests.yml
290
+ - test/dummy/test/helpers/.keep
291
+ - test/dummy/test/integration/.keep
292
+ - test/dummy/test/mailers/.keep
293
+ - test/dummy/test/models/.keep
294
+ - test/dummy/test/models/editor_test_test.rb
295
+ - test/dummy/test/test_helper.rb
296
+ - test/dummy/vendor/assets/javascripts/.keep
297
+ - test/dummy/vendor/assets/stylesheets/.keep