cmdr 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/cmdr.rb +14 -3
  2. metadata +2 -2
data/lib/cmdr.rb CHANGED
@@ -9,10 +9,21 @@ include REXML
9
9
 
10
10
  class Cmdr
11
11
 
12
- def initialize(opt={})
12
+ def initialize(main_opt={})
13
+ opt = {
14
+ public:
15
+ {alias: {},
16
+ user:
17
+ {'-1' => history:
18
+ {list: [], index: []}
19
+ }
20
+ },
21
+ config:
22
+ {bottom_up_display: true}
23
+ }.merge(main_opt)
24
+
13
25
  @v = opt[:public]
14
- o = {bottom_up_display: true}.merge(opt[:config])
15
- @bottom_up_display = o[:bottom_up_display]
26
+ @bottom_up_display = opt[:config][:bottom_up_display]
16
27
  super()
17
28
  end
18
29
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cmdr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors: []
7
7
 
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-08-10 00:00:00 +01:00
12
+ date: 2010-08-11 00:00:00 +01:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency