redcord 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/redcord/relation.rb +1 -0
- data/lib/redcord/vacuum_helper.rb +3 -3
- 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: 134041206308ab5d1cb967dca5b5985b2bdd6b9c058601d7040d75d1119a2c98
|
4
|
+
data.tar.gz: d04f590786ab4cd9251ac32f5eea7d11e8103c448916c4aaee290db177370eca
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 374deab010a1f6b40e038adae19b4a7dee5485c5e17ff3a7e8fc92a4e839a2e9835166acd9b6369e7b628e206c1a280e943a28c040172d107c147d3be158fa8b
|
7
|
+
data.tar.gz: 28279ab008fcf6ba226d574250f882f35b05b69fc968794430c3d992c69fd686ec9c2f3fa7821aa6227426c7a027fda07c6e929624a533058c4a396c975f1140
|
data/lib/redcord/relation.rb
CHANGED
@@ -9,15 +9,15 @@ module Redcord::VacuumHelper
|
|
9
9
|
sig { params(model: T.class_of(Redcord::Base)).void }
|
10
10
|
def self.vacuum(model)
|
11
11
|
model.class_variable_get(:@@index_attributes).each do |index_attr|
|
12
|
-
puts "Vacuuming index attribute: #{index_attr}"
|
12
|
+
puts "Vacuuming index attribute: #{index_attr} for model: #{model.name}"
|
13
13
|
_vacuum_index_attribute(model, index_attr)
|
14
14
|
end
|
15
15
|
model.class_variable_get(:@@range_index_attributes).each do |range_index_attr|
|
16
|
-
puts "Vacuuming range index attribute: #{range_index_attr}"
|
16
|
+
puts "Vacuuming range index attribute: #{range_index_attr} for model: #{model.name}"
|
17
17
|
_vacuum_range_index_attribute(model, range_index_attr)
|
18
18
|
end
|
19
19
|
model.class_variable_get(:@@custom_index_attributes).keys.each do |index_name|
|
20
|
-
puts "Vacuuming custom index: #{index_name}"
|
20
|
+
puts "Vacuuming custom index: #{index_name} for model: #{model.name}"
|
21
21
|
_vacuum_custom_index(model, index_name)
|
22
22
|
end
|
23
23
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: redcord
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chan Zuckerberg Initiative
|
@@ -220,7 +220,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
220
220
|
- !ruby/object:Gem::Version
|
221
221
|
version: '0'
|
222
222
|
requirements: []
|
223
|
-
rubygems_version: 3.
|
223
|
+
rubygems_version: 3.1.6
|
224
224
|
signing_key:
|
225
225
|
specification_version: 4
|
226
226
|
summary: A Ruby ORM like Active Record, but for Redis
|