Skip to content
This repository was archived by the owner on Sep 17, 2018. It is now read-only.

Commit 4a48253

Browse files
author
James Couball
committed
Remove use of require_relative so that publishing to rubygems works
1 parent 570b795 commit 4a48253

File tree

8 files changed

+22
-22
lines changed

8 files changed

+22
-22
lines changed

lib/mysql_expectations.rb

+9-9
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
# Copyrights licensed under the New BSD License.
33
# See the accompanying LICENSE file for terms.
44

5-
require_relative 'mysql_expectations/array_refinements'
6-
require_relative 'mysql_expectations/mysql'
7-
require_relative 'mysql_expectations/database'
8-
require_relative 'mysql_expectations/table'
9-
require_relative 'mysql_expectations/field'
10-
require_relative 'mysql_expectations/key'
11-
require_relative 'mysql_expectations/key_field'
12-
require_relative 'mysql_expectations/matchers'
13-
require_relative 'mysql_expectations/version'
5+
require 'mysql_expectations/array_refinements'
6+
require 'mysql_expectations/mysql'
7+
require 'mysql_expectations/database'
8+
require 'mysql_expectations/table'
9+
require 'mysql_expectations/field'
10+
require 'mysql_expectations/key'
11+
require 'mysql_expectations/key_field'
12+
require 'mysql_expectations/matchers'
13+
require 'mysql_expectations/version'
1414

1515
require 'rspec'
1616

lib/mysql_expectations/database.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Copyrights licensed under the New BSD License.
33
# See the accompanying LICENSE file for terms.
44

5-
require_relative 'table'
5+
require 'mysql_expectations/table'
66

77
module MySQLExpectations
88
# Allows assertions on a database

lib/mysql_expectations/key.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Copyrights licensed under the New BSD License.
33
# See the accompanying LICENSE file for terms.
44

5-
require_relative 'key_field'
5+
require 'mysql_expectations/key_field'
66

77
module MySQLExpectations
88
# An table key has a name and a sequence of index fields.

lib/mysql_expectations/matchers.rb

+6-6
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
# Copyrights licensed under the New BSD License.
33
# See the accompanying LICENSE file for terms.
44

5-
require_relative 'matchers/database_have_table'
6-
require_relative 'matchers/database_only_have_tables'
7-
require_relative 'matchers/table_have_collation'
8-
require_relative 'matchers/table_have_engine_type'
9-
require_relative 'matchers/table_have_field'
10-
require_relative 'matchers/table_have_key'
5+
require 'mysql_expectations/matchers/database_have_table'
6+
require 'mysql_expectations/matchers/database_only_have_tables'
7+
require 'mysql_expectations/matchers/table_have_collation'
8+
require 'mysql_expectations/matchers/table_have_engine_type'
9+
require 'mysql_expectations/matchers/table_have_field'
10+
require 'mysql_expectations/matchers/table_have_key'
1111

1212
# rubocop:disable Style/PredicateName
1313

lib/mysql_expectations/matchers/database_only_have_tables.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Copyrights licensed under the New BSD License.
33
# See the accompanying LICENSE file for terms.
44

5-
require_relative '../array_refinements'
5+
require 'mysql_expectations/array_refinements'
66

77
module MySQLExpectations
88
module Matchers

lib/mysql_expectations/mysql.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# See the accompanying LICENSE file for terms.
44

55
require 'rexml/document'
6-
require_relative 'database'
6+
require 'mysql_expectations/database'
77

88
module MySQLExpectations
99
# The database_structure_file should be an XML file resulting from the

lib/mysql_expectations/table.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
# Copyrights licensed under the New BSD License.
33
# See the accompanying LICENSE file for terms.
44

5-
require_relative 'field'
6-
require_relative 'key'
5+
require 'mysql_expectations/field'
6+
require 'mysql_expectations/key'
77

88
module MySQLExpectations
99
# Allows assertions on a table

mysql_expectations.gemspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
lib = File.expand_path('../lib/', __FILE__)
66
$LOAD_PATH.unshift lib unless $LOAD_PATH.include?(lib)
7-
require_relative 'lib/mysql_expectations/version'
7+
require 'mysql_expectations/version'
88

99
Gem::Specification.new do |s|
1010
s.name = 'mysql_expectations'

0 commit comments

Comments
 (0)