sack 1.0.1 → 1.0.2
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.
- checksums.yaml +4 -4
- data/README.md +4 -4
- data/lib/sack/version.rb +1 -1
- data/sack.gemspec +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c2490d6fa06201302120d44d10dcb76b33dddb82
|
|
4
|
+
data.tar.gz: 86e72e9b5d1979e083b83df349fc2f724a225748
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: be1234cb58d2e5ab49090118fb8a53f6841f9073bf2cbe8462226579674a97025ea679aeaa2cb0c7b875dd96a117681205b5e65c54f9b78c1ce2dd57c83a5299
|
|
7
|
+
data.tar.gz: 7b58c7bbc84c2531e76f35b4b7fca2ff732db9443d027789b25186b5c94ac657a162ff06948a12cc0b526fa35db401f6078df9b0bf3c5a67999e3404acdab396
|
data/README.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# Sack
|
|
2
2
|
|
|
3
|
-
Minimalistic Database Layer
|
|
3
|
+
Minimalistic Database Layer providing Models, Validation and Relationships
|
|
4
4
|
|
|
5
5
|
## Presentation
|
|
6
6
|
|
|
7
|
-
This library provides a
|
|
7
|
+
This library provides a small persistence framework, including models (programmatic description of entities), validation rules and relationships between models.
|
|
8
8
|
|
|
9
9
|
## Installation
|
|
10
10
|
|
|
@@ -34,7 +34,7 @@ SCHEMA = {
|
|
|
34
34
|
# 'user' Table
|
|
35
35
|
user: {
|
|
36
36
|
|
|
37
|
-
# ID -
|
|
37
|
+
# ID - Integer (:int) Primary-Key (:pk) Auto-Increment (:ai)
|
|
38
38
|
id: [:int, :pk, :ai],
|
|
39
39
|
|
|
40
40
|
# Name - String
|
|
@@ -218,7 +218,7 @@ u = User.find db, id
|
|
|
218
218
|
articles = u.articles(db)
|
|
219
219
|
u = articles.first.author(db)
|
|
220
220
|
|
|
221
|
-
#
|
|
221
|
+
# We can recurse as many levels as we want
|
|
222
222
|
articles = u.articles(db).first.author(db).articles(db).first.author(db).articles(db)
|
|
223
223
|
```
|
|
224
224
|
|
data/lib/sack/version.rb
CHANGED
data/sack.gemspec
CHANGED
|
@@ -9,7 +9,7 @@ Gem::Specification.new do |spec|
|
|
|
9
9
|
spec.authors = ['Eresse']
|
|
10
10
|
spec.email = ['eresse@eresse.net']
|
|
11
11
|
|
|
12
|
-
spec.summary = 'Minimalistic Database Layer
|
|
12
|
+
spec.summary = 'Minimalistic Database Layer providing Models, Validation and Relationships'
|
|
13
13
|
spec.description = 'Provides a lightweight an easy-to-use database interface.'
|
|
14
14
|
spec.homepage = 'http://redmine.eresse.net/projects/sack'
|
|
15
15
|
spec.license = 'MIT'
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sack
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Eresse
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-05-
|
|
11
|
+
date: 2017-05-29 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -133,5 +133,5 @@ rubyforge_project:
|
|
|
133
133
|
rubygems_version: 2.5.1
|
|
134
134
|
signing_key:
|
|
135
135
|
specification_version: 4
|
|
136
|
-
summary: Minimalistic Database Layer
|
|
136
|
+
summary: Minimalistic Database Layer providing Models, Validation and Relationships
|
|
137
137
|
test_files: []
|