rsolr 0.9.6

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.
@@ -0,0 +1,21 @@
1
+ require 'helper'
2
+
3
+ class SolrTest < RSolrBaseTest
4
+
5
+ def setup
6
+ if defined?(JRUBY_VERSION)
7
+ @solr = RSolr.connect(:adapter=>:direct)
8
+ else
9
+ @solr = RSolr.connect
10
+ end
11
+ end
12
+
13
+ def test_escape
14
+ expected = %q(http\:\/\/lucene\.apache\.org\/solr)
15
+ source = "http://lucene.apache.org/solr"
16
+ assert_equal expected, RSolr.escape(source)
17
+ assert @solr.respond_to?(:escape)
18
+ assert_equal expected, @solr.escape(source)
19
+ end
20
+
21
+ end
metadata ADDED
@@ -0,0 +1,92 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rsolr
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.9.6
5
+ platform: ruby
6
+ authors:
7
+ - Matt Mitchell
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2009-09-12 00:00:00 -04:00
13
+ default_executable:
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: builder
17
+ type: :runtime
18
+ version_requirement:
19
+ version_requirements: !ruby/object:Gem::Requirement
20
+ requirements:
21
+ - - ">="
22
+ - !ruby/object:Gem::Version
23
+ version: 2.1.2
24
+ version:
25
+ description: RSolr is a Ruby gem for working with Apache Solr!
26
+ email: goodieboy@gmail.com
27
+ executables: []
28
+
29
+ extensions: []
30
+
31
+ extra_rdoc_files:
32
+ - LICENSE
33
+ - Rakefile
34
+ - README.rdoc
35
+ - CHANGES.txt
36
+ files:
37
+ - examples/http.rb
38
+ - examples/direct.rb
39
+ - lib/rsolr.rb
40
+ - lib/rsolr/connection/adapter/direct.rb
41
+ - lib/rsolr/connection/adapter/http.rb
42
+ - lib/rsolr/connection.rb
43
+ - lib/rsolr/http_client/adapter/curb.rb
44
+ - lib/rsolr/http_client/adapter/net_http.rb
45
+ - lib/rsolr/http_client.rb
46
+ - lib/rsolr/message/adapter/builder.rb
47
+ - lib/rsolr/message/adapter/libxml.rb
48
+ - lib/rsolr/message.rb
49
+ - LICENSE
50
+ - Rakefile
51
+ - README.rdoc
52
+ - rsolr.gemspec
53
+ - CHANGES.txt
54
+ has_rdoc: true
55
+ homepage: http://github.com/mwmitchell/rsolr
56
+ licenses: []
57
+
58
+ post_install_message:
59
+ rdoc_options: []
60
+
61
+ require_paths:
62
+ - lib
63
+ required_ruby_version: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - ">="
66
+ - !ruby/object:Gem::Version
67
+ version: "0"
68
+ version:
69
+ required_rubygems_version: !ruby/object:Gem::Requirement
70
+ requirements:
71
+ - - ">="
72
+ - !ruby/object:Gem::Version
73
+ version: "0"
74
+ version:
75
+ requirements: []
76
+
77
+ rubyforge_project:
78
+ rubygems_version: 1.3.4
79
+ signing_key:
80
+ specification_version: 3
81
+ summary: A Ruby client for Apache Solr
82
+ test_files:
83
+ - test/connection/direct_test.rb
84
+ - test/connection/http_test.rb
85
+ - test/connection/test_methods.rb
86
+ - test/helper.rb
87
+ - test/http_client/curb_test.rb
88
+ - test/http_client/net_http_test.rb
89
+ - test/http_client/test_methods.rb
90
+ - test/http_client/util_test.rb
91
+ - test/message_test.rb
92
+ - test/rsolr_test.rb