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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 70e996b8b359c9a17b548d9739a3c073de2e90925e2d1d03e7df9a9ab97eec20
4
- data.tar.gz: 9050241fa762162d5f5512e453a9dbddf6225df1f2573fd99e6ef6617d1e7cc9
3
+ metadata.gz: 4111634b5db87bf8df4ca7861795d4a0c0722d4162cee98e2eab219dbb9736f9
4
+ data.tar.gz: 692d2360c1f5479fc6ede2deeb773305a24023d11810929fcc1212f1946217d8
5
5
  SHA512:
6
- metadata.gz: 98376659022b9357a37c8ad474f4f258aa77dd4357c3fef63e33b3e231e63d255aaefc28e98817daf207626a5126f38a847e0f8d725bd27ec7b81511622a3fdd
7
- data.tar.gz: fb462d27082f7f01c90d6c13ac83fbc62fe707a616c717e9f25c36f810b7954932d3ece4756ac70dfd07b2662e47a90621dc04445192b1d49c4e7d4d216e881b
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-6" do
5
- gem "activerecord", "~> 6"
6
- gem "rails", "~> 6"
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 "rails-7" do
11
- gem "activerecord", "~> 7"
12
- gem "rails", "~> 7"
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.6.1)
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.7.2)
13
- actionpack (= 7.0.7.2)
14
- activesupport (= 7.0.7.2)
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.7.2)
18
- actionpack (= 7.0.7.2)
19
- activejob (= 7.0.7.2)
20
- activerecord (= 7.0.7.2)
21
- activestorage (= 7.0.7.2)
22
- activesupport (= 7.0.7.2)
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.7.2)
28
- actionpack (= 7.0.7.2)
29
- actionview (= 7.0.7.2)
30
- activejob (= 7.0.7.2)
31
- activesupport (= 7.0.7.2)
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.7.2)
38
- actionview (= 7.0.7.2)
39
- activesupport (= 7.0.7.2)
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.7.2)
45
- actionpack (= 7.0.7.2)
46
- activerecord (= 7.0.7.2)
47
- activestorage (= 7.0.7.2)
48
- activesupport (= 7.0.7.2)
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.7.2)
52
- activesupport (= 7.0.7.2)
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.7.2)
58
- activesupport (= 7.0.7.2)
57
+ activejob (7.0.8)
58
+ activesupport (= 7.0.8)
59
59
  globalid (>= 0.3.6)
60
- activemodel (7.0.7.2)
61
- activesupport (= 7.0.7.2)
62
- activerecord (7.0.7.2)
63
- activemodel (= 7.0.7.2)
64
- activesupport (= 7.0.7.2)
65
- activestorage (7.0.7.2)
66
- actionpack (= 7.0.7.2)
67
- activejob (= 7.0.7.2)
68
- activerecord (= 7.0.7.2)
69
- activesupport (= 7.0.7.2)
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.7.2)
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.4)
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.3)
88
+ date (3.3.4)
89
89
  erubi (1.12.0)
90
- globalid (1.2.0)
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.21.3)
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.3.7)
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.1)
119
+ net-protocol (0.2.2)
120
120
  timeout
121
- net-smtp (0.3.3)
121
+ net-smtp (0.4.0.1)
122
122
  net-protocol
123
- nio4r (2.5.9)
124
- nokogiri (1.15.4-arm64-darwin)
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.1)
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.7.2)
138
- actioncable (= 7.0.7.2)
139
- actionmailbox (= 7.0.7.2)
140
- actionmailer (= 7.0.7.2)
141
- actionpack (= 7.0.7.2)
142
- actiontext (= 7.0.7.2)
143
- actionview (= 7.0.7.2)
144
- activejob (= 7.0.7.2)
145
- activemodel (= 7.0.7.2)
146
- activerecord (= 7.0.7.2)
147
- activestorage (= 7.0.7.2)
148
- activesupport (= 7.0.7.2)
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.7.2)
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.7.2)
159
- actionpack (= 7.0.7.2)
160
- activesupport (= 7.0.7.2)
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.72.0)
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.0)
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.11)
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", "~> 6"
9
- gem "rails", "~> 6"
8
+ gem "activerecord"
9
+ gem "rails"
10
10
  gem "sequel", "~> 5"
11
11
 
12
12
  gemspec path: "../"
@@ -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, WHITE, true)
98
+ color(name, :white, bold: true)
99
99
  else
100
- color(name, CYAN, true)
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
- RED
107
+ :red
108
108
  when /select .*for update/mi, /\A\s*lock/mi
109
- CYAN
109
+ :cyan
110
110
  when /\A\s*select/i
111
- CYAN
111
+ :cyan
112
112
  when /\A\s*insert/i
113
- GREEN
113
+ :green
114
114
  when /\A\s*update/i
115
- YELLOW
115
+ :yellow
116
116
  when /\A\s*delete/i
117
- RED
117
+ :red
118
118
  when /transaction\s*\Z/i, /\A\s*begin/i, /\A\s*commit/i
119
- BLUE
119
+ :blue
120
120
  else
121
- MAGENTA
121
+ :magenta
122
122
  end
123
123
  end
124
124
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Sequel
4
4
  module Rails
5
- VERSION = "0.6.2"
5
+ VERSION = "1.0.0"
6
6
  end
7
7
  end
@@ -179,7 +179,7 @@ db_namespace = namespace ns do
179
179
  # task restore: [:connection] do
180
180
  # end
181
181
 
182
- desc "Rolls back the last migration"
182
+ desc "Alias of #{ns}:migrate:down"
183
183
  task rollback: [:"migrate:down"]
184
184
 
185
185
  namespace :schema do
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.6.2
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: 2023-09-05 00:00:00.000000000 Z
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/rails_6.gemfile
162
- - gemfiles/rails_7.gemfile
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