mark_it_zero 0.2.0 → 0.3.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 99943d71e88e2ca914ba0c060a2b57205b214859
4
- data.tar.gz: c0dbc1d4d3eaa210f77f6a38a7309ab1c5bbc9cd
3
+ metadata.gz: 84ba1295e4623b7f6b5663dea6a92639ec6c9e91
4
+ data.tar.gz: 071a5cbae9059a2f42250c8a0db00cf9dec3b9a7
5
5
  SHA512:
6
- metadata.gz: ab301074f156d54e1ff2535bed0fa4c18e6e132eaf1c8d821cf5ae90db9bf0d96aa1a7cf779418e7ba5dbc97c3b6d8202e5e537a07b2c7f7155ec61f267cbe87
7
- data.tar.gz: 6f81879b6c07990cd8eac9ce2da524047b4ffa37f1e068854bdb5cd4e6a6c7badb5cc98c2560efd75a24dbc169cec722349b0811388746b7bc10e86c94785568
6
+ metadata.gz: 564bd5371edb500ea6f438ffc80d34d8e6585a903d1d55fdc1e7d66f3ea7fd3ba3387d0107be75f8a3081b613a3c56547460cd3f362ad39cd43344f04b9bcff0
7
+ data.tar.gz: 157cfaec592b8e77777e0b199ec08e70a64b528f037db7cca9d7d3b769171d95b38d651baea6b5a5772f3101bad6f8dd1a26a194766b8f57c57fb2d9cec15775
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- mark_it_zero (0.2.0)
4
+ mark_it_zero (0.3.0)
5
5
  jquery-rails
6
6
  pygments.rb
7
7
  rails (~> 4.1.0)
data/README.md CHANGED
@@ -39,6 +39,25 @@ They are not dependent on one another, and can be used separately.
39
39
 
40
40
  ### Markdown Editor
41
41
 
42
+ To use the markdown editor, first make sure you have the assets included in
43
+ your manifest file.
44
+
45
+ You'll want styles:
46
+
47
+ ```scss
48
+ @import 'mark_it_zero';
49
+ ```
50
+
51
+ And scripts:
52
+
53
+ ```js
54
+ //= require jquery
55
+ //= require mark_it_zero
56
+ ```
57
+
58
+ > Note: Mark It Zero! automatically requires jQuery, so if you forget, it
59
+ > will still work fine (magic!).
60
+
42
61
  The markdown editor is simple. There's a `markdown` method added onto your form
43
62
  object. So, all you have to do is this:
44
63
 
@@ -0,0 +1,4 @@
1
+ //= require jquery
2
+ //= require mark_it_zero/editor
3
+ //= require mark_it_zero/marked
4
+ //= require mark_it_zero/mark_it_zero
@@ -1,7 +1,3 @@
1
- //= require jquery
2
- //= require mark_it_zero/editor
3
- //= require mark_it_zero/marked
4
-
5
1
  $(document).ready(function(){
6
2
  $('textarea.mark-it-zero').each(function(idx){
7
3
  new Editor({
@@ -1,3 +1,3 @@
1
1
  module MarkItZero
2
- VERSION = "0.2.0"
2
+ VERSION = "0.3.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mark_it_zero
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sean C Davis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-17 00:00:00.000000000 Z
11
+ date: 2015-05-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -126,15 +126,14 @@ files:
126
126
  - app/assets/fonts/mark_it_zero/icomoon.svg
127
127
  - app/assets/fonts/mark_it_zero/icomoon.ttf
128
128
  - app/assets/fonts/mark_it_zero/icomoon.woff
129
- - app/assets/javascripts/mark_it_zero/application.js
129
+ - app/assets/javascripts/mark_it_zero.js
130
130
  - app/assets/javascripts/mark_it_zero/editor.js
131
131
  - app/assets/javascripts/mark_it_zero/mark_it_zero.js
132
132
  - app/assets/javascripts/mark_it_zero/marked.js
133
- - app/assets/stylesheets/mark_it_zero/application.css
133
+ - app/assets/stylesheets/mark_it_zero.scss
134
134
  - app/assets/stylesheets/mark_it_zero/custom.scss
135
135
  - app/assets/stylesheets/mark_it_zero/editor.scss
136
136
  - app/assets/stylesheets/mark_it_zero/icons.scss
137
- - app/assets/stylesheets/mark_it_zero/mark_it_zero.scss
138
137
  - app/helpers/mark_it_zero/editor_helper.rb
139
138
  - lib/mark_it_zero.rb
140
139
  - lib/mark_it_zero/converts_markdown.rb
@@ -1,13 +0,0 @@
1
- // This is a manifest file that'll be compiled into application.js, which will include all the files
2
- // listed below.
3
- //
4
- // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
5
- // or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
6
- //
7
- // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
8
- // compiled file.
9
- //
10
- // Read Sprockets README (https://github.com/sstephenson/sprockets#sprockets-directives) for details
11
- // about supported directives.
12
- //
13
- //= require_tree .
@@ -1,15 +0,0 @@
1
- /*
2
- * This is a manifest file that'll be compiled into application.css, which will include all the files
3
- * listed below.
4
- *
5
- * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
6
- * or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
7
- *
8
- * You're free to add application-wide styles to this file and they'll appear at the bottom of the
9
- * compiled file so the styles you add here take precedence over styles defined in any styles
10
- * defined in the other CSS/SCSS files in this directory. It is generally better to create a new
11
- * file per style scope.
12
- *
13
- *= require_tree .
14
- *= require_self
15
- */