elastics-rails 1.0.7 → 1.0.8
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/elastics-rails.gemspec +0 -2
- data/lib/elastics-rails.rb +1 -1
- data/lib/generators/elastics/setup/setup_generator.rb +0 -2
- data/lib/generators/elastics/setup/templates/elastics_dir/elastics.rb.erb +3 -3
- data/lib/generators/elastics/setup/templates/elastics_dir/elastics.yml.erb +2 -2
- metadata +6 -22
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.8
|
data/elastics-rails.gemspec
CHANGED
data/lib/elastics-rails.rb
CHANGED
@@ -12,7 +12,7 @@ if ::Rails.respond_to?(:version) && ::Rails.version.to_i >= 3
|
|
12
12
|
else
|
13
13
|
Elastics::Conf.configure do |c|
|
14
14
|
c.config_file = "#{RAILS_ROOT}/config/elastics.yml"
|
15
|
-
c.elastics_dir
|
15
|
+
c.elastics_dir = "#{RAILS_ROOT}app/elastics"
|
16
16
|
c.logger = Logger.new(STDOUT)
|
17
17
|
c.logger.level = ::Logger::DEBUG if RAILS_ENV == 'development'
|
18
18
|
c.result_extenders |= [ Elastics::Result::RailsHelper ]
|
@@ -1,8 +1,8 @@
|
|
1
1
|
# inspect the methods loaded in this module and their usage
|
2
2
|
# in the rails console by just typing:
|
3
|
-
# >>
|
4
|
-
# you can eventually restrict the doc to a single method by
|
5
|
-
# >>
|
3
|
+
# >> <%= @module_name %>.elastics.doc
|
4
|
+
# you can eventually restrict the doc to a single method by passing its name:
|
5
|
+
# >> <%= @module_name %>.elastics.doc :search
|
6
6
|
# see the detailed doc for this feature at http://elastics.github.io/elastics/doc/2-elastics/4-Self-Documentation.html
|
7
7
|
|
8
8
|
module <%= @module_name %>
|
@@ -9,9 +9,9 @@ ANCHORS:
|
|
9
9
|
|
10
10
|
# this is a a basic template loaded in your class <%= @module_name %>
|
11
11
|
# it defines the 'q' tag. You can check its usage from the rails console by just typing:
|
12
|
-
# >>
|
12
|
+
# >> <%= @module_name %>.elastics.doc
|
13
13
|
# You can eventually restrict the doc to a single method by pasing its name:
|
14
|
-
# >>
|
14
|
+
# >> <%= @module_name %>.elastics.doc :search
|
15
15
|
# see the detailed doc for this feature at http://elastics.github.io/elastics/doc/2-elastics/4-Self-Documentation.html
|
16
16
|
|
17
17
|
# the :cleanable_query is a special variable that get cleaned up if contains illegal characters for the Lucene syntax
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: elastics-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.8
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-08-
|
12
|
+
date: 2013-08-24 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -34,7 +34,7 @@ dependencies:
|
|
34
34
|
requirements:
|
35
35
|
- - '='
|
36
36
|
- !ruby/object:Gem::Version
|
37
|
-
version: 1.0.
|
37
|
+
version: 1.0.8
|
38
38
|
type: :runtime
|
39
39
|
prerelease: false
|
40
40
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -42,7 +42,7 @@ dependencies:
|
|
42
42
|
requirements:
|
43
43
|
- - '='
|
44
44
|
- !ruby/object:Gem::Version
|
45
|
-
version: 1.0.
|
45
|
+
version: 1.0.8
|
46
46
|
- !ruby/object:Gem::Dependency
|
47
47
|
name: elastics-models
|
48
48
|
requirement: !ruby/object:Gem::Requirement
|
@@ -50,7 +50,7 @@ dependencies:
|
|
50
50
|
requirements:
|
51
51
|
- - '='
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version: 1.0.
|
53
|
+
version: 1.0.8
|
54
54
|
type: :runtime
|
55
55
|
prerelease: false
|
56
56
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -58,23 +58,7 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - '='
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 1.0.
|
62
|
-
- !ruby/object:Gem::Dependency
|
63
|
-
name: prompter
|
64
|
-
requirement: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
|
-
requirements:
|
67
|
-
- - ~>
|
68
|
-
- !ruby/object:Gem::Version
|
69
|
-
version: 0.1.5
|
70
|
-
type: :runtime
|
71
|
-
prerelease: false
|
72
|
-
version_requirements: !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
|
-
requirements:
|
75
|
-
- - ~>
|
76
|
-
- !ruby/object:Gem::Version
|
77
|
-
version: 0.1.5
|
61
|
+
version: 1.0.8
|
78
62
|
description: Provides the engine, generators and helpers to integrate Elastics with
|
79
63
|
Rails
|
80
64
|
email: dd.nexus@gmail.com
|