arbi 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/lib/arbi.rb CHANGED
@@ -158,7 +158,7 @@ module Arbi
158
158
  next
159
159
  when /^help:$/i
160
160
  puts buff
161
- when /^version$:/i
161
+ when /^version:$/i
162
162
  puts buff
163
163
  end
164
164
  Arbi::cmd.each{|cmd|
@@ -204,8 +204,8 @@ module Arbi
204
204
  show_help if opts["h"]
205
205
  @address = opts["a"] if opts["a"]
206
206
  @port = opts["p"] if opts["p"]
207
- @command = "#{opts["c"]},quit".gsub(/,+/, ',').gsub(/\s+/, '').split(/,/).
208
- delete_if{|x|x=~/^quit$/i}.uniq.push('quit', '').join("\r\n") if opts["c"]
207
+ @command = "#{opts["c"]}".gsub(/,+/, ',').gsub(/\s+/, '').split(/,/).
208
+ uniq.delete_if{|x|x=~/^quit$/i}.push('quit').join("\r\n") if opts["c"]
209
209
  end
210
210
  end
211
211
  end
@@ -1,5 +1,11 @@
1
1
  # encoding: utf-8
2
2
 
3
+ class NilClass
4
+ def [](*args)
5
+ return self
6
+ end
7
+ end
8
+
3
9
  class Thermal
4
10
  require 'arbi/common'
5
11
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: arbi
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 2
10
- version: 1.0.2
9
+ - 3
10
+ version: 1.0.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - shura
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-07-10 00:00:00 +02:00
18
+ date: 2010-07-13 00:00:00 +02:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency