dslize 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README.md CHANGED
@@ -9,8 +9,8 @@ Finally an way to generate code with a custom DSL the ruby way !
9
9
  * Use real ruby classes to define your DSL
10
10
  * Add custom behaviors defining ruby methods
11
11
  * Create custom formatters/generators extending a base class
12
- * Module `DSLize::Methods` defines how your attributes are interpreted, include `DSLize::Methods::Base` to has the standard attributes
13
- * Module `DSLize::Definition` defines your DSL
12
+ * Module `DSLize::Methods` defines your attributes types, include `DSLize::Methods::Base` to import the standard attributes
13
+ * Module `DSLize::Definition` defines your classes
14
14
 
15
15
  ## Installation ##
16
16
 
data/lib/dslize/dslize.rb CHANGED
@@ -68,7 +68,7 @@ module DSLize
68
68
  private
69
69
  def attribute(type, name, args)
70
70
  args[:type] = type
71
- DSLize.current_object[:attributes] = {}
71
+ DSLize.current_object[:attributes] ||= {}
72
72
  DSLize.current_object[:attributes][name] = args
73
73
  end
74
74
 
@@ -1,3 +1,3 @@
1
1
  module DSLize
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 2
9
- version: 0.0.2
8
+ - 3
9
+ version: 0.0.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - redox
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2012-07-10 00:00:00 +02:00
17
+ date: 2012-07-11 00:00:00 +02:00
18
18
  default_executable:
19
19
  dependencies: []
20
20