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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5f472b3119c986020f3dcecab118b2985e6aae903e0252a8aa6c987086525688
4
- data.tar.gz: 98e02125e66c86ae93e7754ef6c638476a51d25938053c19b03330302cf0477b
3
+ metadata.gz: 3ff496ead590aa13b54673ff5f11b6a245eec2e85f1f3ba6fe9fea61f97dfc8d
4
+ data.tar.gz: b714e6d14cdf7aefee8f7897caff8dd7d99a0f124a3f346bc928976de1dc5f67
5
5
  SHA512:
6
- metadata.gz: 749fbeba674e2dcf1ce3949336c13d729a2487a4d3d73974963b9e8c9015b08f92ee57babcd5d3094804128509744346bee4b263e65ccacda66b2e00ca91bd24
7
- data.tar.gz: f4089b9ae88912674fd4e4387c3571f1a542c66424c5e55216e2c38cb52dfca8ae749cc0b7eafe3f0bce0e86cf1300f95960370bc3d20a0ec282037d5c931118
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
@@ -22,5 +22,5 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22
22
 
23
23
  The rest is licensed under the same terms, but:
24
24
 
25
- Copyright (c) 2017, Michael Granger
25
+ Copyright (c) 2017-2025, Michael Granger
26
26
 
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 task will install any missing dependencies, and do any other necessary
53
- setup to start development.
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-2020, Michael Granger
88
+ Copyright (c) 2017-2025, Michael Granger
88
89
 
89
90
 
90
91
  [sourcehut]: https://hg.sr.ht/~ged/Sequel-InlineSchema
@@ -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.4'
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 && modelclass.name != '' && !modelclass.is_view_class?
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
- %{CREATE TABLE "#{table}" ("id" serial PRIMARY KEY, "name" text, "age" integer)}
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
- %{CREATE TABLE "#{table}" ("id" serial PRIMARY KEY, "name" text, "age" integer)}
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
- %{CREATE TABLE "#{table}" ("id" serial PRIMARY KEY, "name" text, "age" integer)}
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
- %{CREATE TABLE "#{table}" ("id" serial PRIMARY KEY, "name" text, "age" integer)}
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
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
- MIID+DCCAmCgAwIBAgIBAzANBgkqhkiG9w0BAQsFADAiMSAwHgYDVQQDDBdnZWQv
14
- REM9RmFlcmllTVVEL0RDPW9yZzAeFw0yMDEyMjQyMDU1MjlaFw0yMTEyMjQyMDU1
15
- MjlaMCIxIDAeBgNVBAMMF2dlZC9EQz1GYWVyaWVNVUQvREM9b3JnMIIBojANBgkq
16
- hkiG9w0BAQEFAAOCAY8AMIIBigKCAYEAvyVhkRzvlEs0fe7145BYLfN6njX9ih5H
17
- L60U0p0euIurpv84op9CNKF9tx+1WKwyQvQP7qFGuZxkSUuWcP/sFhDXL1lWUuIl
18
- M4uHbGCRmOshDrF4dgnBeOvkHr1fIhPlJm5FO+Vew8tSQmlDsosxLUx+VB7DrVFO
19
- 5PU2AEbf04GGSrmqADGWXeaslaoRdb1fu/0M5qfPTRn5V39sWD9umuDAF9qqil/x
20
- Sl6phTvgBrG8GExHbNZpLARd3xrBYLEFsX7RvBn2UPfgsrtvpdXjsHGfpT3IPN+B
21
- vQ66lts4alKC69TE5cuKasWBm+16A4aEe3XdZBRNmtOu/g81gvwA7fkJHKllJuaI
22
- dXzdHqq+zbGZVSQ7pRYHYomD0IiDe1DbIouFnPWmagaBnGHwXkDT2bKKP+s2v21m
23
- ozilJg4aar2okb/RA6VS87o+d7g6LpDDMMQjH4G9OPnJENLdhu8KnPw/ivSVvQw7
24
- N2I4L/ZOIe2DIVuYH7aLHfjZDQv/mNgpAgMBAAGjOTA3MAkGA1UdEwQCMAAwCwYD
25
- VR0PBAQDAgSwMB0GA1UdDgQWBBRyjf55EbrHagiRLqt5YAd3yb8k4DANBgkqhkiG
26
- 9w0BAQsFAAOCAYEAMYegZanJi8zq7QKPT7wqXefX4C88I5JWeBHR3PvvWK0CwyMV
27
- peyiu5I13w/lYX+HUZjE4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TIFICATE-----
36
- date: 2021-11-08 00:00:00.000000000 Z
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-fivefish
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&#39;s table
109
- schema and any migrations in the class itself (similar to the legacy schema plugin).
109
+ description: This is a set of plugins for Sequel for declaring a models 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.2.22
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&#39;s table schema
155
+ summary: This is a set of plugins for Sequel for declaring a models 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