ztk 1.6.16 → 1.6.17

Sign up to get free protection for your applications and to get access to all the features.
@@ -12,6 +12,7 @@ module ZTK::DSL::Core
12
12
 
13
13
  # @author Zachary Patten <zachary AT jovelabs DOT com>
14
14
  module ClassMethods
15
+
15
16
  def dataset
16
17
  klass = self.to_s.underscore.to_sym
17
18
  @@dataset ||= {}
@@ -23,7 +24,10 @@ module ZTK::DSL::Core
23
24
  end
24
25
 
25
26
  def purge
26
- @@dataset = nil
27
+ if !@@dataset.nil?
28
+ klass = self.to_s.underscore.to_sym
29
+ @@dataset[klass] = []
30
+ end
27
31
  end
28
32
 
29
33
  def next_id
@@ -1,6 +1,6 @@
1
1
  module ZTK
2
2
 
3
3
  # ZTK Version String
4
- VERSION = "1.6.16"
4
+ VERSION = "1.6.17"
5
5
 
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ztk
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.16
4
+ version: 1.6.17
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -275,7 +275,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
275
275
  version: '0'
276
276
  segments:
277
277
  - 0
278
- hash: 3831905173950647033
278
+ hash: 4425845033978329329
279
279
  required_rubygems_version: !ruby/object:Gem::Requirement
280
280
  none: false
281
281
  requirements:
@@ -284,7 +284,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
284
284
  version: '0'
285
285
  segments:
286
286
  - 0
287
- hash: 3831905173950647033
287
+ hash: 4425845033978329329
288
288
  requirements: []
289
289
  rubyforge_project:
290
290
  rubygems_version: 1.8.25