persisto 0.0.1 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/persisto/version.rb +1 -1
- data/lib/persisto.rb +37 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 37c8b2b01f57ce2a71a4de344ad6f96907cd2ee1
|
4
|
+
data.tar.gz: 6cd93e653a0fd67bd90c813f161654493b5eae98
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4ca13825e19ef420a5a6710e32611e99107fecd245e4dc84d853a8bc6c80bf2d049b902220cd068091ec13a48841fae5293731b58fdbdc7e1786ca71d0816c24
|
7
|
+
data.tar.gz: cb7462a387cbcb0ffda1c50060b0f86545c8d0cb1fa48e1756ae6dc84ff760f4f77f57265a8a451ec024665523bf215d3b72cc1159e028fa9bd7d894b666ad4f
|
data/lib/persisto/version.rb
CHANGED
data/lib/persisto.rb
CHANGED
@@ -1,5 +1,39 @@
|
|
1
|
-
require
|
1
|
+
require 'persisto/version'
|
2
|
+
require 'persisto/mapper'
|
3
|
+
require 'persisto/repository'
|
4
|
+
require 'persisto/query'
|
5
|
+
require 'persisto/store'
|
2
6
|
|
3
7
|
module Persisto
|
4
|
-
|
5
|
-
|
8
|
+
def self.mapper
|
9
|
+
mod = Module.new
|
10
|
+
mod.define_singleton_method :included do |base|
|
11
|
+
base.send(:include, ::Persisto::Mapper)
|
12
|
+
end
|
13
|
+
mod
|
14
|
+
end
|
15
|
+
|
16
|
+
def self.query
|
17
|
+
mod = Module.new
|
18
|
+
mod.define_singleton_method :included do |base|
|
19
|
+
base.send(:include, ::Persisto::Query)
|
20
|
+
end
|
21
|
+
mod
|
22
|
+
end
|
23
|
+
|
24
|
+
def self.repository
|
25
|
+
mod = Module.new
|
26
|
+
mod.define_singleton_method :included do |base|
|
27
|
+
base.send(:include, ::Persisto::Repository)
|
28
|
+
end
|
29
|
+
mod
|
30
|
+
end
|
31
|
+
|
32
|
+
def self.store
|
33
|
+
mod = Module.new
|
34
|
+
mod.define_singleton_method :included do |base|
|
35
|
+
base.send(:include, ::Persisto::Store)
|
36
|
+
end
|
37
|
+
mod
|
38
|
+
end
|
39
|
+
end
|