switchman 1.14.0 → 1.14.1

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
2
  SHA256:
3
- metadata.gz: 730c18de3f2e731bbbdce7ff8405691a0530510fa62ef552ae526728c92f1572
4
- data.tar.gz: 8fbf3a6f789e76816e08af306404c8c5f04be944d4525289be82d00502c2df34
3
+ metadata.gz: 276b414f42294d6b4900e923972492ae87486ece50af3ae80ae0665c912e0e89
4
+ data.tar.gz: 2a097e0f0b39655d4d82f8ef789bd5ff6e9dddd169e3ff794f11d99038a14dff
5
5
  SHA512:
6
- metadata.gz: bf7bafe9382647ce00b1323c168ce49f48d5d8d7db68718d75a9a05f6c4f02557e439aa941b9876273c962936891c757f89422727a50ff4ec4a5a045e40b6e23
7
- data.tar.gz: c84822183e7448b8a9b2db7c9400d91429756e2b2f470fd1183a68e0d914b448cc1afb97ae3981fdf21a4a6f82c1eefb959d19fa801d4ac78120d8d31e300790
6
+ metadata.gz: 7db91542ba02b866c823de9c1a3c8b907129f2f914480fe8b4d8934699a36cb7adf679d8942993f830d086894c67e2e21b3f074af13dffc23b42b9c63ac90b26
7
+ data.tar.gz: 21dd28ce6e78b82456b471f1cd3b3e33cadd3b299ad7889024abd3772719c016651b3fd9deea621a7cbe235d338749baf1e26baa9011713fa57264409ceb9580
@@ -175,11 +175,12 @@ module Switchman
175
175
  name.quoted
176
176
  end
177
177
 
178
- def with_local_table_name
179
- @use_local_table_name = true
178
+ def with_local_table_name(enable = true)
179
+ old_value = @use_local_table_name
180
+ @use_local_table_name = enable
180
181
  yield
181
182
  ensure
182
- @use_local_table_name = false
183
+ @use_local_table_name = old_value
183
184
  end
184
185
 
185
186
  def foreign_keys(table_name)
@@ -248,6 +249,10 @@ module Switchman
248
249
 
249
250
  execute "ALTER INDEX #{quote_table_name(old_name)} RENAME TO #{quote_local_table_name(new_name)}"
250
251
  end
252
+
253
+ def columns(*)
254
+ with_local_table_name(false) { super }
255
+ end
251
256
  end
252
257
  end
253
258
  end
@@ -1,3 +1,3 @@
1
1
  module Switchman
2
- VERSION = "1.14.0"
2
+ VERSION = "1.14.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: switchman
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.14.0
4
+ version: 1.14.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cody Cutrer
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2019-06-12 00:00:00.000000000 Z
13
+ date: 2019-06-26 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: railties