instant_dsl 0.3.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.0
1
+ 0.4.0
data/instant_dsl.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{instant_dsl}
8
- s.version = "0.3.0"
8
+ s.version = "0.4.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["jbe"]
data/lib/instant_dsl.rb CHANGED
@@ -7,8 +7,7 @@ module InstantDSL
7
7
 
8
8
  actions.each do |act|
9
9
  mod.send :define_method, act do |*args|
10
- @dsl_values ||= {}
11
- @dsl_values[act] ||= []
10
+ @dsl_values ||= Hash.new {|hsh,k| hsh[k] = [] }
12
11
  @dsl_values[act] += args
13
12
  self
14
13
  end
metadata CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
6
  - 0
7
- - 3
7
+ - 4
8
8
  - 0
9
- version: 0.3.0
9
+ version: 0.4.0
10
10
  platform: ruby
11
11
  authors:
12
12
  - jbe