deplot 0.1.1 → 0.1.2
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.
- data/bin/deplot +2 -4
- data/deplot.gemspec +1 -1
- metadata +1 -1
data/bin/deplot
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
|
-
VERSION = "0.1.
|
3
|
+
VERSION = "0.1.2"
|
4
4
|
|
5
5
|
require 'thor'
|
6
6
|
require 'fileutils'
|
@@ -52,15 +52,13 @@ class DeplotRenderer
|
|
52
52
|
|
53
53
|
# Sort sources based on file name
|
54
54
|
def sort *args
|
55
|
-
|
55
|
+
args.uniq!
|
56
56
|
@sort_options[:reverse] = false if args.include? :ascending
|
57
57
|
@sort_options[:reverse] = true if args.include? :descending
|
58
58
|
end
|
59
59
|
|
60
60
|
# Prerender: apply sort options
|
61
61
|
def prerender
|
62
|
-
puts @sort_options[:reverse]
|
63
|
-
puts @sources
|
64
62
|
@sources.reverse! if @sort_options[:reverse]
|
65
63
|
end
|
66
64
|
|
data/deplot.gemspec
CHANGED