sequel-inline_schema 0.3.3 → 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: 8d62b937115b61c4fdbf02a67439eac074d97a480807c58a39fe3986ad9871b1
4
- data.tar.gz: 179d308737aaceb2a1e3021087745c13ec5f38cd9f51baf111d0d4c59df38d14
3
+ metadata.gz: 3ff496ead590aa13b54673ff5f11b6a245eec2e85f1f3ba6fe9fea61f97dfc8d
4
+ data.tar.gz: b714e6d14cdf7aefee8f7897caff8dd7d99a0f124a3f346bc928976de1dc5f67
5
5
  SHA512:
6
- metadata.gz: 3ae55f495312766e40bdec536da6d05b2fb8830b37080c8ea983cdd2e04b98675f4fb9e18dd3e1b11420d30e4d2108b2c2bb135e96a261854da108c736dd985c
7
- data.tar.gz: 3a8192baa58acac959e36e42fb68d2dd166a03ccc8711b4f0b8eddbd8fc69a068501e9b71efb5cf978c572893b88d248670cf5c59842fa81fa2319c728bffecf
6
+ metadata.gz: 51c8f4c4c25f4af331c6dd0d4d4d650b8ec1ba9b2c4369c38a61fe44e24c67760f2ee17a93a608ef0560a98f6ddb1ba02ef7e3a252e9052fed43ab0924f4309a
7
+ data.tar.gz: 8a6612987fe3d7bebcbdf77590f4d573eb134e85e0082dd1d5abc04608fef7be85e12784196bc2af6ed73debf538d3f2b7a3783a02382f8cd2f02714b445fd88
checksums.yaml.gz.sig CHANGED
Binary file
data/History.md CHANGED
@@ -1,6 +1,20 @@
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
+
12
+ ## v0.3.4 [2021-11-08] Michael Granger <ged@faeriemud.org>
13
+
14
+ Improvements:
15
+
16
+ - Update for Ruby 3, update gem-signing cert.
17
+
4
18
 
5
19
  ## v0.3.3 [2020-02-24] Michael Granger <ged@faeriemud.org>
6
20
 
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
@@ -9,6 +9,9 @@ github
9
9
  docs
10
10
  : http://deveiate.org/code/sequel-inline_schema
11
11
 
12
+ code
13
+ : https://hg.sr.ht/~ged/Sequel-InlineSchema/browse
14
+
12
15
 
13
16
  ## Description
14
17
 
@@ -44,10 +47,11 @@ mirror][github].
44
47
 
45
48
  After checking out the source, run:
46
49
 
50
+ $ gem install -Ng
47
51
  $ rake setup
48
52
 
49
- This task will install any missing dependencies, and do any other necessary
50
- setup to start development.
53
+ This will install any missing dependencies, and do any other necessary setup to
54
+ start development.
51
55
 
52
56
 
53
57
  ## Authors
@@ -81,7 +85,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
81
85
 
82
86
  The rest is licensed under the same terms, but:
83
87
 
84
- Copyright (c) 2017-2020, Michael Granger
88
+ Copyright (c) 2017-2025, Michael Granger
85
89
 
86
90
 
87
91
  [sourcehut]: https://hg.sr.ht/~ged/Sequel-InlineSchema
data/Rakefile CHANGED
@@ -4,6 +4,5 @@ require 'rake/deveiate'
4
4
 
5
5
  Rake::DevEiate.setup( 'sequel-inline_schema' ) do |project|
6
6
  project.publish_to = 'deveiate:/usr/local/www/public/code'
7
- project.required_ruby_version = '~> 2.5'
8
7
  end
9
8
 
@@ -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.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 && 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,40 +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.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
- MIIENDCCApygAwIBAgIBATANBgkqhkiG9w0BAQsFADAiMSAwHgYDVQQDDBdnZWQv
14
- REM9RmFlcmllTVVEL0RDPW9yZzAeFw0xOTEwMDkwMDM2NTdaFw0yMDEwMDgwMDM2
15
- NTdaMCIxIDAeBgNVBAMMF2dlZC9EQz1GYWVyaWVNVUQvREM9b3JnMIIBojANBgkq
16
- hkiG9w0BAQEFAAOCAY8AMIIBigKCAYEAvyVhkRzvlEs0fe7145BYLfN6njX9ih5H
17
- L60U0p0euIurpv84op9CNKF9tx+1WKwyQvQP7qFGuZxkSUuWcP/sFhDXL1lWUuIl
18
- M4uHbGCRmOshDrF4dgnBeOvkHr1fIhPlJm5FO+Vew8tSQmlDsosxLUx+VB7DrVFO
19
- 5PU2AEbf04GGSrmqADGWXeaslaoRdb1fu/0M5qfPTRn5V39sWD9umuDAF9qqil/x
20
- Sl6phTvgBrG8GExHbNZpLARd3xrBYLEFsX7RvBn2UPfgsrtvpdXjsHGfpT3IPN+B
21
- vQ66lts4alKC69TE5cuKasWBm+16A4aEe3XdZBRNmtOu/g81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pZ8nb2XyKocSK7TfgDhcyr0V4H2MPxwK9SWYjGGh8z9z9HmT0i3PyX
30
+ fXOSzzEoG6u26HIOg0nxSpitEjiAHBekQxy9ka5NuQbxoxMg+eIHU4rU9IUhu0Rf
31
+ wl4wuvPVE3UQK0v0uqT6rJukEKQ1iNgK5R8klgEIv79XhQPgTkMt31FGfrwOp6HB
32
+ OE0HMwOwY9B0w3aOxxdMQyyRxaZVv3eWE5RimQI7T0TUaxPngtS33ByMZjTeidxi
33
+ ESIUEPVXoBCkFgLW1EVlBb+rG7WLYod4eVll4tKA42Bi2Ju90tqiJ1YQiyuRfCnp
34
+ 8qAqdfV+4u6Huu1KzAuDQCheyEyISsLST37sU/irV3czV6BiFipWag1XiJciRT3A
35
+ wZqCfTNVHTdtsCbfdA1DsA3RdG2iEH3TOHzv1Rqzqh4=
36
36
  -----END CERTIFICATE-----
37
- date: 2020-02-24 00:00:00.000000000 Z
37
+ date: 2025-07-31 00:00:00.000000000 Z
38
38
  dependencies:
39
39
  - !ruby/object:Gem::Dependency
40
40
  name: sequel
@@ -42,14 +42,14 @@ dependencies:
42
42
  requirements:
43
43
  - - "~>"
44
44
  - !ruby/object:Gem::Version
45
- version: '5.0'
45
+ version: '5.50'
46
46
  type: :runtime
47
47
  prerelease: false
48
48
  version_requirements: !ruby/object:Gem::Requirement
49
49
  requirements:
50
50
  - - "~>"
51
51
  - !ruby/object:Gem::Version
52
- version: '5.0'
52
+ version: '5.50'
53
53
  - !ruby/object:Gem::Dependency
54
54
  name: pg
55
55
  requirement: !ruby/object:Gem::Requirement
@@ -70,14 +70,14 @@ dependencies:
70
70
  requirements:
71
71
  - - "~>"
72
72
  - !ruby/object:Gem::Version
73
- version: '0.5'
73
+ version: '0.19'
74
74
  type: :development
75
75
  prerelease: false
76
76
  version_requirements: !ruby/object:Gem::Requirement
77
77
  requirements:
78
78
  - - "~>"
79
79
  - !ruby/object:Gem::Version
80
- version: '0.5'
80
+ version: '0.19'
81
81
  - !ruby/object:Gem::Dependency
82
82
  name: simplecov
83
83
  requirement: !ruby/object:Gem::Requirement
@@ -93,7 +93,7 @@ dependencies:
93
93
  - !ruby/object:Gem::Version
94
94
  version: '0.13'
95
95
  - !ruby/object:Gem::Dependency
96
- name: rdoc-generator-fivefish
96
+ name: rdoc-generator-sixfish
97
97
  requirement: !ruby/object:Gem::Requirement
98
98
  requirements:
99
99
  - - "~>"
@@ -106,9 +106,8 @@ dependencies:
106
106
  - - "~>"
107
107
  - !ruby/object:Gem::Version
108
108
  version: '0.3'
109
- description: |-
110
- This is a set of plugins for Sequel for declaring a model's table schema and
111
- any migrations in the class itself (similar to the legacy <code>schema</code> plugin).
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).
112
111
  email:
113
112
  - ged@faeriemud.org
114
113
  executables: []
@@ -131,26 +130,28 @@ files:
131
130
  homepage: https://hg.sr.ht/~ged/Sequel-InlineSchema
132
131
  licenses:
133
132
  - BSD-3-Clause
134
- metadata: {}
135
- post_install_message:
133
+ metadata:
134
+ homepage_uri: https://hg.sr.ht/~ged/Sequel-InlineSchema
135
+ documentation_uri: http://deveiate.org/code/sequel-inline_schema
136
+ changelog_uri: http://deveiate.org/code/sequel-inline_schema/History_md.html
137
+ source_uri: https://hg.sr.ht/~ged/Sequel-InlineSchema/browse
138
+ bug_tracker_uri: https://todo.sr.ht/~ged/Sequel-InlineSchema/browse
136
139
  rdoc_options: []
137
140
  require_paths:
138
141
  - lib
139
142
  required_ruby_version: !ruby/object:Gem::Requirement
140
143
  requirements:
141
- - - "~>"
144
+ - - ">="
142
145
  - !ruby/object:Gem::Version
143
- version: '2.5'
146
+ version: '0'
144
147
  required_rubygems_version: !ruby/object:Gem::Requirement
145
148
  requirements:
146
149
  - - ">="
147
150
  - !ruby/object:Gem::Version
148
151
  version: '0'
149
152
  requirements: []
150
- rubygems_version: 3.1.2
151
- signing_key:
153
+ rubygems_version: 3.6.9
152
154
  specification_version: 4
153
- summary: This is a set of plugins for Sequel for declaring a model's table schema
154
- and any migrations in the class itself (similar to the legacy <code>schema</code>
155
- plugin).
155
+ summary: This is a set of plugins for Sequel for declaring a models table schema
156
+ and any migrations in the class itself (similar to the legacy schema plugin).
156
157
  test_files: []
metadata.gz.sig CHANGED
Binary file