images_to_scrapbox 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cli.rb +3 -3
- data/lib/images_to_scrapbox/version.rb +1 -1
- data/lib/images_to_scrapbox.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c604195a97ebab4a7e0c44e7fa3dda1a327a37c5591fb061dabd63eaea99ea7b
|
4
|
+
data.tar.gz: 7d21e8863220c9535199cdc73135dc3db9a0a5ff221452dbaddbebc67ea32c58
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 54a7672002a5beafd185871c15042a342fccd5e594b273ee80d80c3ebafdbeb6c81e910af7698e11c3275f4124d3796e5e247f60648d355c84f08af91fa51f9a
|
7
|
+
data.tar.gz: 9773f0ec944cf10a7b425039219780e2cca13cef7cd8f1d3b5ec911a711a19cb880299313374035f3b377a4967921c78fc787116a2975bdd7de7484312c808a1
|
data/lib/cli.rb
CHANGED
@@ -25,16 +25,16 @@ module ImagesToScrapbox
|
|
25
25
|
class_option :unique, :type => :boolean, :aliases => '-u',
|
26
26
|
:default => true, :desc => 'unique files'
|
27
27
|
class_option :sort, :type => :string, :aliases => '-s',
|
28
|
-
:default => "none", :desc => 'sort files by none
|
28
|
+
:default => "none", :desc => 'sort files by `none`, `names`, or `numbers`'
|
29
29
|
class_option :ascending, :type => :boolean, :aliases => '-a',
|
30
30
|
:default => true, :desc => "sort in ascending order, or descending"
|
31
31
|
|
32
32
|
method_option :image, type: :boolean, aliases: '-i',
|
33
33
|
:default => true, desc: 'register images'
|
34
34
|
method_option :larger, type: :boolean, aliases: '-l',
|
35
|
-
|
35
|
+
:default => false, desc: 'larger image'
|
36
36
|
method_option :timestamp, :type => :string, :aliases => '-t',
|
37
|
-
:default => "mtime", :desc => "file timestamp: atime
|
37
|
+
:default => "mtime", :desc => "file timestamp: `atime`, `ctime`, or `mtime`"
|
38
38
|
method_option :toc, type: :boolean, aliases: '-t',
|
39
39
|
:default => true, desc: 'creates table-of-contents'
|
40
40
|
|
data/lib/images_to_scrapbox.rb
CHANGED
@@ -47,9 +47,9 @@ module ImagesToScrapbox
|
|
47
47
|
|
48
48
|
case options[:sort]
|
49
49
|
when "none"
|
50
|
-
when "
|
50
|
+
when "names"
|
51
51
|
@@converters.sort_by!{ |e| e.image_name }
|
52
|
-
when "
|
52
|
+
when "numbers"
|
53
53
|
@@converters.sort_by!{ |e|
|
54
54
|
File.basename(e.image_name, File.extname(e.image_name)).
|
55
55
|
match(%r!(\d+)\Z!).to_a[1].to_i }
|