ztk 1.4.17 → 1.4.18

Sign up to get free protection for your applications and to get access to all the features.
@@ -24,7 +24,9 @@ module ZTK::DSL::Core
24
24
 
25
25
  send(:define_method, key) do |*args|
26
26
  if args.count == 0
27
- attributes[key] ||= self.class.attribute_options[key][:default].dup
27
+ if (self.class.attribute_options[key] && self.class.attribute_options[key][:default])
28
+ attributes[key] ||= self.class.attribute_options[key][:default].dup
29
+ end
28
30
  attributes[key]
29
31
  else
30
32
  send("#{key}=", *args)
data/lib/ztk/version.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  module ZTK
2
2
 
3
3
  # ZTK Version String
4
- VERSION = "1.4.17"
4
+ VERSION = "1.4.18"
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.4.17
4
+ version: 1.4.18
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -263,12 +263,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
263
263
  - - ! '>='
264
264
  - !ruby/object:Gem::Version
265
265
  version: '0'
266
+ segments:
267
+ - 0
268
+ hash: 4429577561572962784
266
269
  required_rubygems_version: !ruby/object:Gem::Requirement
267
270
  none: false
268
271
  requirements:
269
272
  - - ! '>='
270
273
  - !ruby/object:Gem::Version
271
274
  version: '0'
275
+ segments:
276
+ - 0
277
+ hash: 4429577561572962784
272
278
  requirements: []
273
279
  rubyforge_project:
274
280
  rubygems_version: 1.8.25