lib/slack_messaging.rb in slack_messaging-2.2.0 vs lib/slack_messaging.rb in slack_messaging-3.0.0
- old
+ new
@@ -1,11 +1,15 @@
+# frozen_string_literal: true
+
require 'yaml'
require 'hashie'
require 'httparty'
require 'highline'
require 'json'
-Dir[File.expand_path(File.join(File.dirname(File.absolute_path(__FILE__)), 'slack_messaging')) + '/**/*.rb'].each do |file|
+files = "#{File.expand_path(File.join(File.dirname(File.absolute_path(__FILE__)), 'slack_messaging'))}/**/*.rb"
+
+Dir[files].each do |file|
require_relative file
end
module SlackMessaging; end