csdl 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9a5a81b67da628b0366680c16d783b9d1e2e0d00
4
- data.tar.gz: 44909b7b6f3dbff37f522b702a25780cab4b6111
3
+ metadata.gz: 17a36950a3d317a812ba35972f6ead5f9cf76331
4
+ data.tar.gz: 6cecc20ee1ff98df245222cd8fb784aecaf461eb
5
5
  SHA512:
6
- metadata.gz: fc7266bfdc5c29092bf98b2b0f46fe71d6d2d0e8b37f64c2040d756e2b8ce7b371049fd479d6c32e29e4e4c675906e5bfb1b01ddfeba92f6838da06caf7605f2
7
- data.tar.gz: e6d191dc4b1a39475dfdf088cf941608915d5e58415fa1e0a2bd06bdf056dbfe90b094ff822008085fce74c0470376850fe49445ffb0c797d6fd08da1a8feb30
6
+ metadata.gz: ca5cd3fc97a24e3c0bbcea9dad0effd2bd3ab98bcbafa75d46458a8aa8c357174d1191ba8d5cf7f38b986cd60d26dd14ce5556e6c44b672f09f7be5ffecca71a
7
+ data.tar.gz: e6a8d62a7a1f37ca34eb5143b13c04b72a3645b9ac296ed1dae60f34bf25cc546397080e61c8cfae94a9b025eb43040973c274d8b713a71aa97beff73cb23f15
@@ -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.tag_tree" , false , true , false ] ,
76
- [ "interaction.tags" , false , true , true ] ,
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
@@ -1,3 +1,3 @@
1
1
  module CSDL
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: csdl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - BJ Neilsen