marklogic 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (90) hide show
  1. checksums.yaml +7 -0
  2. data/.editorconfig +10 -0
  3. data/.gitignore +15 -0
  4. data/.rspec +2 -0
  5. data/.ruby-gemset +1 -0
  6. data/.ruby-version +1 -0
  7. data/Gemfile +17 -0
  8. data/Guardfile +45 -0
  9. data/LICENSE.txt +21 -0
  10. data/README.md +31 -0
  11. data/Rakefile +6 -0
  12. data/lib/marklogic.rb +21 -0
  13. data/lib/marklogic/app_server.rb +60 -0
  14. data/lib/marklogic/application.rb +244 -0
  15. data/lib/marklogic/collection.rb +265 -0
  16. data/lib/marklogic/connection.rb +308 -0
  17. data/lib/marklogic/consts.rb +35 -0
  18. data/lib/marklogic/cursor.rb +238 -0
  19. data/lib/marklogic/database.rb +205 -0
  20. data/lib/marklogic/database_settings.rb +13 -0
  21. data/lib/marklogic/database_settings/element_word_lexicon.rb +28 -0
  22. data/lib/marklogic/database_settings/geospatial_element_child_index.rb +41 -0
  23. data/lib/marklogic/database_settings/geospatial_element_index.rb +38 -0
  24. data/lib/marklogic/database_settings/geospatial_element_pair_index.rb +42 -0
  25. data/lib/marklogic/database_settings/geospatial_path_index.rb +37 -0
  26. data/lib/marklogic/database_settings/index.rb +27 -0
  27. data/lib/marklogic/database_settings/range_element_index.rb +77 -0
  28. data/lib/marklogic/database_settings/range_field_index.rb +37 -0
  29. data/lib/marklogic/database_settings/range_path_index.rb +37 -0
  30. data/lib/marklogic/exceptions.rb +5 -0
  31. data/lib/marklogic/forest.rb +47 -0
  32. data/lib/marklogic/loggable.rb +46 -0
  33. data/lib/marklogic/object_id.rb +46 -0
  34. data/lib/marklogic/persistence.rb +29 -0
  35. data/lib/marklogic/queries.rb +18 -0
  36. data/lib/marklogic/queries/and_not_query.rb +14 -0
  37. data/lib/marklogic/queries/and_query.rb +14 -0
  38. data/lib/marklogic/queries/base_query.rb +40 -0
  39. data/lib/marklogic/queries/boost_query.rb +14 -0
  40. data/lib/marklogic/queries/collection_query.rb +14 -0
  41. data/lib/marklogic/queries/container_query.rb +15 -0
  42. data/lib/marklogic/queries/directory_query.rb +20 -0
  43. data/lib/marklogic/queries/document_fragment_query.rb +13 -0
  44. data/lib/marklogic/queries/document_query.rb +14 -0
  45. data/lib/marklogic/queries/geospatial_query.rb +44 -0
  46. data/lib/marklogic/queries/locks_fragment_query.rb +13 -0
  47. data/lib/marklogic/queries/near_query.rb +31 -0
  48. data/lib/marklogic/queries/not_in_query.rb +14 -0
  49. data/lib/marklogic/queries/not_query.rb +13 -0
  50. data/lib/marklogic/queries/or_query.rb +24 -0
  51. data/lib/marklogic/queries/properties_fragment_query.rb +13 -0
  52. data/lib/marklogic/queries/range_query.rb +67 -0
  53. data/lib/marklogic/queries/value_query.rb +44 -0
  54. data/lib/marklogic/queries/word_query.rb +38 -0
  55. data/lib/marklogic/version.rb +3 -0
  56. data/marklogic.gemspec +23 -0
  57. data/spec/marklogic/app_server_spec.rb +21 -0
  58. data/spec/marklogic/application_spec.rb +105 -0
  59. data/spec/marklogic/collection_spec.rb +154 -0
  60. data/spec/marklogic/connection_spec.rb +128 -0
  61. data/spec/marklogic/cursor_spec.rb +219 -0
  62. data/spec/marklogic/database_settings/element_word_lexicon_spec.rb +21 -0
  63. data/spec/marklogic/database_settings/geospatial_element_child_index_spec.rb +26 -0
  64. data/spec/marklogic/database_settings/geospatial_element_index_spec.rb +24 -0
  65. data/spec/marklogic/database_settings/geospatial_element_pair_index_spec.rb +27 -0
  66. data/spec/marklogic/database_settings/geospatial_path_index_spec.rb +23 -0
  67. data/spec/marklogic/database_settings/range_element_index_spec.rb +34 -0
  68. data/spec/marklogic/database_settings/range_field_index_spec.rb +23 -0
  69. data/spec/marklogic/database_settings/range_path_index_spec.rb +23 -0
  70. data/spec/marklogic/database_spec.rb +108 -0
  71. data/spec/marklogic/forest_spec.rb +30 -0
  72. data/spec/marklogic/queries/and_not_query_spec.rb +13 -0
  73. data/spec/marklogic/queries/and_query_spec.rb +31 -0
  74. data/spec/marklogic/queries/boost_query_spec.rb +13 -0
  75. data/spec/marklogic/queries/collection_query_spec.rb +16 -0
  76. data/spec/marklogic/queries/container_query_spec.rb +11 -0
  77. data/spec/marklogic/queries/directory_query_spec.rb +21 -0
  78. data/spec/marklogic/queries/document_fragment_query_spec.rb +11 -0
  79. data/spec/marklogic/queries/document_query_spec.rb +16 -0
  80. data/spec/marklogic/queries/locks_fragement_query_spec.rb +11 -0
  81. data/spec/marklogic/queries/near_query_spec.rb +62 -0
  82. data/spec/marklogic/queries/not_in_query_spec.rb +13 -0
  83. data/spec/marklogic/queries/not_query_spec.rb +11 -0
  84. data/spec/marklogic/queries/or_query_spec.rb +32 -0
  85. data/spec/marklogic/queries/properties_fragment_query_spec.rb +11 -0
  86. data/spec/marklogic/queries/range_query_spec.rb +71 -0
  87. data/spec/marklogic/queries/value_query_spec.rb +68 -0
  88. data/spec/marklogic/queries/word_query_spec.rb +53 -0
  89. data/spec/spec_helper.rb +68 -0
  90. metadata +186 -0
@@ -0,0 +1,13 @@
1
+ require 'spec_helper'
2
+
3
+ describe MarkLogic::Queries::NotInQuery do
4
+
5
+ describe "#to_xqy" do
6
+ it "should create xquery correctly" do
7
+ q = MarkLogic::Queries::NotInQuery.new(
8
+ MarkLogic::Queries::DirectoryQuery.new("/foo/"),
9
+ MarkLogic::Queries::CollectionQuery.new("bar"))
10
+ expect(q.to_xqy).to eq(%Q{cts:not-in-query(cts:directory-query(("/foo/")),cts:collection-query(("bar")))})
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,11 @@
1
+ require 'spec_helper'
2
+
3
+ describe MarkLogic::Queries::NotQuery do
4
+
5
+ describe "#to_xqy" do
6
+ it "should create xquery correctly" do
7
+ q = MarkLogic::Queries::NotQuery.new(MarkLogic::Queries::DirectoryQuery.new("/foo/"))
8
+ expect(q.to_xqy).to eq(%Q{cts:not-query(cts:directory-query(("/foo/")))})
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,32 @@
1
+ require 'spec_helper'
2
+
3
+ describe MarkLogic::Queries::OrQuery do
4
+
5
+ describe "to_xqy" do
6
+ it "should create json correctly" do
7
+ q = MarkLogic::Queries::OrQuery.new
8
+ expect(q.to_xqy).to eq(%Q{cts:or-query(())})
9
+ end
10
+
11
+ it "should create json correctly" do
12
+ q = MarkLogic::Queries::OrQuery.new([])
13
+ expect(q.to_xqy).to eq(%Q{cts:or-query(())})
14
+ end
15
+
16
+ it "should create json correctly" do
17
+ q = MarkLogic::Queries::OrQuery.new([
18
+ MarkLogic::Queries::DirectoryQuery.new("/foo/")
19
+ ])
20
+ expect(q.to_xqy).to eq(%Q{cts:or-query((cts:directory-query(("/foo/"))))})
21
+ end
22
+
23
+ it "should create json correctly" do
24
+ q = MarkLogic::Queries::OrQuery.new([
25
+ MarkLogic::Queries::DirectoryQuery.new("/foo/"),
26
+ MarkLogic::Queries::DirectoryQuery.new("/bar/")
27
+ ])
28
+ expect(q.to_xqy).to eq(%Q{cts:or-query((cts:directory-query(("/foo/")), cts:directory-query(("/bar/"))))})
29
+ end
30
+
31
+ end
32
+ end
@@ -0,0 +1,11 @@
1
+ require 'spec_helper'
2
+
3
+ describe MarkLogic::Queries::PropertiesFragmentQuery do
4
+
5
+ describe "#to_xqy" do
6
+ it "should create xquery correctly" do
7
+ q = MarkLogic::Queries::PropertiesFragmentQuery.new(MarkLogic::Queries::ValueQuery.new("bar", "baz"))
8
+ expect(q.to_xqy).to eq(%Q{cts:properties-fragment-query(cts:json-property-value-query("bar",("baz"),("exact"),1.0))})
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,71 @@
1
+ require 'spec_helper'
2
+
3
+ describe MarkLogic::Queries::RangeQuery do
4
+
5
+ describe "#to_xqy" do
6
+ it "should handle numeric values correctly" do
7
+ q = MarkLogic::Queries::RangeQuery.new(:id, "=", "integer", 123)
8
+ expect(q.to_xqy).to eq(%Q{cts:json-property-range-query("id","=",(123),(),1.0)})
9
+ end
10
+
11
+ it "should handle boolean values correctly" do
12
+ q = MarkLogic::Queries::RangeQuery.new(:id, "=", "boolean", true)
13
+ expect(q.to_xqy).to eq(%Q{cts:json-property-range-query("id","=",(fn:true()),(),1.0)})
14
+ end
15
+
16
+ it "should handle boolean values correctly" do
17
+ q = MarkLogic::Queries::RangeQuery.new(:id, "=", "boolean", false)
18
+ expect(q.to_xqy).to eq(%Q{cts:json-property-range-query("id","=",(fn:false()),(),1.0)})
19
+ end
20
+
21
+ it "should handle string values correctly" do
22
+ q = MarkLogic::Queries::RangeQuery.new(:id, "=", "string", "123")
23
+ expect(q.to_xqy).to eq(%Q{cts:json-property-range-query("id","=",("123"),(),1.0)})
24
+ end
25
+
26
+ it "should add a collation when given" do
27
+ q = MarkLogic::Queries::RangeQuery.new(:id, "=", "string", "123", :collation => "http://marklogic.com/collation/codepoint")
28
+ expect(q.to_xqy).to eq(%Q{cts:json-property-range-query("id","=",("123"),("collation=http://marklogic.com/collation/codepoint"),1.0)})
29
+ end
30
+
31
+ it "should add a min-occurs when given" do
32
+ q = MarkLogic::Queries::RangeQuery.new(:id, "=", "string", "123", :min_occurs => 1)
33
+ expect(q.to_xqy).to eq(%Q{cts:json-property-range-query("id","=",("123"),("min-occurs=1"),1.0)})
34
+ end
35
+
36
+ it "should add a max-occurs when given" do
37
+ q = MarkLogic::Queries::RangeQuery.new(:id, "=", "string", "123", :max_occurs => 1)
38
+ expect(q.to_xqy).to eq(%Q{cts:json-property-range-query("id","=",("123"),("max-occurs=1"),1.0)})
39
+ end
40
+
41
+ it "should add a score-function when given" do
42
+ q = MarkLogic::Queries::RangeQuery.new(:id, "=", "string", "123", :score_function => "linear")
43
+ expect(q.to_xqy).to eq(%Q{cts:json-property-range-query("id","=",("123"),("score-function=linear"),1.0)})
44
+ end
45
+
46
+ it "should add a slope-factor when given" do
47
+ q = MarkLogic::Queries::RangeQuery.new(:id, "=", "string", "123", :slope_factor => 1.0)
48
+ expect(q.to_xqy).to eq(%Q{cts:json-property-range-query("id","=",("123"),("slope-factor=1.0"),1.0)})
49
+ end
50
+
51
+ it "should set the cached option" do
52
+ q = MarkLogic::Queries::RangeQuery.new(:id, "=", "string", "123", :cached => true)
53
+ expect(q.to_xqy).to eq(%Q{cts:json-property-range-query("id","=",("123"),("cached"),1.0)})
54
+ end
55
+
56
+ it "should set the uncached option" do
57
+ q = MarkLogic::Queries::RangeQuery.new(:id, "=", "string", "123", :cached => false)
58
+ expect(q.to_xqy).to eq(%Q{cts:json-property-range-query("id","=",("123"),("uncached"),1.0)})
59
+ end
60
+
61
+ it "should set the synonym option" do
62
+ q = MarkLogic::Queries::RangeQuery.new(:id, "=", "string", "123", :synonym => true)
63
+ expect(q.to_xqy).to eq(%Q{cts:json-property-range-query("id","=",("123"),("synonym"),1.0)})
64
+ end
65
+
66
+ it "should set the multiple options" do
67
+ q = MarkLogic::Queries::RangeQuery.new(:id, "=", "string", "123", collation: "http://marklogic.com/collation/codepoint", cached: false, synonym: true)
68
+ expect(q.to_xqy).to eq(%Q{cts:json-property-range-query("id","=",("123"),("collation=http://marklogic.com/collation/codepoint","uncached","synonym"),1.0)})
69
+ end
70
+ end
71
+ end
@@ -0,0 +1,68 @@
1
+ require 'spec_helper'
2
+
3
+ describe MarkLogic::Queries::ValueQuery do
4
+
5
+ describe "#to_xqy" do
6
+ it "should create text values correctly" do
7
+ q = MarkLogic::Queries::ValueQuery.new(:id, "123")
8
+ expect(q.to_xqy).to eq(%Q{cts:json-property-value-query("id",("123"),("exact"),1.0)})
9
+ end
10
+
11
+ it "should create boolean values correctly" do
12
+ q = MarkLogic::Queries::ValueQuery.new(:alive, true)
13
+ expect(q.to_xqy).to eq(%Q{cts:json-property-value-query("alive",(fn:true()),("exact"),1.0)})
14
+ end
15
+
16
+ it "should create numeric values correctly" do
17
+ q = MarkLogic::Queries::ValueQuery.new(:count, 123)
18
+ expect(q.to_xqy).to eq(%Q{cts:json-property-value-query("count",(123),("exact"),1.0)})
19
+ end
20
+
21
+ it "should create null values correctly" do
22
+ q = MarkLogic::Queries::ValueQuery.new(:count, nil)
23
+ expect(q.to_xqy).to eq(%Q{cts:json-property-value-query("count",(),("exact"),1.0)})
24
+ end
25
+
26
+ it "should accept case-sensitive options correctly" do
27
+ q = MarkLogic::Queries::ValueQuery.new(:count, 123, case_sensitive: true)
28
+ expect(q.to_xqy).to eq(%Q{cts:json-property-value-query("count",(123),("case-sensitive"),1.0)})
29
+
30
+ q = MarkLogic::Queries::ValueQuery.new(:count, 123, case_sensitive: false)
31
+ expect(q.to_xqy).to eq(%Q{cts:json-property-value-query("count",(123),("case-insensitive"),1.0)})
32
+ end
33
+
34
+ it "should accept diacritic-sensitive options correctly" do
35
+ q = MarkLogic::Queries::ValueQuery.new(:count, 123, diacritic_sensitive: true)
36
+ expect(q.to_xqy).to eq(%Q{cts:json-property-value-query("count",(123),("diacritic-sensitive"),1.0)})
37
+
38
+ q = MarkLogic::Queries::ValueQuery.new(:count, 123, diacritic_sensitive: false)
39
+ expect(q.to_xqy).to eq(%Q{cts:json-property-value-query("count",(123),("diacritic-insensitive"),1.0)})
40
+ end
41
+
42
+ it "should accept punctuation-sensitive options correctly" do
43
+ q = MarkLogic::Queries::ValueQuery.new(:count, 123, punctuation_sensitive: true)
44
+ expect(q.to_xqy).to eq(%Q{cts:json-property-value-query("count",(123),("punctuation-sensitive"),1.0)})
45
+
46
+ q = MarkLogic::Queries::ValueQuery.new(:count, 123, punctuation_sensitive: false)
47
+ expect(q.to_xqy).to eq(%Q{cts:json-property-value-query("count",(123),("punctuation-insensitive"),1.0)})
48
+ end
49
+
50
+ it "should accept whitespace-sensitive options correctly" do
51
+ q = MarkLogic::Queries::ValueQuery.new(:count, 123, whitespace_sensitive: true)
52
+ expect(q.to_xqy).to eq(%Q{cts:json-property-value-query("count",(123),("whitespace-sensitive"),1.0)})
53
+
54
+ q = MarkLogic::Queries::ValueQuery.new(:count, 123, whitespace_sensitive: false)
55
+ expect(q.to_xqy).to eq(%Q{cts:json-property-value-query("count",(123),("whitespace-insensitive"),1.0)})
56
+ end
57
+
58
+ it "should add multiple options when given" do
59
+ q = MarkLogic::Queries::ValueQuery.new(:id, "123", exact: true, case_sensitive: false)
60
+ expect(q.to_xqy).to eq(%Q{cts:json-property-value-query("id",("123"),("exact","case-insensitive"),1.0)})
61
+ end
62
+
63
+ it "should add weight when given" do
64
+ q = MarkLogic::Queries::ValueQuery.new(:id, "123", :weight => 2.0)
65
+ expect(q.to_xqy).to eq(%Q{cts:json-property-value-query("id",("123"),("exact"),2.0)})
66
+ end
67
+ end
68
+ end
@@ -0,0 +1,53 @@
1
+ require 'spec_helper'
2
+
3
+ describe MarkLogic::Queries::WordQuery do
4
+
5
+ describe "#to_xqy" do
6
+ it "should create text values correctly" do
7
+ q = MarkLogic::Queries::WordQuery.new("123")
8
+ expect(q.to_xqy).to eq(%Q{cts:word-query(("123"),("exact"),1.0)})
9
+ end
10
+
11
+ it "should accept case-sensitive options correctly" do
12
+ q = MarkLogic::Queries::WordQuery.new("123", case_sensitive: true)
13
+ expect(q.to_xqy).to eq(%Q{cts:word-query(("123"),("case-sensitive"),1.0)})
14
+
15
+ q = MarkLogic::Queries::WordQuery.new("123", case_sensitive: false)
16
+ expect(q.to_xqy).to eq(%Q{cts:word-query(("123"),("case-insensitive"),1.0)})
17
+ end
18
+
19
+ it "should accept diacritic-sensitive options correctly" do
20
+ q = MarkLogic::Queries::WordQuery.new("123", diacritic_sensitive: true)
21
+ expect(q.to_xqy).to eq(%Q{cts:word-query(("123"),("diacritic-sensitive"),1.0)})
22
+
23
+ q = MarkLogic::Queries::WordQuery.new("123", diacritic_sensitive: false)
24
+ expect(q.to_xqy).to eq(%Q{cts:word-query(("123"),("diacritic-insensitive"),1.0)})
25
+ end
26
+
27
+ it "should accept punctuation-sensitive options correctly" do
28
+ q = MarkLogic::Queries::WordQuery.new("123", punctuation_sensitive: true)
29
+ expect(q.to_xqy).to eq(%Q{cts:word-query(("123"),("punctuation-sensitive"),1.0)})
30
+
31
+ q = MarkLogic::Queries::WordQuery.new("123", punctuation_sensitive: false)
32
+ expect(q.to_xqy).to eq(%Q{cts:word-query(("123"),("punctuation-insensitive"),1.0)})
33
+ end
34
+
35
+ it "should accept whitespace-sensitive options correctly" do
36
+ q = MarkLogic::Queries::WordQuery.new("123", whitespace_sensitive: true)
37
+ expect(q.to_xqy).to eq(%Q{cts:word-query(("123"),("whitespace-sensitive"),1.0)})
38
+
39
+ q = MarkLogic::Queries::WordQuery.new("123", whitespace_sensitive: false)
40
+ expect(q.to_xqy).to eq(%Q{cts:word-query(("123"),("whitespace-insensitive"),1.0)})
41
+ end
42
+
43
+ it "should add multiple options when given" do
44
+ q = MarkLogic::Queries::WordQuery.new("123", exact: true, case_sensitive: false)
45
+ expect(q.to_xqy).to eq(%Q{cts:word-query(("123"),("exact","case-insensitive"),1.0)})
46
+ end
47
+
48
+ it "should add weight when given" do
49
+ q = MarkLogic::Queries::WordQuery.new("123", :weight => 2.0)
50
+ expect(q.to_xqy).to eq(%Q{cts:word-query(("123"),("exact"),2.0)})
51
+ end
52
+ end
53
+ end
@@ -0,0 +1,68 @@
1
+ $:.unshift(File.expand_path('../../lib', __FILE__))
2
+
3
+ require 'rubygems'
4
+ require 'bundler'
5
+
6
+ require 'marklogic'
7
+
8
+ require 'pp'
9
+ require 'pry'
10
+
11
+ srand RSpec.configuration.seed
12
+
13
+ # These environment variables can be set if wanting to test against a database
14
+ # that is not on the local machine.
15
+ ENV["MARKLOGIC_SPEC_HOST"] ||= "localhost"
16
+ ENV["MARKLOGIC_SPEC_PORT"] ||= "8011"
17
+ ENV["MARKLOGIC_SPEC_APP_SERVICES_PORT"] ||= "8000"
18
+ ENV["MARKLOGIC_SPEC_ADMIN_PORT"] ||= "8001"
19
+ ENV["MARKLOGIC_SPEC_MANAGE_PORT"] ||= "8002"
20
+ ENV["MARKLOGIC_SPEC_ADMIN_USER"] ||= "admin"
21
+ ENV["MARKLOGIC_SPEC_ADMIN_PASSWORD"] ||= "admin"
22
+
23
+ # These are used when creating any connection in the test suite.
24
+ HOST = ENV["MARKLOGIC_SPEC_HOST"]
25
+ PORT = ENV["MARKLOGIC_SPEC_PORT"].to_i
26
+
27
+ APP_SERVICES_PORT = ENV["MARKLOGIC_SPEC_APP_SERVICES_PORT"]
28
+ MANAGE_PORT = ENV["MARKLOGIC_SPEC_MANAGE_PORT"]
29
+ ADMIN_PORT = ENV["MARKLOGIC_SPEC_ADMIN_PORT"]
30
+ ADMIN_USER = ENV["MARKLOGIC_SPEC_ADMIN_USER"]
31
+ ADMIN_PASSWORD = ENV["MARKLOGIC_SPEC_ADMIN_PASSWORD"]
32
+
33
+ MarkLogic::Connection.configure({
34
+ :host => HOST,
35
+ :manage_port => MANAGE_PORT,
36
+ :admin_port => ADMIN_PORT,
37
+ :app_services_port => APP_SERVICES_PORT,
38
+ :default_user => ADMIN_USER,
39
+ :default_password => ADMIN_PASSWORD
40
+ })
41
+
42
+ CONNECTION = MarkLogic::Connection.new(HOST, PORT)
43
+
44
+ RSpec.configure do |config|
45
+ config.run_all_when_everything_filtered = true
46
+ config.fail_fast = true
47
+ config.expect_with :rspec do |c|
48
+ c.syntax = [:should, :expect]
49
+ end
50
+
51
+ config.before(:all) do
52
+ @application = MarkLogic::Application.new("marklogic-gem-application-test", connection: CONNECTION).tap do |app|
53
+ app.add_index(MarkLogic::DatabaseSettings::RangeElementIndex.new(:age, :type => 'int'))
54
+ app.add_index(MarkLogic::DatabaseSettings::RangeElementIndex.new(:weight, :type => 'int'))
55
+ end
56
+ @application.sync
57
+ @database = @application.content_databases[0]
58
+ @database.clear
59
+ end
60
+
61
+ config.after(:suite) do
62
+ puts "CLEANING UP AFTER ALL TESTS FINISHED"
63
+ manage_connection = MarkLogic::Connection.manage_connection
64
+ admin_connection = MarkLogic::Connection.admin_connection
65
+ options = { :connection => manage_connection, :port => PORT, :admin_connection => admin_connection }
66
+ MarkLogic::Application.new("marklogic-gem-application-test", options).drop
67
+ end
68
+ end
metadata ADDED
@@ -0,0 +1,186 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: marklogic
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Paxton Hare
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2015-04-14 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: activesupport
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '4.2'
20
+ - - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: 4.2.0
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - "~>"
28
+ - !ruby/object:Gem::Version
29
+ version: '4.2'
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: 4.2.0
33
+ description: A Ruby Driver for MarkLogic
34
+ email:
35
+ - paxton@greenllama.com
36
+ executables: []
37
+ extensions: []
38
+ extra_rdoc_files: []
39
+ files:
40
+ - ".editorconfig"
41
+ - ".gitignore"
42
+ - ".rspec"
43
+ - ".ruby-gemset"
44
+ - ".ruby-version"
45
+ - Gemfile
46
+ - Guardfile
47
+ - LICENSE.txt
48
+ - README.md
49
+ - Rakefile
50
+ - lib/marklogic.rb
51
+ - lib/marklogic/app_server.rb
52
+ - lib/marklogic/application.rb
53
+ - lib/marklogic/collection.rb
54
+ - lib/marklogic/connection.rb
55
+ - lib/marklogic/consts.rb
56
+ - lib/marklogic/cursor.rb
57
+ - lib/marklogic/database.rb
58
+ - lib/marklogic/database_settings.rb
59
+ - lib/marklogic/database_settings/element_word_lexicon.rb
60
+ - lib/marklogic/database_settings/geospatial_element_child_index.rb
61
+ - lib/marklogic/database_settings/geospatial_element_index.rb
62
+ - lib/marklogic/database_settings/geospatial_element_pair_index.rb
63
+ - lib/marklogic/database_settings/geospatial_path_index.rb
64
+ - lib/marklogic/database_settings/index.rb
65
+ - lib/marklogic/database_settings/range_element_index.rb
66
+ - lib/marklogic/database_settings/range_field_index.rb
67
+ - lib/marklogic/database_settings/range_path_index.rb
68
+ - lib/marklogic/exceptions.rb
69
+ - lib/marklogic/forest.rb
70
+ - lib/marklogic/loggable.rb
71
+ - lib/marklogic/object_id.rb
72
+ - lib/marklogic/persistence.rb
73
+ - lib/marklogic/queries.rb
74
+ - lib/marklogic/queries/and_not_query.rb
75
+ - lib/marklogic/queries/and_query.rb
76
+ - lib/marklogic/queries/base_query.rb
77
+ - lib/marklogic/queries/boost_query.rb
78
+ - lib/marklogic/queries/collection_query.rb
79
+ - lib/marklogic/queries/container_query.rb
80
+ - lib/marklogic/queries/directory_query.rb
81
+ - lib/marklogic/queries/document_fragment_query.rb
82
+ - lib/marklogic/queries/document_query.rb
83
+ - lib/marklogic/queries/geospatial_query.rb
84
+ - lib/marklogic/queries/locks_fragment_query.rb
85
+ - lib/marklogic/queries/near_query.rb
86
+ - lib/marklogic/queries/not_in_query.rb
87
+ - lib/marklogic/queries/not_query.rb
88
+ - lib/marklogic/queries/or_query.rb
89
+ - lib/marklogic/queries/properties_fragment_query.rb
90
+ - lib/marklogic/queries/range_query.rb
91
+ - lib/marklogic/queries/value_query.rb
92
+ - lib/marklogic/queries/word_query.rb
93
+ - lib/marklogic/version.rb
94
+ - marklogic.gemspec
95
+ - spec/marklogic/app_server_spec.rb
96
+ - spec/marklogic/application_spec.rb
97
+ - spec/marklogic/collection_spec.rb
98
+ - spec/marklogic/connection_spec.rb
99
+ - spec/marklogic/cursor_spec.rb
100
+ - spec/marklogic/database_settings/element_word_lexicon_spec.rb
101
+ - spec/marklogic/database_settings/geospatial_element_child_index_spec.rb
102
+ - spec/marklogic/database_settings/geospatial_element_index_spec.rb
103
+ - spec/marklogic/database_settings/geospatial_element_pair_index_spec.rb
104
+ - spec/marklogic/database_settings/geospatial_path_index_spec.rb
105
+ - spec/marklogic/database_settings/range_element_index_spec.rb
106
+ - spec/marklogic/database_settings/range_field_index_spec.rb
107
+ - spec/marklogic/database_settings/range_path_index_spec.rb
108
+ - spec/marklogic/database_spec.rb
109
+ - spec/marklogic/forest_spec.rb
110
+ - spec/marklogic/queries/and_not_query_spec.rb
111
+ - spec/marklogic/queries/and_query_spec.rb
112
+ - spec/marklogic/queries/boost_query_spec.rb
113
+ - spec/marklogic/queries/collection_query_spec.rb
114
+ - spec/marklogic/queries/container_query_spec.rb
115
+ - spec/marklogic/queries/directory_query_spec.rb
116
+ - spec/marklogic/queries/document_fragment_query_spec.rb
117
+ - spec/marklogic/queries/document_query_spec.rb
118
+ - spec/marklogic/queries/locks_fragement_query_spec.rb
119
+ - spec/marklogic/queries/near_query_spec.rb
120
+ - spec/marklogic/queries/not_in_query_spec.rb
121
+ - spec/marklogic/queries/not_query_spec.rb
122
+ - spec/marklogic/queries/or_query_spec.rb
123
+ - spec/marklogic/queries/properties_fragment_query_spec.rb
124
+ - spec/marklogic/queries/range_query_spec.rb
125
+ - spec/marklogic/queries/value_query_spec.rb
126
+ - spec/marklogic/queries/word_query_spec.rb
127
+ - spec/spec_helper.rb
128
+ homepage: ''
129
+ licenses:
130
+ - MIT
131
+ metadata: {}
132
+ post_install_message:
133
+ rdoc_options: []
134
+ require_paths:
135
+ - lib
136
+ required_ruby_version: !ruby/object:Gem::Requirement
137
+ requirements:
138
+ - - ">="
139
+ - !ruby/object:Gem::Version
140
+ version: '0'
141
+ required_rubygems_version: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ">="
144
+ - !ruby/object:Gem::Version
145
+ version: '0'
146
+ requirements: []
147
+ rubyforge_project:
148
+ rubygems_version: 2.4.5
149
+ signing_key:
150
+ specification_version: 4
151
+ summary: A Ruby Driver for MarkLogic
152
+ test_files:
153
+ - spec/marklogic/app_server_spec.rb
154
+ - spec/marklogic/application_spec.rb
155
+ - spec/marklogic/collection_spec.rb
156
+ - spec/marklogic/connection_spec.rb
157
+ - spec/marklogic/cursor_spec.rb
158
+ - spec/marklogic/database_settings/element_word_lexicon_spec.rb
159
+ - spec/marklogic/database_settings/geospatial_element_child_index_spec.rb
160
+ - spec/marklogic/database_settings/geospatial_element_index_spec.rb
161
+ - spec/marklogic/database_settings/geospatial_element_pair_index_spec.rb
162
+ - spec/marklogic/database_settings/geospatial_path_index_spec.rb
163
+ - spec/marklogic/database_settings/range_element_index_spec.rb
164
+ - spec/marklogic/database_settings/range_field_index_spec.rb
165
+ - spec/marklogic/database_settings/range_path_index_spec.rb
166
+ - spec/marklogic/database_spec.rb
167
+ - spec/marklogic/forest_spec.rb
168
+ - spec/marklogic/queries/and_not_query_spec.rb
169
+ - spec/marklogic/queries/and_query_spec.rb
170
+ - spec/marklogic/queries/boost_query_spec.rb
171
+ - spec/marklogic/queries/collection_query_spec.rb
172
+ - spec/marklogic/queries/container_query_spec.rb
173
+ - spec/marklogic/queries/directory_query_spec.rb
174
+ - spec/marklogic/queries/document_fragment_query_spec.rb
175
+ - spec/marklogic/queries/document_query_spec.rb
176
+ - spec/marklogic/queries/locks_fragement_query_spec.rb
177
+ - spec/marklogic/queries/near_query_spec.rb
178
+ - spec/marklogic/queries/not_in_query_spec.rb
179
+ - spec/marklogic/queries/not_query_spec.rb
180
+ - spec/marklogic/queries/or_query_spec.rb
181
+ - spec/marklogic/queries/properties_fragment_query_spec.rb
182
+ - spec/marklogic/queries/range_query_spec.rb
183
+ - spec/marklogic/queries/value_query_spec.rb
184
+ - spec/marklogic/queries/word_query_spec.rb
185
+ - spec/spec_helper.rb
186
+ has_rdoc: yard