sunspot_submodel_index 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/README.rdoc +2 -1
- data/Rakefile +1 -0
- data/lib/sunspot_submodel_index/submodel_index.rb +1 -1
- data/lib/sunspot_submodel_index/version.rb +1 -1
- data/sunspot_submodel_index.gemspec +2 -0
- metadata +41 -10
data/.gitignore
CHANGED
data/README.rdoc
CHANGED
data/Rakefile
CHANGED
@@ -30,7 +30,7 @@ module Sunspot
|
|
30
30
|
def self.sunspot_submodel_index(options = {})
|
31
31
|
include Sunspot::SubmodelIndex::InstanceMethods
|
32
32
|
extend Sunspot::SubmodelIndex::ClassMethods
|
33
|
-
|
33
|
+
class_attribute :_sunspot_submodel_options
|
34
34
|
|
35
35
|
options[:parent] = options[:parent].to_sym
|
36
36
|
options[:included_attributes] = false if options[:included_attributes].blank? #set to false if empty sent
|
@@ -15,8 +15,10 @@ Gem::Specification.new do |s|
|
|
15
15
|
s.rubyforge_project = "sunspot_submodel_index"
|
16
16
|
|
17
17
|
s.add_development_dependency "rspec"
|
18
|
+
s.add_development_dependency("rake", [">=0.8.7"])
|
18
19
|
s.add_development_dependency("sqlite3", [">= 0"])
|
19
20
|
s.add_development_dependency("activerecord", [">= 2.2"])
|
21
|
+
s.add_development_dependency("activesupport", [">= 2.2"])
|
20
22
|
s.add_development_dependency("mocha", [">= 0.9.5"])
|
21
23
|
|
22
24
|
s.files = `git ls-files`.split("\n")
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sunspot_submodel_index
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 23
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 4
|
10
|
+
version: 0.0.4
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Scott Diedrick
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-09-
|
18
|
+
date: 2011-09-28 00:00:00 -05:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -33,9 +33,25 @@ dependencies:
|
|
33
33
|
type: :development
|
34
34
|
version_requirements: *id001
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
|
-
name:
|
36
|
+
name: rake
|
37
37
|
prerelease: false
|
38
38
|
requirement: &id002 !ruby/object:Gem::Requirement
|
39
|
+
none: false
|
40
|
+
requirements:
|
41
|
+
- - ">="
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
hash: 49
|
44
|
+
segments:
|
45
|
+
- 0
|
46
|
+
- 8
|
47
|
+
- 7
|
48
|
+
version: 0.8.7
|
49
|
+
type: :development
|
50
|
+
version_requirements: *id002
|
51
|
+
- !ruby/object:Gem::Dependency
|
52
|
+
name: sqlite3
|
53
|
+
prerelease: false
|
54
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
39
55
|
none: false
|
40
56
|
requirements:
|
41
57
|
- - ">="
|
@@ -45,11 +61,11 @@ dependencies:
|
|
45
61
|
- 0
|
46
62
|
version: "0"
|
47
63
|
type: :development
|
48
|
-
version_requirements: *
|
64
|
+
version_requirements: *id003
|
49
65
|
- !ruby/object:Gem::Dependency
|
50
66
|
name: activerecord
|
51
67
|
prerelease: false
|
52
|
-
requirement: &
|
68
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
53
69
|
none: false
|
54
70
|
requirements:
|
55
71
|
- - ">="
|
@@ -60,11 +76,26 @@ dependencies:
|
|
60
76
|
- 2
|
61
77
|
version: "2.2"
|
62
78
|
type: :development
|
63
|
-
version_requirements: *
|
79
|
+
version_requirements: *id004
|
80
|
+
- !ruby/object:Gem::Dependency
|
81
|
+
name: activesupport
|
82
|
+
prerelease: false
|
83
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
84
|
+
none: false
|
85
|
+
requirements:
|
86
|
+
- - ">="
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
hash: 7
|
89
|
+
segments:
|
90
|
+
- 2
|
91
|
+
- 2
|
92
|
+
version: "2.2"
|
93
|
+
type: :development
|
94
|
+
version_requirements: *id005
|
64
95
|
- !ruby/object:Gem::Dependency
|
65
96
|
name: mocha
|
66
97
|
prerelease: false
|
67
|
-
requirement: &
|
98
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
68
99
|
none: false
|
69
100
|
requirements:
|
70
101
|
- - ">="
|
@@ -76,7 +107,7 @@ dependencies:
|
|
76
107
|
- 5
|
77
108
|
version: 0.9.5
|
78
109
|
type: :development
|
79
|
-
version_requirements: *
|
110
|
+
version_requirements: *id006
|
80
111
|
description: This gem ties into the Rails model lifecycle to add support for calling Sunspot index on another model when data it relies on for its index is from an associated model.
|
81
112
|
email:
|
82
113
|
- swalterd@gmail.com
|