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 CHANGED
@@ -2,3 +2,4 @@
2
2
  .bundle
3
3
  Gemfile.lock
4
4
  pkg/*
5
+ .rvmrc
@@ -65,4 +65,5 @@ Example
65
65
 
66
66
  == License
67
67
 
68
- Sunspot Submodel Index is distributed under the MIT License, copyright (c) 2011 Finetooth Enterprises, Inc.
68
+ Sunspot Submodel Index is distributed under the MIT License, copyright (c) 2011 Finetooth Enterprises, Inc.
69
+
data/Rakefile CHANGED
@@ -6,4 +6,5 @@ require 'rspec'
6
6
  require 'rspec/core/rake_task'
7
7
  desc 'Run the unit tests'
8
8
  RSpec::Core::RakeTask.new(:test)
9
+ task :default => :test
9
10
  #End test tasks
@@ -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
- class_inheritable_hash :_sunspot_submodel_options
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
@@ -1,3 +1,3 @@
1
1
  module SunspotSubmodelIndex
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
@@ -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: 25
4
+ hash: 23
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 3
10
- version: 0.0.3
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-19 00:00:00 -05:00
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: sqlite3
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: *id002
64
+ version_requirements: *id003
49
65
  - !ruby/object:Gem::Dependency
50
66
  name: activerecord
51
67
  prerelease: false
52
- requirement: &id003 !ruby/object:Gem::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: *id003
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: &id004 !ruby/object:Gem::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: *id004
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