queryko 1.2.0.beta → 1.2.1.beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/queryko/after_attributes.rb +4 -0
- data/lib/queryko/range_attributes.rb +3 -0
- data/lib/queryko/searchables.rb +3 -0
- data/lib/queryko/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4967b8c26157bc4c6e8dd8db445c085226fe60a9160be42a0d6673b4488a7c19
|
4
|
+
data.tar.gz: f0318014c3e69c40be2ad93241bd07009e70c2406c0705b4c2f3d374701df374
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 212a8a764669160874672152c2d5db434fc933c5e78aa5e972cc29cb56a0f3280ff51ff05fcc9ef0320426adbcfb76133b82ddbfd1db9ea45d81dc005cc4c4d8
|
7
|
+
data.tar.gz: 420597ac1563eeb43f983c44406c85d19bc093129a0319b4498deb09ee8a69ed4d60bba17d54298947e57cac7f630247a73a8f32f50795a828504c3b957f4153
|
@@ -6,9 +6,13 @@ module Queryko
|
|
6
6
|
|
7
7
|
module ClassMethods
|
8
8
|
def add_after_attributes(*args)
|
9
|
+
suggestion = []
|
9
10
|
args.each do |arg|
|
10
11
|
feature arg.to_sym, :after, as: "after_#{arg}"
|
12
|
+
suggestion << "feature :#{arg}, :after, as: 'after_#{arg}'"
|
13
|
+
|
11
14
|
end
|
15
|
+
warn "[DEPRECATION] `add_after_attributes` is deprecated. Please use `feature` instead.\nExample:\n#{suggestion.join("\n")}"
|
12
16
|
end
|
13
17
|
end
|
14
18
|
end
|
@@ -6,10 +6,13 @@ module Queryko
|
|
6
6
|
|
7
7
|
module ClassMethods
|
8
8
|
def add_range_attributes(*args)
|
9
|
+
suggestion = []
|
9
10
|
args.each do |arg|
|
10
11
|
feature arg.to_sym, :min
|
11
12
|
feature arg.to_sym, :max
|
13
|
+
suggestion << "feature :#{arg}, :min"
|
12
14
|
end
|
15
|
+
warn "[DEPRECATION] `add_range_attributes` is deprecated. Please use `feature` instead.\nExample:\n#{suggestion.join("\n")}"
|
13
16
|
end
|
14
17
|
end
|
15
18
|
end
|
data/lib/queryko/searchables.rb
CHANGED
@@ -6,9 +6,12 @@ module Queryko
|
|
6
6
|
|
7
7
|
module ClassMethods
|
8
8
|
def add_searchables(*args)
|
9
|
+
suggestion = []
|
9
10
|
args.each do |arg|
|
10
11
|
feature arg.to_sym, :search, as: arg.to_sym
|
12
|
+
suggestion << "feature :#{arg}, :search, as: #{arg}"
|
11
13
|
end
|
14
|
+
warn "[DEPRECATION] `add_searchables` is deprecated. Please use `feature` instead.\nExample:\n#{suggestion.join("\n")}"
|
12
15
|
end
|
13
16
|
end
|
14
17
|
end
|
data/lib/queryko/version.rb
CHANGED