sunspot_submodel_index 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.travis.yml +21 -0
- data/Appraisals +15 -0
- data/Gemfile +3 -1
- data/README.rdoc +7 -1
- data/Rakefile +2 -1
- data/gemfiles/rails_2.gemfile +10 -0
- data/gemfiles/rails_2.gemfile.lock +45 -0
- data/gemfiles/rails_3.gemfile +9 -0
- data/gemfiles/rails_3.gemfile.lock +56 -0
- data/gemfiles/rails_4.gemfile +9 -0
- data/gemfiles/rails_4.gemfile.lock +61 -0
- data/lib/sunspot_submodel_index/version.rb +1 -1
- data/spec/spec_helper.rb +4 -0
- data/sunspot_submodel_index.gemspec +6 -5
- metadata +104 -120
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: d123b6b814dc09a8f1387e5cc977083cea55411d
|
4
|
+
data.tar.gz: 363885cf9ef21f54495f1d90a25c7f871fa7d418
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 5e6b1eda28fcfd91d15d402c7b6d4a5d32cd5fda89cf57d1bb49b165feb83c817d093010b1db1e53a7f98d52a5bbace25db5d31e675d26184c5ed27071891704
|
7
|
+
data.tar.gz: ef0f31458236f4c2195d533e12593974bc52d41842f549e0ffac6a6cf00349c892f46aefd9c7bf59f5682d5b647aaccfa7c98af7258d89044c0502a97d05bbed
|
data/.travis.yml
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
language: ruby
|
2
|
+
rvm:
|
3
|
+
- 1.8.7
|
4
|
+
- 1.9.3
|
5
|
+
- 2.0.0
|
6
|
+
- 2.1.2
|
7
|
+
|
8
|
+
install:
|
9
|
+
- "travis_retry bundle install"
|
10
|
+
|
11
|
+
script: "bundle exec rake test"
|
12
|
+
|
13
|
+
gemfile:
|
14
|
+
- gemfiles/rails_2.gemfile
|
15
|
+
- gemfiles/rails_3.gemfile
|
16
|
+
- gemfiles/rails_4.gemfile
|
17
|
+
|
18
|
+
matrix:
|
19
|
+
exclude:
|
20
|
+
- rvm: 1.8.7
|
21
|
+
gemfile: gemfiles/rails_4.gemfile
|
data/Appraisals
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
appraise "rails-2" do
|
2
|
+
gem "activerecord", "2.3.18"
|
3
|
+
gem "activesupport","2.3.18"
|
4
|
+
gem "iconv"
|
5
|
+
end
|
6
|
+
|
7
|
+
appraise "rails-3" do
|
8
|
+
gem "activerecord", "3.2.18"
|
9
|
+
gem "activesupport","3.2.18"
|
10
|
+
end
|
11
|
+
|
12
|
+
appraise "rails-4" do
|
13
|
+
gem "activerecord", "4.1.1"
|
14
|
+
gem "activesupport","4.1.1"
|
15
|
+
end
|
data/Gemfile
CHANGED
data/README.rdoc
CHANGED
@@ -63,7 +63,13 @@ Example
|
|
63
63
|
1. Sunspot
|
64
64
|
2. ActiveRecord 2+
|
65
65
|
|
66
|
+
== Tests
|
67
|
+
|
68
|
+
Tests are written in RSpec and use Mocha for mocks and stubs.
|
69
|
+
|
70
|
+
{<img src="http://travis-ci.org/swalterd/sunspot_submodel_index.png" />}[http://travis-ci.org/swalterd/sunspot_submodel_index]
|
71
|
+
|
66
72
|
== License
|
67
73
|
|
68
|
-
Sunspot Submodel Index is distributed under the MIT License, copyright (c) 2011 Finetooth Enterprises, Inc.
|
74
|
+
Sunspot Submodel Index is distributed under the MIT License, copyright (c) 2011-2014 Finetooth Enterprises, Inc. and Scott Diedrick
|
69
75
|
|
data/Rakefile
CHANGED
@@ -0,0 +1,45 @@
|
|
1
|
+
PATH
|
2
|
+
remote: ../
|
3
|
+
specs:
|
4
|
+
sunspot_submodel_index (0.0.4)
|
5
|
+
|
6
|
+
GEM
|
7
|
+
remote: http://rubygems.org/
|
8
|
+
specs:
|
9
|
+
activerecord (2.3.18)
|
10
|
+
activesupport (= 2.3.18)
|
11
|
+
activesupport (2.3.18)
|
12
|
+
appraisal (1.0.0)
|
13
|
+
bundler
|
14
|
+
rake
|
15
|
+
thor (>= 0.14.0)
|
16
|
+
diff-lcs (1.2.5)
|
17
|
+
iconv (1.0.4)
|
18
|
+
metaclass (0.0.4)
|
19
|
+
mocha (1.0.0)
|
20
|
+
metaclass (~> 0.0.1)
|
21
|
+
rake (10.3.1)
|
22
|
+
rspec (2.14.1)
|
23
|
+
rspec-core (~> 2.14.0)
|
24
|
+
rspec-expectations (~> 2.14.0)
|
25
|
+
rspec-mocks (~> 2.14.0)
|
26
|
+
rspec-core (2.14.8)
|
27
|
+
rspec-expectations (2.14.5)
|
28
|
+
diff-lcs (>= 1.1.3, < 2.0)
|
29
|
+
rspec-mocks (2.14.6)
|
30
|
+
sqlite3 (1.3.9)
|
31
|
+
thor (0.19.1)
|
32
|
+
|
33
|
+
PLATFORMS
|
34
|
+
ruby
|
35
|
+
|
36
|
+
DEPENDENCIES
|
37
|
+
activerecord (= 2.3.18)
|
38
|
+
activesupport (= 2.3.18)
|
39
|
+
appraisal
|
40
|
+
iconv
|
41
|
+
mocha (>= 0.9.5)
|
42
|
+
rake (>= 0.8.7)
|
43
|
+
rspec
|
44
|
+
sqlite3
|
45
|
+
sunspot_submodel_index!
|
@@ -0,0 +1,56 @@
|
|
1
|
+
PATH
|
2
|
+
remote: ../
|
3
|
+
specs:
|
4
|
+
sunspot_submodel_index (0.0.4)
|
5
|
+
|
6
|
+
GEM
|
7
|
+
remote: http://rubygems.org/
|
8
|
+
specs:
|
9
|
+
activemodel (3.2.18)
|
10
|
+
activesupport (= 3.2.18)
|
11
|
+
builder (~> 3.0.0)
|
12
|
+
activerecord (3.2.18)
|
13
|
+
activemodel (= 3.2.18)
|
14
|
+
activesupport (= 3.2.18)
|
15
|
+
arel (~> 3.0.2)
|
16
|
+
tzinfo (~> 0.3.29)
|
17
|
+
activesupport (3.2.18)
|
18
|
+
i18n (~> 0.6, >= 0.6.4)
|
19
|
+
multi_json (~> 1.0)
|
20
|
+
appraisal (1.0.0)
|
21
|
+
bundler
|
22
|
+
rake
|
23
|
+
thor (>= 0.14.0)
|
24
|
+
arel (3.0.3)
|
25
|
+
builder (3.0.4)
|
26
|
+
diff-lcs (1.2.5)
|
27
|
+
i18n (0.6.9)
|
28
|
+
metaclass (0.0.4)
|
29
|
+
mocha (1.0.0)
|
30
|
+
metaclass (~> 0.0.1)
|
31
|
+
multi_json (1.10.0)
|
32
|
+
rake (10.3.1)
|
33
|
+
rspec (2.14.1)
|
34
|
+
rspec-core (~> 2.14.0)
|
35
|
+
rspec-expectations (~> 2.14.0)
|
36
|
+
rspec-mocks (~> 2.14.0)
|
37
|
+
rspec-core (2.14.8)
|
38
|
+
rspec-expectations (2.14.5)
|
39
|
+
diff-lcs (>= 1.1.3, < 2.0)
|
40
|
+
rspec-mocks (2.14.6)
|
41
|
+
sqlite3 (1.3.9)
|
42
|
+
thor (0.19.1)
|
43
|
+
tzinfo (0.3.39)
|
44
|
+
|
45
|
+
PLATFORMS
|
46
|
+
ruby
|
47
|
+
|
48
|
+
DEPENDENCIES
|
49
|
+
activerecord (= 3.2.18)
|
50
|
+
activesupport (= 3.2.18)
|
51
|
+
appraisal
|
52
|
+
mocha (>= 0.9.5)
|
53
|
+
rake (>= 0.8.7)
|
54
|
+
rspec
|
55
|
+
sqlite3
|
56
|
+
sunspot_submodel_index!
|
@@ -0,0 +1,61 @@
|
|
1
|
+
PATH
|
2
|
+
remote: ../
|
3
|
+
specs:
|
4
|
+
sunspot_submodel_index (0.0.4)
|
5
|
+
|
6
|
+
GEM
|
7
|
+
remote: http://rubygems.org/
|
8
|
+
specs:
|
9
|
+
activemodel (4.1.1)
|
10
|
+
activesupport (= 4.1.1)
|
11
|
+
builder (~> 3.1)
|
12
|
+
activerecord (4.1.1)
|
13
|
+
activemodel (= 4.1.1)
|
14
|
+
activesupport (= 4.1.1)
|
15
|
+
arel (~> 5.0.0)
|
16
|
+
activesupport (4.1.1)
|
17
|
+
i18n (~> 0.6, >= 0.6.9)
|
18
|
+
json (~> 1.7, >= 1.7.7)
|
19
|
+
minitest (~> 5.1)
|
20
|
+
thread_safe (~> 0.1)
|
21
|
+
tzinfo (~> 1.1)
|
22
|
+
appraisal (1.0.0)
|
23
|
+
bundler
|
24
|
+
rake
|
25
|
+
thor (>= 0.14.0)
|
26
|
+
arel (5.0.1.20140414130214)
|
27
|
+
builder (3.2.2)
|
28
|
+
diff-lcs (1.2.5)
|
29
|
+
i18n (0.6.9)
|
30
|
+
json (1.8.1)
|
31
|
+
metaclass (0.0.4)
|
32
|
+
minitest (5.3.3)
|
33
|
+
mocha (1.0.0)
|
34
|
+
metaclass (~> 0.0.1)
|
35
|
+
rake (10.3.1)
|
36
|
+
rspec (2.14.1)
|
37
|
+
rspec-core (~> 2.14.0)
|
38
|
+
rspec-expectations (~> 2.14.0)
|
39
|
+
rspec-mocks (~> 2.14.0)
|
40
|
+
rspec-core (2.14.8)
|
41
|
+
rspec-expectations (2.14.5)
|
42
|
+
diff-lcs (>= 1.1.3, < 2.0)
|
43
|
+
rspec-mocks (2.14.6)
|
44
|
+
sqlite3 (1.3.9)
|
45
|
+
thor (0.19.1)
|
46
|
+
thread_safe (0.3.3)
|
47
|
+
tzinfo (1.1.0)
|
48
|
+
thread_safe (~> 0.1)
|
49
|
+
|
50
|
+
PLATFORMS
|
51
|
+
ruby
|
52
|
+
|
53
|
+
DEPENDENCIES
|
54
|
+
activerecord (= 4.1.1)
|
55
|
+
activesupport (= 4.1.1)
|
56
|
+
appraisal
|
57
|
+
mocha (>= 0.9.5)
|
58
|
+
rake (>= 0.8.7)
|
59
|
+
rspec
|
60
|
+
sqlite3
|
61
|
+
sunspot_submodel_index!
|
data/spec/spec_helper.rb
CHANGED
@@ -8,18 +8,19 @@ Gem::Specification.new do |s|
|
|
8
8
|
s.platform = Gem::Platform::RUBY
|
9
9
|
s.authors = ["Scott Diedrick"]
|
10
10
|
s.email = ["swalterd@gmail.com"]
|
11
|
-
s.
|
11
|
+
s.licenses = ['MIT']
|
12
|
+
s.homepage = "http://github.com/swalterd/sunspot_submodel_index"
|
12
13
|
s.summary = %q{Support for Sunspot indexing of Rails models when an associated model is updated or deleted.}
|
13
14
|
s.description = %q{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.}
|
14
15
|
|
15
16
|
s.rubyforge_project = "sunspot_submodel_index"
|
16
17
|
|
17
|
-
s.add_development_dependency
|
18
|
-
s.add_development_dependency("rake", [">=0.
|
19
|
-
s.add_development_dependency("sqlite3", ["
|
18
|
+
s.add_development_dependency("rspec",["~> 2.6"])
|
19
|
+
s.add_development_dependency("rake", [">=0.9.2"])
|
20
|
+
s.add_development_dependency("sqlite3", ["~> 1.3"])
|
20
21
|
s.add_development_dependency("activerecord", [">= 2.2"])
|
21
22
|
s.add_development_dependency("activesupport", [">= 2.2"])
|
22
|
-
s.add_development_dependency("mocha", ["
|
23
|
+
s.add_development_dependency("mocha", ["~> 0.10"])
|
23
24
|
|
24
25
|
s.files = `git ls-files`.split("\n")
|
25
26
|
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
metadata
CHANGED
@@ -1,128 +1,121 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: sunspot_submodel_index
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease:
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 0
|
9
|
-
- 4
|
10
|
-
version: 0.0.4
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.5
|
11
5
|
platform: ruby
|
12
|
-
authors:
|
6
|
+
authors:
|
13
7
|
- Scott Diedrick
|
14
8
|
autorequire:
|
15
9
|
bindir: bin
|
16
10
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
dependencies:
|
21
|
-
- !ruby/object:Gem::Dependency
|
11
|
+
date: 2014-05-11 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
22
14
|
name: rspec
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '2.6'
|
20
|
+
type: :development
|
23
21
|
prerelease: false
|
24
|
-
|
25
|
-
|
26
|
-
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '2.6'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
27
31
|
- - ">="
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
|
30
|
-
segments:
|
31
|
-
- 0
|
32
|
-
version: "0"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 0.9.2
|
33
34
|
type: :development
|
34
|
-
version_requirements: *id001
|
35
|
-
- !ruby/object:Gem::Dependency
|
36
|
-
name: rake
|
37
35
|
prerelease: false
|
38
|
-
|
39
|
-
|
40
|
-
requirements:
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
41
38
|
- - ">="
|
42
|
-
- !ruby/object:Gem::Version
|
43
|
-
|
44
|
-
|
45
|
-
- 0
|
46
|
-
- 8
|
47
|
-
- 7
|
48
|
-
version: 0.8.7
|
49
|
-
type: :development
|
50
|
-
version_requirements: *id002
|
51
|
-
- !ruby/object:Gem::Dependency
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 0.9.2
|
41
|
+
- !ruby/object:Gem::Dependency
|
52
42
|
name: sqlite3
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '1.3'
|
48
|
+
type: :development
|
53
49
|
prerelease: false
|
54
|
-
|
55
|
-
|
56
|
-
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '1.3'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: activerecord
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
57
59
|
- - ">="
|
58
|
-
- !ruby/object:Gem::Version
|
59
|
-
|
60
|
-
segments:
|
61
|
-
- 0
|
62
|
-
version: "0"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '2.2'
|
63
62
|
type: :development
|
64
|
-
version_requirements: *id003
|
65
|
-
- !ruby/object:Gem::Dependency
|
66
|
-
name: activerecord
|
67
63
|
prerelease: false
|
68
|
-
|
69
|
-
|
70
|
-
requirements:
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
71
66
|
- - ">="
|
72
|
-
- !ruby/object:Gem::Version
|
73
|
-
|
74
|
-
|
75
|
-
- 2
|
76
|
-
- 2
|
77
|
-
version: "2.2"
|
78
|
-
type: :development
|
79
|
-
version_requirements: *id004
|
80
|
-
- !ruby/object:Gem::Dependency
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '2.2'
|
69
|
+
- !ruby/object:Gem::Dependency
|
81
70
|
name: activesupport
|
82
|
-
|
83
|
-
|
84
|
-
none: false
|
85
|
-
requirements:
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
86
73
|
- - ">="
|
87
|
-
- !ruby/object:Gem::Version
|
88
|
-
|
89
|
-
segments:
|
90
|
-
- 2
|
91
|
-
- 2
|
92
|
-
version: "2.2"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '2.2'
|
93
76
|
type: :development
|
94
|
-
version_requirements: *id005
|
95
|
-
- !ruby/object:Gem::Dependency
|
96
|
-
name: mocha
|
97
77
|
prerelease: false
|
98
|
-
|
99
|
-
|
100
|
-
requirements:
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
101
80
|
- - ">="
|
102
|
-
- !ruby/object:Gem::Version
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '2.2'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: mocha
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0.10'
|
109
90
|
type: :development
|
110
|
-
|
111
|
-
|
112
|
-
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0.10'
|
97
|
+
description: This gem ties into the Rails model lifecycle to add support for calling
|
98
|
+
Sunspot index on another model when data it relies on for its index is from an associated
|
99
|
+
model.
|
100
|
+
email:
|
113
101
|
- swalterd@gmail.com
|
114
102
|
executables: []
|
115
|
-
|
116
103
|
extensions: []
|
117
|
-
|
118
104
|
extra_rdoc_files: []
|
119
|
-
|
120
|
-
|
121
|
-
- .
|
105
|
+
files:
|
106
|
+
- ".gitignore"
|
107
|
+
- ".travis.yml"
|
108
|
+
- Appraisals
|
122
109
|
- Gemfile
|
123
110
|
- MIT_LICENSE
|
124
111
|
- README.rdoc
|
125
112
|
- Rakefile
|
113
|
+
- gemfiles/rails_2.gemfile
|
114
|
+
- gemfiles/rails_2.gemfile.lock
|
115
|
+
- gemfiles/rails_3.gemfile
|
116
|
+
- gemfiles/rails_3.gemfile.lock
|
117
|
+
- gemfiles/rails_4.gemfile
|
118
|
+
- gemfiles/rails_4.gemfile.lock
|
126
119
|
- lib/sunspot_submodel_index.rb
|
127
120
|
- lib/sunspot_submodel_index/submodel_index.rb
|
128
121
|
- lib/sunspot_submodel_index/version.rb
|
@@ -130,41 +123,32 @@ files:
|
|
130
123
|
- spec/spec_helper.rb
|
131
124
|
- spec/submodel_index_spec.rb
|
132
125
|
- sunspot_submodel_index.gemspec
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
126
|
+
homepage: http://github.com/swalterd/sunspot_submodel_index
|
127
|
+
licenses:
|
128
|
+
- MIT
|
129
|
+
metadata: {}
|
137
130
|
post_install_message:
|
138
131
|
rdoc_options: []
|
139
|
-
|
140
|
-
require_paths:
|
132
|
+
require_paths:
|
141
133
|
- lib
|
142
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
143
|
-
|
144
|
-
requirements:
|
134
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
145
136
|
- - ">="
|
146
|
-
- !ruby/object:Gem::Version
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
version: "0"
|
151
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
152
|
-
none: false
|
153
|
-
requirements:
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0'
|
139
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
140
|
+
requirements:
|
154
141
|
- - ">="
|
155
|
-
- !ruby/object:Gem::Version
|
156
|
-
|
157
|
-
segments:
|
158
|
-
- 0
|
159
|
-
version: "0"
|
142
|
+
- !ruby/object:Gem::Version
|
143
|
+
version: '0'
|
160
144
|
requirements: []
|
161
|
-
|
162
145
|
rubyforge_project: sunspot_submodel_index
|
163
|
-
rubygems_version:
|
146
|
+
rubygems_version: 2.2.2
|
164
147
|
signing_key:
|
165
|
-
specification_version:
|
166
|
-
summary: Support for Sunspot indexing of Rails models when an associated model is
|
167
|
-
|
148
|
+
specification_version: 4
|
149
|
+
summary: Support for Sunspot indexing of Rails models when an associated model is
|
150
|
+
updated or deleted.
|
151
|
+
test_files:
|
168
152
|
- spec/lib/sunspot_submodel_test_model.rb
|
169
153
|
- spec/spec_helper.rb
|
170
154
|
- spec/submodel_index_spec.rb
|