RubyApp 0.6.53 → 0.6.57

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.
@@ -283,7 +283,7 @@ module RubyApp
283
283
  end
284
284
 
285
285
  def self.from_hash(data)
286
- Kernel.eval(data['_class']).new(data)
286
+ data['_class'].to_class.new(data)
287
287
  end
288
288
 
289
289
  end
@@ -8,6 +8,14 @@ module RubyApp
8
8
  return self =~ /(true|t|yes|y|on)/ ? true : false
9
9
  end
10
10
 
11
+ def to_class
12
+ _class = Object
13
+ self.split('::').each do |name|
14
+ _class = _class.const_get(name)
15
+ end
16
+ return _class
17
+ end
18
+
11
19
  end
12
20
 
13
21
  end
@@ -1,4 +1,4 @@
1
1
  module RubyApp
2
- VERSION = "0.6.53"
2
+ VERSION = "0.6.57"
3
3
  ROOT = File.expand_path(File.dirname(__FILE__))
4
4
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: RubyApp
3
3
  version: !ruby/object:Gem::Version
4
- hash: 109
4
+ hash: 117
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 6
9
- - 53
10
- version: 0.6.53
9
+ - 57
10
+ version: 0.6.57
11
11
  platform: ruby
12
12
  authors:
13
13
  - Frank G. Ficnar
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2013-01-29 00:00:00 Z
18
+ date: 2013-02-02 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  version_requirements: &id001 !ruby/object:Gem::Requirement