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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f6c408fe802e23bb7398729d35834e150e5a28a6143f1faf575803c321651886
4
- data.tar.gz: 0a4e63e2d3f43f18d3ff2ec17b2b6885c5ff88a8f2d605d4b861eb0959e2e5dc
3
+ metadata.gz: d7d7a66b77330de30409c7b8a6211434a01ca12740c2cfd816b1c117f20b5f99
4
+ data.tar.gz: ea60dc9eda92d1da09a5d4b48e095a10ead77a11ffd4fe5df33b852e13b11d3c
5
5
  SHA512:
6
- metadata.gz: 15fc9d9a88af07dd164aa5213d31e9a95513aa969db8ee721939b8212f720c3b9a4f8ecf651960e970cdb4bb969ae0a873a37daecb464383788aa6d4c9e27de2
7
- data.tar.gz: 25732e97b7610edea1fe8a08c6e7d34041da49c571c9822d2faae059f0d3c0a8afa1d665d84fce1bbd98750abb978de229dd192f43138a7b24ad2347eafd470a
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 :have_collation do |expected, name|
6
- match { |actual| actual[:Collation] == expected }
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 have_collation('utf8_bin', "`#{table_name}`")
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 have_collation('utf8_bin',
50
- " `#{table_name}`.`#{column[:Field]}`")
51
+ .to have_collations(%w[utf8_bin utf8mb4_bin],
52
+ " `#{table_name}`.`#{column[:Field]}`")
51
53
  end
52
54
  end
53
55
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Gumboot
4
- VERSION = '2.0.1'.freeze
4
+ VERSION = '2.1.0'.freeze
5
5
  end
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.1
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-07-24 00:00:00.000000000 Z
11
+ date: 2018-08-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: accession