markdown 0.5.0.beta1 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/lib/markdown/cli/runner.rb +18 -3
- data/lib/markdown/config.rb +11 -2
- data/lib/markdown/version.rb +1 -1
- data/lib/markdown/wrapper.rb +7 -0
- metadata +11 -15
data/Rakefile
CHANGED
data/lib/markdown/cli/runner.rb
CHANGED
@@ -116,10 +116,22 @@ class Runner
|
|
116
116
|
puts Markdown.banner
|
117
117
|
exit
|
118
118
|
end
|
119
|
+
|
120
|
+
cmd.on( '--about', "(Debug) Show more version info" ) do
|
121
|
+
puts
|
122
|
+
puts Markdown.banner
|
123
|
+
puts
|
119
124
|
|
120
|
-
|
121
|
-
|
122
|
-
|
125
|
+
# dump settings
|
126
|
+
Markdown.dump
|
127
|
+
puts
|
128
|
+
|
129
|
+
exit
|
130
|
+
end
|
131
|
+
|
132
|
+
cmd.on( "--verbose", "(Debug) Show debug trace" ) do
|
133
|
+
logger.datetime_format = "%H:%H:%S"
|
134
|
+
logger.level = Logger::DEBUG
|
123
135
|
end
|
124
136
|
|
125
137
|
## todo: add markdown.lib options (e.g. extensions,etc)
|
@@ -152,6 +164,9 @@ EOS
|
|
152
164
|
# force loading of config
|
153
165
|
Markdown.lib
|
154
166
|
|
167
|
+
Markdown.dump if logger.level == Logger::DEBUG # dump settings if verbose/debug flag on
|
168
|
+
|
169
|
+
|
155
170
|
logger.debug "args.length: #{args.length}"
|
156
171
|
logger.debug "args: >#{args.join(',')}<"
|
157
172
|
|
data/lib/markdown/config.rb
CHANGED
@@ -67,6 +67,17 @@ DEFAULTS = { 'libs' => [
|
|
67
67
|
require_markdown_libs()
|
68
68
|
end
|
69
69
|
|
70
|
+
def dump # for debugging dump all settings
|
71
|
+
puts "Markdown settings:"
|
72
|
+
@props_default.dump if @props_default
|
73
|
+
@props_home.dump if @props_home
|
74
|
+
@props_work.dump if @props_work
|
75
|
+
|
76
|
+
puts
|
77
|
+
puts "Markdown libs:"
|
78
|
+
puts " #{@libs.length} Markdown #{(@libs.length == 1) ? 'library' : 'libraries'} found: #{@libs.join(', ')}"
|
79
|
+
end
|
80
|
+
|
70
81
|
def markdown_extnames
|
71
82
|
@props.fetch( 'extnames', nil )
|
72
83
|
end
|
@@ -114,8 +125,6 @@ DEFAULTS = { 'libs' => [
|
|
114
125
|
puts "Markdown library #{lib} not found. Use gem install #{lib} to install."
|
115
126
|
end
|
116
127
|
end
|
117
|
-
|
118
|
-
puts " Found #{@libs.length} Markdown #{(@libs.length == 1) ? 'library' : 'libraries'}: #{@libs.join(', ')}"
|
119
128
|
end
|
120
129
|
|
121
130
|
def markdown_lib
|
data/lib/markdown/version.rb
CHANGED
data/lib/markdown/wrapper.rb
CHANGED
metadata
CHANGED
@@ -1,15 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: markdown
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 23
|
5
|
+
prerelease:
|
6
6
|
segments:
|
7
|
+
- 1
|
7
8
|
- 0
|
8
|
-
- 5
|
9
9
|
- 0
|
10
|
-
|
11
|
-
- 1
|
12
|
-
version: 0.5.0.beta1
|
10
|
+
version: 1.0.0
|
13
11
|
platform: ruby
|
14
12
|
authors:
|
15
13
|
- Gerald Bauer
|
@@ -17,7 +15,7 @@ autorequire:
|
|
17
15
|
bindir: bin
|
18
16
|
cert_chain: []
|
19
17
|
|
20
|
-
date: 2012-06-
|
18
|
+
date: 2012-06-23 00:00:00 Z
|
21
19
|
dependencies:
|
22
20
|
- !ruby/object:Gem::Dependency
|
23
21
|
name: props
|
@@ -29,10 +27,10 @@ dependencies:
|
|
29
27
|
- !ruby/object:Gem::Version
|
30
28
|
hash: 23
|
31
29
|
segments:
|
30
|
+
- 1
|
32
31
|
- 0
|
33
|
-
- 2
|
34
32
|
- 0
|
35
|
-
version: 0.
|
33
|
+
version: 1.0.0
|
36
34
|
type: :runtime
|
37
35
|
version_requirements: *id001
|
38
36
|
- !ruby/object:Gem::Dependency
|
@@ -148,14 +146,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
148
146
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
149
147
|
none: false
|
150
148
|
requirements:
|
151
|
-
- - "
|
149
|
+
- - ">="
|
152
150
|
- !ruby/object:Gem::Version
|
153
|
-
hash:
|
151
|
+
hash: 3
|
154
152
|
segments:
|
155
|
-
-
|
156
|
-
|
157
|
-
- 1
|
158
|
-
version: 1.3.1
|
153
|
+
- 0
|
154
|
+
version: "0"
|
159
155
|
requirements: []
|
160
156
|
|
161
157
|
rubyforge_project: markdown
|