mark_it_zero 0.0.0 → 0.1.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/Gemfile +2 -0
- data/Gemfile.lock +26 -1
- data/README.md +121 -3
- data/app/assets/fonts/mark_it_zero/icomoon.dev.svg +56 -0
- data/app/assets/fonts/mark_it_zero/icomoon.eot +0 -0
- data/app/assets/fonts/mark_it_zero/icomoon.svg +56 -0
- data/app/assets/fonts/mark_it_zero/icomoon.ttf +0 -0
- data/app/assets/fonts/mark_it_zero/icomoon.woff +0 -0
- data/app/assets/javascripts/mark_it_zero/editor.js +7408 -0
- data/app/assets/javascripts/mark_it_zero/mark_it_zero.js +11 -0
- data/app/assets/javascripts/mark_it_zero/marked.js +1165 -0
- data/app/assets/stylesheets/mark_it_zero/custom.scss +31 -0
- data/app/assets/stylesheets/mark_it_zero/editor.scss +331 -0
- data/app/assets/stylesheets/mark_it_zero/icons.scss +72 -0
- data/app/assets/stylesheets/mark_it_zero/mark_it_zero.scss +3 -0
- data/app/helpers/mark_it_zero/editor_helper.rb +11 -0
- data/lib/mark_it_zero.rb +5 -0
- data/lib/mark_it_zero/converts_markdown.rb +53 -0
- data/lib/mark_it_zero/engine.rb +7 -0
- data/lib/mark_it_zero/version.rb +1 -1
- data/mark_it_zero.gemspec +4 -0
- data/test/dummy/app/assets/javascripts/application.js +3 -12
- data/test/dummy/app/assets/javascripts/posts.js +2 -0
- data/test/dummy/app/assets/stylesheets/application.css +1 -0
- data/test/dummy/app/assets/stylesheets/posts.css +4 -0
- data/test/dummy/app/controllers/posts_controller.rb +46 -0
- data/test/dummy/app/helpers/posts_helper.rb +2 -0
- data/test/dummy/app/models/post.rb +5 -0
- data/test/dummy/app/views/layouts/application.html.erb +2 -2
- data/test/dummy/app/views/posts/_post.html.erb +14 -0
- data/test/dummy/app/views/posts/index.html.erb +2 -0
- data/test/dummy/app/views/posts/new.html.erb +7 -0
- data/test/dummy/config/initializers/simple_form.rb +166 -0
- data/test/dummy/config/locales/simple_form.en.yml +31 -0
- data/test/dummy/config/routes.rb +3 -1
- data/test/dummy/db/migrate/20150424103520_create_posts.rb +11 -0
- data/test/dummy/db/schema.rb +24 -0
- data/test/dummy/lib/templates/erb/scaffold/_form.html.erb +13 -0
- data/test/dummy/test/controllers/posts_controller_test.rb +7 -0
- data/test/dummy/test/fixtures/posts.yml +11 -0
- data/test/dummy/test/helpers/posts_helper_test.rb +4 -0
- data/test/dummy/test/models/post_test.rb +7 -0
- metadata +105 -1
@@ -0,0 +1,24 @@
|
|
1
|
+
# encoding: UTF-8
|
2
|
+
# This file is auto-generated from the current state of the database. Instead
|
3
|
+
# of editing this file, please use the migrations feature of Active Record to
|
4
|
+
# incrementally modify your database, and then regenerate this schema definition.
|
5
|
+
#
|
6
|
+
# Note that this schema.rb definition is the authoritative source for your
|
7
|
+
# database schema. If you need to create the application database on another
|
8
|
+
# system, you should be using db:schema:load, not running all the migrations
|
9
|
+
# from scratch. The latter is a flawed and unsustainable approach (the more migrations
|
10
|
+
# you'll amass, the slower it'll run and the greater likelihood for issues).
|
11
|
+
#
|
12
|
+
# It's strongly recommended that you check this file into your version control system.
|
13
|
+
|
14
|
+
ActiveRecord::Schema.define(version: 20150424103520) do
|
15
|
+
|
16
|
+
create_table "posts", force: true do |t|
|
17
|
+
t.string "title"
|
18
|
+
t.text "body"
|
19
|
+
t.text "markdown"
|
20
|
+
t.datetime "created_at"
|
21
|
+
t.datetime "updated_at"
|
22
|
+
end
|
23
|
+
|
24
|
+
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
<%%= simple_form_for(@<%= singular_table_name %>) do |f| %>
|
2
|
+
<%%= f.error_notification %>
|
3
|
+
|
4
|
+
<div class="form-inputs">
|
5
|
+
<%- attributes.each do |attribute| -%>
|
6
|
+
<%%= f.<%= attribute.reference? ? :association : :input %> :<%= attribute.name %> %>
|
7
|
+
<%- end -%>
|
8
|
+
</div>
|
9
|
+
|
10
|
+
<div class="form-actions">
|
11
|
+
<%%= f.button :submit %>
|
12
|
+
</div>
|
13
|
+
<%% end %>
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mark_it_zero
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sean C Davis
|
@@ -24,6 +24,62 @@ dependencies:
|
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 4.1.0
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: jquery-rails
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: sass-rails
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: redcarpet
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: pygments.rb
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
27
83
|
- !ruby/object:Gem::Dependency
|
28
84
|
name: sqlite3
|
29
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -66,15 +122,29 @@ files:
|
|
66
122
|
- LICENSE.md
|
67
123
|
- README.md
|
68
124
|
- Rakefile
|
125
|
+
- app/assets/fonts/mark_it_zero/icomoon.dev.svg
|
126
|
+
- app/assets/fonts/mark_it_zero/icomoon.eot
|
127
|
+
- app/assets/fonts/mark_it_zero/icomoon.svg
|
128
|
+
- app/assets/fonts/mark_it_zero/icomoon.ttf
|
129
|
+
- app/assets/fonts/mark_it_zero/icomoon.woff
|
69
130
|
- app/assets/images/mark_it_zero/.keep
|
70
131
|
- app/assets/javascripts/mark_it_zero/application.js
|
132
|
+
- app/assets/javascripts/mark_it_zero/editor.js
|
133
|
+
- app/assets/javascripts/mark_it_zero/mark_it_zero.js
|
134
|
+
- app/assets/javascripts/mark_it_zero/marked.js
|
71
135
|
- app/assets/stylesheets/mark_it_zero/application.css
|
136
|
+
- app/assets/stylesheets/mark_it_zero/custom.scss
|
137
|
+
- app/assets/stylesheets/mark_it_zero/editor.scss
|
138
|
+
- app/assets/stylesheets/mark_it_zero/icons.scss
|
139
|
+
- app/assets/stylesheets/mark_it_zero/mark_it_zero.scss
|
72
140
|
- app/controllers/mark_it_zero/application_controller.rb
|
73
141
|
- app/helpers/mark_it_zero/application_helper.rb
|
142
|
+
- app/helpers/mark_it_zero/editor_helper.rb
|
74
143
|
- app/views/layouts/mark_it_zero/application.html.erb
|
75
144
|
- bin/rails
|
76
145
|
- config/routes.rb
|
77
146
|
- lib/mark_it_zero.rb
|
147
|
+
- lib/mark_it_zero/converts_markdown.rb
|
78
148
|
- lib/mark_it_zero/engine.rb
|
79
149
|
- lib/mark_it_zero/version.rb
|
80
150
|
- lib/tasks/mark_it_zero_tasks.rake
|
@@ -83,14 +153,22 @@ files:
|
|
83
153
|
- test/dummy/Rakefile
|
84
154
|
- test/dummy/app/assets/images/.keep
|
85
155
|
- test/dummy/app/assets/javascripts/application.js
|
156
|
+
- test/dummy/app/assets/javascripts/posts.js
|
86
157
|
- test/dummy/app/assets/stylesheets/application.css
|
158
|
+
- test/dummy/app/assets/stylesheets/posts.css
|
87
159
|
- test/dummy/app/controllers/application_controller.rb
|
88
160
|
- test/dummy/app/controllers/concerns/.keep
|
161
|
+
- test/dummy/app/controllers/posts_controller.rb
|
89
162
|
- test/dummy/app/helpers/application_helper.rb
|
163
|
+
- test/dummy/app/helpers/posts_helper.rb
|
90
164
|
- test/dummy/app/mailers/.keep
|
91
165
|
- test/dummy/app/models/.keep
|
92
166
|
- test/dummy/app/models/concerns/.keep
|
167
|
+
- test/dummy/app/models/post.rb
|
93
168
|
- test/dummy/app/views/layouts/application.html.erb
|
169
|
+
- test/dummy/app/views/posts/_post.html.erb
|
170
|
+
- test/dummy/app/views/posts/index.html.erb
|
171
|
+
- test/dummy/app/views/posts/new.html.erb
|
94
172
|
- test/dummy/bin/bundle
|
95
173
|
- test/dummy/bin/rails
|
96
174
|
- test/dummy/bin/rake
|
@@ -108,16 +186,25 @@ files:
|
|
108
186
|
- test/dummy/config/initializers/inflections.rb
|
109
187
|
- test/dummy/config/initializers/mime_types.rb
|
110
188
|
- test/dummy/config/initializers/session_store.rb
|
189
|
+
- test/dummy/config/initializers/simple_form.rb
|
111
190
|
- test/dummy/config/initializers/wrap_parameters.rb
|
112
191
|
- test/dummy/config/locales/en.yml
|
192
|
+
- test/dummy/config/locales/simple_form.en.yml
|
113
193
|
- test/dummy/config/routes.rb
|
114
194
|
- test/dummy/config/secrets.yml
|
195
|
+
- test/dummy/db/migrate/20150424103520_create_posts.rb
|
196
|
+
- test/dummy/db/schema.rb
|
115
197
|
- test/dummy/lib/assets/.keep
|
198
|
+
- test/dummy/lib/templates/erb/scaffold/_form.html.erb
|
116
199
|
- test/dummy/log/.keep
|
117
200
|
- test/dummy/public/404.html
|
118
201
|
- test/dummy/public/422.html
|
119
202
|
- test/dummy/public/500.html
|
120
203
|
- test/dummy/public/favicon.ico
|
204
|
+
- test/dummy/test/controllers/posts_controller_test.rb
|
205
|
+
- test/dummy/test/fixtures/posts.yml
|
206
|
+
- test/dummy/test/helpers/posts_helper_test.rb
|
207
|
+
- test/dummy/test/models/post_test.rb
|
121
208
|
- test/integration/navigation_test.rb
|
122
209
|
- test/mark_it_zero_test.rb
|
123
210
|
- test/test_helper.rb
|
@@ -150,14 +237,22 @@ test_files:
|
|
150
237
|
- test/dummy/Rakefile
|
151
238
|
- test/dummy/app/assets/images/.keep
|
152
239
|
- test/dummy/app/assets/javascripts/application.js
|
240
|
+
- test/dummy/app/assets/javascripts/posts.js
|
153
241
|
- test/dummy/app/assets/stylesheets/application.css
|
242
|
+
- test/dummy/app/assets/stylesheets/posts.css
|
154
243
|
- test/dummy/app/controllers/application_controller.rb
|
155
244
|
- test/dummy/app/controllers/concerns/.keep
|
245
|
+
- test/dummy/app/controllers/posts_controller.rb
|
156
246
|
- test/dummy/app/helpers/application_helper.rb
|
247
|
+
- test/dummy/app/helpers/posts_helper.rb
|
157
248
|
- test/dummy/app/mailers/.keep
|
158
249
|
- test/dummy/app/models/.keep
|
159
250
|
- test/dummy/app/models/concerns/.keep
|
251
|
+
- test/dummy/app/models/post.rb
|
160
252
|
- test/dummy/app/views/layouts/application.html.erb
|
253
|
+
- test/dummy/app/views/posts/_post.html.erb
|
254
|
+
- test/dummy/app/views/posts/index.html.erb
|
255
|
+
- test/dummy/app/views/posts/new.html.erb
|
161
256
|
- test/dummy/bin/bundle
|
162
257
|
- test/dummy/bin/rails
|
163
258
|
- test/dummy/bin/rake
|
@@ -175,16 +270,25 @@ test_files:
|
|
175
270
|
- test/dummy/config/initializers/inflections.rb
|
176
271
|
- test/dummy/config/initializers/mime_types.rb
|
177
272
|
- test/dummy/config/initializers/session_store.rb
|
273
|
+
- test/dummy/config/initializers/simple_form.rb
|
178
274
|
- test/dummy/config/initializers/wrap_parameters.rb
|
179
275
|
- test/dummy/config/locales/en.yml
|
276
|
+
- test/dummy/config/locales/simple_form.en.yml
|
180
277
|
- test/dummy/config/routes.rb
|
181
278
|
- test/dummy/config/secrets.yml
|
279
|
+
- test/dummy/db/migrate/20150424103520_create_posts.rb
|
280
|
+
- test/dummy/db/schema.rb
|
182
281
|
- test/dummy/lib/assets/.keep
|
282
|
+
- test/dummy/lib/templates/erb/scaffold/_form.html.erb
|
183
283
|
- test/dummy/log/.keep
|
184
284
|
- test/dummy/public/404.html
|
185
285
|
- test/dummy/public/422.html
|
186
286
|
- test/dummy/public/500.html
|
187
287
|
- test/dummy/public/favicon.ico
|
288
|
+
- test/dummy/test/controllers/posts_controller_test.rb
|
289
|
+
- test/dummy/test/fixtures/posts.yml
|
290
|
+
- test/dummy/test/helpers/posts_helper_test.rb
|
291
|
+
- test/dummy/test/models/post_test.rb
|
188
292
|
- test/integration/navigation_test.rb
|
189
293
|
- test/mark_it_zero_test.rb
|
190
294
|
- test/test_helper.rb
|