Sha256: 00eb09f998c49763edddc74a0c03bd9f3ca838416e96646e5bfd8ea5fe577fec

Contents?: true

Size: 450 Bytes

Versions: 48

Compression:

Stored size: 450 Bytes

Contents

# patch SQLiteDatabaseTasks for JRuby
# The problem is that JRuby does not yet support the "out:" option for
# Kernel.system(). Uses plain output redirection as a workaround.

require 'active_record/tasks/sqlite_database_tasks'
require 'shellwords'

module ActiveRecord
  module Tasks
    class SQLiteDatabaseTasks
      private
        def run_cmd(cmd, args, out)
          `#{cmd} #{Shellwords.join(args)} > "#{out}"`
        end
    end
  end
end

Version data entries

48 entries across 48 versions & 2 rubygems

Version Path
activerecord-jdbc-alt-adapter-60.2.0-java lib/arjdbc/tasks/sqlite_database_tasks_patch.rb
activerecord-jdbc-alt-adapter-61.1.0-java lib/arjdbc/tasks/sqlite_database_tasks_patch.rb
activerecord-jdbc-adapter-61.1-java lib/arjdbc/tasks/sqlite_database_tasks_patch.rb
activerecord-jdbc-adapter-60.4-java lib/arjdbc/tasks/sqlite_database_tasks_patch.rb
activerecord-jdbc-adapter-52.8-java lib/arjdbc/tasks/sqlite_database_tasks_patch.rb
activerecord-jdbc-alt-adapter-61.0.0-java lib/arjdbc/tasks/sqlite_database_tasks_patch.rb
activerecord-jdbc-alt-adapter-60.1.0-java lib/arjdbc/tasks/sqlite_database_tasks_patch.rb
activerecord-jdbc-alt-adapter-52.6.0-java lib/arjdbc/tasks/sqlite_database_tasks_patch.rb
activerecord-jdbc-adapter-61.0-java lib/arjdbc/tasks/sqlite_database_tasks_patch.rb
activerecord-jdbc-adapter-60.3-java lib/arjdbc/tasks/sqlite_database_tasks_patch.rb
activerecord-jdbc-adapter-52.7-java lib/arjdbc/tasks/sqlite_database_tasks_patch.rb
activerecord-jdbc-adapter-60.2-java lib/arjdbc/tasks/sqlite_database_tasks_patch.rb
activerecord-jdbc-adapter-52.6-java lib/arjdbc/tasks/sqlite_database_tasks_patch.rb
activerecord-jdbc-alt-adapter-60.0.0-java lib/arjdbc/tasks/sqlite_database_tasks_patch.rb
activerecord-jdbc-alt-adapter-52.5.1-java lib/arjdbc/tasks/sqlite_database_tasks_patch.rb
activerecord-jdbc-adapter-60.1-java lib/arjdbc/tasks/sqlite_database_tasks_patch.rb
activerecord-jdbc-adapter-52.5-java lib/arjdbc/tasks/sqlite_database_tasks_patch.rb
activerecord-jdbc-alt-adapter-52.4.0-java lib/arjdbc/tasks/sqlite_database_tasks_patch.rb
activerecord-jdbc-adapter-60.0-java lib/arjdbc/tasks/sqlite_database_tasks_patch.rb
activerecord-jdbc-adapter-52.4-java lib/arjdbc/tasks/sqlite_database_tasks_patch.rb