schema_monkey 3.0.0 → 3.0.2
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 -8
- 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 +3 -1
- metadata +10 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 357fce715c1141644280aa6f4ed36f4809c682e3db5b97e0d9d9c199081efa74
|
4
|
+
data.tar.gz: 876bff20bc90e49aaa81c33bf1e1dd2c85765d35ddbaa1270375d04c28f6a0f8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8a708f2c3808f0581e4a65bdf37c4dfe1021d307629bf3d3d5c859608efba36058a49d9e5adfd87be789986328dbc4eedabf1e42824878119ada28fb0ee844df
|
7
|
+
data.tar.gz: b4bea23a1b32988a2154f4a36ab9514307f57a1fe94a118f81cac246353fa79ca5ff380392710a96485f19d178109825ca378a42c8578ac5205e88fdda7c2527
|
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,21 +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
|
-
*
|
244
|
-
*
|
245
|
-
* 2.1.
|
246
|
-
* 2.1.
|
247
|
-
* 2.1.
|
248
|
-
* 2.1.
|
249
|
-
* 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
|
250
257
|
|
251
258
|
|
252
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.
|
31
|
+
spec.add_development_dependency "schema_dev", "~> 4.2.0"
|
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.
|
4
|
+
version: 3.0.2
|
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-19 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.0
|
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.0
|
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
|