sequelize-rails 0.4.1 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +2 -0
- data/CHANGELOG.md +6 -0
- data/Gemfile.lock +1 -1
- data/lib/sequel/rails/version.rb +1 -1
- data/lib/sequel/tasks.rake +26 -23
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ffb36f44727f56d3d9f157d95b669785999567afc37d7b2b4a1c99e4b7fbfe40
|
4
|
+
data.tar.gz: f2f9b2e5b1a96a8048731ab03cbc279fb363f1549da47f988869dc9d55d34989
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 33451f66a4c01399910e6ec4bfdbed2a9136f1da5fe537020efae31a39e1cbdc514da3f7f0773888cf16bd4e5a1648ef57d76170fd3ee76aa006e27fde85485a
|
7
|
+
data.tar.gz: 692a29096179817f411539a22363cf4a8688bdf688236fa9c5ecee2b8644c0a72d78939be12db570ff6a5faa7a9d620fd90415b5ea075a2107d283f85f4f06de
|
data/.rubocop.yml
ADDED
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,11 @@
|
|
1
1
|
## [Unreleased]
|
2
2
|
|
3
|
+
## [0.5.0] - 2023-09-04
|
4
|
+
|
5
|
+
- Adds the `db:seed` rake task for running seed files
|
6
|
+
- Stubs the `db:schema:load` rake task and adds it as a step in `db:setup`
|
7
|
+
- Stubs the `db:schema:dump` rake task
|
8
|
+
|
3
9
|
## [0.4.1] - 2023-08-16
|
4
10
|
|
5
11
|
- Adds a `Rails.application.config.sequel.after_connect` hook that is called after each connection is established. This hook can be used to add plugins and extensions to the database connection once established.
|
data/Gemfile.lock
CHANGED
data/lib/sequel/rails/version.rb
CHANGED
data/lib/sequel/tasks.rake
CHANGED
@@ -125,13 +125,13 @@ db_namespace = namespace ns do
|
|
125
125
|
end
|
126
126
|
|
127
127
|
namespace :migrate do
|
128
|
-
|
128
|
+
desc "Runs the \"down\" method for the last applied migration"
|
129
129
|
task down: [:connection] do
|
130
130
|
target = (migrator.applied_migrations[-2] || "0_").split("_", 2).first.to_i
|
131
131
|
migrator(target: target).run
|
132
132
|
end
|
133
133
|
|
134
|
-
|
134
|
+
desc "Runs the \"up\" method for the next pending migration"
|
135
135
|
task up: [:connection] do
|
136
136
|
pending = migrator.migration_tuples.first
|
137
137
|
if pending
|
@@ -172,30 +172,33 @@ db_namespace = namespace ns do
|
|
172
172
|
desc "Rolls back the last migration"
|
173
173
|
task rollback: [:"migrate:down"]
|
174
174
|
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
175
|
+
namespace :schema do
|
176
|
+
# namespace :cache do
|
177
|
+
# desc "Clears the database schema and indicies caches"
|
178
|
+
# task clear: [] do
|
179
|
+
# end
|
180
180
|
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
181
|
+
# desc "Creates the database schema and indicies caches"
|
182
|
+
# task dump: [] do
|
183
|
+
# end
|
184
|
+
# end
|
185
185
|
|
186
|
-
|
187
|
-
|
188
|
-
|
186
|
+
desc "Creates a backup of the database's schema"
|
187
|
+
task dump: [] do
|
188
|
+
puts "Please implement the #{ns}:schema:dump task within your Rakefile"
|
189
|
+
end
|
189
190
|
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
191
|
+
desc "Restores the database's schema from backup"
|
192
|
+
task load: [] do
|
193
|
+
puts "Please implement the #{ns}:schema:load task within your Rakefile"
|
194
|
+
end
|
195
|
+
end
|
194
196
|
|
195
|
-
|
196
|
-
|
197
|
-
|
197
|
+
desc "Loads seed data by running db/seeds.rb"
|
198
|
+
task seed: [:connection] do
|
199
|
+
require Rails.root.join("db", "seeds.rb")
|
200
|
+
end
|
198
201
|
|
199
|
-
desc "Runs the #{ns}:create, #{ns}:migrate, #{ns}:seed tasks"
|
200
|
-
task setup: [:"#{ns}:create", :"#{ns}:migrate", :"#{ns}:seed"]
|
202
|
+
desc "Runs the #{ns}:create, #{ns}:schema:load, #{ns}:migrate, #{ns}:seed tasks"
|
203
|
+
task setup: [:"#{ns}:create", :"#{ns}:schema:load", :"#{ns}:migrate", :"#{ns}:seed"]
|
201
204
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sequelize-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kenaniah Cerny
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-09-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -145,6 +145,7 @@ extensions: []
|
|
145
145
|
extra_rdoc_files: []
|
146
146
|
files:
|
147
147
|
- ".DS_Store"
|
148
|
+
- ".rubocop.yml"
|
148
149
|
- ".standard.yml"
|
149
150
|
- Appraisals
|
150
151
|
- CHANGELOG.md
|