abalone 0.4.0 → 0.4.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fc6db47f9f103f87a1e38c945833d736b4171008
4
- data.tar.gz: 4fb8dce6cf6e70ba7e7ec011f7c250d8f540771f
3
+ metadata.gz: 1c305a0951b62f1dfa58c35ecc73c4c1c977ff00
4
+ data.tar.gz: 9f059a0031d83367d025ec5a80d4c1aa5a54c30c
5
5
  SHA512:
6
- metadata.gz: 2b724a5188a06ab85f0495f2e4151ad27e0877887a34b569fa023f9feae31eae48850ef124be654cb18cec0eeacd34de57738622b54d1d39dc4dbc73aa0499a6
7
- data.tar.gz: 211f4bc11c85e4e9cce72598fde669f1713515ba67b11850e017c9d9783b60d28c76f29833c1bd1cf93ad22415429ea4a36de227a72f6e9d02f6ac6364b5aabf
6
+ metadata.gz: 35144186866ee31a731a120f170460a2edf4b54976117ccda76acead2975756d5cef9db80bfa9cc7782c0344ed88aaf055e5eba39654facb80714842a16cc121
7
+ data.tar.gz: b6b229b621d8d6401dbd1b9ab16302a38a8ef88193944af808f8611fc31eb59edaf4ca30b0946c641f6743e8332decdb00b8d25a4d75003d41a1275c1e27876e
@@ -124,6 +124,7 @@ class Abalone < Sinatra::Base
124
124
 
125
125
  def allowed(param, value)
126
126
  return false unless settings.params.include? param
127
+ return true if settings.params.is_a? Array
127
128
 
128
129
  config = settings.params[param]
129
130
  return true if config.nil?
@@ -151,13 +151,17 @@ class Abalone::Terminal
151
151
  command = command.split if command.class == String
152
152
 
153
153
  @params.each do |param, value|
154
- config = @settings.params[param]
155
- case config
156
- when nil
154
+ if @settings.params.is_a? Array
157
155
  command << "--#{param}" << value
158
- when Hash
159
- command << (config[:map] || "--#{param}")
160
- command << value
156
+ else
157
+ config = @settings.params[param]
158
+ case config
159
+ when nil
160
+ command << "--#{param}" << value
161
+ when Hash
162
+ command << (config[:map] || "--#{param}")
163
+ command << value
164
+ end
161
165
  end
162
166
  end
163
167
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: abalone
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Ford
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-02-28 00:00:00.000000000 Z
11
+ date: 2017-03-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sinatra
@@ -66,7 +66,8 @@ files:
66
66
  - public/js/hterm_all.js
67
67
  - public/js/launcher.js
68
68
  homepage: https://github.com/binford2k/abalone/
69
- licenses: []
69
+ licenses:
70
+ - Apache-2.0
70
71
  metadata: {}
71
72
  post_install_message:
72
73
  rdoc_options: []