towsta 1.1.3 → 1.1.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -66,9 +66,15 @@ module Towsta
66
66
  puts 'Something went wrong tryng to parse JSON.'
67
67
  return false
68
68
  end
69
+ begin
70
+ Object.send(:remove_const, :User)
71
+ rescue;nil;end
69
72
  Vertical.create :name => 'User', :slices => {:id => 'integer', :nick => 'string', :email => 'string'}
70
73
  hash[:users].each {|user| User.new user}
71
74
  hash[:structures].each_with_index do |structure, i|
75
+ begin
76
+ Object.send(:remove_const, structure[:name].to_sym)
77
+ rescue;nil;end
72
78
  Vertical.create structure
73
79
  Vertical.all << eval(structure[:name])
74
80
  hash[:verticals][i][:horizontals].each {|horizontal| Vertical.all.last.new horizontal}
@@ -1,3 +1,3 @@
1
1
  module Towsta
2
- VERSION = "1.1.3"
2
+ VERSION = "1.1.4"
3
3
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 1
8
- - 3
9
- version: 1.1.3
8
+ - 4
9
+ version: 1.1.4
10
10
  platform: ruby
11
11
  authors:
12
12
  - Mortaro
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2011-11-10 00:00:00 -02:00
17
+ date: 2011-11-11 00:00:00 -02:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency