agig 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 47bd15707a6adb5cec6a9b81d32e20d71dc79c8e
4
- data.tar.gz: cd14f5823712eac9f25388c63c30b69e6b58afa5
3
+ metadata.gz: d852c2f15236481b7cfdc76d4cff9a0b09d16145
4
+ data.tar.gz: 234d1ead6cfe0af17df477081ce071dc9e55a367
5
5
  SHA512:
6
- metadata.gz: 49a46afddf8da734cc68b6ea2692e70e70dc98cd8d52f10a507d1c1ba722195f5501d3a567ca2302982acef59bdbc4a7c514c7cc6f5e050f69bb334f80eb9081
7
- data.tar.gz: b8f9564df4745326e0a335dba490562e1f8f9eb453927c4612e931b7b44d888195dee7037fb1261ada72a82397492c354a08677685d36902eff4db513e41350e
6
+ metadata.gz: 4aa00bc8c3361a3e9ef4c7ff9e7457c483bb011269898e4da10c3f1a12bea91bad95fd2172549699ef3464d70ca9b3728077975ea87da59aa4ca16e35fe8af39
7
+ data.tar.gz: 77f79e37e57b0536c700bb20e622628a0e0e0755899899604045f8f1847906b5dbaafde799c25b1448c1c8190cb79233f8e9ee957f54133f046288fde9990378
@@ -5,8 +5,10 @@ module Agig::Client
5
5
  def self.run
6
6
  opts = Agig::OptParser.parse!(ARGV)
7
7
 
8
- opts[:logger] = Logger.new(opts[:log], "daily")
9
- opts[:logger].level = opts[:debug] ? Logger::DEBUG : Logger::INFO
8
+ if opts[:log]
9
+ opts[:logger] = Logger.new(opts[:log], "daily")
10
+ opts[:logger].level = opts[:debug] ? Logger::DEBUG : Logger::INFO
11
+ end
10
12
 
11
13
  Net::IRC::Server.new(opts[:host], opts[:port], Agig::Session, opts).start
12
14
  end
@@ -54,7 +54,7 @@ module Agig::OptParser
54
54
  opts.inject({}) {|r, i|
55
55
  key, value = i[0], i[1]
56
56
  r.update key => case value
57
- when nil then true
57
+ when nil then false
58
58
  when /\A\d+\z/ then value.to_i
59
59
  when /\A(?:\d+\.\d*|\.\d+)\z/ then value.to_f
60
60
  else value
@@ -1,3 +1,3 @@
1
1
  module Agig
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: agig
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - SHIBATA Hiroshi