schema_plus_views 1.0.0 → 1.0.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: b6dc17514d0000f4bdfee9c6840afec09ce47fa0635d89cefbc82667f197b904
4
- data.tar.gz: b12b99196f5d28b120e97aae3bd7bfc698a7e004439b6e0538ffbc2c079ecd13
3
+ metadata.gz: 8488b18b4bda00ae806bf8dcd52367e6f59b22b2dd5e01cf34ae1749aed7a067
4
+ data.tar.gz: 832ccae549c83a189933034e2e8eb28f7d1ff7d4a1fd0306a125a09ee3401cff
5
5
  SHA512:
6
- metadata.gz: 03666f035ea72b9f03a6ff2d20321adb8a1adb7e0c13682229e3f9f52e7c94876408e9597eb4c42c8b6eac5ae6c046c826d3cc7daa8ed2ab4b4afbf00326ba82
7
- data.tar.gz: 192ccf942b56d1d09409895d7b9c9eb9693ec30fa497ddad80ec5114c0090f4d13a6db37ea070b3df124bd1e65af5d8069a2fcf76b56206aa0436745568a8d4f
6
+ metadata.gz: 0e88b4ffe5417e860f3fb1d1f6a07aeff83352f976d75a0b3ffbb46d90d27b58e19527a802d25ea0f29536cdd138c121157c7272364003ee21b474d2f8677fad
7
+ data.tar.gz: 2b1d72485341f1ad9bf464540a9222cfb3d3c231c976323a8bd7110038f22268361e4fd8088532190f41267a61ca32b2d7d3aa94976b834e447d4909abfd83db
@@ -22,9 +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'
29
+ - '6.1'
30
+ - '7.0'
28
31
  db:
29
32
  - mysql2
30
33
  - sqlite3
@@ -34,6 +37,10 @@ jobs:
34
37
  exclude:
35
38
  - ruby: '3.0'
36
39
  activerecord: '5.2'
40
+ - ruby: '3.1'
41
+ activerecord: '5.2'
42
+ - ruby: '2.5'
43
+ activerecord: '7.0'
37
44
  - db: skip
38
45
  dbversion: skip
39
46
  include:
@@ -69,6 +76,22 @@ jobs:
69
76
  activerecord: '6.0'
70
77
  db: postgresql
71
78
  dbversion: '12'
79
+ - ruby: '2.5'
80
+ activerecord: '6.1'
81
+ db: postgresql
82
+ dbversion: '9.6'
83
+ - ruby: '2.5'
84
+ activerecord: '6.1'
85
+ db: postgresql
86
+ dbversion: '10'
87
+ - ruby: '2.5'
88
+ activerecord: '6.1'
89
+ db: postgresql
90
+ dbversion: '11'
91
+ - ruby: '2.5'
92
+ activerecord: '6.1'
93
+ db: postgresql
94
+ dbversion: '12'
72
95
  - ruby: '2.7'
73
96
  activerecord: '5.2'
74
97
  db: postgresql
@@ -101,6 +124,38 @@ jobs:
101
124
  activerecord: '6.0'
102
125
  db: postgresql
103
126
  dbversion: '12'
127
+ - ruby: '2.7'
128
+ activerecord: '6.1'
129
+ db: postgresql
130
+ dbversion: '9.6'
131
+ - ruby: '2.7'
132
+ activerecord: '6.1'
133
+ db: postgresql
134
+ dbversion: '10'
135
+ - ruby: '2.7'
136
+ activerecord: '6.1'
137
+ db: postgresql
138
+ dbversion: '11'
139
+ - ruby: '2.7'
140
+ activerecord: '6.1'
141
+ db: postgresql
142
+ dbversion: '12'
143
+ - ruby: '2.7'
144
+ activerecord: '7.0'
145
+ db: postgresql
146
+ dbversion: '9.6'
147
+ - ruby: '2.7'
148
+ activerecord: '7.0'
149
+ db: postgresql
150
+ dbversion: '10'
151
+ - ruby: '2.7'
152
+ activerecord: '7.0'
153
+ db: postgresql
154
+ dbversion: '11'
155
+ - ruby: '2.7'
156
+ activerecord: '7.0'
157
+ db: postgresql
158
+ dbversion: '12'
104
159
  - ruby: '3.0'
105
160
  activerecord: '6.0'
106
161
  db: postgresql
@@ -117,6 +172,86 @@ jobs:
117
172
  activerecord: '6.0'
118
173
  db: postgresql
119
174
  dbversion: '12'
175
+ - ruby: '3.0'
176
+ activerecord: '6.1'
177
+ db: postgresql
178
+ dbversion: '9.6'
179
+ - ruby: '3.0'
180
+ activerecord: '6.1'
181
+ db: postgresql
182
+ dbversion: '10'
183
+ - ruby: '3.0'
184
+ activerecord: '6.1'
185
+ db: postgresql
186
+ dbversion: '11'
187
+ - ruby: '3.0'
188
+ activerecord: '6.1'
189
+ db: postgresql
190
+ dbversion: '12'
191
+ - ruby: '3.0'
192
+ activerecord: '7.0'
193
+ db: postgresql
194
+ dbversion: '9.6'
195
+ - ruby: '3.0'
196
+ activerecord: '7.0'
197
+ db: postgresql
198
+ dbversion: '10'
199
+ - ruby: '3.0'
200
+ activerecord: '7.0'
201
+ db: postgresql
202
+ dbversion: '11'
203
+ - ruby: '3.0'
204
+ activerecord: '7.0'
205
+ db: postgresql
206
+ dbversion: '12'
207
+ - ruby: '3.1'
208
+ activerecord: '6.0'
209
+ db: postgresql
210
+ dbversion: '9.6'
211
+ - ruby: '3.1'
212
+ activerecord: '6.0'
213
+ db: postgresql
214
+ dbversion: '10'
215
+ - ruby: '3.1'
216
+ activerecord: '6.0'
217
+ db: postgresql
218
+ dbversion: '11'
219
+ - ruby: '3.1'
220
+ activerecord: '6.0'
221
+ db: postgresql
222
+ dbversion: '12'
223
+ - ruby: '3.1'
224
+ activerecord: '6.1'
225
+ db: postgresql
226
+ dbversion: '9.6'
227
+ - ruby: '3.1'
228
+ activerecord: '6.1'
229
+ db: postgresql
230
+ dbversion: '10'
231
+ - ruby: '3.1'
232
+ activerecord: '6.1'
233
+ db: postgresql
234
+ dbversion: '11'
235
+ - ruby: '3.1'
236
+ activerecord: '6.1'
237
+ db: postgresql
238
+ dbversion: '12'
239
+ - ruby: '3.1'
240
+ activerecord: '7.0'
241
+ db: postgresql
242
+ dbversion: '9.6'
243
+ - ruby: '3.1'
244
+ activerecord: '7.0'
245
+ db: postgresql
246
+ dbversion: '10'
247
+ - ruby: '3.1'
248
+ activerecord: '7.0'
249
+ db: postgresql
250
+ dbversion: '11'
251
+ - ruby: '3.1'
252
+ activerecord: '7.0'
253
+ db: postgresql
254
+ dbversion: '12'
120
255
  env:
121
256
  BUNDLE_GEMFILE: "${{ github.workspace }}/gemfiles/activerecord-${{ matrix.activerecord }}/Gemfile.${{ matrix.db }}"
122
257
  MYSQL_DB_HOST: 127.0.0.1
data/README.md CHANGED
@@ -29,9 +29,17 @@ SchemaPlus::Views is tested on:
29
29
  <!-- These lines are auto-generated by schema_dev based on schema_dev.yml -->
30
30
  * ruby **2.5** with activerecord **5.2**, using **mysql2**, **sqlite3**, **postgresql:9.6**, **postgresql:10**, **postgresql:11** or **postgresql:12**
31
31
  * ruby **2.5** with activerecord **6.0**, using **mysql2**, **sqlite3**, **postgresql:9.6**, **postgresql:10**, **postgresql:11** or **postgresql:12**
32
+ * ruby **2.5** with activerecord **6.1**, using **mysql2**, **sqlite3**, **postgresql:9.6**, **postgresql:10**, **postgresql:11** or **postgresql:12**
32
33
  * ruby **2.7** with activerecord **5.2**, using **mysql2**, **sqlite3**, **postgresql:9.6**, **postgresql:10**, **postgresql:11** or **postgresql:12**
33
34
  * ruby **2.7** with activerecord **6.0**, using **mysql2**, **sqlite3**, **postgresql:9.6**, **postgresql:10**, **postgresql:11** or **postgresql:12**
35
+ * ruby **2.7** with activerecord **6.1**, using **mysql2**, **sqlite3**, **postgresql:9.6**, **postgresql:10**, **postgresql:11** or **postgresql:12**
36
+ * ruby **2.7** with activerecord **7.0**, using **mysql2**, **sqlite3**, **postgresql:9.6**, **postgresql:10**, **postgresql:11** or **postgresql:12**
34
37
  * ruby **3.0** with activerecord **6.0**, using **mysql2**, **sqlite3**, **postgresql:9.6**, **postgresql:10**, **postgresql:11** or **postgresql:12**
38
+ * ruby **3.0** with activerecord **6.1**, using **mysql2**, **sqlite3**, **postgresql:9.6**, **postgresql:10**, **postgresql:11** or **postgresql:12**
39
+ * ruby **3.0** with activerecord **7.0**, using **mysql2**, **sqlite3**, **postgresql:9.6**, **postgresql:10**, **postgresql:11** or **postgresql:12**
40
+ * ruby **3.1** with activerecord **6.0**, using **mysql2**, **sqlite3**, **postgresql:9.6**, **postgresql:10**, **postgresql:11** or **postgresql:12**
41
+ * ruby **3.1** with activerecord **6.1**, using **mysql2**, **sqlite3**, **postgresql:9.6**, **postgresql:10**, **postgresql:11** or **postgresql:12**
42
+ * ruby **3.1** with activerecord **7.0**, using **mysql2**, **sqlite3**, **postgresql:9.6**, **postgresql:10**, **postgresql:11** or **postgresql:12**
35
43
 
36
44
  <!-- SCHEMA_DEV: MATRIX - end -->
37
45
 
@@ -191,6 +199,7 @@ options in `env.options`
191
199
 
192
200
  ## History
193
201
 
202
+ * **1.0.1** - Add AR 6.1, 7.0 and Ruby 3.1 support
194
203
  * **1.0.0** - Add ruby 3 and AR 6.0, drop Ruy < 2.5
195
204
  * **0.4.1** - Corrected spacing around dumped schema
196
205
  * **0.4.0** - Added support for Rails 5.2 and materialized views in PostgreSQL
@@ -0,0 +1,4 @@
1
+ base_gemfile = File.expand_path('../../Gemfile.base', __FILE__)
2
+ eval File.read(base_gemfile)
3
+
4
+ gem "activerecord", ">= 6.1", "< 6.2"
@@ -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
@@ -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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module SchemaPlus
4
4
  module Views
5
- VERSION = '1.0.0'
5
+ VERSION = '1.0.1'
6
6
  end
7
7
  end
data/schema_dev.yml CHANGED
@@ -2,9 +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
9
+ - 6.1
10
+ - 7.0
8
11
  db:
9
12
  - mysql2
10
13
  - sqlite3
@@ -20,11 +20,11 @@ Gem::Specification.new do |gem|
20
20
 
21
21
  gem.required_ruby_version = '>= 2.5'
22
22
 
23
- gem.add_dependency "activerecord", '>= 5.2', '< 6.1'
24
- gem.add_dependency "schema_plus_core", '~> 3.0'
23
+ gem.add_dependency "activerecord", '>= 5.2', '< 7.1'
24
+ gem.add_dependency "schema_plus_core", '~> 3.1.0'
25
25
 
26
26
  gem.add_development_dependency "bundler"
27
27
  gem.add_development_dependency "rake", '~> 13.0'
28
28
  gem.add_development_dependency "rspec", '~> 3.0'
29
- gem.add_development_dependency "schema_dev", '~> 4.1'
29
+ gem.add_development_dependency "schema_dev", '~> 4.2.0'
30
30
  end
data/spec/spec_helper.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'simplecov'
4
- SimpleCov.start
4
+ SimpleCov.start unless SimpleCov.running
5
5
 
6
6
  $LOAD_PATH.unshift(File.dirname(__FILE__))
7
7
  $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: schema_plus_views
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.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-05-06 00:00:00.000000000 Z
11
+ date: 2022-06-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '5.2'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: '6.1'
22
+ version: '7.1'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,21 +29,21 @@ dependencies:
29
29
  version: '5.2'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: '6.1'
32
+ version: '7.1'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: schema_plus_core
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
37
  - - "~>"
38
38
  - !ruby/object:Gem::Version
39
- version: '3.0'
39
+ version: 3.1.0
40
40
  type: :runtime
41
41
  prerelease: false
42
42
  version_requirements: !ruby/object:Gem::Requirement
43
43
  requirements:
44
44
  - - "~>"
45
45
  - !ruby/object:Gem::Version
46
- version: '3.0'
46
+ version: 3.1.0
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: bundler
49
49
  requirement: !ruby/object:Gem::Requirement
@@ -92,14 +92,14 @@ dependencies:
92
92
  requirements:
93
93
  - - "~>"
94
94
  - !ruby/object:Gem::Version
95
- version: '4.1'
95
+ version: 4.2.0
96
96
  type: :development
97
97
  prerelease: false
98
98
  version_requirements: !ruby/object:Gem::Requirement
99
99
  requirements:
100
100
  - - "~>"
101
101
  - !ruby/object:Gem::Version
102
- version: '4.1'
102
+ version: 4.2.0
103
103
  description:
104
104
  email:
105
105
  - ronen@barzel.org
@@ -123,6 +123,14 @@ files:
123
123
  - gemfiles/activerecord-6.0/Gemfile.mysql2
124
124
  - gemfiles/activerecord-6.0/Gemfile.postgresql
125
125
  - gemfiles/activerecord-6.0/Gemfile.sqlite3
126
+ - gemfiles/activerecord-6.1/Gemfile.base
127
+ - gemfiles/activerecord-6.1/Gemfile.mysql2
128
+ - gemfiles/activerecord-6.1/Gemfile.postgresql
129
+ - gemfiles/activerecord-6.1/Gemfile.sqlite3
130
+ - gemfiles/activerecord-7.0/Gemfile.base
131
+ - gemfiles/activerecord-7.0/Gemfile.mysql2
132
+ - gemfiles/activerecord-7.0/Gemfile.postgresql
133
+ - gemfiles/activerecord-7.0/Gemfile.sqlite3
126
134
  - lib/schema_plus/views.rb
127
135
  - lib/schema_plus/views/active_record/connection_adapters/abstract_adapter.rb
128
136
  - lib/schema_plus/views/active_record/connection_adapters/mysql2_adapter.rb
@@ -161,7 +169,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
161
169
  - !ruby/object:Gem::Version
162
170
  version: '0'
163
171
  requirements: []
164
- rubygems_version: 3.0.8
172
+ rubygems_version: 3.1.6
165
173
  signing_key:
166
174
  specification_version: 4
167
175
  summary: Adds support for views to ActiveRecord