literati 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE +2 -2
- data/Rakefile +1 -1
- data/bin/literati +4 -4
- data/lib/literati.rb +2 -4
- data/literati.gemspec +1 -7
- metadata +3 -19
data/LICENSE
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
The MIT License
|
2
2
|
|
3
|
-
Copyright (c)
|
3
|
+
Copyright (c) Jeremy McAnally
|
4
4
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
@@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
18
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
19
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
20
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
-
THE SOFTWARE.
|
21
|
+
THE SOFTWARE.
|
data/Rakefile
CHANGED
data/bin/literati
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
|
-
$:.unshift File.dirname(__FILE__) + '/../lib'
|
3
|
+
$:.unshift File.dirname(__FILE__) + '/../lib' if ($0 == __FILE__)
|
4
4
|
|
5
5
|
require 'literati'
|
6
6
|
|
7
7
|
if ARGV.empty?
|
8
|
-
|
8
|
+
abort "I need a filename to render!"
|
9
9
|
else
|
10
|
-
|
11
|
-
end
|
10
|
+
print Literati.render(File.read(ARGV.first))
|
11
|
+
end
|
data/lib/literati.rb
CHANGED
@@ -1,7 +1,5 @@
|
|
1
|
-
require 'rubygems'
|
2
|
-
|
3
1
|
module Literati
|
4
|
-
VERSION = '0.0.
|
2
|
+
VERSION = '0.0.4'
|
5
3
|
|
6
4
|
# Render the given content to HTML.
|
7
5
|
#
|
@@ -73,7 +71,7 @@ module Literati
|
|
73
71
|
attr_accessor :markdown_class
|
74
72
|
|
75
73
|
# Regex used to determine presence of Bird-style comments
|
76
|
-
BIRD_TRACKS_REGEX =
|
74
|
+
BIRD_TRACKS_REGEX = /^>(--| )(.*)/
|
77
75
|
|
78
76
|
# Initialize a new literate Haskell renderer.
|
79
77
|
#
|
data/literati.gemspec
CHANGED
@@ -13,9 +13,7 @@ Gem::Specification.new do |s|
|
|
13
13
|
## If your rubyforge_project name is different, then edit it and comment out
|
14
14
|
## the sub! line in the Rakefile
|
15
15
|
s.name = 'literati'
|
16
|
-
s.version = '0.0.
|
17
|
-
s.date = '2012-11-07'
|
18
|
-
s.rubyforge_project = 'literati'
|
16
|
+
s.version = '0.0.4'
|
19
17
|
|
20
18
|
## Make sure your summary is short. The description may be as long
|
21
19
|
## as you like.
|
@@ -41,10 +39,6 @@ Gem::Specification.new do |s|
|
|
41
39
|
s.rdoc_options = ["--charset=UTF-8"]
|
42
40
|
s.extra_rdoc_files = %w[README.md LICENSE]
|
43
41
|
|
44
|
-
## List your runtime dependencies here. Runtime dependencies are those
|
45
|
-
## that are needed for an end user to actually USE your code.
|
46
|
-
s.add_dependency('redcarpet')
|
47
|
-
|
48
42
|
## List your development dependencies here. Development dependencies are
|
49
43
|
## those that are only needed during development
|
50
44
|
s.add_development_dependency('contest')
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: literati
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,24 +9,8 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2013-02-16 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
|
-
- !ruby/object:Gem::Dependency
|
15
|
-
name: redcarpet
|
16
|
-
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
|
-
requirements:
|
19
|
-
- - ! '>='
|
20
|
-
- !ruby/object:Gem::Version
|
21
|
-
version: '0'
|
22
|
-
type: :runtime
|
23
|
-
prerelease: false
|
24
|
-
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
|
-
requirements:
|
27
|
-
- - ! '>='
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: '0'
|
30
14
|
- !ruby/object:Gem::Dependency
|
31
15
|
name: contest
|
32
16
|
requirement: !ruby/object:Gem::Requirement
|
@@ -79,7 +63,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
79
63
|
- !ruby/object:Gem::Version
|
80
64
|
version: '0'
|
81
65
|
requirements: []
|
82
|
-
rubyforge_project:
|
66
|
+
rubyforge_project:
|
83
67
|
rubygems_version: 1.8.23
|
84
68
|
signing_key:
|
85
69
|
specification_version: 2
|