mdpress 0.0.5 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/bin/mdpress +3 -3
  2. metadata +3 -3
data/bin/mdpress CHANGED
@@ -17,7 +17,7 @@ end
17
17
 
18
18
  def list_available_stylesheets
19
19
  log "Available stylesheets:"
20
- Dir.glob(base_dir + "impress_css/*").each do |file|
20
+ Dir.glob(base_dir + "impress_css/*.css").each do |file|
21
21
  puts File.basename(file, ".css")
22
22
  end
23
23
  end
@@ -73,12 +73,12 @@ EOS
73
73
  opt :verbose, "Be verbose."
74
74
  end
75
75
 
76
- raise Trollop::HelpNeeded if ARGV.empty? # show help screen
77
-
78
76
  if OPTS[:list]
79
77
  list_available_stylesheets
78
+ exit
80
79
  end
81
80
 
81
+ Trollop::die("no file specified") if ARGV.empty? # show help screen
82
82
 
83
83
  STYLESHEET = base_dir + "impress_css/#{OPTS[:stylesheet]}.css"
84
84
  STYLESHEET_HEAD = base_dir + "impress_css/#{OPTS[:stylesheet]}.html"
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mdpress
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 19
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 5
10
- version: 0.0.5
9
+ - 6
10
+ version: 0.0.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - Aditya Bhargava