activedocument 0.2 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -68,7 +68,7 @@ CONSTRAINT
68
68
  end
69
69
  <<-GENERATED
70
70
  import module namespace search = "http://marklogic.com/appservices/search"at "/MarkLogic/appservices/search/search.xqy";
71
- search:search("#{search_text}",#{option},#{start}, #{page_length})
71
+ search:search('#{search_text}',#{option},#{start}, #{page_length})
72
72
  GENERATED
73
73
  end
74
74
 
@@ -56,7 +56,14 @@ module ActiveDocument
56
56
  @range_constraints.each do |key, value|
57
57
  constraints << <<-XML
58
58
  <constraint name="#{key}">
59
- <range>
59
+ <range type="#{value["type"]}"
60
+ XML
61
+ if value.has_key?("collation")
62
+ constraints << "collation=\"#{value["collation"]}\""
63
+ end
64
+
65
+ constraints << <<-XML
66
+ >
60
67
  <element ns="#{value["namespace"]}" name="#{value["element"]}"/>
61
68
  </range>
62
69
  </constraint>
metadata CHANGED
@@ -5,7 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 2
8
- version: "0.2"
8
+ - 1
9
+ version: 0.2.1
9
10
  platform: ruby
10
11
  authors:
11
12
  - Clark D. Richey, Jr.
@@ -13,7 +14,7 @@ autorequire:
13
14
  bindir: bin
14
15
  cert_chain: []
15
16
 
16
- date: 2010-04-05 00:00:00 -04:00
17
+ date: 2010-04-08 00:00:00 -04:00
17
18
  default_executable:
18
19
  dependencies:
19
20
  - !ruby/object:Gem::Dependency