muck-engine 3.3.18 → 3.4.0

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/VERSION CHANGED
@@ -1 +1 @@
1
- 3.3.18
1
+ 3.4.0
@@ -24,7 +24,7 @@ class Admin::Muck::BaseController < ApplicationController
24
24
  def permission_denied
25
25
  respond_to do |format|
26
26
  format.html do
27
- redirect_to home_path
27
+ redirect_to root_path
28
28
  end
29
29
  end
30
30
  end
@@ -1,279 +1,283 @@
1
1
  # This file defines factories for all muck related models. You must have the
2
2
  # muck gem installed and the related migrations run for all of these to work.
3
- Factory.sequence :email do |n|
4
- "somebody#{n}@example.com"
5
- end
6
-
7
- Factory.sequence :login do |n|
8
- "inquire#{n}"
9
- end
10
-
11
- Factory.sequence :name do |n|
12
- "a_name#{n}"
13
- end
14
-
15
- Factory.sequence :title do |n|
16
- "a_title#{n}"
17
- end
18
-
19
- Factory.sequence :abbr do |n|
20
- "abbr#{n}"
21
- end
22
-
23
- Factory.sequence :uri do |n|
24
- "n#{n}.example.com"
25
- end
26
-
27
- Factory.sequence :description do |n|
28
- "This is the description: #{n}"
29
- end
30
-
31
- Factory.sequence :locale do |n|
32
- "a#{n}"
33
- end
34
-
35
- Factory.sequence :address do |n|
36
- "#{n} West #{n} South"
37
- end
38
-
39
- Factory.define :state do |f|
40
- f.name { Factory.next(:name) }
41
- f.abbreviation { Factory.next(:abbr) }
42
- f.country {|a| a.association(:country) }
43
- end
44
-
45
- Factory.define :country do |f|
46
- f.name { Factory.next(:name) }
47
- f.abbreviation { Factory.next(:abbr) }
48
- end
49
-
50
- Factory.define :language do |f|
51
- f.name { Factory.next(:name) }
52
- f.english_name { Factory.next(:name) }
53
- f.locale { Factory.next(:locale) }
54
- f.supported true
55
- f.muck_raker_supported true
56
- end
57
-
58
- # This is used for tests within muck-engine. The language
59
- # model is modified by migrations in other gems to include 'muck_raker_supported'
60
- Factory.define :unmodified_language, :class => Language do |f|
61
- f.name { Factory.next(:name) }
62
- f.english_name { Factory.next(:name) }
63
- f.locale { Factory.next(:locale) }
64
- f.supported true
65
- end
66
-
67
- Factory.define :user do |f|
68
- f.login { Factory.next(:login) }
69
- f.email { Factory.next(:email) }
70
- f.password 'inquire_pass'
71
- f.password_confirmation 'inquire_pass'
72
- f.first_name 'test'
73
- f.last_name 'guy'
74
- f.terms_of_service true
75
- f.activated_at DateTime.now
76
- end
77
-
78
- Factory.define :profile do |f|
79
- f.user {|a| a.association(:user)}
80
- f.photo fixture_file_upload("#{::Rails.root}/public/images/profile_default.jpg", 'image/jpg')
81
- f.location 'Jackson Hole, WY'
82
- f.about 'A great person'
83
- f.city 'Jackson Hole'
84
- f.state {|a| a.association(:state)}
85
- f.country {|a| a.association(:country)}
86
- # f.language {|a| a.association(:language)}
87
- f.policy 'a great policy'
88
- end
89
-
90
- Factory.define :content_page do |f|
91
- f.creator {|a| a.association(:user)}
92
- f.title { Factory.next(:name) }
93
- f.body_raw { Factory.next(:description) }
94
- end
95
-
96
- Factory.define :permission do |f|
97
- f.role {|a| a.association(:role)}
98
- f.user {|a| a.association(:user)}
99
- end
100
-
101
- Factory.define :role do |f|
102
- f.rolename { Factory.next(:name) }
103
- end
104
-
105
- Factory.define :access_code do |f|
106
- f.code { Factory.next(:name) }
107
- f.uses 0
108
- f.unlimited false
109
- f.expires_at { DateTime.now + 2.weeks }
110
- f.use_limit 1
111
- end
112
-
113
- Factory.define :access_code_request do |f|
114
- f.email { Factory.next(:email) }
115
- end
116
-
117
- Factory.define :activity do |f|
118
- f.item {|a| a.association(:user)}
119
- f.template ''
120
- f.source {|a| a.association(:user)}
121
- f.content ''
122
- f.title ''
123
- f.is_status_update false
124
- f.is_public true
125
- f.created_at DateTime.now
126
- end
127
-
128
- Factory.define :activity_feed do |f|
129
- f.activity {|a| a.association(:activity)}
130
- f.ownable {|a| a.association(:user)}
131
- end
132
-
133
- Factory.define :comment do |f|
134
- f.body { Factory.next(:description) }
135
- f.user {|a| a.association(:user)}
136
- f.commentable {|a| a.association(:user)}
137
- end
138
-
139
- Factory.define :share do |f|
140
- f.uri { Factory.next(:uri) }
141
- f.title { Factory.next(:title) }
142
- f.shared_by {|a| a.association(:user)}
143
- end
144
-
145
- Factory.define :blog do |f|
146
- f.title { Factory.next(:title) }
147
- f.blogable {|a| a.association(:user)}
148
- end
149
-
150
- Factory.define :domain_theme do |f|
151
- f.name { Factory.next(:name) }
152
- f.uri { Factory.next(:uri) }
153
- end
154
-
155
- Factory.define :theme do |f|
156
- f.name { Factory.next(:name) }
157
- end
158
-
159
- Factory.define :feed do |f|
160
- f.contributor { |a| a.association(:user) }
161
- f.uri { Factory.next(:uri) }
162
- f.display_uri { Factory.next(:uri) }
163
- f.title { Factory.next(:title) }
164
- f.short_title { Factory.next(:title) }
165
- f.description { Factory.next(:description) }
166
- f.top_tags { Factory.next(:name) }
167
- f.priority 1
168
- f.status 1
169
- f.last_requested_at DateTime.now
170
- f.last_harvested_at DateTime.now
171
- f.harvest_interval 86400
172
- f.failed_requests 0
173
- f.harvested_from_display_uri { Factory.next(:uri) }
174
- f.harvested_from_title { Factory.next(:title) }
175
- f.harvested_from_short_title { Factory.next(:title) }
176
- f.entries_count 0
177
- f.default_language { |a| a.association(:language) }
178
- f.default_grain_size 'unknown'
179
- end
180
-
181
- Factory.define :entry do |f|
182
- f.feed { |a| a.association(:feed) }
183
- f.permalink { Factory.next(:uri) }
184
- f.author { Factory.next(:name) }
185
- f.title { Factory.next(:title) }
186
- f.description { Factory.next(:description) }
187
- f.content { Factory.next(:description) }
188
- f.unique_content { Factory.next(:description) }
189
- f.published_at DateTime.now
190
- f.entry_updated_at DateTime.now
191
- f.harvested_at DateTime.now
192
- f.language { |a| a.association(:language) }
193
- f.direct_link { Factory.next(:uri) }
194
- f.grain_size 'unknown'
195
- end
196
-
197
- Factory.define :aggregation do |f|
198
- f.title { Factory.next(:name) }
199
- f.terms { Factory.next(:name) }
200
- f.description { Factory.next(:description) }
201
- f.ownable {|a| a.association(:user)}
202
- end
203
-
204
- Factory.define :aggregation_feed do |f|
205
- f.feed {|a| a.association(:feed)}
206
- f.aggregation {|a| a.association(:aggregation)}
207
- end
208
-
209
- Factory.define :oai_endpoint do |f|
210
- f.contributor { |a| a.association(:user) }
211
- f.uri { Factory.next(:uri) }
212
- f.display_uri { Factory.next(:uri) }
213
- f.title { Factory.next(:title) }
214
- f.short_title { Factory.next(:title) }
215
- f.status 1
216
- end
217
-
218
- Factory.define :service do |f|
219
- f.uri { Factory.next(:uri) }
220
- f.name { Factory.next(:name) }
221
- f.service_category { |a| a.association(:service_category) }
222
- end
223
-
224
- Factory.define :service_category do |f|
225
- f.name { Factory.next(:name) }
226
- end
227
-
228
- Factory.define :content do |f|
229
- f.creator { |a| a.association(:user) }
230
- f.title { Factory.next(:title) }
231
- f.body_raw { Factory.next(:description) }
232
- f.is_public true
233
- f.locale 'en'
234
- end
235
-
236
- Factory.define :content_translation do |f|
237
- f.content { |a| a.association(:content) }
238
- f.title { Factory.next(:title) }
239
- f.body { Factory.next(:description) }
240
- f.locale 'en'
241
- end
242
-
243
- Factory.define :content_permission do |f|
244
- f.content { |a| a.association(:content) }
245
- f.user { |a| a.association(:user) }
246
- end
247
-
248
- Factory.define :invitee do |f|
249
- f.email { Factory.next(:email) }
250
- end
251
-
252
- Factory.define :group do |f|
253
- f.creator {|a| a.association(:user)}
254
- f.name { Factory.next(:name) }
255
- f.description { Factory.next(:description) }
256
- f.member_count 0
257
- end
258
-
259
- Factory.define :membership_request do |f|
260
- f.group {|a| a.association(:group)}
261
- f.user {|a| a.association(:user)}
262
- end
263
-
264
- Factory.define :membership do |f|
265
- f.group {|a| a.association(:group)}
266
- f.user {|a| a.association(:user)}
267
- f.banned false
268
- f.role "member"
269
- end
270
-
271
- Factory.define :authentication do |f|
272
- f.authenticatable {|a| a.association(:user)}
273
- f.provider 'twitter'
274
- f.name { Factory.next(:name) }
275
- f.uid { Factory.next(:uri) }
276
- f.token { Factory.next(:uri) }
277
- f.secret { Factory.next(:uri) }
278
- f.raw_auth { Factory.next(:description) }
3
+ FactoryGirl.define do
4
+
5
+ sequence :email do |n|
6
+ "somebody#{n}@example.com"
7
+ end
8
+
9
+ sequence :login do |n|
10
+ "inquire#{n}"
11
+ end
12
+
13
+ sequence :name do |n|
14
+ "a_name#{n}"
15
+ end
16
+
17
+ sequence :title do |n|
18
+ "a_title#{n}"
19
+ end
20
+
21
+ sequence :abbr do |n|
22
+ "abbr#{n}"
23
+ end
24
+
25
+ sequence :uri do |n|
26
+ "n#{n}.example.com"
27
+ end
28
+
29
+ sequence :description do |n|
30
+ "This is the description: #{n}"
31
+ end
32
+
33
+ sequence :locale do |n|
34
+ "a#{n}"
35
+ end
36
+
37
+ sequence :address do |n|
38
+ "#{n} West #{n} South"
39
+ end
40
+
41
+ factory :state do
42
+ name { Factory.next(:name) }
43
+ abbreviation { Factory.next(:abbr) }
44
+ country {|a| a.association(:country) }
45
+ end
46
+
47
+ factory :country do
48
+ name { Factory.next(:name) }
49
+ abbreviation { Factory.next(:abbr) }
50
+ end
51
+
52
+ factory :language do
53
+ name { Factory.next(:name) }
54
+ english_name { Factory.next(:name) }
55
+ locale { Factory.next(:locale) }
56
+ supported true
57
+ muck_raker_supported true
58
+ end
59
+
60
+ # This is used for tests within muck-engine. The language
61
+ # model is modified by migrations in other gems to include 'muck_raker_supported'
62
+ factory :unmodified_language, :class => Language do
63
+ name { Factory.next(:name) }
64
+ english_name { Factory.next(:name) }
65
+ locale { Factory.next(:locale) }
66
+ supported true
67
+ end
68
+
69
+ factory :user do
70
+ login { Factory.next(:login) }
71
+ email { Factory.next(:email) }
72
+ password 'inquire_pass'
73
+ password_confirmation 'inquire_pass'
74
+ first_name 'test'
75
+ last_name 'guy'
76
+ terms_of_service true
77
+ activated_at DateTime.now
78
+ end
79
+
80
+ factory :profile do
81
+ user {|a| a.association(:user)}
82
+ photo fixture_file_upload("#{::Rails.root}/public/images/profile_default.jpg", 'image/jpg')
83
+ location 'Jackson Hole, WY'
84
+ about 'A great person'
85
+ city 'Jackson Hole'
86
+ state {|a| a.association(:state)}
87
+ country {|a| a.association(:country)}
88
+ # language {|a| a.association(:language)}
89
+ policy 'a great policy'
90
+ end
91
+
92
+ factory :content_page do
93
+ creator {|a| a.association(:user)}
94
+ title { Factory.next(:name) }
95
+ body_raw { Factory.next(:description) }
96
+ end
97
+
98
+ factory :permission do
99
+ role {|a| a.association(:role)}
100
+ user {|a| a.association(:user)}
101
+ end
102
+
103
+ factory :role do
104
+ rolename { Factory.next(:name) }
105
+ end
106
+
107
+ factory :access_code do
108
+ code { Factory.next(:name) }
109
+ uses 0
110
+ unlimited false
111
+ expires_at { DateTime.now + 2.weeks }
112
+ use_limit 1
113
+ end
114
+
115
+ factory :access_code_request do
116
+ email { Factory.next(:email) }
117
+ end
118
+
119
+ factory :activity do
120
+ item {|a| a.association(:user)}
121
+ template ''
122
+ source {|a| a.association(:user)}
123
+ content ''
124
+ title ''
125
+ is_status_update false
126
+ is_public true
127
+ created_at DateTime.now
128
+ end
129
+
130
+ factory :activity_feed do
131
+ activity {|a| a.association(:activity)}
132
+ ownable {|a| a.association(:user)}
133
+ end
134
+
135
+ factory :comment do
136
+ body { Factory.next(:description) }
137
+ user {|a| a.association(:user)}
138
+ commentable {|a| a.association(:user)}
139
+ end
140
+
141
+ factory :share do
142
+ uri { Factory.next(:uri) }
143
+ title { Factory.next(:title) }
144
+ shared_by {|a| a.association(:user)}
145
+ end
146
+
147
+ factory :blog do
148
+ title { Factory.next(:title) }
149
+ blogable {|a| a.association(:user)}
150
+ end
151
+
152
+ factory :domain_theme do
153
+ name { Factory.next(:name) }
154
+ uri { Factory.next(:uri) }
155
+ end
156
+
157
+ factory :theme do
158
+ name { Factory.next(:name) }
159
+ end
160
+
161
+ factory :feed do
162
+ contributor { |a| a.association(:user) }
163
+ uri { Factory.next(:uri) }
164
+ display_uri { Factory.next(:uri) }
165
+ title { Factory.next(:title) }
166
+ short_title { Factory.next(:title) }
167
+ description { Factory.next(:description) }
168
+ top_tags { Factory.next(:name) }
169
+ priority 1
170
+ status 1
171
+ last_requested_at DateTime.now
172
+ last_harvested_at DateTime.now
173
+ harvest_interval 86400
174
+ failed_requests 0
175
+ harvested_from_display_uri { Factory.next(:uri) }
176
+ harvested_from_title { Factory.next(:title) }
177
+ harvested_from_short_title { Factory.next(:title) }
178
+ entries_count 0
179
+ default_language { |a| a.association(:language) }
180
+ default_grain_size 'unknown'
181
+ end
182
+
183
+ factory :entry do
184
+ feed { |a| a.association(:feed) }
185
+ permalink { Factory.next(:uri) }
186
+ author { Factory.next(:name) }
187
+ title { Factory.next(:title) }
188
+ description { Factory.next(:description) }
189
+ content { Factory.next(:description) }
190
+ unique_content { Factory.next(:description) }
191
+ published_at DateTime.now
192
+ entry_updated_at DateTime.now
193
+ harvested_at DateTime.now
194
+ language { |a| a.association(:language) }
195
+ direct_link { Factory.next(:uri) }
196
+ grain_size 'unknown'
197
+ end
198
+
199
+ factory :aggregation do
200
+ title { Factory.next(:name) }
201
+ terms { Factory.next(:name) }
202
+ description { Factory.next(:description) }
203
+ ownable {|a| a.association(:user)}
204
+ end
205
+
206
+ factory :aggregation_feed do
207
+ feed {|a| a.association(:feed)}
208
+ aggregation {|a| a.association(:aggregation)}
209
+ end
210
+
211
+ factory :oai_endpoint do
212
+ contributor { |a| a.association(:user) }
213
+ uri { Factory.next(:uri) }
214
+ display_uri { Factory.next(:uri) }
215
+ title { Factory.next(:title) }
216
+ short_title { Factory.next(:title) }
217
+ status 1
218
+ end
219
+
220
+ factory :service do
221
+ uri { Factory.next(:uri) }
222
+ name { Factory.next(:name) }
223
+ service_category { |a| a.association(:service_category) }
224
+ end
225
+
226
+ factory :service_category do
227
+ name { Factory.next(:name) }
228
+ end
229
+
230
+ factory :content do
231
+ creator { |a| a.association(:user) }
232
+ title { Factory.next(:title) }
233
+ body_raw { Factory.next(:description) }
234
+ is_public true
235
+ locale 'en'
236
+ end
237
+
238
+ factory :content_translation do
239
+ content { |a| a.association(:content) }
240
+ title { Factory.next(:title) }
241
+ body { Factory.next(:description) }
242
+ locale 'en'
243
+ end
244
+
245
+ factory :content_permission do
246
+ content { |a| a.association(:content) }
247
+ user { |a| a.association(:user) }
248
+ end
249
+
250
+ factory :invitee do
251
+ email { Factory.next(:email) }
252
+ end
253
+
254
+ factory :group do
255
+ creator {|a| a.association(:user)}
256
+ name { Factory.next(:name) }
257
+ description { Factory.next(:description) }
258
+ member_count 0
259
+ end
260
+
261
+ factory :membership_request do
262
+ group {|a| a.association(:group)}
263
+ user {|a| a.association(:user)}
264
+ end
265
+
266
+ factory :membership do
267
+ group {|a| a.association(:group)}
268
+ user {|a| a.association(:user)}
269
+ banned false
270
+ role "member"
271
+ end
272
+
273
+ factory :authentication do
274
+ authenticatable {|a| a.association(:user)}
275
+ provider 'twitter'
276
+ name { Factory.next(:name) }
277
+ uid { Factory.next(:uri) }
278
+ token { Factory.next(:uri) }
279
+ secret { Factory.next(:uri) }
280
+ raw_auth { Factory.next(:description) }
281
+ end
282
+
279
283
  end
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "muck-engine"
8
- s.version = "3.3.18"
8
+ s.version = "3.4.0"
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 = "2011-09-21"
12
+ s.date = "2011-10-07"
13
13
  s.description = "The base engine for the muck system. Contains common tables, custom for, css and javascript."
14
14
  s.email = "justin@tatemae.com"
15
15
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: muck-engine
3
3
  version: !ruby/object:Gem::Version
4
- hash: 47
4
+ hash: 23
5
5
  prerelease:
6
6
  segments:
7
7
  - 3
8
- - 3
9
- - 18
10
- version: 3.3.18
8
+ - 4
9
+ - 0
10
+ version: 3.4.0
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: 2011-09-21 00:00:00 Z
19
+ date: 2011-10-07 00:00:00 Z
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
22
  version_requirements: &id001 !ruby/object:Gem::Requirement