gfm 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +8 -8
  2. data/bin/gfm +2 -1
  3. data/lib/gfm.rb +5 -2
  4. data/lib/gfm/version.rb +3 -0
  5. metadata +16 -1
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YmViZmMzYjI4MmYzMDliOTlkYTE5ZDQ2ZWIzN2I3ZGVlZGE2YmFjNg==
4
+ MjllOWYxNWIwNGQ1MDkxMzY1MWZlYWVhMTBiN2UzOGU4ZWNjNzRhZQ==
5
5
  data.tar.gz: !binary |-
6
- MTE1MDg3ZGJiNzFiYTRmNGU2YjJmMGE5YjRiMTEwNTk1ZTFhMzY2Ng==
6
+ OTc3MDUxNmRjNGE3YmFjNWY5ZTFiNDNjYWE0ZTA1ZmNmZTlhYjhkNg==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- ZGZiZWY2OTFhZDU3MTk0ZjdlNzg3MTZkZDJmZDdiNWNjZTU4MWIyMzVmYzA2
10
- YjgyZjFmODA3NjJjNzBlMzFhNTk3YTQ2ZDA3ODdkNjQ3YWU4Y2E0YWUxODEw
11
- MjI4MzRhNTM0NDhmZWVkZjMyZmU4MTMyMTJhM2UzZGFlYTk2ODE=
9
+ YjM1NGUxNmM4M2JlOGY4MGE0NWNhMmJlZDc1OWZlYmI1NGFiYmRhYzlkZTM1
10
+ YjA3NjRkMmYxOTNjOGI4ZDg5YWFhZmFlZWQ3ZDM3NmMzMjVmZjczODYwYTA4
11
+ ZTVjMDc3ODRjMGY5ZWQzOWI4MzAxNzY3ZDhmZWNjMTA4NTdmZDI=
12
12
  data.tar.gz: !binary |-
13
- N2YwODZhMjcyZDgxNTRmNzllYmI5ZGFlYzBjNjgyYzg0NjUwMWI3ZTQ4Yzk0
14
- MTdkYzFhMzM5MmI0MWI0NmYzZjg4YzYzNDk2YWYxNDgzYjFhOTUwNjE4NWJi
15
- YjE1NmI0NzhlYWNkMDVkNGFlY2E3MTgzMjAyMDk2MDk4NDI5YWI=
13
+ NmEwM2Y4ZDEyZjcyNDZjYzFiOTc0ZjI0YjQzNjY5NjBjMWY5YjY1Zjc0YTQz
14
+ N2ZlMTU0YmJlMGUzMTlhYTk0ZjFmZjhiNjIyMzc2NDk4ZjQyNmI0YjA1ZjNi
15
+ ZDMwNzMyZGUwNWRiYTkzNTQ3OGZlNmI4NTgxMjM2Y2ZmNGNhMGE=
data/bin/gfm CHANGED
@@ -1,12 +1,13 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
3
  require 'gfm'
4
- require 'gfm/converter'
5
4
 
6
5
  input_file, output_file = ARGV
7
6
 
8
7
  if input_file.nil? || ARGV.include?('--help') || ARGV.include?('-h')
9
8
  puts GFM::HELP_TEXT
9
+ elsif ARGV.include?('--version') || ARGV.include?('-v')
10
+ puts "Version #{GFM::VERSION}"
10
11
  elsif input_file.end_with?(".md") && File.exists?(input_file)
11
12
  converter = GFM::Converter.new(input_file)
12
13
  converter.write_output_file(output_file)
data/lib/gfm.rb CHANGED
@@ -2,10 +2,11 @@ module GFM
2
2
  require 'html/pipeline'
3
3
  require 'httpclient'
4
4
  require 'linguist'
5
+ require 'gfm/converter'
6
+ require 'gfm/version'
5
7
 
6
8
  HELP_TEXT = <<HELP
7
- Usage:
8
- gfm INPUT_FILE.md [OUTPUT_FILE] [--help, -h]
9
+ Usage: gfm INPUT_FILE.md [OUTPUT_FILE] [options]
9
10
 
10
11
  INPUT_FILE.md The markdown file to be parsed with GitHub Flavored Markdown.
11
12
 
@@ -13,6 +14,8 @@ Usage:
13
14
  INPUT_FILE.html is used.
14
15
 
15
16
  --help, -h Display this help message.
17
+
18
+ --version, -v Display the version number.
16
19
  HELP
17
20
 
18
21
  def self.pipeline
@@ -0,0 +1,3 @@
1
+ module GFM
2
+ VERSION = '0.1.5'
3
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gfm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Rose
@@ -52,6 +52,20 @@ dependencies:
52
52
  - - ! '>='
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rspec
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ! '>='
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
55
69
  description: Generates an HTML file from a GitHub Flavored Markdown file. Useful for
56
70
  previewing README files.
57
71
  email: ekimsc1094@sympatico.ca
@@ -61,6 +75,7 @@ extensions: []
61
75
  extra_rdoc_files: []
62
76
  files:
63
77
  - lib/gfm.rb
78
+ - lib/gfm/version.rb
64
79
  - lib/gfm/converter.rb
65
80
  - bin/gfm
66
81
  homepage: https://github.com/msrose/gfm