cmdr 0.2.4 → 0.2.5

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 -13
  2. metadata +1 -1
data/lib/cmdr.rb CHANGED
@@ -9,25 +9,26 @@ include REXML
9
9
 
10
10
  class Cmdr
11
11
 
12
- def initialize(main_opt={}, app_mgr=nil)
13
- opt = {
14
- public: {
12
+ def initialize(opt={}, app_mgr=nil)
13
+
14
+ o = {
15
+ public:
16
+ {
15
17
  alias: {},
16
18
  user:
17
- {'-1' =>
18
- {
19
- history:
20
- {list: [], index: []}
21
- }
19
+ {'-1' =>
20
+ {
21
+ history:
22
+ {list: [], index: []}
22
23
  }
23
- },
24
+ }
25
+ },
24
26
  config: {bottom_up_display: true}
25
- }
26
- opt.merge!(main_opt[:public]) unless main_opt[:public].nil? and main_opt[:public].empty?
27
- opt.merge!(main_opt[:config]) unless main_opt[:config].nil? and main_opt[:config].empty?
27
+ }
28
+
29
+ opt.merge!(o)
28
30
 
29
31
  @v = opt[:public]
30
- @bottom_up_display = opt[:config][:bottom_up_display]
31
32
  @@app = app_mgr
32
33
 
33
34
  super()
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.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors: []
7
7