uorm 0.0.11 → 0.0.13

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.
data/.rvmrc ADDED
@@ -0,0 +1 @@
1
+ rvm use --create 1.9.3@uorm
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- uorm (0.0.11)
4
+ uorm (0.0.13)
5
5
  em-synchrony
6
6
 
7
7
  GEM
@@ -1,32 +1,12 @@
1
- require 'uorm/version'
2
1
  require 'time'
3
2
 
4
3
  module Uorm
5
4
  autoload :Model, 'uorm/model'
6
5
 
7
6
  autoload :CRUD, 'uorm/crud'
8
- module CRUD
9
- autoload :PersistanceHelper, 'uorm/crud/persistance_helper'
10
- autoload :Callbacks, 'uorm/crud/callbacks'
11
- end
12
-
13
7
  autoload :Attributes, 'uorm/attributes'
14
- module Attributes
15
- autoload :Field, 'uorm/attributes/field'
16
- autoload :FieldCollection, 'uorm/attributes/field_collection'
17
- autoload :Type, 'uorm/attributes/type'
18
- end
19
8
 
20
9
  autoload :Redis, 'uorm/redis'
21
- module Redis
22
- autoload :Persistance, 'uorm/redis/persistance'
23
- end
24
-
25
10
  autoload :Mongo, 'uorm/mongo'
26
- module Mongo
27
- require 'uorm/mongo/object_id'
28
- autoload :Persistance, 'uorm/mongo/persistance'
29
- end
30
-
31
11
  autoload :Hash, 'uorm/hash'
32
12
  end
@@ -1,5 +1,8 @@
1
1
  module Uorm
2
2
  module Attributes
3
+ autoload :Field, 'uorm/attributes/field'
4
+ autoload :FieldCollection, 'uorm/attributes/field_collection'
5
+ autoload :Type, 'uorm/attributes/type'
3
6
 
4
7
  def self.included base
5
8
  base.instance_eval do
@@ -1,5 +1,7 @@
1
1
  module Uorm
2
2
  module CRUD
3
+ autoload :PersistanceHelper, 'uorm/crud/persistance_helper'
4
+ autoload :Callbacks, 'uorm/crud/callbacks'
3
5
 
4
6
  def self.included base
5
7
  base.class_eval do
@@ -1,9 +1,12 @@
1
1
  require 'em-mongo'
2
2
  require 'em-synchrony'
3
3
  require 'em-synchrony/em-mongo'
4
+ require 'uorm/mongo/object_id'
4
5
 
5
6
  module Uorm
6
7
  module Mongo
8
+ autoload :Persistance, 'uorm/mongo/persistance'
9
+
7
10
  def self.included base
8
11
  base.instance_eval do
9
12
  field :id, type: :ObjectId
@@ -3,6 +3,8 @@ require 'hiredis'
3
3
 
4
4
  module Uorm
5
5
  module Redis
6
+ autoload :Persistance, 'uorm/redis/persistance'
7
+
6
8
  def self.included base
7
9
  base.instance_eval do
8
10
  field :id, type: :String
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |gem|
6
6
  gem.name = 'uorm'
7
- gem.version = '0.0.11'
7
+ gem.version = '0.0.13'
8
8
  gem.authors = ['Dennis Rogenius']
9
9
  gem.email = ['denro03@gmail.com']
10
10
  gem.description = %q{A modular, flexible and lightweight ORM}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uorm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.11
4
+ version: 0.0.13
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -147,6 +147,7 @@ extensions: []
147
147
  extra_rdoc_files: []
148
148
  files:
149
149
  - .gitignore
150
+ - .rvmrc
150
151
  - Gemfile
151
152
  - Gemfile.lock
152
153
  - LICENSE.txt
@@ -188,7 +189,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
188
189
  version: '0'
189
190
  segments:
190
191
  - 0
191
- hash: -4044526249498249411
192
+ hash: 1722119232113746489
192
193
  required_rubygems_version: !ruby/object:Gem::Requirement
193
194
  none: false
194
195
  requirements:
@@ -197,7 +198,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
197
198
  version: '0'
198
199
  segments:
199
200
  - 0
200
- hash: -4044526249498249411
201
+ hash: 1722119232113746489
201
202
  requirements: []
202
203
  rubyforge_project:
203
204
  rubygems_version: 1.8.24