easycard 1.0.4 → 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/easycard +8 -3
- data/lib/easycard/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e70843bdb295f1fe0e746dc1208334395fd14474
|
4
|
+
data.tar.gz: 8b835c20d7a204b2118189333827867e6f81a776
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7fcbf7457c2771e5a3bba0f625511913322fd9d461011f338c9a34f873ffb0794373930d0481902d42d884ff92df9f8cee8ea01200a6a6f52b658bed0db694f1
|
7
|
+
data.tar.gz: 526ea6bd8e0b7dd70a009fda74b61c0ac3fb00f7528f5fc21d4eab2954d741c5a79bb023aaee48adfea5b78ace539fcb3752647c5638977c4d03a87bb04f1e1e
|
data/bin/easycard
CHANGED
@@ -2,10 +2,10 @@
|
|
2
2
|
require 'optparse'
|
3
3
|
require 'optparse/time'
|
4
4
|
require 'easycard'
|
5
|
+
require 'easycard/version'
|
5
6
|
|
6
7
|
options = {format: :table, from: Date.today << 1, to: Date.today}
|
7
|
-
parser = OptionParser.new do |opts|
|
8
|
-
opts.banner = 'Usage: easycard CARD_ID [options]'
|
8
|
+
parser = OptionParser.new 'Usage: easycard CARD_ID [options]' do |opts|
|
9
9
|
|
10
10
|
opts.on('-mNUMBER', '--months=NUMBER', Float, '最近 n 月') do |n|
|
11
11
|
today = Date.today
|
@@ -35,10 +35,15 @@ parser = OptionParser.new do |opts|
|
|
35
35
|
options[:to] = time
|
36
36
|
end
|
37
37
|
|
38
|
-
opts.on('-h', '--help', '顯示此訊息') do
|
38
|
+
opts.on('-h', '--help', '顯示此訊息') do
|
39
39
|
puts opts
|
40
40
|
exit 0
|
41
41
|
end
|
42
|
+
|
43
|
+
opts.on('-v', '--version', '顯示版本資訊') do
|
44
|
+
puts EasyCard::VERSION
|
45
|
+
exit 0
|
46
|
+
end
|
42
47
|
end
|
43
48
|
|
44
49
|
parser.parse!
|
data/lib/easycard/version.rb
CHANGED