ztk 1.6.19 → 1.6.20
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/ztk/dsl/core/dataset.rb +8 -7
- data/lib/ztk/version.rb +1 -1
- metadata +4 -4
data/lib/ztk/dsl/core/dataset.rb
CHANGED
@@ -15,12 +15,11 @@ module ZTK::DSL::Core
|
|
15
15
|
|
16
16
|
def dataset
|
17
17
|
klass = self.to_s.underscore.to_sym
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
end
|
18
|
+
|
19
|
+
@@dataset ||= {}
|
20
|
+
@@dataset[klass] ||= []
|
21
|
+
|
22
|
+
@@dataset[klass]
|
24
23
|
end
|
25
24
|
|
26
25
|
def purge
|
@@ -37,10 +36,12 @@ module ZTK::DSL::Core
|
|
37
36
|
|
38
37
|
def next_id
|
39
38
|
klass = self.to_s.underscore.to_sym
|
40
|
-
|
39
|
+
|
40
|
+
@@id ||= {}
|
41
41
|
@@id[klass] ||= 0
|
42
42
|
|
43
43
|
@@id[klass] += 1
|
44
|
+
|
44
45
|
@@id[klass]
|
45
46
|
end
|
46
47
|
|
data/lib/ztk/version.rb
CHANGED
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.
|
4
|
+
version: 1.6.20
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-07-
|
12
|
+
date: 2013-07-04 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|
@@ -275,7 +275,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
275
275
|
version: '0'
|
276
276
|
segments:
|
277
277
|
- 0
|
278
|
-
hash:
|
278
|
+
hash: 2744320051962662907
|
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:
|
287
|
+
hash: 2744320051962662907
|
288
288
|
requirements: []
|
289
289
|
rubyforge_project:
|
290
290
|
rubygems_version: 1.8.25
|