instant_dsl 0.4.0 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/lib/instant_dsl.rb +5 -3
  3. metadata +2 -3
  4. data/instant_dsl.gemspec +0 -45
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.0
1
+ 0.5.0
data/lib/instant_dsl.rb CHANGED
@@ -3,12 +3,14 @@ module InstantDSL
3
3
  def self.new(*actions)
4
4
  mod = Module.new
5
5
 
6
- mod.send :attr_accessor, :dsl_values
6
+ mod.send :define_method, :dsl_values do
7
+ @__instant_dsl_values
8
+ end
7
9
 
8
10
  actions.each do |act|
9
11
  mod.send :define_method, act do |*args|
10
- @dsl_values ||= Hash.new {|hsh,k| hsh[k] = [] }
11
- @dsl_values[act] += args
12
+ @__instant_dsl_values ||= Hash.new {|hsh,k| hsh[k] = [] }
13
+ @__instant_dsl_values[act] += args
12
14
  self
13
15
  end
14
16
  end
metadata CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
6
  - 0
7
- - 4
7
+ - 5
8
8
  - 0
9
- version: 0.4.0
9
+ version: 0.5.0
10
10
  platform: ruby
11
11
  authors:
12
12
  - jbe
@@ -34,7 +34,6 @@ files:
34
34
  - README
35
35
  - Rakefile
36
36
  - VERSION
37
- - instant_dsl.gemspec
38
37
  - lib/instant_dsl.rb
39
38
  has_rdoc: true
40
39
  homepage: http://github.com/jbe/instant_dsl
data/instant_dsl.gemspec DELETED
@@ -1,45 +0,0 @@
1
- # Generated by jeweler
2
- # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
4
- # -*- encoding: utf-8 -*-
5
-
6
- Gem::Specification.new do |s|
7
- s.name = %q{instant_dsl}
8
- s.version = "0.4.0"
9
-
10
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["jbe"]
12
- s.date = %q{2010-12-08}
13
- s.description = %q{Helps you define new DSL's by manufacturing classes.}
14
- s.email = %q{post@jostein.be}
15
- s.extra_rdoc_files = [
16
- "LICENSE",
17
- "README"
18
- ]
19
- s.files = [
20
- ".document",
21
- ".gitignore",
22
- "LICENSE",
23
- "README",
24
- "Rakefile",
25
- "VERSION",
26
- "instant_dsl.gemspec",
27
- "lib/instant_dsl.rb"
28
- ]
29
- s.homepage = %q{http://github.com/jbe/instant_dsl}
30
- s.rdoc_options = ["--charset=UTF-8"]
31
- s.require_paths = ["lib"]
32
- s.rubygems_version = %q{1.3.7}
33
- s.summary = %q{Define new DSL's with ease.}
34
-
35
- if s.respond_to? :specification_version then
36
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
37
- s.specification_version = 3
38
-
39
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
40
- else
41
- end
42
- else
43
- end
44
- end
45
-