Skip to content

Commit

Permalink
Ensure options hash has symbols for keys
Browse files Browse the repository at this point in the history
Otherwise, confusion reigns
  • Loading branch information
jeffbyrnes committed Oct 26, 2015
1 parent 26ce61b commit a51cd15
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions cronitor.gemspec
Expand Up @@ -19,6 +19,7 @@ Gem::Specification.new do |spec|
spec.require_paths = ['lib']

spec.add_dependency 'unirest', '~> 1.1'
spec.add_dependency 'hashie', '~> 3.4'

spec.add_development_dependency 'bundler', '~> 1.10'
spec.add_development_dependency 'rake', '~> 10.0'
Expand Down
1 change: 1 addition & 0 deletions lib/cronitor.rb
Expand Up @@ -25,6 +25,7 @@ def initialize(token: nil, opts: {}, code: nil)
end

if @opts
Hashie.symbolize_keys! @opts
exists? @opts[:name] if @opts.key? :name
human_readable @opts[:rules] if @opts.key? :rules
end
Expand Down

0 comments on commit a51cd15

Please sign in to comment.