pg_column_byte_packer 1.2.1 → 1.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +4 -2
- data/.ruby-version +1 -1
- data/Appraisals +12 -8
- data/README.md +4 -2
- data/gemfiles/{rails_5.1.gemfile → rails_7.1.gemfile} +1 -1
- data/gemfiles/{rails_5.2.gemfile → rails_7.2.gemfile} +1 -1
- data/gemfiles/rails_8.0.gemfile +7 -0
- data/lib/pg_column_byte_packer/version.rb +1 -1
- data/pg_column_byte_packer.gemspec +1 -1
- metadata +10 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: af8db7dc311f4670fd3b1db34491a95b6832d9e8c2b6bdbd7a5f6253bffbcb29
|
4
|
+
data.tar.gz: a95293debca7a6e9ac95abbf37469ac2e854886f3164d94279c55b56150203f4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fec9f947b1f8cd6ef97f4519d316d19627ddd1c00437260fafb57fd58d9e074e7c035caad8cc1ebbd7bf1648620dfca6ec39e805ccd5d3d4b41688383363de3d
|
7
|
+
data.tar.gz: f002ff351a5b32fd3e143acaccc2106251d05854cb9b4a0ddb905b6526dfc1b696a20e478566dc582e607ab1dd380fe807040e65024b5616033eb200d34b3d24
|
data/.github/workflows/ci.yml
CHANGED
@@ -11,10 +11,12 @@ jobs:
|
|
11
11
|
- 12
|
12
12
|
- 13
|
13
13
|
gemfile:
|
14
|
-
- rails_5.1
|
15
|
-
- rails_5.2
|
16
14
|
- rails_6.0
|
17
15
|
- rails_6.1
|
16
|
+
- rails_7.0
|
17
|
+
- rails_7.1
|
18
|
+
- rails_7.2
|
19
|
+
- rails_8.0
|
18
20
|
name: PostgreSQL ${{ matrix.pg }}
|
19
21
|
runs-on: ubuntu-latest
|
20
22
|
env: # $BUNDLE_GEMFILE must be set at the job level, so it is set for all steps
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
ruby-
|
1
|
+
ruby-3.3
|
data/Appraisals
CHANGED
@@ -1,11 +1,3 @@
|
|
1
|
-
appraise "rails-5.1" do
|
2
|
-
gem "activerecord", "~> 5.1.0"
|
3
|
-
end
|
4
|
-
|
5
|
-
appraise "rails-5.2" do
|
6
|
-
gem "activerecord", "~> 5.2.0"
|
7
|
-
end
|
8
|
-
|
9
1
|
appraise "rails-6.0" do
|
10
2
|
gem "activerecord", "~> 6.0.0"
|
11
3
|
end
|
@@ -17,3 +9,15 @@ end
|
|
17
9
|
appraise "rails-7.0" do
|
18
10
|
gem "activerecord", "~> 7.0.0"
|
19
11
|
end
|
12
|
+
|
13
|
+
appraise "rails-7.1" do
|
14
|
+
gem "activerecord", "~> 7.1"
|
15
|
+
end
|
16
|
+
|
17
|
+
appraise "rails-7.2" do
|
18
|
+
gem "activerecord", "~> 7.2"
|
19
|
+
end
|
20
|
+
|
21
|
+
appraise "rails-8.0" do
|
22
|
+
gem "activerecord", "~> 8.0"
|
23
|
+
end
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# PostgreSQL Column Byte Packer
|
2
2
|
|
3
|
-
[![Build Status](https://
|
3
|
+
[![Build Status](https://github.com/braintree/pg_column_byte_packer/actions/workflows/ci.yml/badge.svg)](https://github.com/braintree/pg_column_byte_packer/actions/workflows/ci.yml?query=branch%3Amaster+)
|
4
4
|
|
5
5
|
tl;dr: Provides facilities for laying out table column order to optimize for disk space usage both in ActiveRecord migrations and `pg_dump` generated SQL schema files. The general idea and relevant PostgreSQL internals are described in [On Rocks and Sand](https://www.2ndquadrant.com/en/blog/on-rocks-and-sand/).
|
6
6
|
|
@@ -51,7 +51,9 @@ After checking out the repo, run `bin/setup` to install dependencies. Then, run
|
|
51
51
|
|
52
52
|
Running tests will automatically create a test database in the locally running Postgres server. You can find the connection parameters in `spec/spec_helper.rb`, but setting the environment variables `PGHOST`, `PGPORT`, `PGUSER`, and `PGPASSWORD` will override the defaults.
|
53
53
|
|
54
|
-
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org). To ignore local changes (say to `.ruby-version`) you can do `rake build release:source_control_push release:rubygem_push`.
|
54
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, commit the change, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org). To ignore local changes (say to `.ruby-version`) you can do `rake build release:source_control_push release:rubygem_push`.
|
55
|
+
|
56
|
+
Note: if while releasing the gem you get the error ``Your rubygems.org credentials aren't set. Run `gem push` to set them.`` you can more simply run `gem signin`.
|
55
57
|
|
56
58
|
## License
|
57
59
|
|
@@ -32,6 +32,6 @@ Gem::Specification.new do |spec|
|
|
32
32
|
spec.add_development_dependency "appraisal"
|
33
33
|
|
34
34
|
spec.add_dependency "pg"
|
35
|
-
spec.add_dependency "activerecord", ">=
|
35
|
+
spec.add_dependency "activerecord", ">= 6.0", "< 8.1"
|
36
36
|
spec.add_dependency "pg_query", "< 2.0"
|
37
37
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pg_column_byte_packer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- jcoleman
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-02-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -128,20 +128,20 @@ dependencies:
|
|
128
128
|
requirements:
|
129
129
|
- - ">="
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
version: '
|
131
|
+
version: '6.0'
|
132
132
|
- - "<"
|
133
133
|
- !ruby/object:Gem::Version
|
134
|
-
version: '
|
134
|
+
version: '8.1'
|
135
135
|
type: :runtime
|
136
136
|
prerelease: false
|
137
137
|
version_requirements: !ruby/object:Gem::Requirement
|
138
138
|
requirements:
|
139
139
|
- - ">="
|
140
140
|
- !ruby/object:Gem::Version
|
141
|
-
version: '
|
141
|
+
version: '6.0'
|
142
142
|
- - "<"
|
143
143
|
- !ruby/object:Gem::Version
|
144
|
-
version: '
|
144
|
+
version: '8.1'
|
145
145
|
- !ruby/object:Gem::Dependency
|
146
146
|
name: pg_query
|
147
147
|
requirement: !ruby/object:Gem::Requirement
|
@@ -176,11 +176,12 @@ files:
|
|
176
176
|
- bin/console
|
177
177
|
- bin/setup
|
178
178
|
- gemfiles/.bundle/config
|
179
|
-
- gemfiles/rails_5.1.gemfile
|
180
|
-
- gemfiles/rails_5.2.gemfile
|
181
179
|
- gemfiles/rails_6.0.gemfile
|
182
180
|
- gemfiles/rails_6.1.gemfile
|
183
181
|
- gemfiles/rails_7.0.gemfile
|
182
|
+
- gemfiles/rails_7.1.gemfile
|
183
|
+
- gemfiles/rails_7.2.gemfile
|
184
|
+
- gemfiles/rails_8.0.gemfile
|
184
185
|
- lib/pg_column_byte_packer.rb
|
185
186
|
- lib/pg_column_byte_packer/pg_dump.rb
|
186
187
|
- lib/pg_column_byte_packer/schema_statements.rb
|
@@ -205,7 +206,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
205
206
|
- !ruby/object:Gem::Version
|
206
207
|
version: '0'
|
207
208
|
requirements: []
|
208
|
-
rubygems_version: 3.
|
209
|
+
rubygems_version: 3.2.5
|
209
210
|
signing_key:
|
210
211
|
specification_version: 4
|
211
212
|
summary: Auto-order table columns for optimize disk space usage
|