Skip to content

Commit

Permalink
Allow arrays for json (#24)
Browse files Browse the repository at this point in the history
* allow arrays for the JSON type

* bump version
  • Loading branch information
kddnewton committed May 23, 2016
1 parent 5cbec64 commit bca2192
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/humidifier/props.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def valid?(value)
# A JSON property (and the default)
class JSONProp < Base
def valid?(value)
whitelisted_value?(value) || value.is_a?(Hash)
whitelisted_value?(value) || value.is_a?(Hash) || value.is_a?(Array)
end
end

Expand Down
2 changes: 1 addition & 1 deletion lib/humidifier/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Humidifier
VERSION = '0.0.42'.freeze
VERSION = '0.0.43'.freeze
end

0 comments on commit bca2192

Please sign in to comment.