mama_search 0.0.2 → 0.0.3

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/README.md CHANGED
@@ -37,7 +37,15 @@ rake es:start
37
37
 
38
38
  Start elasticsearch. Elasticsearch is run in the foreground and should be stopped via <code>Ctrl+C</code>.
39
39
 
40
- ## CREDITS
40
+ ## Issues
41
+
42
+ * The default elasticsearch executable makes it hard to move config files out of
43
+ the project root, so configuration stays in elasticsearch/server/config for now
44
+ * Rubberband tries to autodiscover nodes immediately. Until this is changed, the
45
+ global client in the initializer should remain commented.
46
+
47
+
48
+ ## Credits
41
49
 
42
50
  Mama Search is heavily inspired by [Mama Cass](http://github.com/carbonfive/mama_cass)
43
51
 
@@ -18,7 +18,7 @@ module MamaSearch
18
18
  template 'elasticsearch.app.yml', 'config/elasticsearch.yml'
19
19
  #copy_file 'elasticsearch.in.sh', 'config/elasticsearch/elasticsearch.in.sh'
20
20
  #copy_file 'logging.yml', 'config/elasticsearch/logging.yml'
21
- #copy_file 'elasticsearch.yml', 'config/elasticsearch/elasticsearch.yml'
21
+ template 'elasticsearch.yml', 'elasticsearch/server/config/elasticsearch.yml'
22
22
  copy_file 'elasticsearch.rb', 'config/initializers/elasticsearch.rb'
23
23
  end
24
24
 
@@ -0,0 +1,2 @@
1
+ cluster:
2
+ name: <%= (rand*1000000).to_i.to_s(16) %>
@@ -0,0 +1,13 @@
1
+ require 'rails'
2
+
3
+ module MamaSearch
4
+ class Railtie < Rails::Railtie
5
+ generators do
6
+ require 'mama_search/generators/install_generator'
7
+ end
8
+
9
+ rake_tasks do
10
+ load 'mama_search/tasks.rb'
11
+ end
12
+ end
13
+ end
@@ -1,3 +1,3 @@
1
1
  module MamaSearch
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
data/lib/mama_search.rb CHANGED
@@ -1,5 +1,4 @@
1
- require 'mama_search/generators/install_generator'
2
- require 'mama_search/tasks'
1
+ require 'mama_search/railtie'
3
2
 
4
3
  module MamaSearch
5
4
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 2
9
- version: 0.0.2
8
+ - 3
9
+ version: 0.0.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Grant Rodgers
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2011-01-20 00:00:00 -08:00
17
+ date: 2011-02-04 00:00:00 -08:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -140,6 +140,7 @@ files:
140
140
  - lib/mama_search/generators/templates/elasticsearch.rb
141
141
  - lib/mama_search/generators/templates/elasticsearch.yml
142
142
  - lib/mama_search/generators/templates/logging.yml
143
+ - lib/mama_search/railtie.rb
143
144
  - lib/mama_search/tasks.rb
144
145
  - lib/mama_search/version.rb
145
146
  - mama_search.gemspec
@@ -151,7 +152,6 @@ files:
151
152
  - vendor/elasticsearch-0.14.2/bin/elasticsearch.in.sh
152
153
  - vendor/elasticsearch-0.14.2/bin/plugin
153
154
  - vendor/elasticsearch-0.14.2/bin/plugin.bat
154
- - vendor/elasticsearch-0.14.2/config/elasticsearch.yml
155
155
  - vendor/elasticsearch-0.14.2/config/logging.yml
156
156
  - vendor/elasticsearch-0.14.2/lib/elasticsearch-0.14.2.jar
157
157
  - vendor/elasticsearch-0.14.2/lib/jline-0.9.94.jar
File without changes