radiant-reader-extension 2.0.0.rc4 → 3.0.0.rc3
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +9 -5
- data/app/controllers/{readers_controller.rb → accounts_controller.rb} +31 -30
- data/app/controllers/groups_controller.rb +35 -0
- data/app/controllers/messages_controller.rb +1 -0
- data/app/controllers/password_resets_controller.rb +6 -6
- data/app/controllers/reader_action_controller.rb +8 -0
- data/app/controllers/reader_activations_controller.rb +3 -2
- data/app/controllers/reader_sessions_controller.rb +6 -2
- data/app/helpers/reader_helper.rb +61 -17
- data/app/models/group.rb +33 -5
- data/app/models/message.rb +7 -4
- data/app/models/message_reader.rb +4 -0
- data/app/models/reader.rb +71 -3
- data/app/models/reader_page.rb +56 -0
- data/app/views/{readers → accounts}/_contributions.html.haml +0 -0
- data/app/views/{readers → accounts}/_controls.html.haml +1 -2
- data/app/views/accounts/_description.html.haml +2 -0
- data/app/views/{readers → accounts}/_extra_controls.html.haml +0 -0
- data/app/views/{readers → accounts}/_flasher.html.haml +0 -0
- data/app/views/{readers → accounts}/_form.html.haml +10 -15
- data/app/views/accounts/_gravatar.html.haml +3 -0
- data/app/views/accounts/_groups.html.haml +9 -0
- data/app/views/accounts/_links.html.haml +12 -0
- data/app/views/accounts/_list.html.haml +17 -0
- data/app/views/{readers → accounts}/_memberships.html.haml +0 -0
- data/app/views/accounts/_profile.html.haml +29 -0
- data/app/views/accounts/_profile_form.html.haml +86 -0
- data/app/views/accounts/_reader.html.haml +10 -0
- data/app/views/accounts/dashboard.html.haml +28 -0
- data/app/views/{readers → accounts}/edit.html.haml +12 -10
- data/app/views/accounts/edit_profile.html.haml +34 -0
- data/app/views/accounts/index.html.haml +23 -0
- data/app/views/{readers → accounts}/login.html.haml +0 -0
- data/app/views/{readers → accounts}/new.html.haml +0 -0
- data/app/views/{readers → accounts}/permission_denied.html.haml +0 -0
- data/app/views/{readers → accounts}/show.html.haml +9 -12
- data/app/views/dashboard/_description.html.haml +3 -0
- data/app/views/dashboard/_directory.html.haml +3 -0
- data/app/views/dashboard/_groups.html.haml +8 -0
- data/app/views/dashboard/_messages.html.haml +11 -0
- data/app/views/dashboard/_profile.html.haml +3 -0
- data/app/views/dashboard/_welcome.html.haml +5 -0
- data/app/views/groups/_all.html.haml +10 -0
- data/app/views/groups/index.html.haml +21 -0
- data/app/views/groups/show.html.haml +31 -0
- data/app/views/messages/show.html.haml +12 -3
- data/app/views/reader_sessions/new.html.haml +1 -1
- data/app/views/shared/_standard_reader_parts.html.haml +9 -3
- data/config/initializers/formats.rb +2 -0
- data/config/initializers/radiant_config.rb +3 -0
- data/config/locales/en.yml +90 -25
- data/config/routes.rb +8 -6
- data/db/migrate/20110707101339_group_slugs.rb +9 -0
- data/db/migrate/20110711150605_snail_addresses.rb +21 -0
- data/db/migrate/20110712081159_directory_permissions.rb +11 -0
- data/db/migrate/20110712141134_name_parts.rb +9 -0
- data/db/migrate/20110728112254_current_login_at.rb +9 -0
- data/lib/grouped_model.rb +16 -12
- data/lib/grouped_page.rb +1 -0
- data/lib/radiant-reader-extension.rb +1 -1
- data/lib/reader_admin_ui.rb +32 -1
- data/lib/reader_tags.rb +119 -52
- data/lib/site_controller_extensions.rb +2 -2
- data/public/stylesheets/sass/reader.sass +49 -0
- data/radiant-reader-extension.gemspec +4 -1
- data/reader_extension.rb +9 -9
- data/spec/controllers/{readers_controller_spec.rb → accounts_controller_spec.rb} +9 -5
- data/spec/controllers/groups_controller_spec.rb +17 -0
- data/spec/controllers/reader_activations_controller_spec.rb +3 -3
- data/spec/datasets/readers_dataset.rb +3 -0
- data/spec/lib/reader_tags_spec.rb +55 -0
- data/spec/matchers/reader_login_system_matcher.rb +2 -2
- data/spec/models/group_spec.rb +6 -0
- data/spec/models/reader_page_spec.rb +106 -0
- metadata +109 -26
- data/app/views/readers/index.html.haml +0 -38
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: radiant-reader-extension
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 15424115
|
5
5
|
prerelease: 6
|
6
6
|
segments:
|
7
|
-
-
|
7
|
+
- 3
|
8
8
|
- 0
|
9
9
|
- 0
|
10
10
|
- rc
|
11
|
-
-
|
12
|
-
version:
|
11
|
+
- 3
|
12
|
+
version: 3.0.0.rc3
|
13
13
|
platform: ruby
|
14
14
|
authors:
|
15
15
|
- William Ross
|
@@ -17,7 +17,8 @@ autorequire:
|
|
17
17
|
bindir: bin
|
18
18
|
cert_chain: []
|
19
19
|
|
20
|
-
date: 2011-07-
|
20
|
+
date: 2011-07-28 00:00:00 +01:00
|
21
|
+
default_executable:
|
21
22
|
dependencies:
|
22
23
|
- !ruby/object:Gem::Dependency
|
23
24
|
name: radiant-layouts-extension
|
@@ -27,12 +28,12 @@ dependencies:
|
|
27
28
|
requirements:
|
28
29
|
- - ~>
|
29
30
|
- !ruby/object:Gem::Version
|
30
|
-
hash:
|
31
|
+
hash: 21
|
31
32
|
segments:
|
32
|
-
- 0
|
33
|
-
- 9
|
34
33
|
- 1
|
35
|
-
|
34
|
+
- 1
|
35
|
+
- 3
|
36
|
+
version: 1.1.3
|
36
37
|
type: :runtime
|
37
38
|
version_requirements: *id001
|
38
39
|
- !ruby/object:Gem::Dependency
|
@@ -83,6 +84,54 @@ dependencies:
|
|
83
84
|
version: 2.0.1
|
84
85
|
type: :runtime
|
85
86
|
version_requirements: *id004
|
87
|
+
- !ruby/object:Gem::Dependency
|
88
|
+
name: snail
|
89
|
+
prerelease: false
|
90
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
91
|
+
none: false
|
92
|
+
requirements:
|
93
|
+
- - ~>
|
94
|
+
- !ruby/object:Gem::Version
|
95
|
+
hash: 1
|
96
|
+
segments:
|
97
|
+
- 0
|
98
|
+
- 5
|
99
|
+
- 5
|
100
|
+
version: 0.5.5
|
101
|
+
type: :runtime
|
102
|
+
version_requirements: *id005
|
103
|
+
- !ruby/object:Gem::Dependency
|
104
|
+
name: vcard
|
105
|
+
prerelease: false
|
106
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
107
|
+
none: false
|
108
|
+
requirements:
|
109
|
+
- - ~>
|
110
|
+
- !ruby/object:Gem::Version
|
111
|
+
hash: 25
|
112
|
+
segments:
|
113
|
+
- 0
|
114
|
+
- 1
|
115
|
+
- 1
|
116
|
+
version: 0.1.1
|
117
|
+
type: :runtime
|
118
|
+
version_requirements: *id006
|
119
|
+
- !ruby/object:Gem::Dependency
|
120
|
+
name: fastercsv
|
121
|
+
prerelease: false
|
122
|
+
requirement: &id007 !ruby/object:Gem::Requirement
|
123
|
+
none: false
|
124
|
+
requirements:
|
125
|
+
- - ~>
|
126
|
+
- !ruby/object:Gem::Version
|
127
|
+
hash: 11
|
128
|
+
segments:
|
129
|
+
- 1
|
130
|
+
- 5
|
131
|
+
- 4
|
132
|
+
version: 1.5.4
|
133
|
+
type: :runtime
|
134
|
+
version_requirements: *id007
|
86
135
|
description: Provides reader/member/user registration and management functions including password-reminder, group-based page access control and administrative email.
|
87
136
|
email:
|
88
137
|
- radiant@spanner.org
|
@@ -93,6 +142,7 @@ extensions: []
|
|
93
142
|
extra_rdoc_files: []
|
94
143
|
|
95
144
|
files:
|
145
|
+
- app/controllers/accounts_controller.rb
|
96
146
|
- app/controllers/admin/group_invitations_controller.rb
|
97
147
|
- app/controllers/admin/groups_controller.rb
|
98
148
|
- app/controllers/admin/memberships_controller.rb
|
@@ -100,12 +150,12 @@ files:
|
|
100
150
|
- app/controllers/admin/permissions_controller.rb
|
101
151
|
- app/controllers/admin/reader_configuration_controller.rb
|
102
152
|
- app/controllers/admin/readers_controller.rb
|
153
|
+
- app/controllers/groups_controller.rb
|
103
154
|
- app/controllers/messages_controller.rb
|
104
155
|
- app/controllers/password_resets_controller.rb
|
105
156
|
- app/controllers/reader_action_controller.rb
|
106
157
|
- app/controllers/reader_activations_controller.rb
|
107
158
|
- app/controllers/reader_sessions_controller.rb
|
108
|
-
- app/controllers/readers_controller.rb
|
109
159
|
- app/helpers/reader_helper.rb
|
110
160
|
- app/models/group.rb
|
111
161
|
- app/models/membership.rb
|
@@ -115,7 +165,30 @@ files:
|
|
115
165
|
- app/models/permission.rb
|
116
166
|
- app/models/reader.rb
|
117
167
|
- app/models/reader_notifier.rb
|
168
|
+
- app/models/reader_page.rb
|
118
169
|
- app/models/reader_session.rb
|
170
|
+
- app/views/accounts/_contributions.html.haml
|
171
|
+
- app/views/accounts/_controls.html.haml
|
172
|
+
- app/views/accounts/_description.html.haml
|
173
|
+
- app/views/accounts/_extra_controls.html.haml
|
174
|
+
- app/views/accounts/_flasher.html.haml
|
175
|
+
- app/views/accounts/_form.html.haml
|
176
|
+
- app/views/accounts/_gravatar.html.haml
|
177
|
+
- app/views/accounts/_groups.html.haml
|
178
|
+
- app/views/accounts/_links.html.haml
|
179
|
+
- app/views/accounts/_list.html.haml
|
180
|
+
- app/views/accounts/_memberships.html.haml
|
181
|
+
- app/views/accounts/_profile.html.haml
|
182
|
+
- app/views/accounts/_profile_form.html.haml
|
183
|
+
- app/views/accounts/_reader.html.haml
|
184
|
+
- app/views/accounts/dashboard.html.haml
|
185
|
+
- app/views/accounts/edit.html.haml
|
186
|
+
- app/views/accounts/edit_profile.html.haml
|
187
|
+
- app/views/accounts/index.html.haml
|
188
|
+
- app/views/accounts/login.html.haml
|
189
|
+
- app/views/accounts/new.html.haml
|
190
|
+
- app/views/accounts/permission_denied.html.haml
|
191
|
+
- app/views/accounts/show.html.haml
|
119
192
|
- app/views/admin/group_invitations/new.html.haml
|
120
193
|
- app/views/admin/group_invitations/preview.html.haml
|
121
194
|
- app/views/admin/groups/_add_readers.html.haml
|
@@ -153,6 +226,15 @@ files:
|
|
153
226
|
- app/views/admin/readers/new.html.haml
|
154
227
|
- app/views/admin/readers/remove.html.haml
|
155
228
|
- app/views/admin/sites/_choose_reader_layout.html.haml
|
229
|
+
- app/views/dashboard/_description.html.haml
|
230
|
+
- app/views/dashboard/_directory.html.haml
|
231
|
+
- app/views/dashboard/_groups.html.haml
|
232
|
+
- app/views/dashboard/_messages.html.haml
|
233
|
+
- app/views/dashboard/_profile.html.haml
|
234
|
+
- app/views/dashboard/_welcome.html.haml
|
235
|
+
- app/views/groups/_all.html.haml
|
236
|
+
- app/views/groups/index.html.haml
|
237
|
+
- app/views/groups/show.html.haml
|
156
238
|
- app/views/messages/preview.html.haml
|
157
239
|
- app/views/messages/show.html.haml
|
158
240
|
- app/views/password_resets/create.html.haml
|
@@ -163,21 +245,10 @@ files:
|
|
163
245
|
- app/views/reader_notifier/message.html.haml
|
164
246
|
- app/views/reader_sessions/_login_form.html.haml
|
165
247
|
- app/views/reader_sessions/new.html.haml
|
166
|
-
- app/views/readers/_contributions.html.haml
|
167
|
-
- app/views/readers/_controls.html.haml
|
168
|
-
- app/views/readers/_extra_controls.html.haml
|
169
|
-
- app/views/readers/_flasher.html.haml
|
170
|
-
- app/views/readers/_form.html.haml
|
171
|
-
- app/views/readers/_memberships.html.haml
|
172
|
-
- app/views/readers/edit.html.haml
|
173
|
-
- app/views/readers/index.html.haml
|
174
|
-
- app/views/readers/login.html.haml
|
175
|
-
- app/views/readers/new.html.haml
|
176
|
-
- app/views/readers/permission_denied.html.haml
|
177
|
-
- app/views/readers/show.html.haml
|
178
248
|
- app/views/shared/_standard_reader_parts.html.haml
|
179
249
|
- app/views/site/not_allowed.html.haml
|
180
250
|
- config/initializers/authlogic_connect_config.rb
|
251
|
+
- config/initializers/formats.rb
|
181
252
|
- config/initializers/radiant_config.rb
|
182
253
|
- config/locales/en.yml
|
183
254
|
- config/routes.rb
|
@@ -203,6 +274,11 @@ files:
|
|
203
274
|
- db/migrate/20101004074945_unlock_version.rb
|
204
275
|
- db/migrate/20101019094714_message_sent_date.rb
|
205
276
|
- db/migrate/20110214101339_multiple_ownership.rb
|
277
|
+
- db/migrate/20110707101339_group_slugs.rb
|
278
|
+
- db/migrate/20110711150605_snail_addresses.rb
|
279
|
+
- db/migrate/20110712081159_directory_permissions.rb
|
280
|
+
- db/migrate/20110712141134_name_parts.rb
|
281
|
+
- db/migrate/20110728112254_current_login_at.rb
|
206
282
|
- lib/controller_extensions.rb
|
207
283
|
- lib/group_tags.rb
|
208
284
|
- lib/grouped_model.rb
|
@@ -227,27 +303,31 @@ files:
|
|
227
303
|
- Rakefile
|
228
304
|
- reader_extension.rb
|
229
305
|
- README.md
|
306
|
+
- spec/controllers/accounts_controller_spec.rb
|
230
307
|
- spec/controllers/admin/messages_controller_spec.rb
|
231
308
|
- spec/controllers/admin/readers_controller_spec.rb
|
309
|
+
- spec/controllers/groups_controller_spec.rb
|
232
310
|
- spec/controllers/password_resets_controller_spec.rb
|
233
311
|
- spec/controllers/reader_activations_controller_spec.rb
|
234
|
-
- spec/controllers/readers_controller_spec.rb
|
235
312
|
- spec/controllers/site_controller_spec.rb
|
236
313
|
- spec/datasets/readers_dataset.rb
|
237
314
|
- spec/lib/reader_admin_ui_spec.rb
|
238
315
|
- spec/lib/reader_site_spec.rb
|
316
|
+
- spec/lib/reader_tags_spec.rb
|
239
317
|
- spec/matchers/reader_login_system_matcher.rb
|
240
318
|
- spec/models/group_spec.rb
|
241
319
|
- spec/models/message_spec.rb
|
242
320
|
- spec/models/page_spec.rb
|
243
321
|
- spec/models/reader_notifier_spec.rb
|
322
|
+
- spec/models/reader_page_spec.rb
|
244
323
|
- spec/models/reader_spec.rb
|
245
324
|
- spec/spec.opts
|
246
325
|
- spec/spec_helper.rb
|
326
|
+
has_rdoc: true
|
247
327
|
homepage: http://radiant.spanner.org/reader
|
248
328
|
licenses: []
|
249
329
|
|
250
|
-
post_install_message: "\n Add this to your radiant project with:\n\n config.gem 'radiant-reader-extension', :version => '~>
|
330
|
+
post_install_message: "\n Add this to your radiant project with:\n\n config.gem 'radiant-reader-extension', :version => '~> 3.0.0.rc3'\n\n and please remember to enable ActionMailer in your project's config/environment.rb.\n "
|
251
331
|
rdoc_options: []
|
252
332
|
|
253
333
|
require_paths:
|
@@ -275,25 +355,28 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
275
355
|
requirements: []
|
276
356
|
|
277
357
|
rubyforge_project:
|
278
|
-
rubygems_version: 1.
|
358
|
+
rubygems_version: 1.5.3
|
279
359
|
signing_key:
|
280
360
|
specification_version: 3
|
281
361
|
summary: Reader/viewer/visitor registration, login and access-control for Radiant CMS
|
282
362
|
test_files:
|
363
|
+
- spec/controllers/accounts_controller_spec.rb
|
283
364
|
- spec/controllers/admin/messages_controller_spec.rb
|
284
365
|
- spec/controllers/admin/readers_controller_spec.rb
|
366
|
+
- spec/controllers/groups_controller_spec.rb
|
285
367
|
- spec/controllers/password_resets_controller_spec.rb
|
286
368
|
- spec/controllers/reader_activations_controller_spec.rb
|
287
|
-
- spec/controllers/readers_controller_spec.rb
|
288
369
|
- spec/controllers/site_controller_spec.rb
|
289
370
|
- spec/datasets/readers_dataset.rb
|
290
371
|
- spec/lib/reader_admin_ui_spec.rb
|
291
372
|
- spec/lib/reader_site_spec.rb
|
373
|
+
- spec/lib/reader_tags_spec.rb
|
292
374
|
- spec/matchers/reader_login_system_matcher.rb
|
293
375
|
- spec/models/group_spec.rb
|
294
376
|
- spec/models/message_spec.rb
|
295
377
|
- spec/models/page_spec.rb
|
296
378
|
- spec/models/reader_notifier_spec.rb
|
379
|
+
- spec/models/reader_page_spec.rb
|
297
380
|
- spec/models/reader_spec.rb
|
298
381
|
- spec/spec.opts
|
299
382
|
- spec/spec_helper.rb
|
@@ -1,38 +0,0 @@
|
|
1
|
-
- content_for :introduction do
|
2
|
-
%p
|
3
|
-
=t('reader_extension.readers_introduction')
|
4
|
-
|
5
|
-
- content_for :list do
|
6
|
-
#readers
|
7
|
-
- if @readers.size > 1
|
8
|
-
- columns = [@readers[0..@readers.size/2], @readers[@readers.size/2+1..@readers.size]]
|
9
|
-
- else
|
10
|
-
- columns = [@readers]
|
11
|
-
- columns.each do |readers|
|
12
|
-
%div.column
|
13
|
-
- readers.each do |reader|
|
14
|
-
.reader
|
15
|
-
%h2
|
16
|
-
= link_to standard_gravatar_for(reader), reader_url(reader), {:title => reader.name}
|
17
|
-
= link_to reader.name, reader_url(reader)
|
18
|
-
%p.context
|
19
|
-
= t("reader_extension.joined_on")
|
20
|
-
= l(reader.created_at, :format => :date) + '.'
|
21
|
-
|
22
|
-
- content_for :pagination do
|
23
|
-
= pagination_and_summary_for(@readers, t('reader_extension.person'))
|
24
|
-
|
25
|
-
- content_for :breadcrumbs do
|
26
|
-
= link_to t('reader_extension.home').titlecase, '/'
|
27
|
-
>
|
28
|
-
= t('reader_extension.people').titlecase
|
29
|
-
|
30
|
-
- content_for :title do
|
31
|
-
= t('reader_extension.people').titlecase
|
32
|
-
|
33
|
-
= render :partial => 'shared/standard_reader_parts'
|
34
|
-
|
35
|
-
= yield :pagination if @readers.previous_page
|
36
|
-
= yield :list
|
37
|
-
= yield :pagination if @readers.next_page
|
38
|
-
|