sequel-inline_schema 0.3.4 → 0.3.5
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.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/History.md +8 -0
- data/LICENSE.txt +1 -1
- data/README.md +4 -3
- data/lib/sequel/inline_schema.rb +1 -5
- data/lib/sequel/plugins/inline_schema.rb +4 -1
- data/spec/sequel/plugins/inline_migrations_spec.rb +1 -1
- data/spec/sequel/plugins/inline_schema_spec.rb +13 -6
- data/spec/spec_helper.rb +14 -4
- data.tar.gz.sig +0 -0
- metadata +31 -32
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3ff496ead590aa13b54673ff5f11b6a245eec2e85f1f3ba6fe9fea61f97dfc8d
|
4
|
+
data.tar.gz: b714e6d14cdf7aefee8f7897caff8dd7d99a0f124a3f346bc928976de1dc5f67
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 51c8f4c4c25f4af331c6dd0d4d4d650b8ec1ba9b2c4369c38a61fe44e24c67760f2ee17a93a608ef0560a98f6ddb1ba02ef7e3a252e9052fed43ab0924f4309a
|
7
|
+
data.tar.gz: 8a6612987fe3d7bebcbdf77590f4d573eb134e85e0082dd1d5abc04608fef7be85e12784196bc2af6ed73debf538d3f2b7a3783a02382f8cd2f02714b445fd88
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/History.md
CHANGED
@@ -1,6 +1,14 @@
|
|
1
1
|
# Release History for sequel-inline_schema
|
2
2
|
|
3
3
|
---
|
4
|
+
## v0.3.5 [2025-07-31] Michael Granger <ged@faeriemud.org>
|
5
|
+
|
6
|
+
Bugfixes:
|
7
|
+
|
8
|
+
- Update for Sequel >= 5.89's labeling of anonymous classes.
|
9
|
+
Thanks to mahlon@martini.nu for the patch.
|
10
|
+
|
11
|
+
|
4
12
|
## v0.3.4 [2021-11-08] Michael Granger <ged@faeriemud.org>
|
5
13
|
|
6
14
|
Improvements:
|
data/LICENSE.txt
CHANGED
data/README.md
CHANGED
@@ -47,10 +47,11 @@ mirror][github].
|
|
47
47
|
|
48
48
|
After checking out the source, run:
|
49
49
|
|
50
|
+
$ gem install -Ng
|
50
51
|
$ rake setup
|
51
52
|
|
52
|
-
This
|
53
|
-
|
53
|
+
This will install any missing dependencies, and do any other necessary setup to
|
54
|
+
start development.
|
54
55
|
|
55
56
|
|
56
57
|
## Authors
|
@@ -84,7 +85,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
84
85
|
|
85
86
|
The rest is licensed under the same terms, but:
|
86
87
|
|
87
|
-
Copyright (c) 2017-
|
88
|
+
Copyright (c) 2017-2025, Michael Granger
|
88
89
|
|
89
90
|
|
90
91
|
[sourcehut]: https://hg.sr.ht/~ged/Sequel-InlineSchema
|
data/lib/sequel/inline_schema.rb
CHANGED
@@ -1,5 +1,4 @@
|
|
1
1
|
# -*- ruby -*-
|
2
|
-
#encoding: utf-8
|
3
2
|
|
4
3
|
require 'sequel'
|
5
4
|
require 'sequel/plugins/inline_schema'
|
@@ -7,10 +6,7 @@ require 'sequel/plugins/inline_schema'
|
|
7
6
|
module Sequel::InlineSchema
|
8
7
|
|
9
8
|
# Package version
|
10
|
-
VERSION = '0.3.
|
11
|
-
|
12
|
-
# Version control revision
|
13
|
-
REVISION = %q$Revision$
|
9
|
+
VERSION = '0.3.5'
|
14
10
|
|
15
11
|
end # Sequel::InlineSchema
|
16
12
|
|
@@ -349,7 +349,10 @@ module Sequel::Plugins::InlineSchema
|
|
349
349
|
self.db.log_info " searching for unbacked model classes..."
|
350
350
|
|
351
351
|
self.tsort.find_all do |modelclass|
|
352
|
-
next unless modelclass.name &&
|
352
|
+
next unless modelclass.name &&
|
353
|
+
modelclass.name != '' &&
|
354
|
+
modelclass.name !~ /^Sequel::_Model/ &&
|
355
|
+
!modelclass.is_view_class?
|
353
356
|
!modelclass.table_exists?
|
354
357
|
end.uniq( &:table_name )
|
355
358
|
end
|
@@ -7,7 +7,7 @@ require 'sequel/model'
|
|
7
7
|
require 'sequel/inline_schema'
|
8
8
|
require 'sequel/plugins/inline_migrations'
|
9
9
|
|
10
|
-
describe Sequel::Plugins::InlineMigrations do
|
10
|
+
RSpec.describe Sequel::Plugins::InlineMigrations do
|
11
11
|
|
12
12
|
let( :db ) { Sequel.connect('mock://postgres', logger: Loggability[Sequel::InlineSchema]) }
|
13
13
|
|
@@ -1,5 +1,4 @@
|
|
1
1
|
#!/usr/bin/env rspec -cfd
|
2
|
-
#encoding: utf-8
|
3
2
|
|
4
3
|
require_relative '../../spec_helper'
|
5
4
|
|
@@ -11,7 +10,7 @@ require 'rspec'
|
|
11
10
|
require 'sequel/plugins/inline_schema'
|
12
11
|
|
13
12
|
|
14
|
-
describe Sequel::Plugins::InlineSchema do
|
13
|
+
RSpec.describe Sequel::Plugins::InlineSchema do
|
15
14
|
|
16
15
|
let( :db ) do
|
17
16
|
Sequel.mock( host: 'postgres', columns: nil, logger: Loggability.logger )
|
@@ -137,7 +136,7 @@ describe Sequel::Plugins::InlineSchema do
|
|
137
136
|
model_class.create_table
|
138
137
|
|
139
138
|
expect( db.sqls ).to include(
|
140
|
-
|
139
|
+
a_string_matching( /CREATE TABLE "#{table}"/i )
|
141
140
|
)
|
142
141
|
end
|
143
142
|
|
@@ -153,7 +152,7 @@ describe Sequel::Plugins::InlineSchema do
|
|
153
152
|
model_class.create_table!
|
154
153
|
|
155
154
|
expect( db.sqls ).to include(
|
156
|
-
|
155
|
+
a_string_matching( /CREATE TABLE "#{table}"/i )
|
157
156
|
)
|
158
157
|
end
|
159
158
|
|
@@ -169,7 +168,7 @@ describe Sequel::Plugins::InlineSchema do
|
|
169
168
|
model_class.create_table?
|
170
169
|
|
171
170
|
expect( db.sqls ).to include(
|
172
|
-
|
171
|
+
a_string_matching( /CREATE TABLE "#{table}"/i )
|
173
172
|
)
|
174
173
|
end
|
175
174
|
|
@@ -182,7 +181,7 @@ describe Sequel::Plugins::InlineSchema do
|
|
182
181
|
end
|
183
182
|
|
184
183
|
expect( db.sqls ).to include(
|
185
|
-
|
184
|
+
a_string_matching( /CREATE TABLE "#{table}"/i )
|
186
185
|
)
|
187
186
|
end
|
188
187
|
|
@@ -301,6 +300,14 @@ describe Sequel::Plugins::InlineSchema do
|
|
301
300
|
mclass
|
302
301
|
end
|
303
302
|
|
303
|
+
let!( :sequel_anon_class ) do
|
304
|
+
mclass = Class.new( base_class ) do
|
305
|
+
def self::name; "Sequel::_Model(:anon)"; end
|
306
|
+
end
|
307
|
+
mclass.set_dataset( db[:anon] )
|
308
|
+
mclass
|
309
|
+
end
|
310
|
+
|
304
311
|
let!( :artist_class ) do
|
305
312
|
mclass = Class.new( base_class ) do
|
306
313
|
def self::name; "Artist"; end
|
data/spec/spec_helper.rb
CHANGED
@@ -1,5 +1,4 @@
|
|
1
1
|
# -*- ruby -*-
|
2
|
-
#encoding: utf-8
|
3
2
|
|
4
3
|
require 'simplecov' if ENV['COVERAGE']
|
5
4
|
|
@@ -11,13 +10,24 @@ require 'loggability/spechelpers'
|
|
11
10
|
|
12
11
|
# Mock with RSpec
|
13
12
|
RSpec.configure do |config|
|
14
|
-
config.run_all_when_everything_filtered = true
|
15
|
-
config.filter_run :focus
|
16
|
-
config.order = 'random'
|
17
13
|
config.mock_with( :rspec ) do |mock|
|
18
14
|
mock.syntax = :expect
|
19
15
|
end
|
20
16
|
|
17
|
+
config.disable_monkey_patching!
|
18
|
+
config.example_status_persistence_file_path = "spec/.status"
|
19
|
+
config.filter_run :focus
|
20
|
+
config.filter_run_when_matching :focus
|
21
|
+
config.order = :random
|
22
|
+
config.profile_examples = 5
|
23
|
+
config.run_all_when_everything_filtered = true
|
24
|
+
config.shared_context_metadata_behavior = :apply_to_host_groups
|
25
|
+
config.warnings = true
|
26
|
+
|
27
|
+
config.expect_with( :rspec ) do |expectations|
|
28
|
+
expectations.include_chain_clauses_in_custom_matcher_descriptions = true
|
29
|
+
end
|
30
|
+
|
21
31
|
config.include( Loggability::SpecHelpers )
|
22
32
|
end
|
23
33
|
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,39 +1,40 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sequel-inline_schema
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Granger
|
8
|
-
autorequire:
|
9
8
|
bindir: bin
|
10
9
|
cert_chain:
|
11
10
|
- |
|
12
11
|
-----BEGIN CERTIFICATE-----
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
12
|
+
MIIEbDCCAtSgAwIBAgIBATANBgkqhkiG9w0BAQsFADA+MQwwCgYDVQQDDANnZWQx
|
13
|
+
GTAXBgoJkiaJk/IsZAEZFglGYWVyaWVNVUQxEzARBgoJkiaJk/IsZAEZFgNvcmcw
|
14
|
+
HhcNMjUwMTAxMDMzMTA5WhcNMjYwMTAxMDMzMTA5WjA+MQwwCgYDVQQDDANnZWQx
|
15
|
+
GTAXBgoJkiaJk/IsZAEZFglGYWVyaWVNVUQxEzARBgoJkiaJk/IsZAEZFgNvcmcw
|
16
|
+
ggGiMA0GCSqGSIb3DQEBAQUAA4IBjwAwggGKAoIBgQC/JWGRHO+USzR97vXjkFgt
|
17
|
+
83qeNf2KHkcvrRTSnR64i6um/ziin0I0oX23H7VYrDJC9A/uoUa5nG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w3aOxxdMQyyRxaZVv3eWE5RimQI7T0TUaxPngtS33ByMZjTeidxi
|
33
|
+
ESIUEPVXoBCkFgLW1EVlBb+rG7WLYod4eVll4tKA42Bi2Ju90tqiJ1YQiyuRfCnp
|
34
|
+
8qAqdfV+4u6Huu1KzAuDQCheyEyISsLST37sU/irV3czV6BiFipWag1XiJciRT3A
|
35
|
+
wZqCfTNVHTdtsCbfdA1DsA3RdG2iEH3TOHzv1Rqzqh4=
|
35
36
|
-----END CERTIFICATE-----
|
36
|
-
date:
|
37
|
+
date: 2025-07-31 00:00:00.000000000 Z
|
37
38
|
dependencies:
|
38
39
|
- !ruby/object:Gem::Dependency
|
39
40
|
name: sequel
|
@@ -92,7 +93,7 @@ dependencies:
|
|
92
93
|
- !ruby/object:Gem::Version
|
93
94
|
version: '0.13'
|
94
95
|
- !ruby/object:Gem::Dependency
|
95
|
-
name: rdoc-generator-
|
96
|
+
name: rdoc-generator-sixfish
|
96
97
|
requirement: !ruby/object:Gem::Requirement
|
97
98
|
requirements:
|
98
99
|
- - "~>"
|
@@ -105,8 +106,8 @@ dependencies:
|
|
105
106
|
- - "~>"
|
106
107
|
- !ruby/object:Gem::Version
|
107
108
|
version: '0.3'
|
108
|
-
description: This is a set of plugins for Sequel for declaring a model
|
109
|
-
|
109
|
+
description: This is a set of plugins for Sequel for declaring a model’s table schema
|
110
|
+
and any migrations in the class itself (similar to the legacy schema plugin).
|
110
111
|
email:
|
111
112
|
- ged@faeriemud.org
|
112
113
|
executables: []
|
@@ -135,7 +136,6 @@ metadata:
|
|
135
136
|
changelog_uri: http://deveiate.org/code/sequel-inline_schema/History_md.html
|
136
137
|
source_uri: https://hg.sr.ht/~ged/Sequel-InlineSchema/browse
|
137
138
|
bug_tracker_uri: https://todo.sr.ht/~ged/Sequel-InlineSchema/browse
|
138
|
-
post_install_message:
|
139
139
|
rdoc_options: []
|
140
140
|
require_paths:
|
141
141
|
- lib
|
@@ -150,9 +150,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
150
150
|
- !ruby/object:Gem::Version
|
151
151
|
version: '0'
|
152
152
|
requirements: []
|
153
|
-
rubygems_version: 3.
|
154
|
-
signing_key:
|
153
|
+
rubygems_version: 3.6.9
|
155
154
|
specification_version: 4
|
156
|
-
summary: This is a set of plugins for Sequel for declaring a model
|
155
|
+
summary: This is a set of plugins for Sequel for declaring a model’s table schema
|
157
156
|
and any migrations in the class itself (similar to the legacy schema plugin).
|
158
157
|
test_files: []
|
metadata.gz.sig
CHANGED
Binary file
|