roles_active_record 0.3.3 → 0.3.4

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.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.3
1
+ 0.3.4
@@ -0,0 +1,4 @@
1
+ adapter: sqlite3
2
+ database: development.sqlite3
3
+ pool: 5
4
+ timeout: 5000
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{roles_active_record}
8
- s.version = "0.3.3"
8
+ s.version = "0.3.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Kristian Mandrup"]
@@ -24,6 +24,7 @@ Gem::Specification.new do |s|
24
24
  "README.markdown",
25
25
  "Rakefile",
26
26
  "VERSION",
27
+ "config/database.yml",
27
28
  "development.sqlite3",
28
29
  "lib/generators/active_record/roles/roles_generator.rb",
29
30
  "lib/generators/active_record/roles_migration/roles_migration_generator.rb",
data/spec/spec_helper.rb CHANGED
@@ -23,6 +23,23 @@ dbconfig = YAML::load(dbfile)
23
23
  ActiveRecord::Base.establish_connection(dbconfig)
24
24
  ActiveRecord::Base.logger = Logger.new(STDERR)
25
25
 
26
+ # Attempts at trying to make database_cleaner accept another location for database.yml
27
+ # ------------------------------------------------------------------------------------
28
+
29
+ # module ActiveRecord
30
+ # def self.config_file_location
31
+ # File.dirname(__FILE__) + '/db/database.yml'
32
+ # end
33
+ # end
34
+
35
+ # module DatabaseCleaner
36
+ # module ActiveRecord
37
+ # def self.config_file_location
38
+ # "#{DatabaseCleaner.app_root}/spec/db/database.yml"
39
+ # end
40
+ # end
41
+ # end
42
+
26
43
  DatabaseCleaner.strategy = :truncation
27
44
 
28
45
  def api_fixture
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 3
8
- - 3
9
- version: 0.3.3
8
+ - 4
9
+ version: 0.3.4
10
10
  platform: ruby
11
11
  authors:
12
12
  - Kristian Mandrup
@@ -346,6 +346,7 @@ files:
346
346
  - README.markdown
347
347
  - Rakefile
348
348
  - VERSION
349
+ - config/database.yml
349
350
  - development.sqlite3
350
351
  - lib/generators/active_record/roles/roles_generator.rb
351
352
  - lib/generators/active_record/roles_migration/roles_migration_generator.rb