switchman-inst-jobs 1.1.7 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA256:
3
- metadata.gz: 772cb15d20fd4d2384ed59aee169b4589d02c62c8260d95b0909057d1d55d509
4
- data.tar.gz: c5ac80eb621ba2a1d8935ade2f141366e6fc080cb5d0281daa20df09a96cd213
2
+ SHA1:
3
+ metadata.gz: f1312fe2082207ca69ad3531914f02cfeb8e6083
4
+ data.tar.gz: 35c77ccc1aae09543d79a5d8a214ff9fcfeeed2e
5
5
  SHA512:
6
- metadata.gz: 787e2ba6be9ed7eabd6b8c7ebfedf969fc8bcebbdd84944c8263b0c0291f3f0e3bca8c83a7f4c57807e1a23225f2aa24ffd071889882c7908234231599cc1f24
7
- data.tar.gz: 6c8ba64cc6b388f84918e42754e8a129bc5d1c7b183b7c15dda4fbc79260ac5f8d95c99755bde3afd808923fe282fad43c9a7f13b791bfac0bb127008b3b7502
6
+ metadata.gz: e8b86328c038c6ce55feaf429934c647144b01881ca2604aa6b411c7aaf04b04c1770ee8b534b53f4cbb97c6e7d7181b9773808a956d579ee1db5a6977c65530
7
+ data.tar.gz: 7a4ccd1df0fc37a7bbc48196fa4d5c7f0886eab3d9b4643175456e212d36c409bc35c2dc174cb31e29390adf62417a78115abc8a833d435e10cda698a3270501
@@ -0,0 +1,15 @@
1
+ class SetSearchPathsOnFunctions < ActiveRecord::Migration[4.2]
2
+ disable_ddl_transaction!
3
+
4
+ def up
5
+ set_search_path('delayed_jobs_after_delete_row_tr_fn', '()')
6
+ set_search_path('delayed_jobs_before_insert_row_tr_fn', '()')
7
+ set_search_path('half_md5_as_bigint', '(varchar)')
8
+ end
9
+
10
+ def down
11
+ set_search_path('delayed_jobs_after_delete_row_tr_fn', '()', 'DEFAULT')
12
+ set_search_path('delayed_jobs_before_insert_row_tr_fn', '()', 'DEFAULT')
13
+ set_search_path('half_md5_as_bigint', '(varchar)', 'DEFAULT')
14
+ end
15
+ end
@@ -1,5 +1,4 @@
1
1
  require 'inst-jobs'
2
- require 'rails/railtie'
3
2
  require 'switchman'
4
3
 
5
4
  module SwitchmanInstJobs
@@ -41,7 +40,7 @@ require 'switchman_inst_jobs/delayed/message_sending'
41
40
  require 'switchman_inst_jobs/delayed/pool'
42
41
  require 'switchman_inst_jobs/delayed/worker'
43
42
  require 'switchman_inst_jobs/delayed/worker/health_check'
44
- require 'switchman_inst_jobs/railtie'
43
+ require 'switchman_inst_jobs/engine'
45
44
  require 'switchman_inst_jobs/shackles'
46
45
  require 'switchman_inst_jobs/switchman/database_server'
47
46
  require 'switchman_inst_jobs/switchman/default_shard'
@@ -1,5 +1,7 @@
1
1
  module SwitchmanInstJobs
2
- class Railtie < Rails::Railtie
2
+ class Engine < ::Rails::Engine
3
+ isolate_namespace SwitchmanInstJobs
4
+
3
5
  initializer 'sharding.active_record',
4
6
  after: 'switchman.extend_connection_adapters' do
5
7
  SwitchmanInstJobs.initialize_active_record
@@ -1,3 +1,3 @@
1
1
  module SwitchmanInstJobs
2
- VERSION = '1.1.7'.freeze
2
+ VERSION = '1.2.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: switchman-inst-jobs
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.7
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bryan Petty
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-06-07 00:00:00.000000000 Z
11
+ date: 2018-07-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: inst-jobs
@@ -232,6 +232,7 @@ extensions: []
232
232
  extra_rdoc_files: []
233
233
  files:
234
234
  - db/migrate/20170308045400_add_shard_id_to_delayed_jobs.rb
235
+ - db/migrate/20180628153808_set_search_paths_on_functions.rb
235
236
  - lib/switchman-inst-jobs.rb
236
237
  - lib/switchman_inst_jobs.rb
237
238
  - lib/switchman_inst_jobs/active_record/connection_adapters/postgresql_adapter.rb
@@ -241,7 +242,7 @@ files:
241
242
  - lib/switchman_inst_jobs/delayed/pool.rb
242
243
  - lib/switchman_inst_jobs/delayed/worker.rb
243
244
  - lib/switchman_inst_jobs/delayed/worker/health_check.rb
244
- - lib/switchman_inst_jobs/railtie.rb
245
+ - lib/switchman_inst_jobs/engine.rb
245
246
  - lib/switchman_inst_jobs/shackles.rb
246
247
  - lib/switchman_inst_jobs/switchman/database_server.rb
247
248
  - lib/switchman_inst_jobs/switchman/default_shard.rb
@@ -267,7 +268,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
267
268
  version: '0'
268
269
  requirements: []
269
270
  rubyforge_project:
270
- rubygems_version: 2.7.3
271
+ rubygems_version: 2.6.14.1
271
272
  signing_key:
272
273
  specification_version: 4
273
274
  summary: Switchman and Instructure Jobs compatibility gem.