Skip to content

Commit

Permalink
Switched to using require_relative for loading local files (closes #26
Browse files Browse the repository at this point in the history
).
  • Loading branch information
postmodern committed Aug 4, 2024
1 parent aaa50e1 commit 20ddeed
Show file tree
Hide file tree
Showing 17 changed files with 47 additions and 47 deletions.
4 changes: 2 additions & 2 deletions lib/ronin/code/sql.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
# along with ronin-code-sql. If not, see <https://www.gnu.org/licenses/>.
#

require 'ronin/code/sql/mixin'
require 'ronin/code/sqli'
require_relative 'sql/mixin'
require_relative 'sqli'

module Ronin
module Code
Expand Down
4 changes: 2 additions & 2 deletions lib/ronin/code/sql/binary_expr.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
# along with ronin-code-sql. If not, see <https://www.gnu.org/licenses/>.
#

require 'ronin/code/sql/operators'
require 'ronin/code/sql/emittable'
require_relative 'operators'
require_relative 'emittable'

module Ronin
module Code
Expand Down
12 changes: 6 additions & 6 deletions lib/ronin/code/sql/clause.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@
# along with ronin-code-sql. If not, see <https://www.gnu.org/licenses/>.
#

require 'ronin/code/sql/literals'
require 'ronin/code/sql/fields'
require 'ronin/code/sql/functions'
require 'ronin/code/sql/statement'
require 'ronin/code/sql/statements'
require 'ronin/code/sql/emittable'
require_relative 'literals'
require_relative 'fields'
require_relative 'functions'
require_relative 'statement'
require_relative 'statements'
require_relative 'emittable'

module Ronin
module Code
Expand Down
2 changes: 1 addition & 1 deletion lib/ronin/code/sql/emittable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# along with ronin-code-sql. If not, see <https://www.gnu.org/licenses/>.
#

require 'ronin/code/sql/emitter'
require_relative 'emitter'

module Ronin
module Code
Expand Down
4 changes: 2 additions & 2 deletions lib/ronin/code/sql/field.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
# along with ronin-code-sql. If not, see <https://www.gnu.org/licenses/>.
#

require 'ronin/code/sql/operators'
require 'ronin/code/sql/emittable'
require_relative 'operators'
require_relative 'emittable'

module Ronin
module Code
Expand Down
2 changes: 1 addition & 1 deletion lib/ronin/code/sql/fields.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# along with ronin-code-sql. If not, see <https://www.gnu.org/licenses/>.
#

require 'ronin/code/sql/field'
require_relative 'field'

module Ronin
module Code
Expand Down
4 changes: 2 additions & 2 deletions lib/ronin/code/sql/function.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
# along with ronin-code-sql. If not, see <https://www.gnu.org/licenses/>.
#

require 'ronin/code/sql/operators'
require 'ronin/code/sql/emittable'
require_relative 'operators'
require_relative 'emittable'

module Ronin
module Code
Expand Down
2 changes: 1 addition & 1 deletion lib/ronin/code/sql/functions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# along with ronin-code-sql. If not, see <https://www.gnu.org/licenses/>.
#

require 'ronin/code/sql/function'
require_relative 'function'

module Ronin
module Code
Expand Down
8 changes: 4 additions & 4 deletions lib/ronin/code/sql/injection.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
# along with ronin-code-sql. If not, see <https://www.gnu.org/licenses/>.
#

require 'ronin/code/sql/literals'
require 'ronin/code/sql/clauses'
require 'ronin/code/sql/injection_expr'
require 'ronin/code/sql/statement_list'
require_relative 'literals'
require_relative 'clauses'
require_relative 'injection_expr'
require_relative 'statement_list'

module Ronin
module Code
Expand Down
12 changes: 6 additions & 6 deletions lib/ronin/code/sql/injection_expr.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@
# along with ronin-code-sql. If not, see <https://www.gnu.org/licenses/>.
#

require 'ronin/code/sql/binary_expr'
require 'ronin/code/sql/literals'
require 'ronin/code/sql/fields'
require 'ronin/code/sql/functions'
require 'ronin/code/sql/statements'
require 'ronin/code/sql/emittable'
require_relative 'binary_expr'
require_relative 'literals'
require_relative 'fields'
require_relative 'functions'
require_relative 'statements'
require_relative 'emittable'

module Ronin
module Code
Expand Down
4 changes: 2 additions & 2 deletions lib/ronin/code/sql/literal.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
# along with ronin-code-sql. If not, see <https://www.gnu.org/licenses/>.
#

require 'ronin/code/sql/emittable'
require 'ronin/code/sql/operators'
require_relative 'emittable'
require_relative 'operators'

module Ronin
module Code
Expand Down
2 changes: 1 addition & 1 deletion lib/ronin/code/sql/literals.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# along with ronin-code-sql. If not, see <https://www.gnu.org/licenses/>.
#

require 'ronin/code/sql/literal'
require_relative 'literal'

module Ronin
module Code
Expand Down
4 changes: 2 additions & 2 deletions lib/ronin/code/sql/mixin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
# along with ronin-code-sql. If not, see <https://www.gnu.org/licenses/>.
#

require 'ronin/code/sql/statement_list'
require 'ronin/code/sql/injection'
require_relative 'statement_list'
require_relative 'injection'

module Ronin
module Code
Expand Down
10 changes: 5 additions & 5 deletions lib/ronin/code/sql/statement.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@
# along with ronin-code-sql. If not, see <https://www.gnu.org/licenses/>.
#

require 'ronin/code/sql/literals'
require 'ronin/code/sql/clause'
require 'ronin/code/sql/clauses'
require 'ronin/code/sql/operators'
require 'ronin/code/sql/emittable'
require_relative 'literals'
require_relative 'clause'
require_relative 'clauses'
require_relative 'operators'
require_relative 'emittable'

module Ronin
module Code
Expand Down
16 changes: 8 additions & 8 deletions lib/ronin/code/sql/statement_list.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@
# along with ronin-code-sql. If not, see <https://www.gnu.org/licenses/>.
#

require 'ronin/code/sql/field'
require 'ronin/code/sql/fields'
require 'ronin/code/sql/unary_expr'
require 'ronin/code/sql/binary_expr'
require 'ronin/code/sql/functions'
require 'ronin/code/sql/statement'
require 'ronin/code/sql/statements'
require 'ronin/code/sql/emittable'
require_relative 'field'
require_relative 'fields'
require_relative 'unary_expr'
require_relative 'binary_expr'
require_relative 'functions'
require_relative 'statement'
require_relative 'statements'
require_relative 'emittable'

module Ronin
module Code
Expand Down
2 changes: 1 addition & 1 deletion lib/ronin/code/sql/unary_expr.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# along with ronin-code-sql. If not, see <https://www.gnu.org/licenses/>.
#

require 'ronin/code/sql/emittable'
require_relative 'emittable'

module Ronin
module Code
Expand Down
2 changes: 1 addition & 1 deletion lib/ronin/code/sqli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# along with ronin-code-sql. If not, see <https://www.gnu.org/licenses/>.
#

require 'ronin/code/sql/injection'
require_relative 'sql/injection'

module Ronin
module Code
Expand Down

0 comments on commit 20ddeed

Please sign in to comment.