schema_plus_triggers 0.1.0 → 0.2.0

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: 6e78e81607d084ffbe2fca6564415bfa98e1044677be1869b0fb1707a2fd32d6
4
- data.tar.gz: aaf94ee3cd40cb00d5360a1a98f702cad797f22b889d99c75a2dbf1c1184777b
3
+ metadata.gz: 892c699a4859c79795ce4f175924e0771e8e66a4bc5152f2999c2cd7c24e6d69
4
+ data.tar.gz: 9c7707ab8546febb22a2dbdbb4e5342aedcd377ff4083a08eedd67bdf8965af9
5
5
  SHA512:
6
- metadata.gz: 0fd1787cae0ea894437358e3ee050763e493b3e2d8a716a76774948a6552c64cd6cdaea4faa74d21ab7629a3fed96500ae185cdb908d90e55f1954fecf05ecb6
7
- data.tar.gz: d23458705d3ada0ad994adc492f439d75938d5bac8f82b34600cda0e054a1779a37df89d540a532bf51166c3a2e2ca71db12cc838247b122110e2490294c74c8
6
+ metadata.gz: df773bdffe22b467562e613b71bc110e91086a9f9e35455602008512f5acade23051e7219d7303742ad24c78d5075e848824c0fafa24d6928d1aacb9dce476c5
7
+ data.tar.gz: 6429e4122b184f3b2e94b6333b00358eb4575959005e31b1ed80292ead539dd4920e17588d1b3480a6f3736d8836d0933452e890ebc407c1c4bc716e58dc5b0c
data/.travis.yml CHANGED
@@ -3,14 +3,36 @@
3
3
  # Please do not edit this file; any changes will be overwritten next time
4
4
  # schema_dev gets run.
5
5
  ---
6
- sudo: false
7
6
  rvm:
8
7
  - 2.3.1
9
8
  gemfile:
10
9
  - gemfiles/activerecord-5.2/Gemfile.postgresql
11
- env: POSTGRESQL_DB_USER=postgres
12
- addons:
13
- postgresql: '9.4'
14
10
  before_script: bundle exec rake create_databases
15
11
  after_script: bundle exec rake drop_databases
16
12
  script: bundle exec rake travis
13
+ jobs:
14
+ include:
15
+ - addons:
16
+ postgresql: '9.6'
17
+ env: POSTGRESQL_DB_USER=postgres
18
+ - addons:
19
+ postgresql: '10'
20
+ apt:
21
+ packages:
22
+ - postgresql-10
23
+ - postgresql-client-10
24
+ env: POSTGRESQL_DB_USER=postgres
25
+ - addons:
26
+ postgresql: '11'
27
+ apt:
28
+ packages:
29
+ - postgresql-11
30
+ - postgresql-client-11
31
+ env: POSTGRESQL_DB_USER=travis PGPORT=5433
32
+ - addons:
33
+ postgresql: '12'
34
+ apt:
35
+ packages:
36
+ - postgresql-12
37
+ - postgresql-client-12
38
+ env: POSTGRESQL_DB_USER=travis PGPORT=5433
data/README.md CHANGED
@@ -76,7 +76,8 @@ This will return an array of arrays. The inner array containing the table name a
76
76
 
77
77
  ## History
78
78
 
79
- * 0.1.0 - Initial release
79
+ * **0.2.0** - Add testing for multiple PostgreSQL versions
80
+ * **0.1.0** - Initial release
80
81
 
81
82
  ## Development & Testing
82
83
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module SchemaPlus
4
4
  module Triggers
5
- VERSION = "0.1.0"
5
+ VERSION = "0.2.0"
6
6
  end
7
7
  end
data/schema_dev.yml CHANGED
@@ -4,3 +4,5 @@ activerecord:
4
4
  - 5.2
5
5
  db:
6
6
  - postgresql
7
+ dbversions:
8
+ postgresql: ['9.6', '10', '11', '12']
@@ -25,7 +25,7 @@ Gem::Specification.new do |gem|
25
25
  gem.add_development_dependency "bundler"
26
26
  gem.add_development_dependency "rake", "~> 10.0"
27
27
  gem.add_development_dependency "rspec", "~> 3.0"
28
- gem.add_development_dependency "schema_dev", "~> 3.11", ">= 3.11.1"
28
+ gem.add_development_dependency "schema_dev", "~> 3.12"
29
29
  gem.add_development_dependency "schema_plus_compatibility", "~> 0.2"
30
30
  gem.add_development_dependency "simplecov"
31
31
  gem.add_development_dependency "simplecov-gem-profile"
@@ -45,7 +45,7 @@ $$
45
45
  dump_schema.tap do |dump|
46
46
  expect(dump).to match(/create_trigger.+user.+log_trigger.+after insert/i)
47
47
 
48
- expect(dump).to match(/for each row.+my_trigger_func/i)
48
+ expect(dump).to match(/for each row execute (function|procedure).+my_trigger_func/i)
49
49
  end
50
50
 
51
51
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: schema_plus_triggers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Edward Rudd
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-08-04 00:00:00.000000000 Z
11
+ date: 2021-02-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -98,20 +98,14 @@ dependencies:
98
98
  requirements:
99
99
  - - "~>"
100
100
  - !ruby/object:Gem::Version
101
- version: '3.11'
102
- - - ">="
103
- - !ruby/object:Gem::Version
104
- version: 3.11.1
101
+ version: '3.12'
105
102
  type: :development
106
103
  prerelease: false
107
104
  version_requirements: !ruby/object:Gem::Requirement
108
105
  requirements:
109
106
  - - "~>"
110
107
  - !ruby/object:Gem::Version
111
- version: '3.11'
112
- - - ">="
113
- - !ruby/object:Gem::Version
114
- version: 3.11.1
108
+ version: '3.12'
115
109
  - !ruby/object:Gem::Dependency
116
110
  name: schema_plus_compatibility
117
111
  requirement: !ruby/object:Gem::Requirement
@@ -201,7 +195,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
201
195
  - !ruby/object:Gem::Version
202
196
  version: '0'
203
197
  requirements: []
204
- rubygems_version: 3.0.6
198
+ rubygems_version: 3.0.8
205
199
  signing_key:
206
200
  specification_version: 4
207
201
  summary: Adds support for triggers in ActiveRecord