pg-pglogical 2.1.1 → 2.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 14b9822683a1454c59a7a242b5a01f134162b50e
4
- data.tar.gz: 6831413e95da2e307ddb4b171f0c98e18511487b
3
+ metadata.gz: e37310e05554845cc1ad9f8ed81cf7be29f24803
4
+ data.tar.gz: 40b11f6ce6742eaff575aad7cba31819c477eaac
5
5
  SHA512:
6
- metadata.gz: 2ef6b32e17e332e5d0f6def34080dffba4810ff2f2f8f6151b047d67cb13892af18e272a83c83abcd35f3d842333e56866eb68b6112d4402771e17a02f04c711
7
- data.tar.gz: ce36f9052873042f382bf03cb8af1faa91125e640b0b38b0f6a24c1f4ea1ff273027cbb0ad677c3cd6a97b0d15cd8a8101474e7c90fc1b71ecd5734aba6a1df3
6
+ metadata.gz: b190215a1bcb14a2417879357801eb29e1646a59bd555a8764af38951b368aaa0430b21569b9e1568b4752d1c990c29b3ec367e99c0b3ca87afde38e88b0d7d4
7
+ data.tar.gz: 84fe1813e2a2bb0603226991de5544900eaf556b88ce2dd5fad19826adc397e5db0a46e681ef62e930978676940b188ef9637574ab50c16024c156e3f1ffd1bb
data/CHANGELOG.md CHANGED
@@ -6,6 +6,14 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [2.1.2] - 2018-02-07
10
+ ### Fixed
11
+ - Account for symbol table names in drop_table patch [[#19](https://github.com/ManageIQ/pg-pglogical/pull/19)]
12
+ - Show all subscriptions, even if no replication origin status entry exists [[#20](https://github.com/ManageIQ/pg-pglogical/pull/20)]
13
+
14
+ ### Changed
15
+ - Set a version constraint on the PG gem [[#18](https://github.com/ManageIQ/pg-pglogical/pull/18)]
16
+
9
17
  ## [2.1.1] - 2017-11-14
10
18
  ### Fixed
11
19
  - Add the options parameter to the prepended drop table method [[#16](https://github.com/ManageIQ/pg-pglogical/pull/16)]
@@ -12,10 +12,12 @@ module PG
12
12
 
13
13
  module MigrationExtension
14
14
  def drop_table(table, options = {})
15
+ table_string = table.to_s
16
+
15
17
  pgl = PG::Pglogical::Client.new(ApplicationRecord.connection)
16
18
  if pgl.enabled?
17
19
  pgl.replication_sets.each do |set|
18
- pgl.replication_set_remove_table(set, table) if pgl.tables_in_replication_set(set).include?(table)
20
+ pgl.replication_set_remove_table(set, table_string) if pgl.tables_in_replication_set(set).include?(table_string)
19
21
  end
20
22
  end
21
23
  super
@@ -131,7 +131,7 @@ module PG
131
131
  # @param sync_data [Boolean] sync the data when subscribing
132
132
  # @param forward_origins [Array<String>] names of non-provider nodes to replicate changes
133
133
  # from (cascading replication)
134
- def subscription_create(name, dsn, replication_sets = %w(default default_insert_only), # rubocop:disable Metrics/ParameterLists
134
+ def subscription_create(name, dsn, replication_sets = %w(default default_insert_only),
135
135
  sync_structure = true, sync_data = true, forward_origins = ["all"])
136
136
  typed_exec("SELECT pglogical.create_subscription($1, $2, $3, $4, $5, $6)",
137
137
  name, dsn, replication_sets, sync_structure, sync_data, forward_origins)
@@ -221,7 +221,7 @@ module PG
221
221
  sql = <<-SQL
222
222
  SELECT sub.*, stat.remote_lsn AS remote_replication_lsn, stat.local_lsn AS local_replication_lsn
223
223
  FROM pglogical.show_subscription_status($1) sub
224
- JOIN pg_replication_origin_status stat
224
+ LEFT JOIN pg_replication_origin_status stat
225
225
  ON sub.slot_name = stat.external_id
226
226
  SQL
227
227
 
@@ -1,5 +1,5 @@
1
1
  module PG
2
2
  module Pglogical
3
- VERSION = "2.1.1".freeze
3
+ VERSION = "2.1.2".freeze
4
4
  end
5
5
  end
data/lib/pg-pglogical.rb CHANGED
@@ -1,2 +1,3 @@
1
- # rubocop:disable Style/FileName
1
+ # rubocop:disable Naming/FileName
2
2
  require 'pg/pglogical'
3
+ # rubocop:enable Naming/FileName
data/pg-pglogical.gemspec CHANGED
@@ -24,9 +24,10 @@ EOS
24
24
  spec.require_paths = ["lib"]
25
25
 
26
26
  spec.add_dependency "activerecord"
27
- spec.add_dependency "pg"
27
+ spec.add_dependency "pg", "~> 0.18"
28
28
 
29
29
  spec.add_development_dependency "bundler", "~> 1.13"
30
30
  spec.add_development_dependency "rake", "~> 10.0"
31
31
  spec.add_development_dependency "rspec", "~> 3.0"
32
+ spec.add_development_dependency "rubocop", "~> 0.52"
32
33
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pg-pglogical
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.1
4
+ version: 2.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Carboni
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-11-14 00:00:00.000000000 Z
11
+ date: 2018-02-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -28,16 +28,16 @@ dependencies:
28
28
  name: pg
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">="
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '0'
33
+ version: '0.18'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ">="
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '0'
40
+ version: '0.18'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -80,6 +80,20 @@ dependencies:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
82
  version: '3.0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rubocop
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '0.52'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '0.52'
83
97
  description: |
84
98
  This gem provides a class with methods which map directly to the SQL stored
85
99
  procedure APIs provided by pglogical. It also provides a way to mix these
@@ -131,7 +145,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
131
145
  version: '0'
132
146
  requirements: []
133
147
  rubyforge_project:
134
- rubygems_version: 2.6.11
148
+ rubygems_version: 2.6.14
135
149
  signing_key:
136
150
  specification_version: 4
137
151
  summary: A ruby gem for configuring and using pglogical