apartment 0.10.2 → 0.10.3

Sign up to get free protection for your applications and to get access to all the features.
data/HISTORY.md CHANGED
@@ -1,3 +1,8 @@
1
+ # 0.10.3
2
+ * Sep 20, 2011
3
+
4
+ - Fix improper raising of exceptions on create and reset
5
+
1
6
  # 0.10.2
2
7
  * Sep 15, 2011
3
8
 
@@ -24,7 +24,7 @@ module Apartment
24
24
  return reset if database.nil?
25
25
  ActiveRecord::Base.connection.schema_search_path = database
26
26
  rescue ActiveRecord::StatementInvalid => e
27
- raise SchemaNotFound, e
27
+ raise SchemaNotFound, "The Schema #{database.inspect} cannot be found."
28
28
  end
29
29
 
30
30
  def create(database)
@@ -37,7 +37,7 @@ module Apartment
37
37
  seed_data if Apartment.seed_after_create
38
38
  end
39
39
  rescue ActiveRecord::StatementInvalid => e
40
- raise SchemaExists, e
40
+ raise SchemaExists, "The schema #{database} already exists."
41
41
  end
42
42
 
43
43
  def current_database
@@ -1,3 +1,3 @@
1
1
  module Apartment
2
- VERSION = "0.10.2"
2
+ VERSION = "0.10.3"
3
3
  end
@@ -2,6 +2,7 @@ connections:
2
2
  postgresql:
3
3
  adapter: postgresql
4
4
  database: apartment_postgresql_test
5
+ min_messages: WARNING
5
6
  username: root
6
7
  password:
7
8
 
@@ -4,5 +4,12 @@
4
4
  test:
5
5
  adapter: postgresql
6
6
  database: apartment_postgresql_test
7
+ min_messages: WARNING
8
+ pool: 5
9
+ timeout: 5000
10
+ development:
11
+ adapter: postgresql
12
+ database: apartment_postgresql_development
13
+ min_messages: WARNING
7
14
  pool: 5
8
15
  timeout: 5000
@@ -18,7 +18,7 @@ module Apartment
18
18
  end
19
19
 
20
20
  def load_schema
21
- load "#{Rails.root}/db/schema.rb"
21
+ silence_stream(STDOUT){ load("#{Rails.root}/db/schema.rb") }
22
22
  end
23
23
 
24
24
  def migrate
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: apartment
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.10.2
5
+ version: 0.10.3
6
6
  platform: ruby
7
7
  authors:
8
8
  - Ryan Brunner
@@ -223,7 +223,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
223
223
  requirements:
224
224
  - - ">="
225
225
  - !ruby/object:Gem::Version
226
- hash: -795357038977467043
226
+ hash: 2467393586415245119
227
227
  segments:
228
228
  - 0
229
229
  version: "0"
@@ -232,7 +232,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
232
232
  requirements:
233
233
  - - ">="
234
234
  - !ruby/object:Gem::Version
235
- hash: -795357038977467043
235
+ hash: 2467393586415245119
236
236
  segments:
237
237
  - 0
238
238
  version: "0"