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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d7aaedf1c6bb83e610c4d3eadb1865573b5af96837134f0a39c71342437222dd
4
- data.tar.gz: 2b297eaa3a7243655237b1f8801ed6b3a3f01243c813089d7cc271095e7b8a79
3
+ metadata.gz: 86494a57b56623929a861997a0c44a3754ebca960251b82fab7011ae17e6ec50
4
+ data.tar.gz: aeafc058895eaede8ead68488b347fef3526edd9016675f160c14f1819593472
5
5
  SHA512:
6
- metadata.gz: 25ca80b43ee0113a9d240edc6e1fd3e93358d2e8f199db6203c9ce42692154bdb0007e40a4a9319e5b41bf3d60d512db4d09b8c7cdbba9e5ab97e9331284eb7e
7
- data.tar.gz: 8363fc61ac14ff4abff8f11394dcbdbe1ed291b19cf474b62482e631b788f017509c628f4fd0245a9c43787b0e78046b59ea3c455f420b5b566f4beb19b361c4
6
+ metadata.gz: 0e9b6ff3977a2f4337dae47d7a5c4f58a867813ba6330707297f7fe36adf89e571fb49310937329b0fa14807d6b57cbc885afeb273a1666de2aca262f2562076
7
+ data.tar.gz: a5cd2f5526617dc58f35f4b5d315629165aad7e6f42430b14a23de74f2a119bf1e4b17d50d8f2267fa451bb5199f3611283941f3b3d2b15493ff586319440bac
@@ -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
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  SimpleCov.configure do
2
4
  enable_coverage :branch
3
5
  add_filter '/spec/'
data/Gemfile CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  source "http://rubygems.org"
2
4
 
3
5
  gemspec
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.1 -- Use modware 1.0.1
243
- * 3.0.0 -- updated to support ruby 2.5+ only and rails 5.2 through 6.1
244
- * 2.1.6 -- stricter dependency on modware
245
- * 2.1.5 -- Remove dependency on its-it :( #12
246
- * 2.1.4 -- Loosen dependency to allow AR 5.0, and include it in the test matrix
247
- * 2.1.3 -- Guard against multiple insertion of modules.
248
- * 2.1.2 -- Insert self earlier; don't wait for connection adapter to be instantiated. Fixes #6 re `db:schema:load`
249
- * 2.1.1 -- Bug fix: don't choke if a module contains a BasicObject const
250
- * 2.1.0 -- First version to support all of schema_plus's needs for the 1.8.7 -> 2.0 upgrade
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
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'bundler'
2
4
  Bundler::GemHelper.install_tasks
3
5
 
@@ -0,0 +1,4 @@
1
+ base_gemfile = File.expand_path('../../Gemfile.base', __FILE__)
2
+ eval File.read(base_gemfile)
3
+
4
+ gem "activerecord", ">= 7.0", "< 7.1"
@@ -0,0 +1,10 @@
1
+ base_gemfile = File.expand_path('../Gemfile.base', __FILE__)
2
+ eval File.read(base_gemfile), binding, base_gemfile
3
+
4
+ platform :ruby do
5
+ gem "mysql2"
6
+ end
7
+
8
+ platform :jruby do
9
+ gem 'activerecord-jdbcmysql-adapter'
10
+ end
@@ -0,0 +1,10 @@
1
+ base_gemfile = File.expand_path('../Gemfile.base', __FILE__)
2
+ eval File.read(base_gemfile), binding, base_gemfile
3
+
4
+ platform :ruby do
5
+ gem "pg"
6
+ end
7
+
8
+ platform :jruby do
9
+ gem 'activerecord-jdbcpostgresql-adapter'
10
+ end
@@ -0,0 +1,10 @@
1
+ base_gemfile = File.expand_path('../Gemfile.base', __FILE__)
2
+ eval File.read(base_gemfile), binding, base_gemfile
3
+
4
+ platform :ruby do
5
+ gem "sqlite3"
6
+ end
7
+
8
+ platform :jruby do
9
+ gem 'activerecord-jdbcsqlite3-adapter', '>=1.3.0.beta2'
10
+ end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module SchemaMonkey
2
4
  module ActiveRecord
3
5
  module ConnectionAdapters
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module SchemaMonkey
2
4
  class Client
3
5
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module SchemaMonkey
2
4
  class MiddlewareError < Exception
3
5
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module SchemaMonkey
2
4
  module Module
3
5
  extend self
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module SchemaMonkey
2
4
 
3
5
  # The main manager for the monkey patches. Singleton instance
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module SchemaMonkey
2
4
  module Stack
3
5
  def self.insert(path, mod)
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module SchemaMonkey
2
- VERSION = "3.0.1"
4
+ VERSION = "3.0.2.beta.1"
3
5
  end
data/lib/schema_monkey.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'active_record'
2
4
  require 'active_support/core_ext/string'
3
5
  require 'modware'
data/schema_dev.yml CHANGED
@@ -2,10 +2,12 @@ ruby:
2
2
  - 2.5
3
3
  - 2.7
4
4
  - 3.0
5
+ - 3.1
5
6
  activerecord:
6
7
  - 5.2
7
8
  - 6.0
8
9
  - 6.1
10
+ - 7.0
9
11
  db:
10
12
  - mysql2
11
13
  - sqlite3
@@ -1,4 +1,5 @@
1
- # coding: utf-8
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.1"
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
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'spec_helper'
2
4
 
3
5
  $client_count = 0
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'spec_helper'
2
4
 
3
5
  describe "Connection" do
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'spec_helper'
2
4
 
3
5
  describe SchemaMonkey::Middleware do
data/spec/module_spec.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'spec_helper'
2
4
 
3
5
  describe SchemaMonkey::Module do
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'spec_helper'
2
4
 
3
5
  describe SchemaMonkey do
data/spec/spec_helper.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'simplecov'
2
4
  SimpleCov.start
3
5
 
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-04-15 00:00:00.000000000 Z
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.1
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.1
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: '4.1'
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: '4.1'
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: '0'
176
+ version: 1.3.1
173
177
  requirements: []
174
178
  rubygems_version: 3.0.8
175
179
  signing_key: