schema_monkey 3.0.1 → 3.0.2.beta.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/prs.yml +26 -0
- data/.simplecov +2 -0
- data/Gemfile +2 -0
- data/README.md +15 -9
- data/Rakefile +2 -0
- data/gemfiles/activerecord-7.0/Gemfile.base +4 -0
- data/gemfiles/activerecord-7.0/Gemfile.mysql2 +10 -0
- data/gemfiles/activerecord-7.0/Gemfile.postgresql +10 -0
- data/gemfiles/activerecord-7.0/Gemfile.sqlite3 +10 -0
- data/lib/schema_monkey/active_record.rb +2 -0
- data/lib/schema_monkey/client.rb +2 -0
- data/lib/schema_monkey/errors.rb +2 -0
- data/lib/schema_monkey/module.rb +2 -0
- data/lib/schema_monkey/monkey.rb +2 -0
- data/lib/schema_monkey/stack.rb +2 -0
- data/lib/schema_monkey/version.rb +3 -1
- data/lib/schema_monkey.rb +2 -0
- data/schema_dev.yml +2 -0
- data/schema_monkey.gemspec +4 -3
- data/spec/active_record_spec.rb +2 -0
- data/spec/connection_spec.rb +2 -0
- data/spec/middleware_spec.rb +2 -0
- data/spec/module_spec.rb +2 -0
- data/spec/schema_monkey_spec.rb +2 -0
- data/spec/spec_helper.rb +2 -0
- metadata +12 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 86494a57b56623929a861997a0c44a3754ebca960251b82fab7011ae17e6ec50
|
4
|
+
data.tar.gz: aeafc058895eaede8ead68488b347fef3526edd9016675f160c14f1819593472
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0e9b6ff3977a2f4337dae47d7a5c4f58a867813ba6330707297f7fe36adf89e571fb49310937329b0fa14807d6b57cbc885afeb273a1666de2aca262f2562076
|
7
|
+
data.tar.gz: a5cd2f5526617dc58f35f4b5d315629165aad7e6f42430b14a23de74f2a119bf1e4b17d50d8f2267fa451bb5199f3611283941f3b3d2b15493ff586319440bac
|
data/.github/workflows/prs.yml
CHANGED
@@ -22,10 +22,12 @@ jobs:
|
|
22
22
|
- '2.5'
|
23
23
|
- '2.7'
|
24
24
|
- '3.0'
|
25
|
+
- '3.1'
|
25
26
|
activerecord:
|
26
27
|
- '5.2'
|
27
28
|
- '6.0'
|
28
29
|
- '6.1'
|
30
|
+
- '7.0'
|
29
31
|
db:
|
30
32
|
- mysql2
|
31
33
|
- sqlite3
|
@@ -35,6 +37,10 @@ jobs:
|
|
35
37
|
exclude:
|
36
38
|
- ruby: '3.0'
|
37
39
|
activerecord: '5.2'
|
40
|
+
- ruby: '3.1'
|
41
|
+
activerecord: '5.2'
|
42
|
+
- ruby: '2.5'
|
43
|
+
activerecord: '7.0'
|
38
44
|
- db: skip
|
39
45
|
dbversion: skip
|
40
46
|
include:
|
@@ -62,6 +68,10 @@ jobs:
|
|
62
68
|
activerecord: '6.1'
|
63
69
|
db: postgresql
|
64
70
|
dbversion: '9.6'
|
71
|
+
- ruby: '2.7'
|
72
|
+
activerecord: '7.0'
|
73
|
+
db: postgresql
|
74
|
+
dbversion: '9.6'
|
65
75
|
- ruby: '3.0'
|
66
76
|
activerecord: '6.0'
|
67
77
|
db: postgresql
|
@@ -70,6 +80,22 @@ jobs:
|
|
70
80
|
activerecord: '6.1'
|
71
81
|
db: postgresql
|
72
82
|
dbversion: '9.6'
|
83
|
+
- ruby: '3.0'
|
84
|
+
activerecord: '7.0'
|
85
|
+
db: postgresql
|
86
|
+
dbversion: '9.6'
|
87
|
+
- ruby: '3.1'
|
88
|
+
activerecord: '6.0'
|
89
|
+
db: postgresql
|
90
|
+
dbversion: '9.6'
|
91
|
+
- ruby: '3.1'
|
92
|
+
activerecord: '6.1'
|
93
|
+
db: postgresql
|
94
|
+
dbversion: '9.6'
|
95
|
+
- ruby: '3.1'
|
96
|
+
activerecord: '7.0'
|
97
|
+
db: postgresql
|
98
|
+
dbversion: '9.6'
|
73
99
|
env:
|
74
100
|
BUNDLE_GEMFILE: "${{ github.workspace }}/gemfiles/activerecord-${{ matrix.activerecord }}/Gemfile.${{ matrix.db }}"
|
75
101
|
MYSQL_DB_HOST: 127.0.0.1
|
data/.simplecov
CHANGED
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -232,22 +232,28 @@ SchemaMonkey is tested on:
|
|
232
232
|
* ruby **2.7** with activerecord **5.2**, using **mysql2**, **sqlite3** or **postgresql:9.6**
|
233
233
|
* ruby **2.7** with activerecord **6.0**, using **mysql2**, **sqlite3** or **postgresql:9.6**
|
234
234
|
* ruby **2.7** with activerecord **6.1**, using **mysql2**, **sqlite3** or **postgresql:9.6**
|
235
|
+
* ruby **2.7** with activerecord **7.0**, using **mysql2**, **sqlite3** or **postgresql:9.6**
|
235
236
|
* ruby **3.0** with activerecord **6.0**, using **mysql2**, **sqlite3** or **postgresql:9.6**
|
236
237
|
* ruby **3.0** with activerecord **6.1**, using **mysql2**, **sqlite3** or **postgresql:9.6**
|
238
|
+
* ruby **3.0** with activerecord **7.0**, using **mysql2**, **sqlite3** or **postgresql:9.6**
|
239
|
+
* ruby **3.1** with activerecord **6.0**, using **mysql2**, **sqlite3** or **postgresql:9.6**
|
240
|
+
* ruby **3.1** with activerecord **6.1**, using **mysql2**, **sqlite3** or **postgresql:9.6**
|
241
|
+
* ruby **3.1** with activerecord **7.0**, using **mysql2**, **sqlite3** or **postgresql:9.6**
|
237
242
|
|
238
243
|
<!-- SCHEMA_DEV: MATRIX - end -->
|
239
244
|
|
240
245
|
## Release Notes
|
241
246
|
|
242
|
-
* 3.0.
|
243
|
-
* 3.0.
|
244
|
-
*
|
245
|
-
* 2.1.
|
246
|
-
* 2.1.
|
247
|
-
* 2.1.
|
248
|
-
* 2.1.
|
249
|
-
* 2.1.
|
250
|
-
* 2.1.
|
247
|
+
* **3.0.2** -- Add AR 7.0 and Ruby 3.1
|
248
|
+
* **3.0.1** -- Use modware 1.0.1
|
249
|
+
* **3.0.0** -- updated to support ruby 2.5+ only and rails 5.2 through 6.1
|
250
|
+
* **2.1.6** -- stricter dependency on modware
|
251
|
+
* **2.1.5** -- Remove dependency on its-it :( #12
|
252
|
+
* **2.1.4** -- Loosen dependency to allow AR 5.0, and include it in the test matrix
|
253
|
+
* **2.1.3** -- Guard against multiple insertion of modules.
|
254
|
+
* **2.1.2** -- Insert self earlier; don't wait for connection adapter to be instantiated. Fixes #6 re `db:schema:load`
|
255
|
+
* **2.1.1** -- Bug fix: don't choke if a module contains a BasicObject const
|
256
|
+
* **2.1.0** -- First version to support all of schema_plus's needs for the 1.8.7 -> 2.0 upgrade
|
251
257
|
|
252
258
|
|
253
259
|
## Development & Testing
|
data/Rakefile
CHANGED
data/lib/schema_monkey/client.rb
CHANGED
data/lib/schema_monkey/errors.rb
CHANGED
data/lib/schema_monkey/module.rb
CHANGED
data/lib/schema_monkey/monkey.rb
CHANGED
data/lib/schema_monkey/stack.rb
CHANGED
data/lib/schema_monkey.rb
CHANGED
data/schema_dev.yml
CHANGED
data/schema_monkey.gemspec
CHANGED
@@ -1,4 +1,5 @@
|
|
1
|
-
#
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
2
3
|
lib = File.expand_path('../lib', __FILE__)
|
3
4
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
5
|
require 'schema_monkey/version'
|
@@ -21,11 +22,11 @@ Gem::Specification.new do |spec|
|
|
21
22
|
spec.required_ruby_version = ">= 2.5.0"
|
22
23
|
|
23
24
|
spec.add_dependency "activerecord", ">= 5.2"
|
24
|
-
spec.add_dependency "modware", "~> 1.0.
|
25
|
+
spec.add_dependency "modware", "~> 1.0.2"
|
25
26
|
|
26
27
|
spec.add_development_dependency "bundler"
|
27
28
|
spec.add_development_dependency "rake", "~> 13.0"
|
28
29
|
spec.add_development_dependency "rspec", "~> 3.0"
|
29
30
|
spec.add_development_dependency "rspec-given", "~> 3.6"
|
30
|
-
spec.add_development_dependency "schema_dev", "~> 4.1"
|
31
|
+
spec.add_development_dependency "schema_dev", "~> 4.2.beta.1"
|
31
32
|
end
|
data/spec/active_record_spec.rb
CHANGED
data/spec/connection_spec.rb
CHANGED
data/spec/middleware_spec.rb
CHANGED
data/spec/module_spec.rb
CHANGED
data/spec/schema_monkey_spec.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: schema_monkey
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.1
|
4
|
+
version: 3.0.2.beta.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ronen barzel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-05-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 1.0.
|
33
|
+
version: 1.0.2
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 1.0.
|
40
|
+
version: 1.0.2
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: bundler
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -100,14 +100,14 @@ dependencies:
|
|
100
100
|
requirements:
|
101
101
|
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version:
|
103
|
+
version: 4.2.beta.1
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
108
|
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version:
|
110
|
+
version: 4.2.beta.1
|
111
111
|
description: Provides a module insertion protocol to facilitate adding features to
|
112
112
|
ActiveRecord
|
113
113
|
email:
|
@@ -136,6 +136,10 @@ files:
|
|
136
136
|
- gemfiles/activerecord-6.1/Gemfile.mysql2
|
137
137
|
- gemfiles/activerecord-6.1/Gemfile.postgresql
|
138
138
|
- gemfiles/activerecord-6.1/Gemfile.sqlite3
|
139
|
+
- gemfiles/activerecord-7.0/Gemfile.base
|
140
|
+
- gemfiles/activerecord-7.0/Gemfile.mysql2
|
141
|
+
- gemfiles/activerecord-7.0/Gemfile.postgresql
|
142
|
+
- gemfiles/activerecord-7.0/Gemfile.sqlite3
|
139
143
|
- lib/schema_monkey.rb
|
140
144
|
- lib/schema_monkey/active_record.rb
|
141
145
|
- lib/schema_monkey/client.rb
|
@@ -167,9 +171,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
167
171
|
version: 2.5.0
|
168
172
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
169
173
|
requirements:
|
170
|
-
- - "
|
174
|
+
- - ">"
|
171
175
|
- !ruby/object:Gem::Version
|
172
|
-
version:
|
176
|
+
version: 1.3.1
|
173
177
|
requirements: []
|
174
178
|
rubygems_version: 3.0.8
|
175
179
|
signing_key:
|