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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 446ed910e7e39e23fe19ceb56cf66ec8bc545145
4
- data.tar.gz: 121c4c8b74f095a7a5e07396d6a37f2fdbeb6a5b
3
+ metadata.gz: 0e790b1ae96cb5efe8df6cc1cb73d9f2a552ff07
4
+ data.tar.gz: 05962ff67790a0184e371b47fa3146a18fd88343
5
5
  SHA512:
6
- metadata.gz: 4df597074019ffca04b8552579a0febd2382462ca6a9472be3b99b5a780b590f0485ec9872018a4dd9dcb31b1243f3f4838096aa4b4030882f36b81971b336f3
7
- data.tar.gz: 5dd2f57855b6b08011e8b8e230b610b5f3c3a9edfd4d1f89203faa34b08b25664310d4713f44190c9c7aedc85ebf02c907bfa0aaccc2ee69d0dd39aa56077cef
6
+ metadata.gz: 72200690f749ccf4f728554bb92de8ebc5215619afcda4672f87a8850ea6eca503a8f08ab5e2358fcae8fe7550dfaf3f51cd108857ce0e3567f93b0eb02c0514
7
+ data.tar.gz: 25b0f721e617e62ef9a705d2fcca14112d08bf2254b9936c13e4245c191b342acd2003306574393fb4810687afa19f634ab3c4b4456288ce58d9d81fa3f11199
data/CHANGELOG.md CHANGED
@@ -1,6 +1,10 @@
1
1
  # Lotus::Model
2
2
  A persistence layer for Lotus
3
3
 
4
+ ## v0.4.1 - 2015-07-10
5
+ ### Added
6
+ - [Nick Coyne] Fixed database creation for PostgreSQL (now it uses `createdb`).
7
+
4
8
  ## v0.4.0 - 2015-06-23
5
9
  ### Added
6
10
  - [Luca Guidi] Database migrations
@@ -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
- new_connection.run %(CREATE DATABASE "#{ database }"#{ create_options })
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 += %( OWNER "#{ username }") unless username.nil?
66
+ result += %( --owner=#{ username }) unless username.nil?
67
67
  result
68
68
  end
69
69
 
@@ -3,6 +3,6 @@ module Lotus
3
3
  # Defines the version
4
4
  #
5
5
  # @since 0.1.0
6
- VERSION = '0.4.0'.freeze
6
+ VERSION = '0.4.1'.freeze
7
7
  end
8
8
  end
@@ -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.0
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-06-23 00:00:00.000000000 Z
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: []