erp_search 3.1.2 → 4.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 0dba8d1d2c43105b4c88aaeed7671173e33a13f4
4
+ data.tar.gz: d576dd6f9a5294298da7f203133422ce5f5e41e6
5
+ SHA512:
6
+ metadata.gz: 081a1191329987cc60672786a52ea705531257cef0e9f638bd512642aa3af9ba04a74cbd432ded635bbc10b2c0cd5b23fced45f4099d2f36205b8cb48ca9ab87
7
+ data.tar.gz: 2958ecc67cbca16981afb71814d6ccddbaa6c664f81f55b1333fe2a514cc64cc6393946f98c1b1122bc3c063651c2d499f9c223e6e79698a6705aa4b9c4b15cc
data/README.rdoc CHANGED
@@ -5,7 +5,9 @@ ERP Search adds Solr extensions to Compass using Sunspot.
5
5
 
6
6
  Setup
7
7
  =====
8
- Copy vendor/plugins/erp_search/config/sunspot.yml to config/sunspot.yml
8
+ Copy engine's erp_search/config/erp_search.yml to [approot]config/erp_search.yml
9
+ Edit config/erp_search.yml to your desired configuration if different from default
10
+ Copy engine's erp_search/config/sunspot.yml to [approot]config/sunspot.yml
9
11
  Edit config/sunspot.yml to your desired configuration if different from default
10
12
 
11
13
 
@@ -0,0 +1,9 @@
1
+ class AddMissingIndexes < ActiveRecord::Migration
2
+ def up
3
+ add_index :party_search_facts, :party_id, :name => 'party_search_facts_party_id_idx'
4
+ end
5
+
6
+ def down
7
+ remove_index :party_search_facts, :party_id
8
+ end
9
+ end
@@ -26,8 +26,9 @@ module ErpSearch
26
26
  end
27
27
 
28
28
  ErpSearch::Engine.config.after_initialize do
29
+ # DynamicFormModel has been removed.
29
30
  # setup sunspot for all dynamic form models if we're using USE_SOLR_FOR_DYNAMIC_FORM_MODELS
30
- DynamicFormModel.sunspot_setup_all if Object.const_defined?('ErpForms') and ErpForms.use_solr? and ActiveRecord::Base.connection.table_exists?('dynamic_form_models')
31
+ DynamicFormModel.sunspot_setup_all if Object.class_exists?('ErpForms') and ErpForms.use_solr? and ActiveRecord::Base.connection.table_exists?('dynamic_form_models')
31
32
  end
32
33
 
33
34
  if USE_PARTY_SEARCH_FACTS
@@ -1,9 +1,13 @@
1
1
  module ErpSearch
2
2
  module VERSION #:nodoc:
3
- MAJOR = 3
4
- MINOR = 1
5
- TINY = 2
3
+ MAJOR = 4
4
+ MINOR = 0
5
+ TINY = 0
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].compact.join('.')
8
8
  end
9
+
10
+ def self.version
11
+ ErpSearch::VERSION::STRING
12
+ end
9
13
  end
metadata CHANGED
@@ -1,80 +1,71 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: erp_search
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.2
5
- prerelease:
4
+ version: 4.0.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Rick Koloski, Russell Holmes
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-04-08 00:00:00.000000000 Z
11
+ date: 2014-11-19 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: knitkit
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ~>
17
+ - - "~>"
20
18
  - !ruby/object:Gem::Version
21
- version: '2.1'
19
+ version: '3.0'
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ~>
24
+ - - "~>"
28
25
  - !ruby/object:Gem::Version
29
- version: '2.1'
26
+ version: '3.0'
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: erp_dev_svcs
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ~>
31
+ - - "~>"
36
32
  - !ruby/object:Gem::Version
37
- version: '3.1'
33
+ version: '4.0'
38
34
  type: :development
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ~>
38
+ - - "~>"
44
39
  - !ruby/object:Gem::Version
45
- version: '3.1'
40
+ version: '4.0'
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: sunspot_rails
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
- - - ~>
45
+ - - "~>"
52
46
  - !ruby/object:Gem::Version
53
- version: 1.3.3
47
+ version: '1.3'
54
48
  type: :runtime
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
- - - ~>
52
+ - - "~>"
60
53
  - !ruby/object:Gem::Version
61
- version: 1.3.3
54
+ version: '1.3'
62
55
  - !ruby/object:Gem::Dependency
63
56
  name: sunspot_solr
64
57
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
58
  requirements:
67
- - - ~>
59
+ - - "~>"
68
60
  - !ruby/object:Gem::Version
69
- version: 1.3.3
61
+ version: '1.3'
70
62
  type: :runtime
71
63
  prerelease: false
72
64
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
65
  requirements:
75
- - - ~>
66
+ - - "~>"
76
67
  - !ruby/object:Gem::Version
77
- version: 1.3.3
68
+ version: '1.3'
78
69
  description: The CompassAE Search Engine provides functionality to facilitate both
79
70
  dimensional and index-based searches. CompassAE by default will search for an instance
80
71
  of SOLR/Sunspot and use it if it is available, otherwise it will attempt to use
@@ -86,10 +77,9 @@ executables: []
86
77
  extensions: []
87
78
  extra_rdoc_files: []
88
79
  files:
89
- - app/assets/javascripts/erp_search/application.js
90
- - app/assets/stylesheets/erp_search/application.css
91
- - app/controllers/erp_search/application_controller.rb
92
- - app/helpers/erp_search/application_helper.rb
80
+ - GPL-3-LICENSE
81
+ - README.rdoc
82
+ - Rakefile
93
83
  - app/models/extensions/content.rb
94
84
  - app/models/extensions/dynamic_form_document.rb
95
85
  - app/models/extensions/party.rb
@@ -103,27 +93,26 @@ files:
103
93
  - app/observers/party_observer.rb
104
94
  - app/observers/phone_number_observer.rb
105
95
  - app/observers/postal_address_observer.rb
106
- - app/views/layouts/erp_search/application.html.erb
107
96
  - config/erp_search.yml
108
97
  - config/routes.rb
109
98
  - config/sunspot.yml
110
99
  - db/migrate/20110817165116_recreate_party_search_facts_table.rb
100
+ - db/migrate/20110817165117_add_missing_indexes.rb
101
+ - lib/erp_search.rb
111
102
  - lib/erp_search/config.rb
112
103
  - lib/erp_search/engine.rb
113
- - lib/erp_search/extensions/active_record/has_dynamic_solr_search.rb
114
104
  - lib/erp_search/extensions.rb
105
+ - lib/erp_search/extensions/active_record/has_dynamic_solr_search.rb
115
106
  - lib/erp_search/version.rb
116
- - lib/erp_search.rb
117
107
  - lib/tasks/dynamic_form_models.rake
118
108
  - lib/tasks/solr_index.rake
119
- - GPL-3-LICENSE
120
- - Rakefile
121
- - README.rdoc
109
+ - spec/dummy/Rakefile
122
110
  - spec/dummy/app/assets/javascripts/application.js
123
111
  - spec/dummy/app/assets/stylesheets/application.css
124
112
  - spec/dummy/app/controllers/application_controller.rb
125
113
  - spec/dummy/app/helpers/application_helper.rb
126
114
  - spec/dummy/app/views/layouts/application.html.erb
115
+ - spec/dummy/config.ru
127
116
  - spec/dummy/config/application.rb
128
117
  - spec/dummy/config/boot.rb
129
118
  - spec/dummy/config/database.yml
@@ -138,40 +127,38 @@ files:
138
127
  - spec/dummy/config/locales/en.yml
139
128
  - spec/dummy/config/routes.rb
140
129
  - spec/dummy/config/sunspot.yml
141
- - spec/dummy/config.ru
142
130
  - spec/dummy/public/404.html
143
131
  - spec/dummy/public/422.html
144
132
  - spec/dummy/public/500.html
145
133
  - spec/dummy/public/favicon.ico
146
- - spec/dummy/Rakefile
147
134
  - spec/dummy/script/rails
148
135
  - spec/models/party_search_fact_spec.rb
149
136
  - spec/solr_spec.rb
150
137
  - spec/spec_helper.rb
151
138
  - spec/support/enable_sunspot.rb
152
139
  homepage: http://development.compassagile.com
153
- licenses: []
140
+ licenses:
141
+ - GPL-3-LICENSE
142
+ metadata: {}
154
143
  post_install_message:
155
144
  rdoc_options: []
156
145
  require_paths:
157
146
  - lib
158
147
  required_ruby_version: !ruby/object:Gem::Requirement
159
- none: false
160
148
  requirements:
161
- - - ! '>='
149
+ - - ">="
162
150
  - !ruby/object:Gem::Version
163
151
  version: '0'
164
152
  required_rubygems_version: !ruby/object:Gem::Requirement
165
- none: false
166
153
  requirements:
167
- - - ! '>='
154
+ - - ">="
168
155
  - !ruby/object:Gem::Version
169
156
  version: '0'
170
157
  requirements: []
171
158
  rubyforge_project:
172
- rubygems_version: 1.8.24
159
+ rubygems_version: 2.2.2
173
160
  signing_key:
174
- specification_version: 3
161
+ specification_version: 4
175
162
  summary: The CompassAE Search Engine provides functionality to facilitate both dimensional
176
163
  and index-based searches.
177
164
  test_files:
@@ -1,9 +0,0 @@
1
- // This is a manifest file that'll be compiled into including all the files listed below.
2
- // Add new JavaScript/Coffee code in separate files in this directory and they'll automatically
3
- // be included in the compiled file accessible from http://example.com/assets/application.js
4
- // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
5
- // the compiled file.
6
- //
7
- //= require jquery
8
- //= require jquery_ujs
9
- //= require_tree .
@@ -1,7 +0,0 @@
1
- /*
2
- * This is a manifest file that'll automatically include all the stylesheets available in this directory
3
- * and any sub-directories. You're free to add application-wide styles to this file and they'll appear at
4
- * the top of the compiled file, but it's generally better to create a new file per style scope.
5
- *= require_self
6
- *= require_tree .
7
- */
@@ -1,4 +0,0 @@
1
- module ErpSearch
2
- class ApplicationController < ActionController::Base
3
- end
4
- end
@@ -1,4 +0,0 @@
1
- module ErpSearch
2
- module ApplicationHelper
3
- end
4
- end
@@ -1,14 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>ErpSearch</title>
5
- <%= stylesheet_link_tag "erp_search/application" %>
6
- <%= javascript_include_tag "erp_search/application" %>
7
- <%= csrf_meta_tags %>
8
- </head>
9
- <body>
10
-
11
- <%= yield %>
12
-
13
- </body>
14
- </html>