optimacms 0.1.5 → 0.1.14
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.
- checksums.yaml +4 -4
- data/app/controllers/optimacms/admin/admin_base_controller.rb +13 -0
- data/app/controllers/optimacms/admin/templates_controller.rb +5 -1
- data/app/controllers/optimacms/dev_controller.rb +11 -0
- data/app/helpers/optimacms/application_helper.rb +2 -1
- data/app/models/optimacms/cms_admin_user.rb +10 -0
- data/app/views/cms_admin_users/confirmations/new.html.erb +16 -0
- data/app/views/cms_admin_users/mailer/confirmation_instructions.html.erb +5 -0
- data/app/views/cms_admin_users/mailer/reset_password_instructions.html.erb +8 -0
- data/app/views/cms_admin_users/mailer/unlock_instructions.html.erb +7 -0
- data/app/views/cms_admin_users/passwords/edit.html.erb +22 -0
- data/app/views/cms_admin_users/passwords/new.html.erb +16 -0
- data/app/views/cms_admin_users/registrations/edit.html.erb +39 -0
- data/app/views/cms_admin_users/registrations/new.html.erb +29 -0
- data/app/views/cms_admin_users/sessions/new.html.erb +26 -0
- data/app/views/cms_admin_users/shared/_links.html.erb +25 -0
- data/app/views/cms_admin_users/unlocks/new.html.erb +16 -0
- data/app/views/layouts/optimacms/application_logged_out.html.erb +15 -0
- data/app/views/optimacms/admin/shared/_top.html.haml +9 -1
- data/config/locales/devise.en.yml +60 -0
- data/config/routes.rb +2 -1
- data/db/migrate/20150503213839_devise_create_optimacms_cms_users.rb +42 -0
- data/lib/optimacms/devise.rb +88 -0
- data/lib/optimacms/engine.rb +1 -0
- data/lib/optimacms/version.rb +1 -1
- data/lib/optimacms.rb +1 -0
- data/test/dummy/app/models/user.rb +6 -0
- data/test/dummy/app/views/home/index.html.haml +4 -0
- data/test/dummy/config/initializers/devise.rb +259 -0
- data/test/dummy/config/locales/devise.en.yml +60 -0
- data/test/dummy/config/routes.rb +9 -0
- data/test/dummy/db/migrate/20150504000518_devise_create_users.rb +42 -0
- data/test/dummy/db/schema.rb +84 -43
- data/test/dummy/log/development.log +7466 -0
- data/test/dummy/spec/factories/users.rb +6 -0
- data/test/dummy/spec/models/user_spec.rb +5 -0
- data/test/dummy/tmp/pids/server.pid +1 -1
- data/test/fixtures/optimacms/cms_users.yml +11 -0
- data/test/models/optimacms/cms_user_test.rb +9 -0
- metadata +48 -3
- data/app/models/optimacms/article.rb +0 -4
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
12916
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
|
2
|
+
|
3
|
+
# This model initially had no columns defined. If you add columns to the
|
4
|
+
# model remove the '{}' from the fixture names and add the columns immediately
|
5
|
+
# below each fixture, per the syntax in the comments below
|
6
|
+
#
|
7
|
+
one: {}
|
8
|
+
# column: value
|
9
|
+
#
|
10
|
+
two: {}
|
11
|
+
# column: value
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: optimacms
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.14
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Max Ivak
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-05-
|
11
|
+
date: 2015-05-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -38,6 +38,20 @@ dependencies:
|
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: devise
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
41
55
|
- !ruby/object:Gem::Dependency
|
42
56
|
name: haml-rails
|
43
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -230,7 +244,7 @@ files:
|
|
230
244
|
- app/helpers/optimacms/forms_helper.rb
|
231
245
|
- app/inputs/textarea_tinymce_input.rb
|
232
246
|
- app/models/concerns/optimacms/meta_content.rb
|
233
|
-
- app/models/optimacms/
|
247
|
+
- app/models/optimacms/cms_admin_user.rb
|
234
248
|
- app/models/optimacms/language.rb
|
235
249
|
- app/models/optimacms/layout.rb
|
236
250
|
- app/models/optimacms/mediafile.rb
|
@@ -238,7 +252,19 @@ files:
|
|
238
252
|
- app/models/optimacms/page_translation.rb
|
239
253
|
- app/models/optimacms/template.rb
|
240
254
|
- app/models/optimacms/template_type.rb
|
255
|
+
- app/views/cms_admin_users/confirmations/new.html.erb
|
256
|
+
- app/views/cms_admin_users/mailer/confirmation_instructions.html.erb
|
257
|
+
- app/views/cms_admin_users/mailer/reset_password_instructions.html.erb
|
258
|
+
- app/views/cms_admin_users/mailer/unlock_instructions.html.erb
|
259
|
+
- app/views/cms_admin_users/passwords/edit.html.erb
|
260
|
+
- app/views/cms_admin_users/passwords/new.html.erb
|
261
|
+
- app/views/cms_admin_users/registrations/edit.html.erb
|
262
|
+
- app/views/cms_admin_users/registrations/new.html.erb
|
263
|
+
- app/views/cms_admin_users/sessions/new.html.erb
|
264
|
+
- app/views/cms_admin_users/shared/_links.html.erb
|
265
|
+
- app/views/cms_admin_users/unlocks/new.html.erb
|
241
266
|
- app/views/layouts/optimacms/application.html.erb
|
267
|
+
- app/views/layouts/optimacms/application_logged_out.html.erb
|
242
268
|
- app/views/optimacms/admin/common/_js_ace.html.haml
|
243
269
|
- app/views/optimacms/admin/common/_js_tinymce.html.haml
|
244
270
|
- app/views/optimacms/admin/common/_list.html.haml
|
@@ -290,13 +316,16 @@ files:
|
|
290
316
|
- config/initializers/paperclip_media_type_spoof_detector_override.rb
|
291
317
|
- config/initializers/simple_form.rb
|
292
318
|
- config/initializers/simple_form_bootstrap.rb
|
319
|
+
- config/locales/devise.en.yml
|
293
320
|
- config/locales/simple_form.en.yml
|
294
321
|
- config/locales/simple_form.ru.yml
|
295
322
|
- config/routes.rb
|
296
323
|
- config/tinymce.yml
|
297
324
|
- db/migrate/20150218104103_create_optimacms_articles.rb
|
298
325
|
- db/migrate/20150220161150_add_attachment_photo_to_mediafiles.rb
|
326
|
+
- db/migrate/20150503213839_devise_create_optimacms_cms_users.rb
|
299
327
|
- lib/optimacms.rb
|
328
|
+
- lib/optimacms/devise.rb
|
300
329
|
- lib/optimacms/engine.rb
|
301
330
|
- lib/optimacms/fileutils/fileutils.rb
|
302
331
|
- lib/optimacms/filters/form_filter.rb
|
@@ -323,6 +352,7 @@ files:
|
|
323
352
|
- test/dummy/app/controllers/news_controller.rb
|
324
353
|
- test/dummy/app/helpers/application_helper.rb
|
325
354
|
- test/dummy/app/models/news.rb
|
355
|
+
- test/dummy/app/models/user.rb
|
326
356
|
- test/dummy/app/views/dd6/f51.html.erb
|
327
357
|
- test/dummy/app/views/dd6/f61.html.erb
|
328
358
|
- test/dummy/app/views/dd6/f62.html.erb
|
@@ -385,15 +415,18 @@ files:
|
|
385
415
|
- test/dummy/config/initializers/assets.rb
|
386
416
|
- test/dummy/config/initializers/backtrace_silencers.rb
|
387
417
|
- test/dummy/config/initializers/cookies_serializer.rb
|
418
|
+
- test/dummy/config/initializers/devise.rb
|
388
419
|
- test/dummy/config/initializers/filter_parameter_logging.rb
|
389
420
|
- test/dummy/config/initializers/inflections.rb
|
390
421
|
- test/dummy/config/initializers/mime_types.rb
|
391
422
|
- test/dummy/config/initializers/session_store.rb
|
392
423
|
- test/dummy/config/initializers/wrap_parameters.rb
|
424
|
+
- test/dummy/config/locales/devise.en.yml
|
393
425
|
- test/dummy/config/locales/en.yml
|
394
426
|
- test/dummy/config/routes.rb
|
395
427
|
- test/dummy/config/secrets.yml
|
396
428
|
- test/dummy/config/tinymce.yml
|
429
|
+
- test/dummy/db/migrate/20150504000518_devise_create_users.rb
|
397
430
|
- test/dummy/db/schema.rb
|
398
431
|
- test/dummy/log/development.log
|
399
432
|
- test/dummy/public/404.html
|
@@ -1785,6 +1818,8 @@ files:
|
|
1785
1818
|
- test/dummy/public/js/tinymce/tinymce.min.js
|
1786
1819
|
- test/dummy/public/uploads/avatar2.jpg
|
1787
1820
|
- test/dummy/public/uploads/cat_red.jpg
|
1821
|
+
- test/dummy/spec/factories/users.rb
|
1822
|
+
- test/dummy/spec/models/user_spec.rb
|
1788
1823
|
- test/dummy/tmp/cache/assets/development/sass/18577b7353d72dbc7e81d46af07240af8557f987/_hacks.scssc
|
1789
1824
|
- test/dummy/tmp/cache/assets/development/sass/255a203cf5ecbb5470dfd267d6d4b923c8f1e5f0/_css3.scssc
|
1790
1825
|
- test/dummy/tmp/cache/assets/development/sass/255a203cf5ecbb5470dfd267d6d4b923c8f1e5f0/_support.scssc
|
@@ -2390,8 +2425,10 @@ files:
|
|
2390
2425
|
- test/dummy/tmp/cache/assets/development/sprockets/fff5cc1f57d172a75379719781f39cea
|
2391
2426
|
- test/dummy/tmp/pids/server.pid
|
2392
2427
|
- test/fixtures/optimacms/articles.yml
|
2428
|
+
- test/fixtures/optimacms/cms_users.yml
|
2393
2429
|
- test/integration/navigation_test.rb
|
2394
2430
|
- test/models/optimacms/article_test.rb
|
2431
|
+
- test/models/optimacms/cms_user_test.rb
|
2395
2432
|
- test/optimacms_test.rb
|
2396
2433
|
- test/test_helper.rb
|
2397
2434
|
homepage: http://maxivak.com
|
@@ -2432,6 +2469,7 @@ test_files:
|
|
2432
2469
|
- test/dummy/app/controllers/news_controller.rb
|
2433
2470
|
- test/dummy/app/helpers/application_helper.rb
|
2434
2471
|
- test/dummy/app/models/news.rb
|
2472
|
+
- test/dummy/app/models/user.rb
|
2435
2473
|
- test/dummy/app/views/dd6/f51.html.erb
|
2436
2474
|
- test/dummy/app/views/dd6/f61.html.erb
|
2437
2475
|
- test/dummy/app/views/dd6/f62.html.erb
|
@@ -2493,16 +2531,19 @@ test_files:
|
|
2493
2531
|
- test/dummy/config/initializers/assets.rb
|
2494
2532
|
- test/dummy/config/initializers/backtrace_silencers.rb
|
2495
2533
|
- test/dummy/config/initializers/cookies_serializer.rb
|
2534
|
+
- test/dummy/config/initializers/devise.rb
|
2496
2535
|
- test/dummy/config/initializers/filter_parameter_logging.rb
|
2497
2536
|
- test/dummy/config/initializers/inflections.rb
|
2498
2537
|
- test/dummy/config/initializers/mime_types.rb
|
2499
2538
|
- test/dummy/config/initializers/session_store.rb
|
2500
2539
|
- test/dummy/config/initializers/wrap_parameters.rb
|
2540
|
+
- test/dummy/config/locales/devise.en.yml
|
2501
2541
|
- test/dummy/config/locales/en.yml
|
2502
2542
|
- test/dummy/config/routes.rb
|
2503
2543
|
- test/dummy/config/secrets.yml
|
2504
2544
|
- test/dummy/config/tinymce.yml
|
2505
2545
|
- test/dummy/config.ru
|
2546
|
+
- test/dummy/db/migrate/20150504000518_devise_create_users.rb
|
2506
2547
|
- test/dummy/db/schema.rb
|
2507
2548
|
- test/dummy/log/development.log
|
2508
2549
|
- test/dummy/public/404.html
|
@@ -3896,6 +3937,8 @@ test_files:
|
|
3896
3937
|
- test/dummy/public/uploads/cat_red.jpg
|
3897
3938
|
- test/dummy/Rakefile
|
3898
3939
|
- test/dummy/README.rdoc
|
3940
|
+
- test/dummy/spec/factories/users.rb
|
3941
|
+
- test/dummy/spec/models/user_spec.rb
|
3899
3942
|
- test/dummy/tmp/cache/assets/development/sass/18577b7353d72dbc7e81d46af07240af8557f987/_hacks.scssc
|
3900
3943
|
- test/dummy/tmp/cache/assets/development/sass/255a203cf5ecbb5470dfd267d6d4b923c8f1e5f0/_css3.scssc
|
3901
3944
|
- test/dummy/tmp/cache/assets/development/sass/255a203cf5ecbb5470dfd267d6d4b923c8f1e5f0/_support.scssc
|
@@ -4501,7 +4544,9 @@ test_files:
|
|
4501
4544
|
- test/dummy/tmp/cache/assets/development/sprockets/fff5cc1f57d172a75379719781f39cea
|
4502
4545
|
- test/dummy/tmp/pids/server.pid
|
4503
4546
|
- test/fixtures/optimacms/articles.yml
|
4547
|
+
- test/fixtures/optimacms/cms_users.yml
|
4504
4548
|
- test/integration/navigation_test.rb
|
4505
4549
|
- test/models/optimacms/article_test.rb
|
4550
|
+
- test/models/optimacms/cms_user_test.rb
|
4506
4551
|
- test/optimacms_test.rb
|
4507
4552
|
- test/test_helper.rb
|