uorm 0.0.11 → 0.0.13
Sign up to get free protection for your applications and to get access to all the features.
- data/.rvmrc +1 -0
- data/Gemfile.lock +1 -1
- data/lib/uorm.rb +0 -20
- data/lib/uorm/attributes.rb +3 -0
- data/lib/uorm/crud.rb +2 -0
- data/lib/uorm/mongo.rb +3 -0
- data/lib/uorm/redis.rb +2 -0
- data/uorm.gemspec +1 -1
- metadata +4 -3
data/.rvmrc
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
rvm use --create 1.9.3@uorm
|
data/Gemfile.lock
CHANGED
data/lib/uorm.rb
CHANGED
@@ -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
|
data/lib/uorm/attributes.rb
CHANGED
data/lib/uorm/crud.rb
CHANGED
data/lib/uorm/mongo.rb
CHANGED
@@ -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
|
data/lib/uorm/redis.rb
CHANGED
data/uorm.gemspec
CHANGED
@@ -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.
|
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.
|
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:
|
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:
|
201
|
+
hash: 1722119232113746489
|
201
202
|
requirements: []
|
202
203
|
rubyforge_project:
|
203
204
|
rubygems_version: 1.8.24
|