legal_markdown 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -16,6 +16,7 @@ module LegalToMarkdown
16
16
  end
17
17
 
18
18
  def parse_jason(arg)
19
+ require File.dirname(__FILE__) + '/legal_to_markdown/json_builder.rb'
19
20
  @input_file = args[-2] ? args[-2] : args[-1]
20
21
  @output_file = args[-1]
21
22
  source = FileToParse.new(@input_file)
@@ -1,3 +1,3 @@
1
1
  module LegalMarkdown
2
- VERSION = "0.4.0"
2
+ VERSION = "0.4.1"
3
3
  end
@@ -11,9 +11,12 @@ module LegalMarkdown
11
11
  STDERR.puts "Sorry, I didn't understand that. Please give me your legal_markdown filenames or \"-\" for stdin."
12
12
  exit 0
13
13
  elsif args.include?("--headers")
14
- LegalMarkdown::MakeYamlFrontMatter.new(args)
14
+ MakeYamlFrontMatter.new(args)
15
15
  else
16
- LegalMarkdown::LegalToMarkdown.parse_markdown(args)
16
+ LegalToMarkdown.parse_markdown(args)
17
17
  end
18
18
  end
19
- end
19
+ end
20
+
21
+ # if launched as a standalone program, not loaded as a module
22
+ LegalToMarkdown.parse if __FILE__ == $0
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: legal_markdown
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -118,7 +118,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
118
118
  version: '0'
119
119
  segments:
120
120
  - 0
121
- hash: -4168501592412035307
121
+ hash: 2038724006731789222
122
122
  required_rubygems_version: !ruby/object:Gem::Requirement
123
123
  none: false
124
124
  requirements:
@@ -127,7 +127,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
127
127
  version: '0'
128
128
  segments:
129
129
  - 0
130
- hash: -4168501592412035307
130
+ hash: 2038724006731789222
131
131
  requirements: []
132
132
  rubyforge_project:
133
133
  rubygems_version: 1.8.25