rails-pg-extras 5.4.0 → 5.4.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 +30 -53
- data/Rakefile +1 -1
- data/app/views/layouts/rails_pg_extras/web/application.html.erb +2 -2
- data/assets/pg-extras-rails-ujs.js +630 -0
- data/assets/pg-extras-tailwind.min.css +11874 -0
- data/docker-compose.yml.sample +27 -10
- data/lib/rails-pg-extras.rb +3 -0
- data/lib/rails_pg_extras/version.rb +1 -1
- data/lib/rails_pg_extras/web/engine.rb +3 -1
- data/spec/smoke_spec.rb +1 -0
- data/spec/spec_helper.rb +8 -4
- metadata +6 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6bf3096a74a0e544c948b0bd87b0737767176adbcd544a1f95084a51aa299fa8
|
4
|
+
data.tar.gz: c4bca053351fd916cc3956fe0f7c0427d6420147fb02fb7caaa6c0f6c29b9f9e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cad5dab9dc11afc7d59448340dbc959381ea492865217ac7d6389eb8b9defd0057dd3e2c85c70bdd068f75fd597fabe45f43282e024a7ce5fb49b356268d572b
|
7
|
+
data.tar.gz: 1cb6e91225df7fb043cba343071c60f477fbc77ec4e9271a93e59acf18df08ad1b1aa8552cb8eb6d722605cf75bfc374499de118d9644b8e4cb9356620d97b1c
|
data/.github/workflows/ci.yml
CHANGED
@@ -12,45 +12,52 @@ jobs:
|
|
12
12
|
strategy:
|
13
13
|
fail-fast: false
|
14
14
|
matrix:
|
15
|
-
ruby-version: ['3.2', '3.1', '3.0', '2.7', '2.6']
|
15
|
+
ruby-version: ['3.3', '3.2', '3.1', '3.0', '2.7', '2.6']
|
16
16
|
steps:
|
17
|
-
- uses: actions/checkout@
|
18
|
-
- name: Run PostgreSQL
|
17
|
+
- uses: actions/checkout@v4
|
18
|
+
- name: Run PostgreSQL 12
|
19
19
|
run: |
|
20
20
|
docker run --env POSTGRES_USER=postgres \
|
21
21
|
--env POSTGRES_DB=rails-pg-extras-test \
|
22
22
|
--env POSTGRES_PASSWORD=secret \
|
23
|
-
-d -p 5432:5432 postgres:
|
23
|
+
-d -p 5432:5432 postgres:12.20-alpine \
|
24
24
|
postgres -c shared_preload_libraries=pg_stat_statements
|
25
|
-
- name: Run PostgreSQL
|
25
|
+
- name: Run PostgreSQL 13
|
26
26
|
run: |
|
27
27
|
docker run --env POSTGRES_USER=postgres \
|
28
28
|
--env POSTGRES_DB=rails-pg-extras-test \
|
29
29
|
--env POSTGRES_PASSWORD=secret \
|
30
|
-
-d -p 5433:5432 postgres:
|
30
|
+
-d -p 5433:5432 postgres:13.16-alpine \
|
31
31
|
postgres -c shared_preload_libraries=pg_stat_statements
|
32
|
-
- name: Run PostgreSQL
|
32
|
+
- name: Run PostgreSQL 14
|
33
33
|
run: |
|
34
34
|
docker run --env POSTGRES_USER=postgres \
|
35
35
|
--env POSTGRES_DB=rails-pg-extras-test \
|
36
36
|
--env POSTGRES_PASSWORD=secret \
|
37
|
-
-d -p 5434:5432 postgres:13
|
37
|
+
-d -p 5434:5432 postgres:14.13-alpine \
|
38
38
|
postgres -c shared_preload_libraries=pg_stat_statements
|
39
|
-
- name: Run PostgreSQL
|
39
|
+
- name: Run PostgreSQL 15
|
40
40
|
run: |
|
41
41
|
docker run --env POSTGRES_USER=postgres \
|
42
42
|
--env POSTGRES_DB=rails-pg-extras-test \
|
43
43
|
--env POSTGRES_PASSWORD=secret \
|
44
|
-
-d -p 5435:5432 postgres:
|
44
|
+
-d -p 5435:5432 postgres:15.8-alpine \
|
45
45
|
postgres -c shared_preload_libraries=pg_stat_statements
|
46
|
-
- name: Run PostgreSQL
|
46
|
+
- name: Run PostgreSQL 16
|
47
|
+
run: |
|
48
|
+
docker run --env POSTGRES_USER=postgres \
|
49
|
+
--env POSTGRES_DB=rails-pg-extras-test \
|
50
|
+
--env POSTGRES_PASSWORD=secret \
|
51
|
+
-d -p 5436:5432 postgres:16.4-alpine \
|
52
|
+
postgres -c shared_preload_libraries=pg_stat_statements
|
53
|
+
- name: Run PostgreSQL 17
|
47
54
|
run: |
|
48
55
|
docker run --env POSTGRES_USER=postgres \
|
49
56
|
--env POSTGRES_DB=rails-pg-extras-test \
|
50
57
|
--env POSTGRES_PASSWORD=secret \
|
51
|
-
-d -p
|
58
|
+
-d -p 5437:5432 postgres:17.0-alpine \
|
52
59
|
postgres -c shared_preload_libraries=pg_stat_statements
|
53
|
-
sleep
|
60
|
+
sleep 5
|
54
61
|
- name: Set up Ruby ${{ matrix.ruby-version }}
|
55
62
|
uses: ruby/setup-ruby@v1
|
56
63
|
with:
|
@@ -64,64 +71,34 @@ jobs:
|
|
64
71
|
bundle config set --local path 'vendor/bundle'
|
65
72
|
bundle install
|
66
73
|
sleep 10
|
67
|
-
- name: Run tests for PG 11
|
68
|
-
env:
|
69
|
-
PG_VERSION: 11
|
70
|
-
POSTGRES_HOST: localhost
|
71
|
-
POSTGRES_USER: postgres
|
72
|
-
POSTGRES_DB: rails-pg-extras-test
|
73
|
-
POSTGRES_PASSWORD: secret
|
74
|
-
DATABASE_URL: postgresql://postgres:secret@localhost:5432/rails-pg-extras-test
|
75
|
-
run: |
|
76
|
-
bundle exec rspec spec/
|
77
|
-
- name: Run tests for PG 11
|
78
|
-
env:
|
79
|
-
PG_VERSION: 11
|
80
|
-
POSTGRES_HOST: localhost
|
81
|
-
POSTGRES_USER: postgres
|
82
|
-
POSTGRES_DB: rails-pg-extras-test
|
83
|
-
POSTGRES_PASSWORD: secret
|
84
|
-
DATABASE_URL: postgresql://postgres:secret@localhost:5432/rails-pg-extras-test
|
85
|
-
run: |
|
86
|
-
bundle exec rspec spec/
|
87
74
|
- name: Run tests for PG 12
|
88
75
|
env:
|
89
76
|
PG_VERSION: 12
|
90
|
-
POSTGRES_HOST: localhost
|
91
|
-
POSTGRES_USER: postgres
|
92
|
-
POSTGRES_DB: rails-pg-extras-test
|
93
|
-
POSTGRES_PASSWORD: secret
|
94
|
-
DATABASE_URL: postgresql://postgres:secret@localhost:5433/rails-pg-extras-test
|
95
77
|
run: |
|
96
78
|
bundle exec rspec spec/
|
97
79
|
- name: Run tests for PG 13
|
98
80
|
env:
|
99
81
|
PG_VERSION: 13
|
100
|
-
POSTGRES_HOST: localhost
|
101
|
-
POSTGRES_USER: postgres
|
102
|
-
POSTGRES_DB: rails-pg-extras-test
|
103
|
-
POSTGRES_PASSWORD: secret
|
104
|
-
DATABASE_URL: postgresql://postgres:secret@localhost:5434/rails-pg-extras-test
|
105
82
|
run: |
|
106
83
|
bundle exec rspec spec/
|
107
84
|
- name: Run tests for PG 14
|
108
85
|
env:
|
109
86
|
PG_VERSION: 14
|
110
|
-
POSTGRES_HOST: localhost
|
111
|
-
POSTGRES_USER: postgres
|
112
|
-
POSTGRES_DB: rails-pg-extras-test
|
113
|
-
POSTGRES_PASSWORD: secret
|
114
|
-
DATABASE_URL: postgresql://postgres:secret@localhost:5435/rails-pg-extras-test
|
115
87
|
run: |
|
116
88
|
bundle exec rspec spec/
|
117
89
|
- name: Run tests for PG 15
|
118
90
|
env:
|
119
91
|
PG_VERSION: 15
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
92
|
+
run: |
|
93
|
+
bundle exec rspec spec/
|
94
|
+
- name: Run tests for PG 16
|
95
|
+
env:
|
96
|
+
PG_VERSION: 16
|
97
|
+
run: |
|
98
|
+
bundle exec rspec spec/
|
99
|
+
- name: Run tests for PG 17
|
100
|
+
env:
|
101
|
+
PG_VERSION: 17
|
125
102
|
run: |
|
126
103
|
bundle exec rspec spec/
|
127
104
|
|
data/Rakefile
CHANGED
@@ -5,5 +5,5 @@ RSpec::Core::RakeTask.new(:spec)
|
|
5
5
|
|
6
6
|
desc "Test all PG versions"
|
7
7
|
task :test_all do
|
8
|
-
system("PG_VERSION=
|
8
|
+
system("PG_VERSION=12 bundle exec rspec spec/ && PG_VERSION=13 bundle exec rspec spec/ && PG_VERSION=14 bundle exec rspec spec/ && PG_VERSION=15 bundle exec rspec spec/ && PG_VERSION=16 bundle exec rspec spec/ && PG_VERSION=17 bundle exec rspec spec/")
|
9
9
|
end
|
@@ -2,8 +2,8 @@
|
|
2
2
|
<html>
|
3
3
|
<head>
|
4
4
|
<title><%= content_for :title %> | v<%= RailsPgExtras::VERSION %></title>
|
5
|
-
|
6
|
-
<link href="
|
5
|
+
<script src="/pg-extras-rails-ujs.js"></script>
|
6
|
+
<link href="/pg-extras-tailwind.min.css" rel="stylesheet">
|
7
7
|
<%= csrf_meta_tags %>
|
8
8
|
</head>
|
9
9
|
<body class="p-5 text-xs">
|