xmlpipe2_indexer 0.0.1 → 0.0.2

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.
data/Gemfile CHANGED
@@ -1,9 +1,8 @@
1
1
  source "http://rubygems.org"
2
2
 
3
- gem 'activesupport', ">2.2.0"
4
-
5
3
  group :development do
6
4
  gem "rspec"
7
5
  gem "bundler"
8
6
  gem "jeweler"
7
+ gem 'uuid'
9
8
  end
@@ -1,19 +1,16 @@
1
1
  GEM
2
2
  remote: http://rubygems.org/
3
3
  specs:
4
- activesupport (3.2.3)
5
- i18n (~> 0.6)
6
- multi_json (~> 1.0)
7
4
  diff-lcs (1.1.3)
8
5
  git (1.2.5)
9
- i18n (0.6.0)
10
6
  jeweler (1.8.3)
11
7
  bundler (~> 1.0)
12
8
  git (>= 1.2.5)
13
9
  rake
14
10
  rdoc
15
11
  json (1.7.0)
16
- multi_json (1.3.4)
12
+ macaddr (1.5.0)
13
+ systemu (>= 2.4.0)
17
14
  rake (0.9.2.2)
18
15
  rdoc (3.12)
19
16
  json (~> 1.4)
@@ -25,12 +22,15 @@ GEM
25
22
  rspec-expectations (2.9.1)
26
23
  diff-lcs (~> 1.1.3)
27
24
  rspec-mocks (2.9.0)
25
+ systemu (2.5.0)
26
+ uuid (2.3.5)
27
+ macaddr (~> 1.0)
28
28
 
29
29
  PLATFORMS
30
30
  ruby
31
31
 
32
32
  DEPENDENCIES
33
- activesupport (> 2.2.0)
34
33
  bundler
35
34
  jeweler
36
35
  rspec
36
+ uuid
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.1
1
+ 0.0.2
@@ -11,23 +11,23 @@ searchd
11
11
  <% index = clazz.to_s.downcase %>
12
12
  source <%= index %>
13
13
  {
14
- type = xmlpipe2
15
- xmlpipe_command = <%= %x(which cat).rstrip %> <%= '<%= xml_stream_path %%>' %>
16
- xmlpipe_fixup_utf8 = 1
14
+ type = xmlpipe2
15
+ xmlpipe_command = <%= %x(which cat).rstrip %> <%= '<%= xml_stream_path %%>' %>
16
+ xmlpipe_fixup_utf8 = 1
17
17
  }
18
18
 
19
19
  index <%= index %>
20
20
  {
21
- source = <%= index %>
22
- path = <%= XMLPipe2::Configuration.index_path %>
23
- charset_type = utf-8
24
- <%= clazz.sphinx_index_options.map { |option, value| "#{option} = #{value}" }*"\n" %>
21
+ source = <%= index %>
22
+ path = <%= File.expand_path("#{XMLPipe2::Configuration.index_path}/#{index}") %>
23
+ charset_type = utf-8
24
+ <%= clazz.sphinx_index_options.map { |option, value| "#{option} = #{value}" }*"\n" %>
25
25
  }
26
26
 
27
27
  index <%= index %>_delta
28
28
  {
29
- source = <%= index %>
30
- path = <%= XMLPipe2::Configuration.delta_index_path %>
31
- charset_type = utf-8
32
- <%= clazz.sphinx_index_options.map { |option, value| "#{option} = #{value}" }*"\n" %>
29
+ source = <%= index %>
30
+ path = <%= File.expand_path("#{XMLPipe2::Configuration.index_path}/#{index}_delta") %>
31
+ charset_type = utf-8
32
+ <%= clazz.sphinx_index_options.map { |option, value| "#{option} = #{value}" }*"\n" %>
33
33
  }
@@ -2,9 +2,9 @@
2
2
 
3
3
  <sphinx:docset>
4
4
 
5
- <sphinx:schema>
6
- <%= fields.map { |index, _| %(<sphinx:field name="#{index}"/>) }*"\n" %>
7
- <%= attrs.map { |attr, _| %(<sphinx:attr name="#{attr}" type="string"/>) }*"\n" %>
8
- </sphinx:schema>
5
+ <sphinx:schema>
6
+ <%= fields.map { |index, _| %(<sphinx:field name="#{index}"/>) }*"\n" %>
7
+ <%= attrs.map { |attr, _| %(<sphinx:attr name="#{attr}" type="string"/>) }*"\n" %>
8
+ </sphinx:schema>
9
9
 
10
10
  </sphinx:docset>
@@ -2,14 +2,14 @@
2
2
 
3
3
  <sphinx:docset>
4
4
 
5
- <sphinx:schema>
6
- <%= fields.map { |index, _| %(<sphinx:field name="#{index}"/>) }*"\n" %>
7
- <%= attrs.map { |attr, _| %(<sphinx:attr name="#{attr}" type="string"/>) }*"\n" %>
8
- </sphinx:schema>
9
-
10
- <sphinx:document id="<%= document_id %>">
11
- <%= fields.map { |index, value| "<#{index}>#{value}</#{index}>" }*"\n" %>
12
- <%= attrs.map { |attr, value| "<#{attr}>#{value}</#{attr}>" }*"\n" %>
13
- </sphinx:document>
5
+ <sphinx:schema>
6
+ <%= fields.map { |index, _| %(<sphinx:field name="#{index}"/>) }*"\n" %>
7
+ <%= attrs.map { |attr, _| %(<sphinx:attr name="#{attr}" type="string"/>) }*"\n" %>
8
+ </sphinx:schema>
9
+
10
+ <sphinx:document id="<%= document_id %>">
11
+ <%= fields.map { |index, value| "<#{index}>#{value}</#{index}>" }*"\n" %>
12
+ <%= attrs.map { |attr, value| "<#{attr}>#{value}</#{attr}>" }*"\n" %>
13
+ </sphinx:document>
14
14
 
15
15
  </sphinx:docset>
@@ -8,13 +8,9 @@ module XMLPipe2
8
8
  yield(self)
9
9
  end
10
10
 
11
- cattr_accessor :index_path
12
- cattr_accessor :searchd
13
- cattr_accessor :indexer
14
-
15
- def delta_index_path
16
- index_path + '_delta'
17
- end
11
+ attr_accessor :index_path
12
+ attr_accessor :searchd
13
+ attr_accessor :indexer
18
14
 
19
15
  end
20
16
 
@@ -20,8 +20,7 @@ module XMLPipe2
20
20
  def run
21
21
  config = '-c ' + sphinx_conf.path
22
22
  index = instance.class.to_s.downcase
23
- system("$(which indexer) #{config} #{index}_delta")
24
- system("$(which indexer) #{config} --merge #{index} #{index}_delta --rotate")
23
+ system("$(which indexer) #{config} #{index}_delta && $(which indexer) #{config} --merge #{index} #{index}_delta --rotate")
25
24
  sphinx_conf.unlink
26
25
  xml_stream.unlink
27
26
  end
@@ -49,4 +49,8 @@ module XMLPipe2
49
49
  self.sphinx_index_options = options
50
50
  end
51
51
 
52
+ def sphinx_id method
53
+ XMLStream.sphinx_id_method = method
54
+ end
55
+
52
56
  end
@@ -1,6 +1,6 @@
1
1
  module XMLPipe2
2
2
 
3
- class XMLSchema < XMLStream
3
+ class XMLSchema
4
4
 
5
5
  TEMPLATE = File.read(File.expand_path(File.dirname(__FILE__) + '/../../erb/xml_schema.xml.erb'))
6
6
 
@@ -12,21 +12,11 @@ module XMLPipe2
12
12
 
13
13
  def generate
14
14
  fields = clazz.sphinx_indexes.inject({ }) do |hash, index|
15
- unless index[:options].has_key?(:as) and index[:options][:as] == :document_id
16
- if index[:options].has_key?(:as)
17
- hash.merge!(index[:options][:as] => nil)
18
- else
19
- hash.merge!(index[:method] => nil)
20
- end
21
- end
15
+ index[:options].has_key?(:as) ? hash.merge!(index[:options][:as] => nil) : hash.merge!(index[:method] => nil)
22
16
  hash
23
17
  end
24
18
  attrs = clazz.sphinx_attributes.inject({ }) do |hash, attr|
25
- if attr[:options].has_key?(:as)
26
- hash.merge!(attr[:options][:as] => nil)
27
- else
28
- hash.merge!(attr[:method] => nil)
29
- end
19
+ attr[:options].has_key?(:as) ? hash.merge!(attr[:options][:as] => nil) : hash.merge!(attr[:method] => nil)
30
20
  hash
31
21
  end
32
22
  ERB.new(TEMPLATE).result(binding)
@@ -6,22 +6,23 @@ module XMLPipe2
6
6
 
7
7
  def initialize(instance)
8
8
  @instance = instance
9
- @document_id = instance.id
9
+ end
10
+
11
+ class << self
12
+ attr_accessor :sphinx_id_method
10
13
  end
11
14
 
12
15
  attr_reader :instance
13
16
  attr_accessor :document_id
14
17
 
15
18
  def generate
19
+ self.document_id = self.class.sphinx_id_method ? instance.send(self.class.sphinx_id_method) : instance.id
20
+
16
21
  fields = instance.class.sphinx_indexes.inject({ }) do |hash, index|
17
- if index[:options].has_key?(:as) and index[:options][:as] == :document_id
18
- self.document_id = instance.send(index[:method])
22
+ if index[:options].has_key?(:as)
23
+ hash.merge!(index[:options][:as] => instance.send(index[:method]))
19
24
  else
20
- if index[:options].has_key?(:as)
21
- hash.merge!(index[:options][:as] => instance.send(index[:method]))
22
- else
23
- hash.merge!(index[:method] => instance.send(index[:method]))
24
- end
25
+ hash.merge!(index[:method] => instance.send(index[:method]))
25
26
  end
26
27
  hash
27
28
  end
@@ -1,4 +1,3 @@
1
- require "active_support/core_ext/class/attribute_accessors"
2
1
  require 'tempfile'
3
2
  require 'erb'
4
3
 
@@ -0,0 +1,29 @@
1
+ require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
2
+
3
+ describe 'Configuration' do
4
+
5
+ describe 'set configuration' do
6
+
7
+ it 'should set index_path' do
8
+ XMLPipe2::Configuration.index_path.should == File.expand_path(File.dirname(__FILE__))
9
+ end
10
+
11
+ { listen: '127.0.0.1:9312',
12
+ log: File.expand_path(File.dirname(__FILE__) +"/searchd.log"),
13
+ query_log: File.expand_path(File.dirname(__FILE__) +"/searchd.query.log"),
14
+ pid_file: File.expand_path(File.dirname(__FILE__) +"/searchd.pid") }.each_pair do |setting, value|
15
+
16
+ it "should set searchd ##{setting}" do
17
+ XMLPipe2::Configuration.searchd[setting].should == value
18
+ end
19
+
20
+ end
21
+
22
+ it 'should set indexer #mem_limit' do
23
+ XMLPipe2::Configuration.indexer[:mem_limit].should == '256M'
24
+ end
25
+
26
+ end
27
+
28
+
29
+ end
@@ -5,8 +5,48 @@ require 'xmlpipe2_indexer'
5
5
 
6
6
  # Requires supporting files with custom matchers and macros, etc,
7
7
  # in ./support/ and its subdirectories.
8
- Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
8
+ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
9
9
 
10
10
  RSpec.configure do |config|
11
-
11
+
12
+ end
13
+
14
+ XMLPipe2::Configuration.set do |config|
15
+ config.index_path = File.expand_path(File.dirname(__FILE__))
16
+ config.searchd = { listen: '127.0.0.1:9312',
17
+ log: File.expand_path(File.dirname(__FILE__) + '/searchd.log'),
18
+ query_log: File.expand_path(File.dirname(__FILE__) + '/searchd.query.log'),
19
+ pid_file: File.expand_path(File.dirname(__FILE__) + '/searchd.pid') }
20
+ config.indexer = { mem_limit: '256M' }
21
+ end
22
+
23
+ class Article
24
+
25
+ extend XMLPipe2
26
+
27
+ def id
28
+ "8b49b130-7664-012f-15fa-18a905d9fec6"
29
+ end
30
+
31
+ def custom_id
32
+ 4133693989
33
+ end
34
+
35
+ def content
36
+ "some content"
37
+ end
38
+
39
+ def title
40
+ "any title"
41
+ end
42
+
43
+ define_index do
44
+ index :title
45
+ index :content, as: :data
46
+ sphinx_id :custom_id
47
+ index_options enable_star: 1, min_infix_len: 3
48
+ has :id
49
+ has :id, as: :uuid
50
+ end
51
+
12
52
  end
@@ -0,0 +1,49 @@
1
+ require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
2
+
3
+ describe "SphinxConf" do
4
+
5
+ it "should generate a valid SphinxConf" do
6
+
7
+ XMLPipe2::SphinxConf.new(Article).generate.should ==
8
+ %(indexer
9
+ {
10
+ mem_limit = 256M
11
+ }
12
+
13
+ searchd
14
+ {
15
+ listen = 127.0.0.1:9312
16
+ log = #{File.expand_path(File.dirname(__FILE__) +"/searchd.log")}
17
+ query_log = #{File.expand_path(File.dirname(__FILE__) +"/searchd.query.log")}
18
+ pid_file = #{File.expand_path(File.dirname(__FILE__) +"/searchd.pid")}
19
+ }
20
+
21
+
22
+ source article
23
+ {
24
+ type = xmlpipe2
25
+ xmlpipe_command = /bin/cat <%= xml_stream_path %>
26
+ xmlpipe_fixup_utf8 = 1
27
+ }
28
+
29
+ index article
30
+ {
31
+ source = article
32
+ path = #{File.expand_path(File.dirname(__FILE__) + '/article')}
33
+ charset_type = utf-8
34
+ enable_star = 1
35
+ min_infix_len = 3
36
+ }
37
+
38
+ index article_delta
39
+ {
40
+ source = article
41
+ path = #{File.expand_path(File.dirname(__FILE__) + '/article_delta')}
42
+ charset_type = utf-8
43
+ enable_star = 1
44
+ min_infix_len = 3
45
+ }
46
+ )
47
+ end
48
+
49
+ end
@@ -0,0 +1,114 @@
1
+ require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
2
+
3
+ describe "XMLPipe2" do
4
+
5
+ before(:all) do
6
+ @article = Article.new
7
+ end
8
+
9
+ describe "instance methods" do
10
+
11
+ subject { @article }
12
+
13
+ [:xml_stream,
14
+ :index!].each do |method|
15
+ it { subject.should respond_to method }
16
+ end
17
+
18
+ describe "#xml_stream" do
19
+
20
+ it "should generate a XMLStream" do
21
+ mock = mock(:xml_stream)
22
+ XMLPipe2::XMLStream.should_receive(:new).with(@article).and_return(mock)
23
+ mock.should_receive(:generate)
24
+
25
+ @article.xml_stream
26
+ end
27
+
28
+ end
29
+
30
+ describe '#index!' do
31
+
32
+ it "should run a DeltaIndexer" do
33
+ mock = mock(:delta_indexer)
34
+ XMLPipe2::DeltaIndexer.should_receive(:new).with(@article).and_return(mock)
35
+ mock.should_receive(:run)
36
+
37
+ @article.index!
38
+ end
39
+
40
+ it "should call system correctly" do
41
+ XMLPipe2::DeltaIndexer.any_instance.should_receive(:system).exactly(1).
42
+ with(/\$\(which indexer\) -c \/tmp\/sphinx.conf.* article_delta && \$\(which indexer\) -c \/tmp\/sphinx.conf.* --merge article article_delta --rotate/)
43
+
44
+ @article.index!
45
+ end
46
+
47
+ end
48
+
49
+ end
50
+
51
+
52
+
53
+ describe "methods on class instance" do
54
+ subject { Article }
55
+
56
+ [:sphinx_indexes,
57
+ :sphinx_attributes,
58
+ :sphinx_index_options,
59
+ :sphinx_conf,
60
+ :xml_schema,
61
+ :create_index!,
62
+ :index,
63
+ :has,
64
+ :index_options,
65
+ :sphinx_id].each do |method|
66
+ it { subject.should respond_to method }
67
+ end
68
+
69
+ describe '#sphinx_conf' do
70
+
71
+ it "should generate a SphinxConf" do
72
+ mock = mock(:sphinx_conf)
73
+ XMLPipe2::SphinxConf.should_receive(:new).with(Article).and_return(mock)
74
+ mock.should_receive(:generate)
75
+
76
+ Article.sphinx_conf
77
+ end
78
+
79
+ end
80
+
81
+ describe "#xml_schema" do
82
+
83
+ it "should generate a XMLSchema" do
84
+ mock = mock(:xml_schema)
85
+ XMLPipe2::XMLSchema.should_receive(:new).with(Article).and_return(mock)
86
+ mock.should_receive(:generate)
87
+
88
+ Article.xml_schema
89
+ end
90
+
91
+ end
92
+
93
+ describe "#create_index!" do
94
+
95
+ it "should build an index" do
96
+ mock = mock(:index_builder)
97
+ XMLPipe2::IndexBuilder.should_receive(:new).with(Article).and_return(mock)
98
+ mock.should_receive(:build)
99
+
100
+ Article.create_index!
101
+ end
102
+
103
+ it "should call system correctly" do
104
+ XMLPipe2::IndexBuilder.any_instance.should_receive(:system).
105
+ with(/\$\(which indexer\) -c \/tmp\/sphinx.conf.*article/)
106
+ Article.create_index!
107
+ end
108
+
109
+ end
110
+
111
+
112
+ end
113
+
114
+ end
@@ -0,0 +1,22 @@
1
+ require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
2
+
3
+ describe "XMLSchema" do
4
+
5
+ it "should generate a valid XMLSchema" do
6
+
7
+ XMLPipe2::XMLSchema.new(Article).generate.should ==
8
+ %(<?xml version="1.0" encoding="utf-8"?>
9
+
10
+ <sphinx:docset>
11
+
12
+ <sphinx:schema>
13
+ <sphinx:field name="title"/>
14
+ <sphinx:field name="data"/>
15
+ <sphinx:attr name="id" type="string"/>
16
+ <sphinx:attr name="uuid" type="string"/>
17
+ </sphinx:schema>
18
+
19
+ </sphinx:docset>
20
+ )
21
+ end
22
+ end
@@ -0,0 +1,29 @@
1
+ require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
2
+
3
+ describe "XMLStream" do
4
+
5
+ it "should generate a valid XMLStream" do
6
+
7
+ XMLPipe2::XMLStream.new(Article.new).generate.should ==
8
+ %(<?xml version="1.0" encoding="utf-8"?>
9
+
10
+ <sphinx:docset>
11
+
12
+ <sphinx:schema>
13
+ <sphinx:field name="title"/>
14
+ <sphinx:field name="data"/>
15
+ <sphinx:attr name="id" type="string"/>
16
+ <sphinx:attr name="uuid" type="string"/>
17
+ </sphinx:schema>
18
+
19
+ <sphinx:document id="4133693989">
20
+ <title>any title</title>
21
+ <data>some content</data>
22
+ <id>8b49b130-7664-012f-15fa-18a905d9fec6</id>
23
+ <uuid>8b49b130-7664-012f-15fa-18a905d9fec6</uuid>
24
+ </sphinx:document>
25
+
26
+ </sphinx:docset>
27
+ )
28
+ end
29
+ end
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "xmlpipe2_indexer"
8
- s.version = "0.0.1"
8
+ s.version = "0.0.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Ludwig Bratke"]
12
- s.date = "2012-05-01"
12
+ s.date = "2012-05-02"
13
13
  s.description = "xmlpipe2_indexer provides a small DSL which wrapps sphinx's xmlpipe2"
14
14
  s.email = "bratke@servtag.com"
15
15
  s.extra_rdoc_files = [
@@ -37,8 +37,12 @@ Gem::Specification.new do |s|
37
37
  "lib/xml_pipe2/xml_schema.rb",
38
38
  "lib/xml_pipe2/xml_stream.rb",
39
39
  "lib/xmlpipe2_indexer.rb",
40
+ "spec/configuration_spec.rb",
40
41
  "spec/spec_helper.rb",
41
- "spec/xmlpipe2_indexer_spec.rb",
42
+ "spec/sphinx_conf_spec.rb",
43
+ "spec/xml_pipe2_spec.rb",
44
+ "spec/xml_schema_spec.rb",
45
+ "spec/xml_stream_spec.rb",
42
46
  "xmlpipe2_indexer.gemspec"
43
47
  ]
44
48
  s.homepage = "http://github.com/EeCnee/xmlpipe2_indexer"
@@ -51,21 +55,21 @@ Gem::Specification.new do |s|
51
55
  s.specification_version = 3
52
56
 
53
57
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
54
- s.add_runtime_dependency(%q<activesupport>, ["> 2.2.0"])
55
58
  s.add_development_dependency(%q<rspec>, [">= 0"])
56
59
  s.add_development_dependency(%q<bundler>, [">= 0"])
57
60
  s.add_development_dependency(%q<jeweler>, [">= 0"])
61
+ s.add_development_dependency(%q<uuid>, [">= 0"])
58
62
  else
59
- s.add_dependency(%q<activesupport>, ["> 2.2.0"])
60
63
  s.add_dependency(%q<rspec>, [">= 0"])
61
64
  s.add_dependency(%q<bundler>, [">= 0"])
62
65
  s.add_dependency(%q<jeweler>, [">= 0"])
66
+ s.add_dependency(%q<uuid>, [">= 0"])
63
67
  end
64
68
  else
65
- s.add_dependency(%q<activesupport>, ["> 2.2.0"])
66
69
  s.add_dependency(%q<rspec>, [">= 0"])
67
70
  s.add_dependency(%q<bundler>, [">= 0"])
68
71
  s.add_dependency(%q<jeweler>, [">= 0"])
72
+ s.add_dependency(%q<uuid>, [">= 0"])
69
73
  end
70
74
  end
71
75
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xmlpipe2_indexer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,26 +9,26 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-05-01 00:00:00.000000000 Z
12
+ date: 2012-05-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
- name: activesupport
15
+ name: rspec
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
- - - ! '>'
19
+ - - ! '>='
20
20
  - !ruby/object:Gem::Version
21
- version: 2.2.0
22
- type: :runtime
21
+ version: '0'
22
+ type: :development
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  none: false
26
26
  requirements:
27
- - - ! '>'
27
+ - - ! '>='
28
28
  - !ruby/object:Gem::Version
29
- version: 2.2.0
29
+ version: '0'
30
30
  - !ruby/object:Gem::Dependency
31
- name: rspec
31
+ name: bundler
32
32
  requirement: !ruby/object:Gem::Requirement
33
33
  none: false
34
34
  requirements:
@@ -44,7 +44,7 @@ dependencies:
44
44
  - !ruby/object:Gem::Version
45
45
  version: '0'
46
46
  - !ruby/object:Gem::Dependency
47
- name: bundler
47
+ name: jeweler
48
48
  requirement: !ruby/object:Gem::Requirement
49
49
  none: false
50
50
  requirements:
@@ -60,7 +60,7 @@ dependencies:
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  - !ruby/object:Gem::Dependency
63
- name: jeweler
63
+ name: uuid
64
64
  requirement: !ruby/object:Gem::Requirement
65
65
  none: false
66
66
  requirements:
@@ -103,8 +103,12 @@ files:
103
103
  - lib/xml_pipe2/xml_schema.rb
104
104
  - lib/xml_pipe2/xml_stream.rb
105
105
  - lib/xmlpipe2_indexer.rb
106
+ - spec/configuration_spec.rb
106
107
  - spec/spec_helper.rb
107
- - spec/xmlpipe2_indexer_spec.rb
108
+ - spec/sphinx_conf_spec.rb
109
+ - spec/xml_pipe2_spec.rb
110
+ - spec/xml_schema_spec.rb
111
+ - spec/xml_stream_spec.rb
108
112
  - xmlpipe2_indexer.gemspec
109
113
  homepage: http://github.com/EeCnee/xmlpipe2_indexer
110
114
  licenses:
@@ -121,7 +125,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
121
125
  version: '0'
122
126
  segments:
123
127
  - 0
124
- hash: 1952783958797074807
128
+ hash: -46082169195006128
125
129
  required_rubygems_version: !ruby/object:Gem::Requirement
126
130
  none: false
127
131
  requirements:
@@ -1,7 +0,0 @@
1
- require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
2
-
3
- describe "Xmlpipe2Indexer" do
4
- it "fails" do
5
- fail "hey buddy, you should probably rename this file and start specing for real"
6
- end
7
- end