dionysus 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.1.1
data/dionysus.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{dionysus}
8
- s.version = "0.1.0"
8
+ s.version = "0.1.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Travis D. Warlick, Jr."]
@@ -141,7 +141,7 @@ class Configuration
141
141
  # 2) there are explicit keys defined
142
142
  # 3) there is a default set of arguments
143
143
  def _hard_keys?( defaults, args )
144
- if args.first == true or args.first == false
144
+ if [false, true].include?(args.first)
145
145
  args.shift
146
146
  else
147
147
  args.any? or (defaults and defaults.any?)
@@ -153,7 +153,7 @@ class Configuration
153
153
  # array.
154
154
  def _normalize_hard_keys( defaults, keys )
155
155
  returning [] do |keys_|
156
- (keys + defaults.keys).uniq.collect {|k| k.to_s}.sort.each do |key|
156
+ (keys + defaults.keys).uniq.collect {|key_| key_.to_s}.sort.each do |key|
157
157
  raise ArgumentError, "Invalid key: '#{key}'" unless valid_key?(key)
158
158
  keys_ << _normalize_key(key)
159
159
  end
@@ -184,7 +184,7 @@ class Configuration
184
184
  if allowed_key?(key) and !block_given?
185
185
  if setter and args.length == 1
186
186
  return set(key, args.first)
187
- elsif match[1] and match[2].nil? and args.length == 0
187
+ elsif key and !setter and args.empty?
188
188
  return get(key)
189
189
  end
190
190
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 0
9
- version: 0.1.0
8
+ - 1
9
+ version: 0.1.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Travis D. Warlick, Jr.