pg_column_byte_packer 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Appraisals +4 -0
- data/gemfiles/rails_7.0.gemfile +7 -0
- data/lib/pg_column_byte_packer/version.rb +1 -1
- data/lib/pg_column_byte_packer.rb +7 -3
- data/pg_column_byte_packer.gemspec +2 -2
- metadata +8 -8
- data/.travis.yml +0 -31
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 890aafd28157565a12a3bde40e4bc87d6156203229e6eb26987c05b4dd951e0b
|
4
|
+
data.tar.gz: 8b8f5e074740a77451705083d464cbf864a544e5cbe2ed4cb55317f958d350c7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3e0705d48e7d17e252fe773c36706c5aa32a32dddc81c8c3b91c8fbf82977a885c7f5b32871e87acd22634926e4c0b6bf3083f3a7cae2c5c2374a4d966c8584a
|
7
|
+
data.tar.gz: 4f0009bc49a7f8c95ea3ddc27e6e09fdb0a81a2080a3bbf7145ab867ce6ddbb850ba7508a8b8966f8994154b4e3a2c761e0fb3ec08681ec3599def90a8c88a5e
|
data/Appraisals
CHANGED
@@ -74,8 +74,8 @@ module PgColumnBytePacker
|
|
74
74
|
|
75
75
|
# Ignore array designations. This seems like something we could
|
76
76
|
# so with the parsing above, and we could, and, in fact, that
|
77
|
-
# would also almost
|
78
|
-
# ActiveRecord
|
77
|
+
# would also almost certainly allow us to rip out most of the
|
78
|
+
# ActiveRecord generated alias type name matching below, but
|
79
79
|
# it would also mean a more thorough refactor below for types
|
80
80
|
# with size designations (e.g., when ActiveRecord generates
|
81
81
|
# "float(23)"). So we use this simple regex cleanup for now.
|
@@ -84,7 +84,7 @@ module PgColumnBytePacker
|
|
84
84
|
# Sort out the alignment. Most of the type name matching is to
|
85
85
|
# support the naming variants that ActiveRecord generates (often
|
86
86
|
# they're aliases, like "integer", for which PostgreSQL internally
|
87
|
-
# has a different canonical name
|
87
|
+
# has a different canonical name: "int4"). There are also
|
88
88
|
# a few cases we have to handle where the output from pgdump
|
89
89
|
# doesn't match the canonical name in pg_type; e.g., "float8" is
|
90
90
|
# canonical, but pgdump outputs "double precision".
|
@@ -194,6 +194,7 @@ module PgColumnBytePacker
|
|
194
194
|
end
|
195
195
|
|
196
196
|
if typtype == "e"
|
197
|
+
# Enum
|
197
198
|
4
|
198
199
|
else
|
199
200
|
case typalign
|
@@ -203,10 +204,13 @@ module PgColumnBytePacker
|
|
203
204
|
# column definition) but require no alignment.
|
204
205
|
1
|
205
206
|
when "s"
|
207
|
+
# Short alignment
|
206
208
|
2
|
207
209
|
when "i"
|
210
|
+
# Int alingment
|
208
211
|
4
|
209
212
|
when "d"
|
213
|
+
# Double alignment
|
210
214
|
8
|
211
215
|
else
|
212
216
|
1
|
@@ -23,7 +23,7 @@ Gem::Specification.new do |spec|
|
|
23
23
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
24
24
|
spec.require_paths = ["lib"]
|
25
25
|
|
26
|
-
spec.add_development_dependency "rake"
|
26
|
+
spec.add_development_dependency "rake", ">= 12.3.3"
|
27
27
|
spec.add_development_dependency "rspec"
|
28
28
|
spec.add_development_dependency "relation_to_struct"
|
29
29
|
spec.add_development_dependency "db-query-matchers"
|
@@ -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", ">= 5.1", "<
|
35
|
+
spec.add_dependency "activerecord", ">= 5.1", "< 7.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.1
|
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: 2023-02-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 12.3.3
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 12.3.3
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rspec
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -131,7 +131,7 @@ dependencies:
|
|
131
131
|
version: '5.1'
|
132
132
|
- - "<"
|
133
133
|
- !ruby/object:Gem::Version
|
134
|
-
version: '
|
134
|
+
version: '7.1'
|
135
135
|
type: :runtime
|
136
136
|
prerelease: false
|
137
137
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -141,7 +141,7 @@ dependencies:
|
|
141
141
|
version: '5.1'
|
142
142
|
- - "<"
|
143
143
|
- !ruby/object:Gem::Version
|
144
|
-
version: '
|
144
|
+
version: '7.1'
|
145
145
|
- !ruby/object:Gem::Dependency
|
146
146
|
name: pg_query
|
147
147
|
requirement: !ruby/object:Gem::Requirement
|
@@ -168,7 +168,6 @@ files:
|
|
168
168
|
- ".pryrc"
|
169
169
|
- ".rspec"
|
170
170
|
- ".ruby-version"
|
171
|
-
- ".travis.yml"
|
172
171
|
- Appraisals
|
173
172
|
- Gemfile
|
174
173
|
- LICENSE.txt
|
@@ -181,6 +180,7 @@ files:
|
|
181
180
|
- gemfiles/rails_5.2.gemfile
|
182
181
|
- gemfiles/rails_6.0.gemfile
|
183
182
|
- gemfiles/rails_6.1.gemfile
|
183
|
+
- gemfiles/rails_7.0.gemfile
|
184
184
|
- lib/pg_column_byte_packer.rb
|
185
185
|
- lib/pg_column_byte_packer/pg_dump.rb
|
186
186
|
- lib/pg_column_byte_packer/schema_statements.rb
|
@@ -205,7 +205,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
205
205
|
- !ruby/object:Gem::Version
|
206
206
|
version: '0'
|
207
207
|
requirements: []
|
208
|
-
rubygems_version: 3.1.
|
208
|
+
rubygems_version: 3.1.4
|
209
209
|
signing_key:
|
210
210
|
specification_version: 4
|
211
211
|
summary: Auto-order table columns for optimize disk space usage
|
data/.travis.yml
DELETED
@@ -1,31 +0,0 @@
|
|
1
|
-
sudo: false
|
2
|
-
language: ruby
|
3
|
-
rvm:
|
4
|
-
- 2.5
|
5
|
-
- 2.7
|
6
|
-
env:
|
7
|
-
global:
|
8
|
-
- PGPORT: "5433"
|
9
|
-
jobs:
|
10
|
-
- PGVERSION: "9.6"
|
11
|
-
- PGVERSION: "10"
|
12
|
-
- PGVERSION: "11"
|
13
|
-
- PGVERSION: "12"
|
14
|
-
- PGVERSION: "13"
|
15
|
-
services:
|
16
|
-
- postgresql
|
17
|
-
before_install:
|
18
|
-
- "for CLUSTER_VERSION in $(pg_lsclusters -h | cut -d' ' -f1); do sudo pg_dropcluster $CLUSTER_VERSION main --stop || true; sudo apt-get remove postgresql-client-$CLUSTER_VERSION postgresql-client-common || true; done"
|
19
|
-
- sudo apt-get update
|
20
|
-
- sudo apt-get -y install postgresql-$PGVERSION postgresql-server-dev-$PGVERSION postgresql-contrib-$PGVERSION postgresql-client-$PGVERSION postgresql-client-common
|
21
|
-
- sudo pg_dropcluster $PGVERSION main --stop || true
|
22
|
-
- sudo pg_createcluster $PGVERSION main -D /var/ramfs/postgresql/$PGVERSION/main -- --auth=trust
|
23
|
-
- sudo pg_ctlcluster start $PGVERSION main
|
24
|
-
- gem uninstall -v '>= 2' -i $(rvm gemdir)@global -ax bundler || true
|
25
|
-
- gem install bundler
|
26
|
-
gemfile:
|
27
|
-
- gemfiles/rails_5.1.gemfile
|
28
|
-
- gemfiles/rails_5.2.gemfile
|
29
|
-
- gemfiles/rails_6.0.gemfile
|
30
|
-
- gemfiles/rails_6.1.gemfile
|
31
|
-
script: "bundle exec rake spec"
|