lotus-model 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/lotus/model/adapters/sql_adapter.rb +3 -0
- data/lib/lotus/model/migrator/postgres_adapter.rb +2 -2
- data/lib/lotus/model/version.rb +1 -1
- data/lib/lotus/repository.rb +2 -0
- data/lotus-model.gemspec +2 -2
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0e790b1ae96cb5efe8df6cc1cb73d9f2a552ff07
|
4
|
+
data.tar.gz: 05962ff67790a0184e371b47fa3146a18fd88343
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 72200690f749ccf4f728554bb92de8ebc5215619afcda4672f87a8850ea6eca503a8f08ab5e2358fcae8fe7550dfaf3f51cd108857ce0e3567f93b0eb02c0514
|
7
|
+
data.tar.gz: 25b0f721e617e62ef9a705d2fcca14112d08bf2254b9936c13e4245c191b342acd2003306574393fb4810687afa19f634ab3c4b4456288ce58d9d81fa3f11199
|
data/CHANGELOG.md
CHANGED
@@ -230,8 +230,11 @@ module Lotus
|
|
230
230
|
# Executes raw sql directly on the connection
|
231
231
|
#
|
232
232
|
# @param raw [String] the raw sql statement to execute on the connection
|
233
|
+
#
|
233
234
|
# @return [Object]
|
234
235
|
#
|
236
|
+
# @raise [Lotus::Model::InvalidQueryError] if raw statement is invalid
|
237
|
+
#
|
235
238
|
# @since 0.3.1
|
236
239
|
def execute(raw)
|
237
240
|
begin
|
@@ -25,7 +25,7 @@ module Lotus
|
|
25
25
|
# @since 0.4.0
|
26
26
|
# @api private
|
27
27
|
def create
|
28
|
-
|
28
|
+
`createdb #{ database } #{ create_options }`
|
29
29
|
end
|
30
30
|
|
31
31
|
# @since 0.4.0
|
@@ -63,7 +63,7 @@ module Lotus
|
|
63
63
|
# @api private
|
64
64
|
def create_options
|
65
65
|
result = ""
|
66
|
-
result += %(
|
66
|
+
result += %( --owner=#{ username }) unless username.nil?
|
67
67
|
result
|
68
68
|
end
|
69
69
|
|
data/lib/lotus/model/version.rb
CHANGED
data/lib/lotus/repository.rb
CHANGED
@@ -566,6 +566,8 @@ module Lotus
|
|
566
566
|
# @raise [NotImplementedError] if current Lotus::Model adapter doesn't
|
567
567
|
# implement `execute`.
|
568
568
|
#
|
569
|
+
# @raise [Lotus::Model::InvalidQueryError] if raw statement is invalid
|
570
|
+
#
|
569
571
|
# @see Lotus::Model::Adapters::Abstract#execute
|
570
572
|
# @see Lotus::Model::Adapters::SqlAdapter#execute
|
571
573
|
#
|
data/lotus-model.gemspec
CHANGED
@@ -6,8 +6,8 @@ require 'lotus/model/version'
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
7
|
spec.name = 'lotus-model'
|
8
8
|
spec.version = Lotus::Model::VERSION
|
9
|
-
spec.authors = ['Luca Guidi', 'Trung Lê']
|
10
|
-
spec.email = ['me@lucaguidi.com', 'trung.le@ruby-journal.com']
|
9
|
+
spec.authors = ['Luca Guidi', 'Trung Lê', 'Alfonso Uceda Pompa']
|
10
|
+
spec.email = ['me@lucaguidi.com', 'trung.le@ruby-journal.com', 'uceda73@gmail.com']
|
11
11
|
spec.summary = %q{A persistence layer for Lotus}
|
12
12
|
spec.description = %q{A persistence framework with entities, repositories, data mapper and query objects}
|
13
13
|
spec.homepage = 'http://lotusrb.org'
|
metadata
CHANGED
@@ -1,15 +1,16 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lotus-model
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Luca Guidi
|
8
8
|
- Trung Lê
|
9
|
+
- Alfonso Uceda Pompa
|
9
10
|
autorequire:
|
10
11
|
bindir: bin
|
11
12
|
cert_chain: []
|
12
|
-
date: 2015-
|
13
|
+
date: 2015-07-10 00:00:00.000000000 Z
|
13
14
|
dependencies:
|
14
15
|
- !ruby/object:Gem::Dependency
|
15
16
|
name: lotus-utils
|
@@ -86,6 +87,7 @@ description: A persistence framework with entities, repositories, data mapper an
|
|
86
87
|
email:
|
87
88
|
- me@lucaguidi.com
|
88
89
|
- trung.le@ruby-journal.com
|
90
|
+
- uceda73@gmail.com
|
89
91
|
executables: []
|
90
92
|
extensions: []
|
91
93
|
extra_rdoc_files: []
|