csdl 0.2.2 → 0.2.3
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/csdl/targets.rb +6 -3
- data/lib/csdl/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 17a36950a3d317a812ba35972f6ead5f9cf76331
|
4
|
+
data.tar.gz: 6cecc20ee1ff98df245222cd8fb784aecaf461eb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ca5cd3fc97a24e3c0bbcea9dad0effd2bd3ab98bcbafa75d46458a8aa8c357174d1191ba8d5cf7f38b986cd60d26dd14ce5556e6c44b672f09f7be5ffecca71a
|
7
|
+
data.tar.gz: e6a8d62a7a1f37ca34eb5143b13c04b72a3645b9ac296ed1dae60f34bf25cc546397080e61c8cfae94a9b025eb43040973c274d8b713a71aa97beff73cb23f15
|
data/lib/csdl/targets.rb
CHANGED
@@ -72,8 +72,8 @@ module CSDL
|
|
72
72
|
[ "interaction.ml.categories" , false , true , true ] ,
|
73
73
|
[ "interaction.raw_content" , true , false , true ] ,
|
74
74
|
[ "interaction.subtype" , true , true , true ] ,
|
75
|
-
[ "interaction.
|
76
|
-
[ "interaction.
|
75
|
+
[ "interaction.tags" , false , true , false ] ,
|
76
|
+
[ "interaction.tag_tree" , false , true , true ] ,
|
77
77
|
[ "links.code" , true , true , true ] ,
|
78
78
|
[ "links.domain" , true , true , true ] ,
|
79
79
|
[ "links.normalized_url" , true , true , true ] ,
|
@@ -141,12 +141,15 @@ module CSDL
|
|
141
141
|
# CSDL.query_target?("fb.topics.website") # => false
|
142
142
|
# CSDL.query_target?("fb.topic_ids") # => true
|
143
143
|
#
|
144
|
+
# @example Verifying an interaction.tag_tree target
|
145
|
+
# CSDL.query_target?("interaction.tag_tree.foo") # => true
|
146
|
+
#
|
144
147
|
# @param target_name [String] The name of the target.
|
145
148
|
#
|
146
149
|
# @return [Boolean] Whether or not the value is a valid CSDL Query Filter Target.
|
147
150
|
#
|
148
151
|
def self.query_target?(target_name)
|
149
|
-
QUERY_TARGETS.key?(target_name)
|
152
|
+
QUERY_TARGETS.key?(target_name) || target_name =~ /^interaction\.tag_tree\..+$/
|
150
153
|
end
|
151
154
|
|
152
155
|
end
|
data/lib/csdl/version.rb
CHANGED