sinatra-activerecord 2.0.27 → 2.0.28

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
  SHA256:
3
- metadata.gz: 8f3fbe6e520369fb04183ec09a07a3ca70108a7f6bd3f9ecf7a4009862ec30a4
4
- data.tar.gz: 310aab0d4d4331f3c28e57ce84862b43046c9a5746275f00488b840a8cb93a32
3
+ metadata.gz: f2a5b91b9bc498894eb844fbd5f13bdc9431ac6d1df8b6ddd6cc2c210415ece8
4
+ data.tar.gz: b476e1a91a1a3bc50e8f5cf25d96d367e107aafaa6854e8ec689b672b79e599f
5
5
  SHA512:
6
- metadata.gz: 3e22dd1d45269cd1d7818a9264da656693084a67b144a4bfd8a839ff1f05dc1beb03cf3b9201288881e25daed54d4c77e0a2dec1ea21f8117e806f8f819ac385
7
- data.tar.gz: a4abfe0c12ca022a8acf8f34103903ab35cf0056a394cb51529927fd648e9dff32f670dec2d2294f26b826c180b7ffdf765ee04cc102628eb55730658b60aedd
6
+ metadata.gz: 1fbf2d90255d298414ea40b0c2fce51278ec1a0c0af51a52464691bd83ca80e281476edb01368b321448bcc5b09cdbbdb94206466c5fc793f82e59f061297153
7
+ data.tar.gz: 2997ed845b00645fa05704e5d86bc2abe3dc216037b8e37cbbcf9cae48aa0ee27138aac29af90a3c6c31c572f93a3dc7055b2d5624ea0bfcec277e6e63f07bdd
@@ -0,0 +1,23 @@
1
+ seed_loader = Class.new do
2
+ def load_seed
3
+ load "#{ActiveRecord::Tasks::DatabaseTasks.db_dir}/seeds.rb"
4
+ end
5
+ end
6
+
7
+ ActiveRecord::Tasks::DatabaseTasks.tap do |config|
8
+ config.root = Rake.application.original_dir
9
+ config.env = ENV["APP_ENV"] || ENV["RACK_ENV"] || "development"
10
+ config.db_dir = "db"
11
+ config.migrations_paths = ["db/migrate"]
12
+ config.fixtures_path = "test/fixtures"
13
+ config.seed_loader = seed_loader.new
14
+ config.database_configuration = ActiveRecord::Base.configurations
15
+ end
16
+
17
+ # db:load_config can be overriden manually
18
+ Rake::Task["db:seed"].enhance(["db:load_config"])
19
+ Rake::Task["db:load_config"].clear
20
+
21
+ # define Rails' tasks as no-op
22
+ Rake::Task.define_task("db:environment")
23
+ Rake::Task["db:test:deprecated"].clear if Rake::Task.task_defined?("db:test:deprecated")
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sinatra-activerecord
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.27
4
+ version: 2.0.28
5
5
  platform: ruby
6
6
  authors:
7
7
  - Blake Mizerany
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2023-10-23 00:00:00.000000000 Z
13
+ date: 2024-11-29 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: sinatra
@@ -111,6 +111,7 @@ files:
111
111
  - lib/sinatra/activerecord/rake/activerecord_5.rb
112
112
  - lib/sinatra/activerecord/rake/activerecord_6.rb
113
113
  - lib/sinatra/activerecord/rake/activerecord_7.rb
114
+ - lib/sinatra/activerecord/rake/activerecord_8.rb
114
115
  - lib/sinatra/activerecord/tasks.rake
115
116
  homepage: http://github.com/sinatra-activerecord/sinatra-activerecord
116
117
  licenses: