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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 854eb9c0d54aeae8dcf2bfd02600d7179ffb2a4a
4
- data.tar.gz: d4a9b75be85a8a1ee46d6457d1ea94a3e133bd9b
3
+ metadata.gz: 37c8b2b01f57ce2a71a4de344ad6f96907cd2ee1
4
+ data.tar.gz: 6cd93e653a0fd67bd90c813f161654493b5eae98
5
5
  SHA512:
6
- metadata.gz: 5463555b437aaa7d413af00acc8011c8bd340ec82046fad2ef51970eb0f67e9a0994cbf8fd783daae40dbf841f3d0fa9e2b9abc5e630be575204d4bf90b9f43e
7
- data.tar.gz: c6fd95a9b10148fd528cf19d21b4f2772bc77559a35f05bf6a77507f6db5f097e3250202e031a79ae21c2c04714cf116e03c3b6c65e21959b2aca5f04c59104c
6
+ metadata.gz: 4ca13825e19ef420a5a6710e32611e99107fecd245e4dc84d853a8bc6c80bf2d049b902220cd068091ec13a48841fae5293731b58fdbdc7e1786ca71d0816c24
7
+ data.tar.gz: cb7462a387cbcb0ffda1c50060b0f86545c8d0cb1fa48e1756ae6dc84ff760f4f77f57265a8a451ec024665523bf215d3b72cc1159e028fa9bd7d894b666ad4f
@@ -1,3 +1,3 @@
1
1
  module Persisto
2
- VERSION = "0.0.1"
2
+ VERSION = "0.1.0"
3
3
  end
data/lib/persisto.rb CHANGED
@@ -1,5 +1,39 @@
1
- require "persisto/version"
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
- # Your code goes here...
5
- end
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: persisto
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Erik Lott