pg_rails 7.0.8.pre.alpha.86 → 7.0.8.pre.alpha.87
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/pg_engine/config/initializers/cable_ready.rb +1 -1
- data/pg_engine/lib/pg_engine.rb +6 -0
- data/pg_engine/spec/controllers/pg_engine/base_controller_spec.rb +1 -1
- data/pg_engine/spec/controllers/public/webhooks_controller_spec.rb +6 -6
- data/pg_layout/app/views/layouts/pg_layout/base.html.slim +1 -2
- data/pg_rails/lib/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 11a9943ab64b335423a3cdade44755884793200a84fdcada6e233b57da56e6a2
|
4
|
+
data.tar.gz: ab282edacb9357c7c33c439243177e35a35ebd681f37a6317bfd7a8bf1a8cc84
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c986082ad8aeafff10393b65e028c357cafb90459458e86a3ab8e68b1194e828f392ea33568db2c5e29c797d9830cf9f168a4ac944aaa7c3564c6fb2066b4ced
|
7
|
+
data.tar.gz: fcdaa6c8d1950ef9b36a6fe27a83cbcf6b9fdadf21e45b8e79315664ce27843c5b983026ce79c6ea8b4ebfbb89b314e118218df31779407c7f1d45581ce22b9f
|
@@ -23,5 +23,5 @@ CableReady.configure do |config|
|
|
23
23
|
# Doing so is a best practice to avoid heavy ActionCable traffic
|
24
24
|
#
|
25
25
|
# config.updatable_debounce_time = 0.1.seconds
|
26
|
-
config.verifier_key =
|
26
|
+
# config.verifier_key = Rails.application.credentials.dig(:anycable, :cable_ready_secret)
|
27
27
|
end
|
data/pg_engine/lib/pg_engine.rb
CHANGED
@@ -96,4 +96,10 @@ module PgEngine
|
|
96
96
|
db = (env_value.nil? ? 1 : (env_value.presence || 1)).to_i - 1
|
97
97
|
"redis://127.0.0.1:6379/#{db}"
|
98
98
|
end
|
99
|
+
|
100
|
+
GOOGLE_FONTS_URL =
|
101
|
+
<<~URL.chomp
|
102
|
+
https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,300;0,400;\
|
103
|
+
0,500;0,700;1,300;1,400;1,500;1,700&display=swap
|
104
|
+
URL
|
99
105
|
end
|
@@ -26,7 +26,7 @@ def build_body(log_id, signature, timestamp)
|
|
26
26
|
JSON
|
27
27
|
end
|
28
28
|
|
29
|
-
|
29
|
+
describe Public::WebhooksController do
|
30
30
|
include ActiveSupport::Testing::TimeHelpers
|
31
31
|
|
32
32
|
before { travel_to Time.zone.at(1_716_564_587) }
|
@@ -61,7 +61,7 @@ fdescribe Public::WebhooksController do
|
|
61
61
|
expect(response).to have_http_status(:internal_server_error)
|
62
62
|
end
|
63
63
|
|
64
|
-
|
64
|
+
it do
|
65
65
|
expect { subject }.to have_errored('internal server error')
|
66
66
|
.and(have_errored('no me sirve'))
|
67
67
|
end
|
@@ -75,7 +75,7 @@ fdescribe Public::WebhooksController do
|
|
75
75
|
expect(response).to have_http_status(:bad_request)
|
76
76
|
end
|
77
77
|
|
78
|
-
|
78
|
+
it do
|
79
79
|
expect { subject }.to have_warned('parser error').and(have_warned('mal json'))
|
80
80
|
end
|
81
81
|
end
|
@@ -107,7 +107,7 @@ fdescribe Public::WebhooksController do
|
|
107
107
|
|
108
108
|
it_behaves_like 'todo bien pero no guarda el log'
|
109
109
|
|
110
|
-
|
110
|
+
it do
|
111
111
|
expect { subject }.to have_warned('refusing invalid signature')
|
112
112
|
end
|
113
113
|
end
|
@@ -123,7 +123,7 @@ fdescribe Public::WebhooksController do
|
|
123
123
|
|
124
124
|
it_behaves_like 'todo bien pero no guarda el log'
|
125
125
|
|
126
|
-
|
126
|
+
it do
|
127
127
|
expect { subject }.to have_warned('refusing used token')
|
128
128
|
end
|
129
129
|
end
|
@@ -134,7 +134,7 @@ fdescribe Public::WebhooksController do
|
|
134
134
|
|
135
135
|
it_behaves_like 'todo bien pero no guarda el log'
|
136
136
|
|
137
|
-
|
137
|
+
it do
|
138
138
|
expect { subject }.to have_warned('refusing due to timestamp')
|
139
139
|
end
|
140
140
|
end
|
@@ -36,8 +36,7 @@ html
|
|
36
36
|
|
37
37
|
link rel="preconnect" href="https://fonts.googleapis.com"
|
38
38
|
link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="crossorigin"
|
39
|
-
link href="
|
40
|
-
0,500;0,700;1,300;1,400;1,500;1,700&display=swap" rel="stylesheet"
|
39
|
+
link href=PgEngine::GOOGLE_FONTS_URL rel="stylesheet"
|
41
40
|
css:
|
42
41
|
body {
|
43
42
|
font-family: "Ubuntu", sans-serif;
|
data/pg_rails/lib/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pg_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 7.0.8.pre.alpha.
|
4
|
+
version: 7.0.8.pre.alpha.87
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Martín Rosso
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-05-
|
11
|
+
date: 2024-05-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|