matsuya 0.1.1 → 0.2.0
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.
- checksums.yaml +4 -4
- data/bin/matsuya +20 -5
- data/lib/matsuya/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 87e61bc4fcce42ca4821d45efbbedc50be6f5219
|
4
|
+
data.tar.gz: ed998f21caf7a7da139819ccd50a45d0aaa0ffb3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a6c22aea610b4b35dd42afdb69d1f3496d773d422e2f753e99947f14bd01f37fcc6d2c0e0b07e945375158fd403b3409d29491acbf48ab1a19de0e823986927c
|
7
|
+
data.tar.gz: 149dc1b18719524ccc16a9f376b2e81cd14017fa0dcf3cf244125b7a1f785b45bf6d9dff417e3fdf179dc402542d6f1761ba414ec7920e023446d044cdc23acd
|
data/bin/matsuya
CHANGED
@@ -1,14 +1,29 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
|
+
# coding: utf-8
|
2
3
|
|
3
4
|
require 'matsuya'
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
5
|
+
require 'optparse'
|
6
|
+
okano = 0.1
|
7
|
+
OptionParser.new do |opt|
|
8
|
+
opt.banner = "Usage: matsuya [options]"
|
9
|
+
opt.separator "options are:"
|
10
|
+
opt.on('-h', '--help', "Show this message") do
|
11
|
+
puts opt
|
12
|
+
exit
|
13
|
+
end
|
14
|
+
opt.on('-o', '--okano=', "おかの値(0.0-1.0 default %f)" % okano) do |value|
|
15
|
+
if value.match(/^[0-9]+(?:\.[0-9]+)?$/)
|
16
|
+
okano = value.to_f
|
17
|
+
else
|
18
|
+
warn 'Invalid おかの値 (-h to show help message)'
|
19
|
+
abort
|
20
|
+
end
|
21
|
+
end
|
22
|
+
opt.parse!(ARGV)
|
8
23
|
end
|
9
24
|
|
10
25
|
if ARGV.size > 0 && ARGV[0].match(/^[0-9]+(?:\.[0-9]+)?$/)
|
11
26
|
puts Matsuya.order(ARGV[0].to_f)
|
12
27
|
else
|
13
|
-
puts Matsuya.order
|
28
|
+
puts Matsuya.order(okano: okano)
|
14
29
|
end
|
data/lib/matsuya/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: matsuya
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Toshiaki Asai
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-12-
|
11
|
+
date: 2015-12-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|