sequelize-rails 0.6.2 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Appraisals +6 -6
- data/CHANGELOG.md +6 -0
- data/Gemfile.lock +67 -67
- data/gemfiles/{rails_6.gemfile → latest.gemfile} +2 -2
- data/gemfiles/{rails_7.gemfile → rails_7_1.gemfile} +2 -2
- data/lib/sequel/rails/railties/log_subscriber.rb +11 -11
- data/lib/sequel/rails/version.rb +1 -1
- data/lib/sequel/tasks.rake +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4111634b5db87bf8df4ca7861795d4a0c0722d4162cee98e2eab219dbb9736f9
|
4
|
+
data.tar.gz: 692d2360c1f5479fc6ede2deeb773305a24023d11810929fcc1212f1946217d8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fc1fba65d3b271ab6c094c1f01cf2e0aa6ef1872126523173c8954ecc9aa078624f271b80815c595657df855df510421922be3354c1c1ccedee8cb4737b9352f
|
7
|
+
data.tar.gz: 302e8561c85819c0f0eb83b3d37420ac335a8690084cd10d693e5dcda693d59dbfd3f7a70eead4ddd067a7aff778cc346b0fef71b6c526a44bb2519a5ae6cb5a
|
data/Appraisals
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
gem "sqlite3"
|
2
2
|
gem "pg"
|
3
3
|
|
4
|
-
appraise "rails-
|
5
|
-
gem "activerecord", "~>
|
6
|
-
gem "rails", "~>
|
4
|
+
appraise "rails-7-1" do
|
5
|
+
gem "activerecord", "~> 7.1"
|
6
|
+
gem "rails", "~> 7.1"
|
7
7
|
gem "sequel", "~> 5"
|
8
8
|
end
|
9
9
|
|
10
|
-
appraise "
|
11
|
-
gem "activerecord"
|
12
|
-
gem "rails"
|
10
|
+
appraise "latest" do
|
11
|
+
gem "activerecord"
|
12
|
+
gem "rails"
|
13
13
|
gem "sequel", "~> 5"
|
14
14
|
end
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,11 @@
|
|
1
1
|
## [Unreleased]
|
2
2
|
|
3
|
+
- Adjusts the description of the `db:rollback` rake task
|
4
|
+
|
5
|
+
## [0.6.2] - 2023-09-05
|
6
|
+
|
7
|
+
- Updates the Sequel migration to use Sequel's preferred transaction semantics
|
8
|
+
|
3
9
|
## [0.6.1] - 2023-09-04
|
4
10
|
|
5
11
|
- Migrations now generate SQL files by default
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
sequelize-rails (0.
|
4
|
+
sequelize-rails (1.0.0)
|
5
5
|
activerecord (>= 6.0.0)
|
6
6
|
rails (>= 6.0.0)
|
7
7
|
sequel (>= 5.0.0)
|
@@ -9,67 +9,67 @@ PATH
|
|
9
9
|
GEM
|
10
10
|
remote: https://rubygems.org/
|
11
11
|
specs:
|
12
|
-
actioncable (7.0.
|
13
|
-
actionpack (= 7.0.
|
14
|
-
activesupport (= 7.0.
|
12
|
+
actioncable (7.0.8)
|
13
|
+
actionpack (= 7.0.8)
|
14
|
+
activesupport (= 7.0.8)
|
15
15
|
nio4r (~> 2.0)
|
16
16
|
websocket-driver (>= 0.6.1)
|
17
|
-
actionmailbox (7.0.
|
18
|
-
actionpack (= 7.0.
|
19
|
-
activejob (= 7.0.
|
20
|
-
activerecord (= 7.0.
|
21
|
-
activestorage (= 7.0.
|
22
|
-
activesupport (= 7.0.
|
17
|
+
actionmailbox (7.0.8)
|
18
|
+
actionpack (= 7.0.8)
|
19
|
+
activejob (= 7.0.8)
|
20
|
+
activerecord (= 7.0.8)
|
21
|
+
activestorage (= 7.0.8)
|
22
|
+
activesupport (= 7.0.8)
|
23
23
|
mail (>= 2.7.1)
|
24
24
|
net-imap
|
25
25
|
net-pop
|
26
26
|
net-smtp
|
27
|
-
actionmailer (7.0.
|
28
|
-
actionpack (= 7.0.
|
29
|
-
actionview (= 7.0.
|
30
|
-
activejob (= 7.0.
|
31
|
-
activesupport (= 7.0.
|
27
|
+
actionmailer (7.0.8)
|
28
|
+
actionpack (= 7.0.8)
|
29
|
+
actionview (= 7.0.8)
|
30
|
+
activejob (= 7.0.8)
|
31
|
+
activesupport (= 7.0.8)
|
32
32
|
mail (~> 2.5, >= 2.5.4)
|
33
33
|
net-imap
|
34
34
|
net-pop
|
35
35
|
net-smtp
|
36
36
|
rails-dom-testing (~> 2.0)
|
37
|
-
actionpack (7.0.
|
38
|
-
actionview (= 7.0.
|
39
|
-
activesupport (= 7.0.
|
37
|
+
actionpack (7.0.8)
|
38
|
+
actionview (= 7.0.8)
|
39
|
+
activesupport (= 7.0.8)
|
40
40
|
rack (~> 2.0, >= 2.2.4)
|
41
41
|
rack-test (>= 0.6.3)
|
42
42
|
rails-dom-testing (~> 2.0)
|
43
43
|
rails-html-sanitizer (~> 1.0, >= 1.2.0)
|
44
|
-
actiontext (7.0.
|
45
|
-
actionpack (= 7.0.
|
46
|
-
activerecord (= 7.0.
|
47
|
-
activestorage (= 7.0.
|
48
|
-
activesupport (= 7.0.
|
44
|
+
actiontext (7.0.8)
|
45
|
+
actionpack (= 7.0.8)
|
46
|
+
activerecord (= 7.0.8)
|
47
|
+
activestorage (= 7.0.8)
|
48
|
+
activesupport (= 7.0.8)
|
49
49
|
globalid (>= 0.6.0)
|
50
50
|
nokogiri (>= 1.8.5)
|
51
|
-
actionview (7.0.
|
52
|
-
activesupport (= 7.0.
|
51
|
+
actionview (7.0.8)
|
52
|
+
activesupport (= 7.0.8)
|
53
53
|
builder (~> 3.1)
|
54
54
|
erubi (~> 1.4)
|
55
55
|
rails-dom-testing (~> 2.0)
|
56
56
|
rails-html-sanitizer (~> 1.1, >= 1.2.0)
|
57
|
-
activejob (7.0.
|
58
|
-
activesupport (= 7.0.
|
57
|
+
activejob (7.0.8)
|
58
|
+
activesupport (= 7.0.8)
|
59
59
|
globalid (>= 0.3.6)
|
60
|
-
activemodel (7.0.
|
61
|
-
activesupport (= 7.0.
|
62
|
-
activerecord (7.0.
|
63
|
-
activemodel (= 7.0.
|
64
|
-
activesupport (= 7.0.
|
65
|
-
activestorage (7.0.
|
66
|
-
actionpack (= 7.0.
|
67
|
-
activejob (= 7.0.
|
68
|
-
activerecord (= 7.0.
|
69
|
-
activesupport (= 7.0.
|
60
|
+
activemodel (7.0.8)
|
61
|
+
activesupport (= 7.0.8)
|
62
|
+
activerecord (7.0.8)
|
63
|
+
activemodel (= 7.0.8)
|
64
|
+
activesupport (= 7.0.8)
|
65
|
+
activestorage (7.0.8)
|
66
|
+
actionpack (= 7.0.8)
|
67
|
+
activejob (= 7.0.8)
|
68
|
+
activerecord (= 7.0.8)
|
69
|
+
activesupport (= 7.0.8)
|
70
70
|
marcel (~> 1.0)
|
71
71
|
mini_mime (>= 1.1.0)
|
72
|
-
activesupport (7.0.
|
72
|
+
activesupport (7.0.8)
|
73
73
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
74
74
|
i18n (>= 1.6, < 2)
|
75
75
|
minitest (>= 5.1)
|
@@ -80,20 +80,20 @@ GEM
|
|
80
80
|
rake
|
81
81
|
thor (>= 0.14.0)
|
82
82
|
ast (2.4.2)
|
83
|
-
bigdecimal (3.1.
|
83
|
+
bigdecimal (3.1.5)
|
84
84
|
builder (3.2.4)
|
85
85
|
coderay (1.1.3)
|
86
86
|
concurrent-ruby (1.2.2)
|
87
87
|
crass (1.0.6)
|
88
|
-
date (3.3.
|
88
|
+
date (3.3.4)
|
89
89
|
erubi (1.12.0)
|
90
|
-
globalid (1.2.
|
90
|
+
globalid (1.2.1)
|
91
91
|
activesupport (>= 6.1)
|
92
92
|
i18n (1.14.1)
|
93
93
|
concurrent-ruby (~> 1.0)
|
94
94
|
json (2.6.3)
|
95
95
|
language_server-protocol (3.17.0.3)
|
96
|
-
loofah (2.
|
96
|
+
loofah (2.22.0)
|
97
97
|
crass (~> 1.0.2)
|
98
98
|
nokogiri (>= 1.12.0)
|
99
99
|
mail (2.8.1)
|
@@ -111,17 +111,17 @@ GEM
|
|
111
111
|
builder
|
112
112
|
minitest (>= 5.0)
|
113
113
|
ruby-progressbar
|
114
|
-
net-imap (0.
|
114
|
+
net-imap (0.4.9.1)
|
115
115
|
date
|
116
116
|
net-protocol
|
117
117
|
net-pop (0.1.2)
|
118
118
|
net-protocol
|
119
|
-
net-protocol (0.2.
|
119
|
+
net-protocol (0.2.2)
|
120
120
|
timeout
|
121
|
-
net-smtp (0.
|
121
|
+
net-smtp (0.4.0.1)
|
122
122
|
net-protocol
|
123
|
-
nio4r (2.
|
124
|
-
nokogiri (1.15.
|
123
|
+
nio4r (2.7.0)
|
124
|
+
nokogiri (1.15.5-arm64-darwin)
|
125
125
|
racc (~> 1.4)
|
126
126
|
parallel (1.22.1)
|
127
127
|
parser (3.2.1.1)
|
@@ -130,24 +130,24 @@ GEM
|
|
130
130
|
pry (0.14.2)
|
131
131
|
coderay (~> 1.1)
|
132
132
|
method_source (~> 1.0)
|
133
|
-
racc (1.7.
|
133
|
+
racc (1.7.3)
|
134
134
|
rack (2.2.8)
|
135
135
|
rack-test (2.1.0)
|
136
136
|
rack (>= 1.3)
|
137
|
-
rails (7.0.
|
138
|
-
actioncable (= 7.0.
|
139
|
-
actionmailbox (= 7.0.
|
140
|
-
actionmailer (= 7.0.
|
141
|
-
actionpack (= 7.0.
|
142
|
-
actiontext (= 7.0.
|
143
|
-
actionview (= 7.0.
|
144
|
-
activejob (= 7.0.
|
145
|
-
activemodel (= 7.0.
|
146
|
-
activerecord (= 7.0.
|
147
|
-
activestorage (= 7.0.
|
148
|
-
activesupport (= 7.0.
|
137
|
+
rails (7.0.8)
|
138
|
+
actioncable (= 7.0.8)
|
139
|
+
actionmailbox (= 7.0.8)
|
140
|
+
actionmailer (= 7.0.8)
|
141
|
+
actionpack (= 7.0.8)
|
142
|
+
actiontext (= 7.0.8)
|
143
|
+
actionview (= 7.0.8)
|
144
|
+
activejob (= 7.0.8)
|
145
|
+
activemodel (= 7.0.8)
|
146
|
+
activerecord (= 7.0.8)
|
147
|
+
activestorage (= 7.0.8)
|
148
|
+
activesupport (= 7.0.8)
|
149
149
|
bundler (>= 1.15.0)
|
150
|
-
railties (= 7.0.
|
150
|
+
railties (= 7.0.8)
|
151
151
|
rails-dom-testing (2.2.0)
|
152
152
|
activesupport (>= 5.0.0)
|
153
153
|
minitest
|
@@ -155,9 +155,9 @@ GEM
|
|
155
155
|
rails-html-sanitizer (1.6.0)
|
156
156
|
loofah (~> 2.21)
|
157
157
|
nokogiri (~> 1.14)
|
158
|
-
railties (7.0.
|
159
|
-
actionpack (= 7.0.
|
160
|
-
activesupport (= 7.0.
|
158
|
+
railties (7.0.8)
|
159
|
+
actionpack (= 7.0.8)
|
160
|
+
activesupport (= 7.0.8)
|
161
161
|
method_source
|
162
162
|
rake (>= 12.2)
|
163
163
|
thor (~> 1.0)
|
@@ -182,7 +182,7 @@ GEM
|
|
182
182
|
rubocop (>= 1.7.0, < 2.0)
|
183
183
|
rubocop-ast (>= 0.4.0)
|
184
184
|
ruby-progressbar (1.13.0)
|
185
|
-
sequel (5.
|
185
|
+
sequel (5.76.0)
|
186
186
|
bigdecimal
|
187
187
|
sqlite3 (1.6.1)
|
188
188
|
mini_portile2 (~> 2.8.0)
|
@@ -191,14 +191,14 @@ GEM
|
|
191
191
|
rubocop (~> 1.48.1)
|
192
192
|
rubocop-performance (~> 1.16.0)
|
193
193
|
thor (1.2.1)
|
194
|
-
timeout (0.4.
|
194
|
+
timeout (0.4.1)
|
195
195
|
tzinfo (2.0.6)
|
196
196
|
concurrent-ruby (~> 1.0)
|
197
197
|
unicode-display_width (2.4.2)
|
198
198
|
websocket-driver (0.7.6)
|
199
199
|
websocket-extensions (>= 0.1.0)
|
200
200
|
websocket-extensions (0.1.5)
|
201
|
-
zeitwerk (2.6.
|
201
|
+
zeitwerk (2.6.12)
|
202
202
|
|
203
203
|
PLATFORMS
|
204
204
|
ruby
|
@@ -5,8 +5,8 @@ source "https://rubygems.org"
|
|
5
5
|
gem "rake", "~> 13.0"
|
6
6
|
gem "minitest", "~> 5.0"
|
7
7
|
gem "standard", "~> 1.3"
|
8
|
-
gem "activerecord", "~> 7"
|
9
|
-
gem "rails", "~> 7"
|
8
|
+
gem "activerecord", "~> 7.1"
|
9
|
+
gem "rails", "~> 7.1"
|
10
10
|
gem "sequel", "~> 5"
|
11
11
|
|
12
12
|
gemspec path: "../"
|
@@ -67,7 +67,7 @@ module Sequel
|
|
67
67
|
end
|
68
68
|
|
69
69
|
name = colorize_payload_name(name, payload[:name])
|
70
|
-
sql = color(sql, sql_color(sql), true) if colorize_logging
|
70
|
+
sql = color(sql, sql_color(sql), bold: true) if colorize_logging
|
71
71
|
|
72
72
|
debug " #{name} #{sql}#{binds}"
|
73
73
|
end
|
@@ -95,30 +95,30 @@ module Sequel
|
|
95
95
|
|
96
96
|
def colorize_payload_name(name, payload_name)
|
97
97
|
if payload_name.blank? || payload_name == "SQL" # SQL vs Model Load/Exists
|
98
|
-
color(name,
|
98
|
+
color(name, :white, bold: true)
|
99
99
|
else
|
100
|
-
color(name,
|
100
|
+
color(name, :cyan, bold: true)
|
101
101
|
end
|
102
102
|
end
|
103
103
|
|
104
104
|
def sql_color(sql)
|
105
105
|
case sql
|
106
106
|
when /\A\s*rollback/mi
|
107
|
-
|
107
|
+
:red
|
108
108
|
when /select .*for update/mi, /\A\s*lock/mi
|
109
|
-
|
109
|
+
:cyan
|
110
110
|
when /\A\s*select/i
|
111
|
-
|
111
|
+
:cyan
|
112
112
|
when /\A\s*insert/i
|
113
|
-
|
113
|
+
:green
|
114
114
|
when /\A\s*update/i
|
115
|
-
|
115
|
+
:yellow
|
116
116
|
when /\A\s*delete/i
|
117
|
-
|
117
|
+
:red
|
118
118
|
when /transaction\s*\Z/i, /\A\s*begin/i, /\A\s*commit/i
|
119
|
-
|
119
|
+
:blue
|
120
120
|
else
|
121
|
-
|
121
|
+
:magenta
|
122
122
|
end
|
123
123
|
end
|
124
124
|
|
data/lib/sequel/rails/version.rb
CHANGED
data/lib/sequel/tasks.rake
CHANGED
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: 1.0.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:
|
11
|
+
date: 2024-01-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -158,8 +158,8 @@ files:
|
|
158
158
|
- bin/setup
|
159
159
|
- bin/test
|
160
160
|
- gemfiles/.bundle/config
|
161
|
-
- gemfiles/
|
162
|
-
- gemfiles/
|
161
|
+
- gemfiles/latest.gemfile
|
162
|
+
- gemfiles/rails_7_1.gemfile
|
163
163
|
- lib/sequel/extensions/sequel_instrumentation.rb
|
164
164
|
- lib/sequel/generators/application_record_generator.rb
|
165
165
|
- lib/sequel/generators/migration_generator.rb
|