mdown 42.0 → 42.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,21 @@
1
+ Copyright (c) 2011 Aziz Light <http://github.com/AzizLight>
2
+
3
+ Permission is hereby granted, free of charge, to any person ob-
4
+ taining a copy of this software and associated documentation
5
+ files (the "Software"), to deal in the Software without restric-
6
+ tion, including without limitation the rights to use, copy, modi-
7
+ fy, merge, publish, distribute, sublicense, and/or sell copies of
8
+ the Software, and to permit persons to whom the Software is fur-
9
+ nished to do so, subject to the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
16
+ OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONIN-
17
+ FRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
19
+ ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,21 @@
1
+ Mdown
2
+ =====
3
+
4
+ Mdown is a little gem that I created in 30 minutes that serves only one
5
+ purpose: preview markdown files in a web browser.
6
+
7
+ Usage
8
+ -----
9
+
10
+ mdown <file>
11
+
12
+ Dependencies
13
+ ------------
14
+
15
+ - bcat v.0.6.0
16
+ - maruku v.0.6.0
17
+
18
+ License
19
+ -------
20
+
21
+ MIT License. Available in the `LICENSE.markdown` file.
data/bin/mdown CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- require_relative "../lib/mdown.rb"
3
+ require File.expand_path(File.join(File.dirname(__FILE__), "../lib/mdown.rb"))
4
4
 
5
5
  begin
6
6
  markdown = Mdown::App.new ARGV[0]
@@ -1,6 +1,7 @@
1
+ require "rubygems" if RUBY_VERSION < "1.9"
1
2
  require "maruku"
2
3
 
3
- require_relative "mdown/app.rb"
4
+ require File.join(File.dirname(__FILE__), "mdown/app.rb")
4
5
 
5
6
  module Mdown
6
7
  end
@@ -1,5 +1,5 @@
1
1
  module Mdown
2
2
  # The 41 previous versions sucked so much
3
3
  # they were rejected from the interwebs, ZOMG!!!
4
- VERSION = "42.0"
4
+ VERSION = "42.1"
5
5
  end
metadata CHANGED
@@ -1,8 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mdown
3
3
  version: !ruby/object:Gem::Version
4
+ hash: 161
4
5
  prerelease:
5
- version: "42.0"
6
+ segments:
7
+ - 42
8
+ - 1
9
+ version: "42.1"
6
10
  platform: ruby
7
11
  authors:
8
12
  - Aziz Light
@@ -10,7 +14,7 @@ autorequire:
10
14
  bindir: bin
11
15
  cert_chain: []
12
16
 
13
- date: 2011-03-01 00:00:00 +01:00
17
+ date: 2011-05-22 00:00:00 +03:00
14
18
  default_executable:
15
19
  dependencies:
16
20
  - !ruby/object:Gem::Dependency
@@ -21,6 +25,11 @@ dependencies:
21
25
  requirements:
22
26
  - - "="
23
27
  - !ruby/object:Gem::Version
28
+ hash: 7
29
+ segments:
30
+ - 0
31
+ - 6
32
+ - 0
24
33
  version: 0.6.0
25
34
  type: :runtime
26
35
  version_requirements: *id001
@@ -32,6 +41,11 @@ dependencies:
32
41
  requirements:
33
42
  - - "="
34
43
  - !ruby/object:Gem::Version
44
+ hash: 7
45
+ segments:
46
+ - 0
47
+ - 6
48
+ - 0
35
49
  version: 0.6.0
36
50
  type: :runtime
37
51
  version_requirements: *id002
@@ -47,15 +61,14 @@ extra_rdoc_files: []
47
61
  files:
48
62
  - .gitignore
49
63
  - Gemfile
64
+ - LICENSE.markdown
65
+ - README.markdown
50
66
  - Rakefile
51
67
  - bin/mdown
52
68
  - lib/mdown.rb
53
69
  - lib/mdown/app.rb
54
70
  - lib/mdown/version.rb
55
71
  - mdown.gemspec
56
- - test.html
57
- - test.markdown
58
- - test.txt
59
72
  has_rdoc: true
60
73
  homepage: ""
61
74
  licenses: []
@@ -70,12 +83,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
70
83
  requirements:
71
84
  - - ">="
72
85
  - !ruby/object:Gem::Version
86
+ hash: 3
87
+ segments:
88
+ - 0
73
89
  version: "0"
74
90
  required_rubygems_version: !ruby/object:Gem::Requirement
75
91
  none: false
76
92
  requirements:
77
93
  - - ">="
78
94
  - !ruby/object:Gem::Version
95
+ hash: 3
96
+ segments:
97
+ - 0
79
98
  version: "0"
80
99
  requirements: []
81
100
 
data/test.html DELETED
@@ -1,31 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <!DOCTYPE html PUBLIC
3
- "-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN"
4
- "http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd">
5
- <html xml:lang='en' xmlns:svg='http://www.w3.org/2000/svg' xmlns='http://www.w3.org/1999/xhtml'>
6
- <head><meta content='application/xhtml+xml;charset=utf-8' http-equiv='Content-type' /><title>This is the Title</title></head>
7
- <body>
8
- <h1 id='this_is_the_title'>This is the Title</h1>
9
-
10
- <p>This is a list</p>
11
-
12
- <ul>
13
- <li>item</li>
14
-
15
- <li>item</li>
16
-
17
- <li>item</li>
18
-
19
- <li>item</li>
20
-
21
- <li>item</li>
22
-
23
- <li>item</li>
24
-
25
- <li>item</li>
26
- </ul>
27
-
28
- <p>This is an some code:</p>
29
-
30
- <pre><code>puts &quot;Hello, World!&quot;</code></pre>
31
- </body></html>
@@ -1,16 +0,0 @@
1
- This is the Title
2
- =================
3
-
4
- This is a list
5
-
6
- - item
7
- - item
8
- - item
9
- - item
10
- - item
11
- - item
12
- - item
13
-
14
- This is an some code:
15
-
16
- puts "Hello, World!"
data/test.txt DELETED
@@ -1,15 +0,0 @@
1
- md_el(:document,[
2
- md_el(:header,["This is the Title"],{:level=>1},[]),
3
- md_par(["This is a list"]),
4
- md_el(:ul,[
5
- md_el(:li_span,["item"],{:want_my_paragraph=>false},[]),
6
- md_el(:li_span,["item"],{:want_my_paragraph=>false},[]),
7
- md_el(:li_span,["item"],{:want_my_paragraph=>false},[]),
8
- md_el(:li_span,["item"],{:want_my_paragraph=>false},[]),
9
- md_el(:li_span,["item"],{:want_my_paragraph=>false},[]),
10
- md_el(:li_span,["item"],{:want_my_paragraph=>false},[]),
11
- md_el(:li_span,["item"],{:want_my_paragraph=>false},[])
12
- ],{},[]),
13
- md_par(["This is an some code:"]),
14
- md_el(:code,[],{:raw_code=>"puts \"Hello, World!\""},[])
15
- ],{},[])