psql_toys 0.4.2 → 0.5.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
2
  SHA256:
3
- metadata.gz: 7131444d0f8082672fe6c19c48c25c93f4243fb4a47516739d4af09a43ac1a62
4
- data.tar.gz: 91919b4902ffe28a2c84778405b0721ec70981710ab4cef001723ce3ac488933
3
+ metadata.gz: dd2637276dbe663355dc2b05255ba1c869e7fe00adc8c82891f5f0023f6a8713
4
+ data.tar.gz: 8572e6d5a45c7da79570fb4fd1dfb1869cc0c3d66b177c48b8be266a2c1929df
5
5
  SHA512:
6
- metadata.gz: a0f1b30032611d56c39548d9a04a22b006da7ee79484c3772ce9249dc99e7c77c5ee397b75543c23b41c59f6c97704b8dbbc3cf0fe972a2a3467b52981e2f502
7
- data.tar.gz: cbcd50a8585f00df5bb0c2c9686cba9403884b5730237a1f0986aaef26cacd4e6a2e0c41d2e502cb00de319c513dd6cf02cb266672f51fdd9042c9ca69e66b1d
6
+ metadata.gz: 4eefc4e75ea5b7cd66a6d8e1802676507346f701fad2a2accc368131220892f989554e0f87922207e2897f958065632dd8dd03ac274532171cd85be03af1ea22
7
+ data.tar.gz: 447387268c7dc916d99ad11490f90576c1076b88507254c03ce7e70935363c156b4cb5f53ee3df4ffd20b634df094e4393b748ec6f2be1fded9597a14a17a7b5
data/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 0.5.0 (2022-08-10)
6
+
7
+ * Add Ruby 3.1 support.
8
+ * Drop Ruby 2.5 support.
9
+ * Update dependencies.
10
+
5
11
  ## 0.4.2 (2021-10-18)
6
12
 
7
13
  * Update development dependencies.
data/README.md CHANGED
@@ -1,11 +1,11 @@
1
1
  # PSQL Toys
2
2
 
3
3
  [![Cirrus CI - Base Branch Build Status](https://img.shields.io/cirrus/github/AlexWayfer/psql_toys?style=flat-square)](https://cirrus-ci.com/github/AlexWayfer/psql_toys)
4
- [![Codecov branch](https://img.shields.io/codecov/c/github/AlexWayfer/psql_toys/master.svg?style=flat-square)](https://codecov.io/gh/AlexWayfer/psql_toys)
4
+ [![Codecov branch](https://img.shields.io/codecov/c/github/AlexWayfer/psql_toys/main.svg?style=flat-square)](https://codecov.io/gh/AlexWayfer/psql_toys)
5
5
  [![Code Climate](https://img.shields.io/codeclimate/maintainability/AlexWayfer/psql_toys.svg?style=flat-square)](https://codeclimate.com/github/AlexWayfer/psql_toys)
6
6
  [![Depfu](https://img.shields.io/depfu/AlexWayfer/psql_toys?style=flat-square)](https://depfu.com/repos/github/AlexWayfer/psql_toys)
7
- [![Inline docs](https://inch-ci.org/github/AlexWayfer/psql_toys.svg?branch=master)](https://inch-ci.org/github/AlexWayfer/psql_toys)
8
- [![license](https://img.shields.io/github/license/AlexWayfer/psql_toys.svg?style=flat-square)](https://github.com/AlexWayfer/psql_toys/blob/master/LICENSE.txt)
7
+ [![Inline docs](https://inch-ci.org/github/AlexWayfer/psql_toys.svg?branch=main)](https://inch-ci.org/github/AlexWayfer/psql_toys)
8
+ [![license](https://img.shields.io/github/license/AlexWayfer/psql_toys.svg?style=flat-square)](https://github.com/AlexWayfer/psql_toys/blob/main/LICENSE.txt)
9
9
  [![Gem](https://img.shields.io/gem/v/psql_toys.svg?style=flat-square)](https://rubygems.org/gems/psql_toys)
10
10
 
11
11
  Toys template for actions with PostgreSQL, like dumps.
@@ -33,11 +33,8 @@ module PSQLToys
33
33
  puts "Creating dump #{relative_filename}..."
34
34
 
35
35
  time = Benchmark.realtime do
36
- ## https://github.com/rubocop-hq/rubocop/issues/7884
37
- # rubocop:disable Layout/IndentationStyle
38
- sh "pg_dump #{template.db_access} -F#{format.chr}" \
39
- " #{template.db_config[:database]} > #{filename}"
40
- # rubocop:enable Layout/IndentationStyle
36
+ sh "pg_dump #{template.db_access} -F#{format.chr} " \
37
+ "#{template.db_config[:database]} > #{filename}"
41
38
  end
42
39
 
43
40
  puts "Done in #{time.round(2)} s."
@@ -47,23 +47,17 @@ module PSQLToys
47
47
  when 'custom'
48
48
  pg_restore
49
49
  when 'plain'
50
- ## https://github.com/rubocop-hq/rubocop/issues/7884
51
- # rubocop:disable Layout/IndentationStyle
52
- sh "psql #{@template.db_access}" \
53
- " #{@template.db_config[:database]} < #{@dump_file.path}"
54
- # rubocop:enable Layout/IndentationStyle
50
+ sh "psql #{@template.db_access} " \
51
+ "#{@template.db_config[:database]} < #{@dump_file.path}"
55
52
  else
56
53
  raise 'Unknown DB dump file format'
57
54
  end
58
55
  end
59
56
 
60
57
  def pg_restore
61
- ## https://github.com/rubocop-hq/rubocop/issues/7884
62
- # rubocop:disable Layout/IndentationStyle
63
- sh "pg_restore #{@template.db_access} -n public" \
64
- " -d #{@template.db_config[:database]} #{@dump_file.path}" \
65
- ' --jobs=4 --clean --if-exists'
66
- # rubocop:enable Layout/IndentationStyle
58
+ sh "pg_restore #{@template.db_access} -n public " \
59
+ "-d #{@template.db_config[:database]} #{@dump_file.path} " \
60
+ '--jobs=4 --clean --if-exists'
67
61
  end
68
62
  end
69
63
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PSQLToys
4
- VERSION = '0.4.2'
4
+ VERSION = '0.5.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: psql_toys
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Popov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-10-18 00:00:00.000000000 Z
11
+ date: 2022-08-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: alt_memery
@@ -50,14 +50,14 @@ dependencies:
50
50
  requirements:
51
51
  - - "~>"
52
52
  - !ruby/object:Gem::Version
53
- version: 0.12.0
53
+ version: 0.13.0
54
54
  type: :runtime
55
55
  prerelease: false
56
56
  version_requirements: !ruby/object:Gem::Requirement
57
57
  requirements:
58
58
  - - "~>"
59
59
  - !ruby/object:Gem::Version
60
- version: 0.12.0
60
+ version: 0.13.0
61
61
  - !ruby/object:Gem::Dependency
62
62
  name: pry-byebug
63
63
  requirement: !ruby/object:Gem::Requirement
@@ -106,28 +106,28 @@ dependencies:
106
106
  requirements:
107
107
  - - "~>"
108
108
  - !ruby/object:Gem::Version
109
- version: 0.10.0
109
+ version: 0.12.1
110
110
  type: :development
111
111
  prerelease: false
112
112
  version_requirements: !ruby/object:Gem::Requirement
113
113
  requirements:
114
114
  - - "~>"
115
115
  - !ruby/object:Gem::Version
116
- version: 0.10.0
116
+ version: 0.12.1
117
117
  - !ruby/object:Gem::Dependency
118
118
  name: toys
119
119
  requirement: !ruby/object:Gem::Requirement
120
120
  requirements:
121
121
  - - "~>"
122
122
  - !ruby/object:Gem::Version
123
- version: 0.12.0
123
+ version: 0.13.0
124
124
  type: :development
125
125
  prerelease: false
126
126
  version_requirements: !ruby/object:Gem::Requirement
127
127
  requirements:
128
128
  - - "~>"
129
129
  - !ruby/object:Gem::Version
130
- version: 0.12.0
130
+ version: 0.13.0
131
131
  - !ruby/object:Gem::Dependency
132
132
  name: codecov
133
133
  requirement: !ruby/object:Gem::Requirement
@@ -176,14 +176,14 @@ dependencies:
176
176
  requirements:
177
177
  - - "~>"
178
178
  - !ruby/object:Gem::Version
179
- version: 1.22.1
179
+ version: 1.34.0
180
180
  type: :development
181
181
  prerelease: false
182
182
  version_requirements: !ruby/object:Gem::Requirement
183
183
  requirements:
184
184
  - - "~>"
185
185
  - !ruby/object:Gem::Version
186
- version: 1.22.1
186
+ version: 1.34.0
187
187
  - !ruby/object:Gem::Dependency
188
188
  name: rubocop-performance
189
189
  requirement: !ruby/object:Gem::Requirement
@@ -242,8 +242,9 @@ homepage: https://github.com/AlexWayfer/psql_toys
242
242
  licenses:
243
243
  - MIT
244
244
  metadata:
245
+ rubygems_mfa_required: 'true'
245
246
  bug_tracker_uri: https://github.com/AlexWayfer/psql_toys/issues
246
- changelog_uri: https://github.com/AlexWayfer/psql_toys/blob/v0.4.2/CHANGELOG.md
247
+ changelog_uri: https://github.com/AlexWayfer/psql_toys/blob/v0.5.0/CHANGELOG.md
247
248
  homepage_uri: https://github.com/AlexWayfer/psql_toys
248
249
  source_code_uri: https://github.com/AlexWayfer/psql_toys
249
250
  post_install_message:
@@ -254,7 +255,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
254
255
  requirements:
255
256
  - - ">="
256
257
  - !ruby/object:Gem::Version
257
- version: '2.5'
258
+ version: '2.6'
258
259
  - - "<"
259
260
  - !ruby/object:Gem::Version
260
261
  version: '4'
@@ -264,7 +265,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
264
265
  - !ruby/object:Gem::Version
265
266
  version: '0'
266
267
  requirements: []
267
- rubygems_version: 3.2.22
268
+ rubygems_version: 3.3.7
268
269
  signing_key:
269
270
  specification_version: 4
270
271
  summary: Toys template for actions with PostgreSQL, like dumps.