aaf-gumboot 2.0.1 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gumboot/shared_examples/database_schema.rb +8 -6
- data/lib/gumboot/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d7d7a66b77330de30409c7b8a6211434a01ca12740c2cfd816b1c117f20b5f99
|
4
|
+
data.tar.gz: ea60dc9eda92d1da09a5d4b48e095a10ead77a11ffd4fe5df33b852e13b11d3c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ca01dcff935e36875ddf1a9fe396cfafc91fe13cdb5fadb89524b3a4fce4720850bd69ed7a7e1ae51b9cd5b79f80ba7891ea744cfa9a5213041ae611208e667a
|
7
|
+
data.tar.gz: e0c1440bc96f66089d95cbc846465f7b1d2833ee352bcc6d9318691fabe249b115a02252cea05eb331d1129f5f12ceed639418213eeec2a8cc2e260528a60510
|
@@ -2,11 +2,11 @@
|
|
2
2
|
|
3
3
|
RSpec.shared_examples 'Database Schema' do
|
4
4
|
context 'AAF shared implementation' do
|
5
|
-
RSpec::Matchers.define :
|
6
|
-
match { |actual| actual[:Collation]
|
5
|
+
RSpec::Matchers.define :have_collations do |expected, name|
|
6
|
+
match { |actual| expected.include?[actual[:Collation]] }
|
7
7
|
|
8
8
|
failure_message do |actual|
|
9
|
-
"expected #{name} to use collation #{expected}, but was " \
|
9
|
+
"expected #{name} to use collation #{expected.join(' or ')}, but was " \
|
10
10
|
"#{actual[:Collation]}"
|
11
11
|
end
|
12
12
|
end
|
@@ -35,7 +35,9 @@ RSpec.shared_examples 'Database Schema' do
|
|
35
35
|
query('SHOW TABLE STATUS').each do |table|
|
36
36
|
table_name = table[:Name]
|
37
37
|
next if table_name == 'schema_migrations'
|
38
|
-
expect(table).to
|
38
|
+
expect(table).to(
|
39
|
+
have_collations(%w[utf8_bin utf8mb4_bin], "`#{table_name}`")
|
40
|
+
)
|
39
41
|
|
40
42
|
query("SHOW FULL COLUMNS FROM #{table_name}").each do |column|
|
41
43
|
next unless column[:Collation]
|
@@ -46,8 +48,8 @@ RSpec.shared_examples 'Database Schema' do
|
|
46
48
|
end
|
47
49
|
end
|
48
50
|
expect(column)
|
49
|
-
.to
|
50
|
-
|
51
|
+
.to have_collations(%w[utf8_bin utf8mb4_bin],
|
52
|
+
" `#{table_name}`.`#{column[:Field]}`")
|
51
53
|
end
|
52
54
|
end
|
53
55
|
end
|
data/lib/gumboot/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aaf-gumboot
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0
|
4
|
+
version: 2.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bradley Beddoes
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-08-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: accession
|