RuboCop: Style/ExpandPathArguments
auto-corrected, but so many tweaks after to gemspecs it may as well have been manual Change-Id: I69aeb6e216894462d6d893ed4c123aa9898fc72f Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/278516 Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com> Reviewed-by: Jacob Burroughs <jburroughs@instructure.com> QA-Review: Cody Cutrer <cody@instructure.com> Product-Review: Cody Cutrer <cody@instructure.com>
This commit is contained in:
parent
bdf626bc84
commit
d91263c442
|
@ -186,12 +186,16 @@ Style/ConditionalAssignment:
|
|||
Severity: error
|
||||
Style/DefWithParentheses:
|
||||
Severity: error
|
||||
Style/Dir:
|
||||
Severity: error
|
||||
Style/Documentation:
|
||||
Enabled: false # most things don't need to be documented
|
||||
Style/EmptyCaseCondition:
|
||||
Severity: error
|
||||
Style/Encoding:
|
||||
Severity: error
|
||||
Style/ExpandPathArguments:
|
||||
Severity: error
|
||||
Style/ExplicitBlockArgument:
|
||||
Severity: error
|
||||
Style/FrozenStringLiteralComment:
|
||||
|
@ -299,8 +303,6 @@ Style/ClassAndModuleChildren: # TODO: autocorrect (unsafe)
|
|||
Enabled: false
|
||||
Style/DoubleNegation: # TODO: autocorrect (unsafe)
|
||||
Enabled: false
|
||||
Style/Dir: # TODO: autocorrect
|
||||
Enabled: false
|
||||
Style/EmptyElse: # TODO: autocorrect
|
||||
Enabled: false
|
||||
EnforcedStyle: empty # explicit nil indicates programmer intent
|
||||
|
|
|
@ -195,6 +195,7 @@ path 'gems' do
|
|||
gem 'paginated_collection'
|
||||
gem 'request_context'
|
||||
gem 'stringify_ids'
|
||||
gem 'turnitin_api'
|
||||
gem 'twitter'
|
||||
gem 'utf8_cleaner'
|
||||
gem 'workflow'
|
||||
|
|
|
@ -18,6 +18,6 @@
|
|||
# with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
# Set up gems listed in the Gemfile.
|
||||
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
|
||||
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__)
|
||||
|
||||
require 'bundler/setup' if File.exist?(ENV['BUNDLE_GEMFILE'])
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
unless defined?(CANVAS_RAILS6_0)
|
||||
if ENV['CANVAS_RAILS6_1']
|
||||
CANVAS_RAILS6_0 = ENV['CANVAS_RAILS6_1'] != '1'
|
||||
elsif File.exist?(File.expand_path("../RAILS6_1", __FILE__))
|
||||
elsif File.exist?(File.expand_path('RAILS6_1', __dir__))
|
||||
CANVAS_RAILS6_0 = false
|
||||
else
|
||||
begin
|
||||
|
@ -38,7 +38,7 @@ unless defined?(CANVAS_RAILS6_0)
|
|||
require 'net/http'
|
||||
require 'yaml'
|
||||
|
||||
environment = YAML.load(File.read(File.expand_path("../consul.yml", __FILE__))).dig(ENV['RAILS_ENV'] || 'development', 'environment')
|
||||
environment = YAML.load(File.read(File.expand_path('consul.yml', __dir__))).dig(ENV['RAILS_ENV'] || 'development', 'environment')
|
||||
|
||||
keys = [
|
||||
["private/canvas", environment, $canvas_cluster, "rails6.1"].compact.join("/"),
|
||||
|
|
|
@ -1,9 +1,6 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
$:.push File.expand_path("lib", __dir__)
|
||||
|
||||
# Maintain your gem's version:
|
||||
require "audits/version"
|
||||
require_relative "lib/audits/version"
|
||||
|
||||
# Describe your gem and declare its dependencies:
|
||||
Gem::Specification.new do |spec|
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require ::File.expand_path('../config/environment', __FILE__)
|
||||
require ::File.expand_path('config/environment', __dir__)
|
||||
run Rails.application
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
# You should have received a copy of the GNU Affero General Public License along
|
||||
# with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
require File.expand_path('../boot', __FILE__)
|
||||
require File.expand_path('boot', __dir__)
|
||||
|
||||
# Pick the frameworks you want:
|
||||
require 'active_record/railtie'
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
# with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
# Set up gems listed in the Gemfile.
|
||||
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../../../Gemfile', __FILE__)
|
||||
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../../Gemfile', __dir__)
|
||||
|
||||
require 'bundler/setup' if File.exist?(ENV['BUNDLE_GEMFILE'])
|
||||
$LOAD_PATH.unshift File.expand_path('../../../../lib', __FILE__)
|
||||
$LOAD_PATH.unshift File.expand_path('../../../lib', __dir__)
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
# with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
# Load the Rails application.
|
||||
require File.expand_path('../application', __FILE__)
|
||||
require File.expand_path('application', __dir__)
|
||||
|
||||
# Initialize the Rails application.
|
||||
Rails.application.initialize!
|
||||
|
|
|
@ -1,8 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
lib = File.expand_path('../lib', __FILE__)
|
||||
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
||||
|
||||
Gem::Specification.new do |spec|
|
||||
spec.name = "activesupport-suspend_callbacks"
|
||||
spec.version = '0.0.1'
|
||||
|
|
|
@ -1,8 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
lib = File.expand_path('../lib', __FILE__)
|
||||
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
||||
|
||||
Gem::Specification.new do |spec|
|
||||
spec.name = "acts_as_list"
|
||||
spec.version = "0.0.1"
|
||||
|
|
|
@ -1,8 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
lib = File.expand_path('../lib', __FILE__)
|
||||
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
||||
|
||||
Gem::Specification.new do |spec|
|
||||
spec.name = "adheres_to_policy"
|
||||
spec.version = '0.0.1'
|
||||
|
|
|
@ -1,9 +1,6 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
$:.push File.expand_path("../lib", __FILE__)
|
||||
|
||||
# Maintain your gem's version:
|
||||
require "attachment_fu/version"
|
||||
require_relative "lib/attachment_fu/version"
|
||||
|
||||
# Describe your gem and declare its dependencies:
|
||||
Gem::Specification.new do |s|
|
||||
|
|
|
@ -1,8 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
lib = File.expand_path("../lib", __FILE__)
|
||||
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
||||
|
||||
Gem::Specification.new do |spec|
|
||||
spec.name = "autoextend"
|
||||
spec.version = "1.0.0"
|
||||
|
|
|
@ -22,7 +22,7 @@ require 'active_support'
|
|||
# this is a weird thing we have to do to avoid a weird circular
|
||||
# require problem
|
||||
_x = ActiveSupport::Deprecation
|
||||
ActiveSupport::Dependencies.autoload_paths << File.expand_path("../autoload", __FILE__)
|
||||
ActiveSupport::Dependencies.autoload_paths << File.expand_path('autoload', __dir__)
|
||||
ActiveSupport::Dependencies.hook!
|
||||
|
||||
require 'autoextend'
|
||||
|
|
|
@ -1,8 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
lib = File.expand_path("../lib", __FILE__)
|
||||
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
||||
|
||||
Gem::Specification.new do |spec|
|
||||
spec.name = "bookmarked_collection"
|
||||
spec.version = "1.0.0"
|
||||
|
|
|
@ -1,9 +1,6 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
$:.push File.expand_path("../lib", __FILE__)
|
||||
|
||||
# Maintain your gem's version:
|
||||
require "broadcast_policy/version"
|
||||
require_relative "lib/broadcast_policy/version"
|
||||
|
||||
# Describe your gem and declare its dependencies:
|
||||
Gem::Specification.new do |s|
|
||||
|
|
|
@ -1,8 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
lib = File.expand_path('../lib', __FILE__)
|
||||
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
||||
|
||||
Gem::Specification.new do |spec|
|
||||
spec.name = "canvas_breach_mitigation"
|
||||
spec.version = '0.0.1'
|
||||
|
|
|
@ -1,8 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
lib = File.expand_path('../lib', __FILE__)
|
||||
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
||||
|
||||
Gem::Specification.new do |spec|
|
||||
spec.name = "canvas_cache"
|
||||
spec.version = "0.1.0"
|
||||
|
|
|
@ -1,8 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
lib = File.expand_path('../lib', __FILE__)
|
||||
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
||||
|
||||
Gem::Specification.new do |spec|
|
||||
spec.name = "canvas_cassandra"
|
||||
spec.version = "0.1.0"
|
||||
|
|
|
@ -29,7 +29,7 @@ end
|
|||
# live in the parent app, not here in the gem...
|
||||
describe "execute and update" do
|
||||
before do
|
||||
target_location = Pathname.new(File.expand_path("../../../../..", __FILE__))
|
||||
target_location = Pathname.new(File.expand_path('../../../..', __dir__))
|
||||
allow(Rails).to receive(:root).and_return(target_location)
|
||||
end
|
||||
|
||||
|
|
|
@ -1,8 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
lib = File.expand_path('../lib', __FILE__)
|
||||
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
||||
|
||||
Gem::Specification.new do |spec|
|
||||
spec.name = "canvas_color"
|
||||
spec.version = "0.0.1"
|
||||
|
|
|
@ -1,8 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
lib = File.expand_path('../lib', __FILE__)
|
||||
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
||||
|
||||
Gem::Specification.new do |spec|
|
||||
spec.name = "canvas_crummy"
|
||||
spec.version = '0.0.1'
|
||||
|
|
|
@ -1,8 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
lib = File.expand_path('../lib', __FILE__)
|
||||
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
||||
|
||||
Gem::Specification.new do |spec|
|
||||
spec.name = "canvas_dynamodb"
|
||||
spec.version = "0.0.1"
|
||||
|
|
|
@ -1,8 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
lib = File.expand_path('../lib', __FILE__)
|
||||
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
||||
|
||||
Gem::Specification.new do |spec|
|
||||
spec.name = "canvas_errors"
|
||||
spec.version = "0.1.0"
|
||||
|
|
|
@ -1,8 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
lib = File.expand_path('../lib', __FILE__)
|
||||
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
||||
|
||||
Gem::Specification.new do |spec|
|
||||
spec.name = "canvas_ext"
|
||||
spec.version = "1.0.0"
|
||||
|
|
|
@ -1,8 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
lib = File.expand_path('../lib', __FILE__)
|
||||
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
||||
|
||||
Gem::Specification.new do |spec|
|
||||
spec.name = "canvas_http"
|
||||
spec.version = "1.0.0"
|
||||
|
|
|
@ -1,8 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
lib = File.expand_path('../lib', __FILE__)
|
||||
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
||||
|
||||
Gem::Specification.new do |spec|
|
||||
spec.name = "canvas_kaltura"
|
||||
spec.version = "1.0.0"
|
||||
|
|
|
@ -1,8 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
lib = File.expand_path('../lib', __FILE__)
|
||||
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
||||
|
||||
Gem::Specification.new do |spec|
|
||||
spec.name = "canvas_mimetype_fu"
|
||||
spec.version = '0.0.1'
|
||||
|
|
|
@ -1,8 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
lib = File.expand_path('../lib', __FILE__)
|
||||
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
||||
|
||||
Gem::Specification.new do |spec|
|
||||
spec.name = "canvas_panda_pub"
|
||||
spec.version = "1.0.0"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require File.join(%W[#{File.dirname(__FILE__)} lib canvas_partman version])
|
||||
require_relative "lib/canvas_partman/version"
|
||||
|
||||
Gem::Specification.new do |spec|
|
||||
spec.name = 'canvas_partman'
|
||||
|
|
|
@ -24,7 +24,7 @@ require 'rails/generators/active_record'
|
|||
require 'rails/generators/active_record/migration/migration_generator'
|
||||
|
||||
class PartitionMigrationGenerator < ActiveRecord::Generators::MigrationGenerator
|
||||
source_root File.expand_path("../templates", __FILE__)
|
||||
source_root File.expand_path('templates', __dir__)
|
||||
|
||||
remove_argument :attributes
|
||||
argument :model, type: :string, required: false,
|
||||
|
|
|
@ -1,8 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
lib = File.expand_path('../lib', __FILE__)
|
||||
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
||||
|
||||
Gem::Specification.new do |spec|
|
||||
spec.name = "canvas_sanitize"
|
||||
spec.version = '0.0.1'
|
||||
|
|
|
@ -1,8 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
lib = File.expand_path('../lib', __FILE__)
|
||||
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
||||
|
||||
Gem::Specification.new do |spec|
|
||||
spec.name = "canvas_security"
|
||||
spec.version = "0.1.0"
|
||||
|
|
|
@ -1,8 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
lib = File.expand_path('../lib', __FILE__)
|
||||
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
||||
|
||||
Gem::Specification.new do |spec|
|
||||
spec.name = "canvas_slug"
|
||||
spec.version = "0.0.1"
|
||||
|
|
|
@ -1,8 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
lib = File.expand_path('../lib', __FILE__)
|
||||
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
||||
|
||||
Gem::Specification.new do |spec|
|
||||
spec.name = "canvas_sort"
|
||||
spec.version = "1.0.0"
|
||||
|
|
|
@ -1,8 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
lib = File.expand_path('../lib', __FILE__)
|
||||
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
||||
|
||||
Gem::Specification.new do |spec|
|
||||
spec.name = "canvas_stringex"
|
||||
spec.version = '0.0.1'
|
||||
|
|
|
@ -1,8 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
lib = File.expand_path('../lib', __FILE__)
|
||||
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
||||
|
||||
Gem::Specification.new do |spec|
|
||||
spec.name = "canvas_text_helper"
|
||||
spec.version = "0.0.1"
|
||||
|
|
|
@ -1,8 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
lib = File.expand_path('../lib', __FILE__)
|
||||
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
||||
|
||||
Gem::Specification.new do |spec|
|
||||
spec.name = "canvas_time"
|
||||
spec.version = "1.0.0"
|
||||
|
|
|
@ -1,8 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
lib = File.expand_path('../lib', __FILE__)
|
||||
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
||||
|
||||
Gem::Specification.new do |spec|
|
||||
spec.name = "canvas_unzip"
|
||||
spec.version = "0.0.1"
|
||||
|
|
|
@ -1,8 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
lib = File.expand_path('../lib', __FILE__)
|
||||
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
||||
|
||||
Gem::Specification.new do |spec|
|
||||
spec.name = "config_file"
|
||||
spec.version = "0.1.0"
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
lib = File.expand_path('../lib', __FILE__)
|
||||
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
||||
require 'csv_diff/version'
|
||||
require_relative 'lib/csv_diff/version'
|
||||
|
||||
Gem::Specification.new do |spec|
|
||||
spec.name = "csv_diff"
|
||||
|
|
|
@ -1,8 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
lib = File.expand_path('../lib', __FILE__)
|
||||
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
||||
|
||||
Gem::Specification.new do |spec|
|
||||
spec.name = "diigo"
|
||||
spec.version = "1.0.0"
|
||||
|
|
|
@ -1,8 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
lib = File.expand_path('../lib', __FILE__)
|
||||
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
||||
|
||||
Gem::Specification.new do |spec|
|
||||
spec.name = "dr_diff"
|
||||
spec.version = "0.0.1"
|
||||
|
|
|
@ -20,7 +20,7 @@ module DrDiff
|
|||
@git_dir = git_dir
|
||||
end
|
||||
|
||||
ROOT_DIR = File.expand_path("../../../../../", __FILE__)
|
||||
ROOT_DIR = File.expand_path('../../../..', __dir__)
|
||||
def path_from_root
|
||||
File.join(ROOT_DIR, git_dir || ".", path)
|
||||
end
|
||||
|
|
|
@ -1,8 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
lib = File.expand_path('../lib', __FILE__)
|
||||
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
||||
|
||||
Gem::Specification.new do |spec|
|
||||
spec.name = "dynamic_settings"
|
||||
spec.version = "0.1.0"
|
||||
|
|
|
@ -1,8 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
lib = File.expand_path('../lib', __FILE__)
|
||||
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
||||
|
||||
Gem::Specification.new do |spec|
|
||||
spec.name = "event_stream"
|
||||
spec.version = "0.1.0"
|
||||
|
|
|
@ -1,8 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
lib = File.expand_path('../lib', __FILE__)
|
||||
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
||||
|
||||
Gem::Specification.new do |spec|
|
||||
spec.name = "google_drive"
|
||||
spec.version = "1.0.0"
|
||||
|
|
|
@ -1,8 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
lib = File.expand_path('../lib', __FILE__)
|
||||
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
||||
|
||||
Gem::Specification.new do |spec|
|
||||
spec.name = "html_text_helper"
|
||||
spec.version = '0.0.1'
|
||||
|
|
|
@ -1,8 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
lib = File.expand_path('../lib', __FILE__)
|
||||
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
||||
|
||||
Gem::Specification.new do |spec|
|
||||
spec.name = "i18n_extraction"
|
||||
spec.version = '0.0.1'
|
||||
|
|
|
@ -1,8 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
lib = File.expand_path('../lib', __FILE__)
|
||||
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
||||
|
||||
Gem::Specification.new do |spec|
|
||||
spec.name = "i18n_tasks"
|
||||
spec.version = '0.0.1'
|
||||
|
|
|
@ -21,7 +21,7 @@ require 'i18n_tasks'
|
|||
module I18nTasks
|
||||
class Railtie < Rails::Railtie
|
||||
rake_tasks do
|
||||
load File.expand_path("../../tasks/i18n.rake", __FILE__)
|
||||
load File.expand_path('../tasks/i18n.rake', __dir__)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -1,8 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
lib = File.expand_path('../lib', __FILE__)
|
||||
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
||||
|
||||
Gem::Specification.new do |spec|
|
||||
spec.name = "incoming_mail_processor"
|
||||
spec.version = "0.0.1"
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
#
|
||||
|
||||
require 'fileutils'
|
||||
require File.expand_path('../configurable_timeout', __FILE__)
|
||||
require File.expand_path('configurable_timeout', __dir__)
|
||||
require 'zlib'
|
||||
|
||||
module IncomingMailProcessor
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
#
|
||||
|
||||
require 'net/imap'
|
||||
require File.expand_path('../configurable_timeout', __FILE__)
|
||||
require File.expand_path('configurable_timeout', __dir__)
|
||||
|
||||
module IncomingMailProcessor
|
||||
class ImapMailbox
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
#
|
||||
|
||||
require 'net/pop'
|
||||
require File.expand_path('../configurable_timeout', __FILE__)
|
||||
require File.expand_path('configurable_timeout', __dir__)
|
||||
require 'zlib'
|
||||
|
||||
module IncomingMailProcessor
|
||||
|
|
|
@ -1,8 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
lib = File.expand_path('../lib', __FILE__)
|
||||
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
||||
|
||||
Gem::Specification.new do |spec|
|
||||
spec.name = "json_token"
|
||||
spec.version = "0.0.1"
|
||||
|
|
|
@ -1,8 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
lib = File.expand_path('../lib', __FILE__)
|
||||
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
||||
|
||||
Gem::Specification.new do |spec|
|
||||
spec.name = "linked_in"
|
||||
spec.version = "1.0.0"
|
||||
|
|
|
@ -1,8 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
lib = File.expand_path('../lib', __FILE__)
|
||||
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
||||
|
||||
Gem::Specification.new do |spec|
|
||||
spec.name = "live_events"
|
||||
spec.version = "1.0.0"
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
lib = File.expand_path("../lib", __FILE__)
|
||||
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
||||
require "lti_advantage/version"
|
||||
require_relative "lib/lti_advantage/version"
|
||||
|
||||
Gem::Specification.new do |spec|
|
||||
spec.name = "lti-advantage"
|
||||
|
|
|
@ -1,8 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
lib = File.expand_path('../lib', __FILE__)
|
||||
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
||||
|
||||
Gem::Specification.new do |spec|
|
||||
spec.name = 'lti_outbound'
|
||||
spec.version = '0.0.1'
|
||||
|
|
|
@ -1,8 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
lib = File.expand_path('../lib', __FILE__)
|
||||
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
||||
|
||||
Gem::Specification.new do |spec|
|
||||
spec.name = "multipart"
|
||||
spec.version = "0.0.1"
|
||||
|
|
|
@ -1,8 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
lib = File.expand_path('../lib', __FILE__)
|
||||
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
||||
|
||||
Gem::Specification.new do |spec|
|
||||
spec.name = "paginated_collection"
|
||||
spec.version = "1.0.0"
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
$:.push File.expand_path("../lib", __FILE__)
|
||||
|
||||
Gem::Specification.new do |spec|
|
||||
spec.name = "academic_benchmark"
|
||||
spec.version = "1.1.0"
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
$:.push File.expand_path("../lib", __FILE__)
|
||||
|
||||
require 'account_reports/version'
|
||||
require_relative 'lib/account_reports/version'
|
||||
|
||||
Gem::Specification.new do |spec|
|
||||
spec.name = "account_reports"
|
||||
|
|
|
@ -1,9 +1,6 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
$:.push File.expand_path("../lib", __FILE__)
|
||||
|
||||
# Maintain your gem's version:
|
||||
require "moodle_importer/version"
|
||||
require_relative "lib/moodle_importer/version"
|
||||
|
||||
# Describe your gem and declare its dependencies:
|
||||
Gem::Specification.new do |s|
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
$:.push File.expand_path("../lib", __FILE__)
|
||||
|
||||
require 'qti_exporter/version'
|
||||
require_relative 'lib/qti_exporter/version'
|
||||
|
||||
Gem::Specification.new do |spec|
|
||||
spec.name = "qti_exporter"
|
||||
|
|
|
@ -1,9 +1,6 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
$:.push File.expand_path("../lib", __FILE__)
|
||||
|
||||
# Maintain your gem's version:
|
||||
require "respondus_soap_endpoint/version"
|
||||
require_relative "lib/respondus_soap_endpoint/version"
|
||||
|
||||
# Describe your gem and declare its dependencies:
|
||||
Gem::Specification.new do |s|
|
||||
|
|
|
@ -1,9 +1,6 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
$:.push File.expand_path("../lib", __FILE__)
|
||||
|
||||
# Maintain your gem's version:
|
||||
require "simply_versioned/gem_version"
|
||||
require_relative "lib/simply_versioned/gem_version"
|
||||
|
||||
# Describe your gem and declare its dependencies:
|
||||
Gem::Specification.new do |s|
|
||||
|
|
|
@ -1,8 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
lib = File.expand_path('../lib', __FILE__)
|
||||
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
||||
|
||||
Gem::Specification.new do |spec|
|
||||
spec.name = "request_context"
|
||||
spec.version = "0.1.0"
|
||||
|
|
|
@ -57,7 +57,7 @@ require 'rubocop_canvas/cops/specs/scope_includes'
|
|||
module RuboCop
|
||||
module Canvas
|
||||
module Inject
|
||||
DEFAULT_FILE = File.expand_path("../../config/default.yml", __FILE__)
|
||||
DEFAULT_FILE = File.expand_path('../config/default.yml', __dir__)
|
||||
|
||||
def self.defaults!
|
||||
path = File.absolute_path(DEFAULT_FILE)
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
lib = File.expand_path('../lib', __FILE__)
|
||||
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
||||
require 'rubocop_canvas/version'
|
||||
require_relative 'lib/rubocop_canvas/version'
|
||||
|
||||
Gem::Specification.new do |spec|
|
||||
spec.name = "rubocop-canvas"
|
||||
|
|
|
@ -1,8 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
lib = File.expand_path("../lib", __FILE__)
|
||||
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
||||
|
||||
Gem::Specification.new do |spec|
|
||||
spec.name = "stringify_ids"
|
||||
spec.version = "1.0.0"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
|
||||
$LOAD_PATH.unshift File.expand_path('../lib', __dir__)
|
||||
require 'tatl_tael'
|
||||
|
|
|
@ -1,8 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
lib = File.expand_path('../lib', __FILE__)
|
||||
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
||||
|
||||
Gem::Specification.new do |spec|
|
||||
spec.name = "tatl_tael"
|
||||
spec.version = "0.0.1"
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
# You should have received a copy of the GNU Affero General Public License along
|
||||
# with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
|
||||
$LOAD_PATH.unshift File.expand_path('../lib', __dir__)
|
||||
require 'turnitin_api'
|
||||
require 'webmock/rspec'
|
||||
|
||||
|
@ -31,7 +31,7 @@ RSpec.configure do |config|
|
|||
end
|
||||
|
||||
def fixture(*file)
|
||||
File.new(File.join(File.expand_path("../fixtures", __FILE__), *file))
|
||||
File.new(File.join(File.expand_path('fixtures', __dir__), *file))
|
||||
end
|
||||
|
||||
def json_fixture(*file)
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
lib = File.expand_path('../lib', __FILE__)
|
||||
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
||||
require 'turnitin_api/version'
|
||||
require_relative 'lib/turnitin_api/version'
|
||||
|
||||
Gem::Specification.new do |spec|
|
||||
spec.name = "turnitin_api"
|
||||
|
@ -19,10 +17,10 @@ Gem::Specification.new do |spec|
|
|||
|
||||
spec.add_dependency 'faraday', '~> 0.17.3'
|
||||
spec.add_dependency 'faraday_middleware', '~> 0.8'
|
||||
spec.add_dependency 'simple_oauth', '0.2'
|
||||
spec.add_dependency 'webmock', '3.3.0'
|
||||
spec.add_dependency 'simple_oauth', '~> 0.3'
|
||||
|
||||
spec.add_development_dependency "bundler", "~> 2.2"
|
||||
spec.add_development_dependency "bundler", "~> 2.2"
|
||||
spec.add_development_dependency "rake", "~> 10.0"
|
||||
spec.add_development_dependency "rspec", "~> 3.5.0"
|
||||
spec.add_development_dependency 'webmock', '~> 3.0'
|
||||
end
|
||||
|
|
|
@ -1,8 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
lib = File.expand_path('../lib', __FILE__)
|
||||
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
||||
|
||||
Gem::Specification.new do |spec|
|
||||
spec.name = "twitter"
|
||||
spec.version = "1.0.0"
|
||||
|
|
|
@ -1,8 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
lib = File.expand_path('../lib', __FILE__)
|
||||
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
||||
|
||||
Gem::Specification.new do |spec|
|
||||
spec.name = "utf8_cleaner"
|
||||
spec.version = '0.0.1'
|
||||
|
|
|
@ -1,8 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
lib = File.expand_path('../lib', __FILE__)
|
||||
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
||||
|
||||
Gem::Specification.new do |spec|
|
||||
spec.name = "workflow"
|
||||
spec.version = '0.0.1'
|
||||
|
|
|
@ -127,7 +127,7 @@ module ActiveSupport::Cache::SafeRedisRaceCondition
|
|||
# is written to delete a key, but only if it's value matches the
|
||||
# provided value (so if someone else has re-written it since we won't delete it)
|
||||
def delif_script
|
||||
@_delif ||= Redis::Scripting::Script.new(File.expand_path("../delif.lua", __FILE__))
|
||||
@_delif ||= Redis::Scripting::Script.new(File.expand_path('delif.lua', __dir__))
|
||||
end
|
||||
|
||||
# vanilla Rails is weird, and assumes "race_condition_ttl" is 5 minutes; override that to actually do math
|
||||
|
|
|
@ -29,7 +29,7 @@ BrowserSupport = Struct.new(:browser, :version) do
|
|||
end
|
||||
|
||||
def configuration
|
||||
@configuration ||= YAML.load_file(File.expand_path('../../config/browsers.yml', __FILE__))
|
||||
@configuration ||= YAML.load_file(File.expand_path('../config/browsers.yml', __dir__))
|
||||
end
|
||||
|
||||
def minimum_browsers
|
||||
|
|
|
@ -30,7 +30,7 @@ module CC::Exporter::Epub
|
|||
@base_template = base_template
|
||||
@exporter = exporter
|
||||
@title = Exporter::RESOURCE_TITLES[@reference] || @content[:title]
|
||||
css = File.expand_path("../templates/css_template.css", __FILE__)
|
||||
css = File.expand_path('templates/css_template.css', __dir__)
|
||||
@style = File.read(css)
|
||||
end
|
||||
attr_reader :content, :base_template, :exporter, :title, :reference, :style
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
ENV['RUNNING_AS_DAEMON'] = 'true'
|
||||
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
|
||||
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__)
|
||||
# We avoid loading the whole rails environment here, so that commands like
|
||||
# `status` and `start` return much faster.
|
||||
require 'bundler/setup'
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
# with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
|
||||
$LOAD_PATH.push File.expand_path("../../gems/dr_diff/lib", __FILE__)
|
||||
$LOAD_PATH.push File.expand_path('../gems/dr_diff/lib', __dir__)
|
||||
require 'dr_diff'
|
||||
require 'json'
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/usr/bin/env ruby
|
||||
# frozen_string_literal: true
|
||||
|
||||
require File.expand_path('../../config/boot', __FILE__)
|
||||
require File.expand_path('../config/boot', __dir__)
|
||||
|
||||
require 'aws-sdk-kinesis'
|
||||
require 'json'
|
||||
|
|
|
@ -46,7 +46,7 @@ module NotificationsCommon
|
|||
end
|
||||
|
||||
def load_all_notifications
|
||||
load File.expand_path("../../../../lib/tasks/db_load_data.rake", __FILE__)
|
||||
load File.expand_path('../../../lib/tasks/db_load_data.rake', __dir__)
|
||||
Rake::Task.define_task(:environment)
|
||||
Rake::Task["db:load_notifications"].invoke
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue