muck-contents 3.0.1 → 3.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.rdoc +9 -0
- data/VERSION +1 -1
- data/lib/muck-contents/config.rb +2 -0
- data/lib/muck-contents/models/content.rb +7 -0
- data/muck-contents.gemspec +2 -2
- data/test/rails_test/Gemfile +1 -1
- data/test/rails_test/Gemfile.lock +65 -58
- data/test/rails_test/config/initializers/muck.rb +1 -0
- metadata +4 -4
data/README.rdoc
CHANGED
@@ -26,6 +26,7 @@ be sure to set content_css to any css files you want to have show up in your tin
|
|
26
26
|
MuckContents.configure do |config|
|
27
27
|
config.sanitize_content = true
|
28
28
|
config.enable_auto_translations = false # If true then all content objects will automatically be translated into all languages supported by Google Translate
|
29
|
+
config.enable_sunspot = false # This enables or disables sunspot for profiles. Only use acts_as_solr or sunspot not both. Sunspot does not include multicore support.
|
29
30
|
config.enable_solr = true # Enables solr for the content system. If you are using solr then set this to true. If you do not wish to setup and manage solr
|
30
31
|
# then set this value to false (but search will be disabled).
|
31
32
|
config.enable_comments = false
|
@@ -41,6 +42,14 @@ be sure to set content_css to any css files you want to have show up in your tin
|
|
41
42
|
end
|
42
43
|
end
|
43
44
|
|
45
|
+
=== Tests
|
46
|
+
Muck-Contents inserts an exception handler. If this handler is not loaded the gem will prevent your application from loading. This is mainly a problem in tests
|
47
|
+
where show_exceptions is set to false. Enable 'show_exceptions' in test.rb:
|
48
|
+
|
49
|
+
RailsTest::Application.configure do
|
50
|
+
config.action_dispatch.show_exceptions = true # Must be true to include the rack middleware require to generate missing page exceptions
|
51
|
+
end
|
52
|
+
|
44
53
|
=== Tiny MCE Initializer
|
45
54
|
Running rake muck:contents:sync will copy all the needed javascript, image and css files into your project. It will also create an initializer called mce_options.rb. That file
|
46
55
|
contains two basic configurations for tinymce as well as examples on how to create templates. It is recommended that you don't modify that file as it will be overwritten the
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.2
|
data/lib/muck-contents/config.rb
CHANGED
@@ -14,6 +14,7 @@ module MuckContents
|
|
14
14
|
|
15
15
|
attr_accessor :git_repository # Not currently used. Eventually this will be the path to a git repository that the content system uses to store revisions.
|
16
16
|
attr_accessor :enable_auto_translations # If true then all content objects will automatically be translated into all languages supported by Google Translate
|
17
|
+
attr_accessor :enable_sunspot # This enables or disables sunspot for profiles. Only use acts_as_solr or sunspot not both. Sunspot does not include multicore support.
|
17
18
|
attr_accessor :enable_solr # Enables solr for the content system. If you are using solr then set this to true. If you do not wish to setup and manage solr
|
18
19
|
# then set this value to false (but search will be disabled).
|
19
20
|
attr_accessor :content_css # CSS files that should be fed into the tiny_mce content editor.
|
@@ -32,6 +33,7 @@ module MuckContents
|
|
32
33
|
def initialize
|
33
34
|
self.sanitize_content = true
|
34
35
|
self.enable_auto_translations = true
|
36
|
+
self.enable_sunspot = false
|
35
37
|
self.enable_solr = false
|
36
38
|
self.enable_comments = false
|
37
39
|
self.git_repository = nil #"#{File.join(RAILS_ROOT, 'repo', RAILS_ENV)}"
|
@@ -55,6 +55,13 @@ module MuckContents
|
|
55
55
|
acts_as_solr({ :fields => [ :search_content => 'string' ] }, { :multi_core => true, :default_core => 'en' })
|
56
56
|
end
|
57
57
|
|
58
|
+
if MuckContents.configuration.enable_sunspot
|
59
|
+
require 'sunspot'
|
60
|
+
searchable do
|
61
|
+
text :search_content, :more_like_this => true
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
58
65
|
attr_accessor :uri_path
|
59
66
|
attr_accessor :custom_scope
|
60
67
|
|
data/muck-contents.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{muck-contents}
|
8
|
-
s.version = "3.0.
|
8
|
+
s.version = "3.0.2"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Justin Ball", "Joel Duffin"]
|
12
|
-
s.date = %q{2010-10-
|
12
|
+
s.date = %q{2010-10-27}
|
13
13
|
s.email = %q{justin@tatemae.com}
|
14
14
|
s.extra_rdoc_files = [
|
15
15
|
"README.rdoc"
|
data/test/rails_test/Gemfile
CHANGED
@@ -9,7 +9,7 @@ GIT
|
|
9
9
|
PATH
|
10
10
|
remote: /Users/jbasdf/projects/muck-activities
|
11
11
|
specs:
|
12
|
-
muck-activities (3.0.
|
12
|
+
muck-activities (3.0.1)
|
13
13
|
muck-comments
|
14
14
|
muck-engine
|
15
15
|
muck-users
|
@@ -17,7 +17,7 @@ PATH
|
|
17
17
|
PATH
|
18
18
|
remote: /Users/jbasdf/projects/muck-comments
|
19
19
|
specs:
|
20
|
-
muck-comments (3.0.
|
20
|
+
muck-comments (3.0.2)
|
21
21
|
muck-engine
|
22
22
|
muck-users
|
23
23
|
nested_set
|
@@ -26,7 +26,7 @@ PATH
|
|
26
26
|
PATH
|
27
27
|
remote: /Users/jbasdf/projects/muck-contents
|
28
28
|
specs:
|
29
|
-
muck-contents (3.0.
|
29
|
+
muck-contents (3.0.1)
|
30
30
|
acts-as-taggable-on
|
31
31
|
awesome_nested_set
|
32
32
|
babelphish
|
@@ -41,7 +41,7 @@ PATH
|
|
41
41
|
PATH
|
42
42
|
remote: /Users/jbasdf/projects/muck-engine
|
43
43
|
specs:
|
44
|
-
muck-engine (3.0.
|
44
|
+
muck-engine (3.0.6)
|
45
45
|
overlord
|
46
46
|
validation_reflection
|
47
47
|
will_paginate (~> 3.0.beta)
|
@@ -49,11 +49,11 @@ PATH
|
|
49
49
|
PATH
|
50
50
|
remote: /Users/jbasdf/projects/muck-users
|
51
51
|
specs:
|
52
|
-
muck-users (3.0.
|
52
|
+
muck-users (3.0.5)
|
53
53
|
authlogic
|
54
54
|
bcrypt-ruby
|
55
55
|
friendly_id
|
56
|
-
muck-engine
|
56
|
+
muck-engine (>= 3.0.3)
|
57
57
|
|
58
58
|
PATH
|
59
59
|
remote: /Users/jbasdf/projects/other_apps/shoulda
|
@@ -64,12 +64,12 @@ GEM
|
|
64
64
|
remote: http://rubygems.org/
|
65
65
|
specs:
|
66
66
|
abstract (1.0.0)
|
67
|
-
actionmailer (3.0.
|
68
|
-
actionpack (= 3.0.
|
67
|
+
actionmailer (3.0.1)
|
68
|
+
actionpack (= 3.0.1)
|
69
69
|
mail (~> 2.2.5)
|
70
|
-
actionpack (3.0.
|
71
|
-
activemodel (= 3.0.
|
72
|
-
activesupport (= 3.0.
|
70
|
+
actionpack (3.0.1)
|
71
|
+
activemodel (= 3.0.1)
|
72
|
+
activesupport (= 3.0.1)
|
73
73
|
builder (~> 2.1.2)
|
74
74
|
erubis (~> 2.6.6)
|
75
75
|
i18n (~> 0.4.1)
|
@@ -77,19 +77,19 @@ GEM
|
|
77
77
|
rack-mount (~> 0.6.12)
|
78
78
|
rack-test (~> 0.5.4)
|
79
79
|
tzinfo (~> 0.3.23)
|
80
|
-
activemodel (3.0.
|
81
|
-
activesupport (= 3.0.
|
80
|
+
activemodel (3.0.1)
|
81
|
+
activesupport (= 3.0.1)
|
82
82
|
builder (~> 2.1.2)
|
83
83
|
i18n (~> 0.4.1)
|
84
|
-
activerecord (3.0.
|
85
|
-
activemodel (= 3.0.
|
86
|
-
activesupport (= 3.0.
|
84
|
+
activerecord (3.0.1)
|
85
|
+
activemodel (= 3.0.1)
|
86
|
+
activesupport (= 3.0.1)
|
87
87
|
arel (~> 1.0.0)
|
88
88
|
tzinfo (~> 0.3.23)
|
89
|
-
activeresource (3.0.
|
90
|
-
activemodel (= 3.0.
|
91
|
-
activesupport (= 3.0.
|
92
|
-
activesupport (3.0.
|
89
|
+
activeresource (3.0.1)
|
90
|
+
activemodel (= 3.0.1)
|
91
|
+
activesupport (= 3.0.1)
|
92
|
+
activesupport (3.0.1)
|
93
93
|
acts-as-taggable-on (2.0.6)
|
94
94
|
arel (1.0.1)
|
95
95
|
activesupport (~> 3.0.0)
|
@@ -105,28 +105,31 @@ GEM
|
|
105
105
|
babosa (0.2.0)
|
106
106
|
bcrypt-ruby (2.1.2)
|
107
107
|
builder (2.1.2)
|
108
|
-
capybara (0.
|
108
|
+
capybara (0.4.0)
|
109
|
+
celerity (>= 0.7.9)
|
109
110
|
culerity (>= 0.2.4)
|
110
111
|
mime-types (>= 1.16)
|
111
112
|
nokogiri (>= 1.3.3)
|
112
113
|
rack (>= 1.0.0)
|
113
114
|
rack-test (>= 0.5.4)
|
114
|
-
selenium-webdriver (>= 0.0.
|
115
|
-
|
115
|
+
selenium-webdriver (>= 0.0.27)
|
116
|
+
xpath (~> 0.1.2)
|
117
|
+
celerity (0.8.2)
|
118
|
+
childprocess (0.1.3)
|
116
119
|
ffi (~> 0.6.3)
|
117
120
|
columnize (0.3.1)
|
118
121
|
configuration (1.1.0)
|
119
122
|
crack (0.1.8)
|
120
|
-
cucumber (0.9.
|
123
|
+
cucumber (0.9.3)
|
121
124
|
builder (~> 2.1.2)
|
122
125
|
diff-lcs (~> 1.1.2)
|
123
|
-
gherkin (~> 2.2.
|
126
|
+
gherkin (~> 2.2.9)
|
124
127
|
json (~> 1.4.6)
|
125
128
|
term-ansicolor (~> 1.0.5)
|
126
129
|
cucumber-rails (0.3.2)
|
127
130
|
cucumber (>= 0.8.0)
|
128
131
|
culerity (0.2.12)
|
129
|
-
database_cleaner (0.
|
132
|
+
database_cleaner (0.6.0)
|
130
133
|
diff-lcs (1.1.2)
|
131
134
|
erubis (2.6.6)
|
132
135
|
abstract (>= 1.0.0)
|
@@ -135,32 +138,34 @@ GEM
|
|
135
138
|
rake (>= 0.8.7)
|
136
139
|
friendly_id (3.1.7)
|
137
140
|
babosa (~> 0.2.0)
|
138
|
-
gherkin (2.2.
|
141
|
+
gherkin (2.2.9)
|
139
142
|
json (~> 1.4.6)
|
140
143
|
term-ansicolor (~> 1.0.5)
|
141
144
|
httparty (0.6.1)
|
142
145
|
crack (= 0.1.8)
|
143
|
-
i18n (0.4.
|
146
|
+
i18n (0.4.2)
|
144
147
|
json (1.4.6)
|
145
148
|
json_pure (1.4.6)
|
146
149
|
launchy (0.3.7)
|
147
150
|
configuration (>= 0.0.5)
|
148
151
|
rake (>= 0.8.1)
|
149
152
|
linecache (0.43)
|
150
|
-
mail (2.2.
|
153
|
+
mail (2.2.9)
|
151
154
|
activesupport (>= 2.3.6)
|
152
|
-
|
153
|
-
|
155
|
+
i18n (~> 0.4.1)
|
156
|
+
mime-types (~> 1.16)
|
157
|
+
treetop (~> 1.4.8)
|
154
158
|
mime-types (1.16)
|
155
|
-
muck-solr (0.
|
159
|
+
muck-solr (3.0.1)
|
156
160
|
mysql (2.8.1)
|
157
161
|
nested_set (1.5.2)
|
158
162
|
activerecord (>= 3.0.0)
|
159
163
|
railties (>= 3.0.0)
|
160
164
|
nokogiri (1.4.3.1)
|
161
|
-
overlord (3.0.
|
165
|
+
overlord (3.0.2)
|
162
166
|
httparty
|
163
|
-
|
167
|
+
json
|
168
|
+
paperclip (2.3.5)
|
164
169
|
activerecord
|
165
170
|
activesupport
|
166
171
|
polyglot (0.3.1)
|
@@ -169,33 +174,33 @@ GEM
|
|
169
174
|
rack (>= 1.0.0)
|
170
175
|
rack-test (0.5.6)
|
171
176
|
rack (>= 1.0)
|
172
|
-
rails (3.0.
|
173
|
-
actionmailer (= 3.0.
|
174
|
-
actionpack (= 3.0.
|
175
|
-
activerecord (= 3.0.
|
176
|
-
activeresource (= 3.0.
|
177
|
-
activesupport (= 3.0.
|
177
|
+
rails (3.0.1)
|
178
|
+
actionmailer (= 3.0.1)
|
179
|
+
actionpack (= 3.0.1)
|
180
|
+
activerecord (= 3.0.1)
|
181
|
+
activeresource (= 3.0.1)
|
182
|
+
activesupport (= 3.0.1)
|
178
183
|
bundler (~> 1.0.0)
|
179
|
-
railties (= 3.0.
|
180
|
-
railties (3.0.
|
181
|
-
actionpack (= 3.0.
|
182
|
-
activesupport (= 3.0.
|
184
|
+
railties (= 3.0.1)
|
185
|
+
railties (3.0.1)
|
186
|
+
actionpack (= 3.0.1)
|
187
|
+
activesupport (= 3.0.1)
|
183
188
|
rake (>= 0.8.4)
|
184
189
|
thor (~> 0.14.0)
|
185
190
|
rake (0.8.7)
|
186
191
|
rcov (0.9.9)
|
187
|
-
rspec (2.0.
|
188
|
-
rspec-core (
|
189
|
-
rspec-expectations (
|
190
|
-
rspec-mocks (
|
191
|
-
rspec-core (2.0.
|
192
|
-
rspec-expectations (2.0.
|
192
|
+
rspec (2.0.1)
|
193
|
+
rspec-core (~> 2.0.1)
|
194
|
+
rspec-expectations (~> 2.0.1)
|
195
|
+
rspec-mocks (~> 2.0.1)
|
196
|
+
rspec-core (2.0.1)
|
197
|
+
rspec-expectations (2.0.1)
|
193
198
|
diff-lcs (>= 1.1.2)
|
194
|
-
rspec-mocks (2.0.
|
195
|
-
rspec-core (
|
196
|
-
rspec-expectations (
|
197
|
-
rspec-rails (2.0.
|
198
|
-
rspec (
|
199
|
+
rspec-mocks (2.0.1)
|
200
|
+
rspec-core (~> 2.0.1)
|
201
|
+
rspec-expectations (~> 2.0.1)
|
202
|
+
rspec-rails (2.0.1)
|
203
|
+
rspec (~> 2.0.0)
|
199
204
|
ruby-debug (0.10.3)
|
200
205
|
columnize (>= 0.1)
|
201
206
|
ruby-debug-base (~> 0.10.3.0)
|
@@ -224,6 +229,8 @@ GEM
|
|
224
229
|
validation_reflection (1.0.0)
|
225
230
|
will_paginate (3.0.pre2)
|
226
231
|
xml-simple (1.0.12)
|
232
|
+
xpath (0.1.2)
|
233
|
+
nokogiri (~> 1.3)
|
227
234
|
ya2yaml (0.30)
|
228
235
|
|
229
236
|
PLATFORMS
|
@@ -246,10 +253,10 @@ DEPENDENCIES
|
|
246
253
|
muck-solr
|
247
254
|
muck-users!
|
248
255
|
mysql
|
249
|
-
rails (= 3.0.
|
256
|
+
rails (= 3.0.1)
|
250
257
|
rcov
|
251
|
-
rspec (>= 2.0.0
|
252
|
-
rspec-rails (>= 2.0.0
|
258
|
+
rspec (>= 2.0.0)
|
259
|
+
rspec-rails (>= 2.0.0)
|
253
260
|
ruby-debug
|
254
261
|
shoulda!
|
255
262
|
spork
|
@@ -64,6 +64,7 @@ MuckContents.configure do |config|
|
|
64
64
|
config.sanitize_content = true
|
65
65
|
config.enable_auto_translations = true
|
66
66
|
config.enable_solr = true
|
67
|
+
config.enable_sunspot = false
|
67
68
|
config.enable_comments = true
|
68
69
|
config.flickr_api_key = Secrets.flickr_api_key
|
69
70
|
if Rails.env.production?
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: muck-contents
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 3
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 3
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 3.0.
|
9
|
+
- 2
|
10
|
+
version: 3.0.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Justin Ball
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2010-10-
|
19
|
+
date: 2010-10-27 00:00:00 -06:00
|
20
20
|
default_executable:
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|