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 CHANGED
@@ -14,7 +14,7 @@ Hoe.spec 'markdown' do
14
14
  self.email = 'webslideshow@googlegroups.com'
15
15
 
16
16
  self.extra_deps = [
17
- ['props','>= 0.2.0'],
17
+ ['props','>= 1.0.0'],
18
18
  ['textutils','>=0.2.0'],
19
19
  ['kramdown','>= 0.13.7']
20
20
  ]
@@ -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
- cmd.on( "--verbose", "Show debug trace" ) do
121
- logger.datetime_format = "%H:%H:%S"
122
- logger.level = Logger::DEBUG
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
 
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Markdown
2
- VERSION = '0.5.0.beta1'
2
+ VERSION = '1.0.0'
3
3
  end
@@ -48,6 +48,13 @@ module Markdown
48
48
  @@config.markdown_filters
49
49
  end
50
50
 
51
+ def self.dump # dump settings for debug/verbose flag
52
+ if @@config.nil?
53
+ @@config = Config.new
54
+ end
55
+ @@config.dump
56
+ end
57
+
51
58
 
52
59
  def self.new( content, options={} )
53
60
 
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: 123249068
5
- prerelease: 6
4
+ hash: 23
5
+ prerelease:
6
6
  segments:
7
+ - 1
7
8
  - 0
8
- - 5
9
9
  - 0
10
- - beta
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 00:00:00 Z
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.2.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: 25
151
+ hash: 3
154
152
  segments:
155
- - 1
156
- - 3
157
- - 1
158
- version: 1.3.1
153
+ - 0
154
+ version: "0"
159
155
  requirements: []
160
156
 
161
157
  rubyforge_project: markdown