roroacms 0.0.2 → 0.0.3

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.
Files changed (89) hide show
  1. data/MIT-LICENSE +20 -20
  2. data/README.md +62 -61
  3. data/Rakefile +19 -19
  4. data/app/assets/javascripts/roroacms/admin/application.js +1 -3
  5. data/app/assets/javascripts/roroacms/admin/roroacms-tour.js +46 -46
  6. data/app/assets/javascripts/roroacms/application.js +9 -21
  7. data/app/assets/javascripts/roroacms/vendor/hopscotch.js +2409 -2409
  8. data/app/assets/stylesheets/roroacms/admin/application.css +5 -3
  9. data/app/assets/stylesheets/roroacms/vendor/hopscotch.css +512 -512
  10. data/app/assets/stylesheets/roroacms/vendor/jquery/jquery-ui.css +1177 -1177
  11. data/app/controllers/roroacms/admin_controller.rb +1 -0
  12. data/app/controllers/roroacms/application_controller.rb +5 -3
  13. data/app/helpers/roroacms/admin_roroa_helper.rb +4 -4
  14. data/app/helpers/roroacms/admin_view_helper.rb +16 -16
  15. data/app/helpers/roroacms/application_helper.rb +4 -4
  16. data/app/helpers/roroacms/general_helper.rb +8 -8
  17. data/app/helpers/roroacms/new_view_helper.rb +7 -6
  18. data/app/helpers/roroacms/routing_helper.rb +15 -15
  19. data/app/helpers/roroacms/seo_helper.rb +2 -1
  20. data/app/helpers/roroacms/theme_helper.rb +6 -6
  21. data/app/helpers/roroacms/view_helper.rb +4 -4
  22. data/app/mailers/roroacms/emailer.rb +31 -31
  23. data/app/views/layouts/roroacms/application.html.erb +1 -1
  24. data/app/views/roroacms/admin/partials/_append_sidebar_menu.html.erb +51 -51
  25. data/app/views/roroacms/admin/partials/_comment.html.erb +10 -1
  26. data/app/views/roroacms/admin/partials/_editor.html.erb +21 -21
  27. data/app/views/roroacms/setup/administrator.html.erb +72 -72
  28. data/app/views/roroacms/setup/index.html.erb +108 -108
  29. data/config/initializers/devise.rb +258 -258
  30. data/config/locales/devise.en.yml +115 -115
  31. data/config/locales/en.yml +1 -1
  32. data/config/routes.rb +96 -96
  33. data/db/migrate/20140801203556_add_admins.rb +44 -44
  34. data/db/migrate/20140802084604_add_roroacms_comments.rb +31 -31
  35. data/db/migrate/20140802084615_add_roroacms_menu_options.rb +24 -24
  36. data/db/migrate/20140802084624_add_roroacms_menus.rb +18 -18
  37. data/db/migrate/20140802084631_add_roroacms_posts.rb +42 -42
  38. data/db/migrate/20140802084638_add_roroacms_settings.rb +21 -21
  39. data/db/migrate/20140802084658_add_roroacms_term_anatomies.rb +20 -20
  40. data/db/migrate/20140802084707_add_roroacms_term_relationships.rb +23 -23
  41. data/db/migrate/20140802084717_add_roroacms_terms.rb +27 -27
  42. data/lib/ext/string.rb +4 -4
  43. data/lib/generators/roroacms/install_generator.rb +16 -16
  44. data/lib/roroacms/engine.rb +4 -5
  45. data/lib/roroacms/version.rb +3 -3
  46. data/lib/roroacms.rb +5 -5
  47. data/lib/tasks/roroacms_tasks.rake +9 -9
  48. data/spec/controllers/roroacms/admin/themes_controller_spec.rb +2 -2
  49. data/spec/dummy/README.rdoc +28 -28
  50. data/spec/dummy/Rakefile +6 -6
  51. data/spec/dummy/app/controllers/application_controller.rb +5 -5
  52. data/spec/dummy/app/helpers/application_helper.rb +2 -2
  53. data/spec/dummy/app/helpers/theme_helper.rb +12 -12
  54. data/spec/dummy/app/views/layouts/application.html.erb +14 -14
  55. data/spec/dummy/app/views/theme/roroa-bootstrap-3/theme_helper.rb +8 -8
  56. data/spec/dummy/app/views/theme/roroa1/assets/stylesheets/style.css.scss +8 -8
  57. data/spec/dummy/app/views/theme/roroa1/layout.html.erb +1 -1
  58. data/spec/dummy/bin/bundle +3 -3
  59. data/spec/dummy/bin/rails +4 -4
  60. data/spec/dummy/bin/rake +4 -4
  61. data/spec/dummy/config/application.rb +23 -23
  62. data/spec/dummy/config/boot.rb +5 -5
  63. data/spec/dummy/config/database.yml +7 -7
  64. data/spec/dummy/config/environment.rb +5 -5
  65. data/spec/dummy/config/environments/development.rb +37 -37
  66. data/spec/dummy/config/environments/production.rb +82 -82
  67. data/spec/dummy/config/environments/test.rb +39 -39
  68. data/spec/dummy/config/initializers/assets.rb +8 -8
  69. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -7
  70. data/spec/dummy/config/initializers/cookies_serializer.rb +2 -2
  71. data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -4
  72. data/spec/dummy/config/initializers/inflections.rb +16 -16
  73. data/spec/dummy/config/initializers/mime_types.rb +4 -4
  74. data/spec/dummy/config/initializers/session_store.rb +3 -3
  75. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -14
  76. data/spec/dummy/config/locales/en.yml +23 -23
  77. data/spec/dummy/config/routes.rb +3 -3
  78. data/spec/dummy/config/secrets.yml +22 -22
  79. data/spec/dummy/config.ru +4 -4
  80. data/spec/dummy/db/schema.rb +149 -149
  81. data/spec/dummy/public/404.html +67 -67
  82. data/spec/dummy/public/422.html +67 -67
  83. data/spec/dummy/public/500.html +66 -66
  84. data/spec/dummy/public/javascripts/translations.js +1 -1
  85. data/spec/dummy/tmp/cache/i18n-js.yml +36 -36
  86. data/spec/models/roroacms/admin_spec.rb +67 -67
  87. data/spec/spec_helper.rb +35 -35
  88. data/spec/support/factories.rb +79 -79
  89. metadata +2 -2
data/MIT-LICENSE CHANGED
@@ -1,20 +1,20 @@
1
- Copyright 2014 YOURNAME
2
-
3
- Permission is hereby granted, free of charge, to any person obtaining
4
- a copy of this software and associated documentation files (the
5
- "Software"), to deal in the Software without restriction, including
6
- without limitation the rights to use, copy, modify, merge, publish,
7
- distribute, sublicense, and/or sell copies of the Software, and to
8
- permit persons to whom the Software is furnished to do so, subject to
9
- the following conditions:
10
-
11
- The above copyright notice and this permission notice shall be
12
- included in all copies or substantial portions of the Software.
13
-
14
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1
+ Copyright 2014 SIMON FLETCHER
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md CHANGED
@@ -1,62 +1,63 @@
1
- # ROROACMS
2
-
3
- Roroacms is an Rails-based content management system which allows you to easily introduce a page and article management to your Rails 4 applications. Roroacms has come far over the years it started out as a project to learn more about the ins & outs of Ruby on Rails and seemlessly evolved to grow into a fully grown CMS. In this second release I have moved the CMS into an engine and given the system a complete make over visually and technically.
4
-
5
-
6
- ### Documentation & Demo
7
-
8
- I am currently working relentlessly on creating a good demo and documentation for Roroacms but I do not want to release them both until I am completely satified with them. For now however you are able to install the engine and check the admin panel out!
9
-
10
-
11
- ### Installing into a new Rails application
12
-
13
- To get up and running with Roroacms in a new Rails application is simple. Just follow the
14
- instructions below and you'll be up and running in minutes.
15
-
16
- Roroacms works with Rails 4 onwards. You can add it to your Gemfile with:
17
-
18
- ```ruby
19
- gem 'roroacms'
20
- ```
21
-
22
- Run the bundle command to install it.
23
-
24
- After you install Roroacms and add it to your Gemfile, you need to run the generator:
25
-
26
- ```console
27
- rails generate roroacms:install
28
- ```
29
-
30
- After you have installed Roroacms start the server
31
-
32
- ```console
33
- rails server
34
- ```
35
-
36
- Once you start the server and visit the URL you will be presented with a installtion page which will walk you through setting the engine up fully.
37
-
38
- ### File Management
39
-
40
- One thing to note about Roroacms is that it's media area is fully integrated with Amazon S3 at the moment so before you start head over to [http://aws.amazon.com/s3/](http://aws.amazon.com/s3/ "Amazon S3") and create a Amazon s3 account (Please make sure that the folder is open to the public).
41
-
42
- alternatively if you are not interested in using the file manager you can leave the Amazon S3 config settings blank.
43
-
44
- ### Contribution
45
-
46
- If you'd like to help with this project, please get in touch with me. The best place is on Twitter (@roroacms) or by e-mail to roroacms@gmail.com.
47
-
48
- ### License
49
-
50
- Licensed under the [MIT License](http://creativecommons.org/licenses/MIT/)
51
-
52
- Copyright 2012 [Simon Fletcher](https://github.com/fletcher890)
53
-
54
- Icons from [Font Awesome](http://fortawesome.github.io/Font-Awesome/)
55
-
56
- ### Other Information
57
-
58
- Project homepage: http://roroacms.co.uk
59
-
60
- Wiki : https://github.com/fletcher890/roroacms/wiki
61
-
1
+ # ROROACMS
2
+
3
+ Roroacms is an Rails-based content management system which allows you to easily introduce a page and article management to your Rails 4 applications. Roroacms has come far over the years it started out as a project to learn more about the ins & outs of Ruby on Rails and seemlessly evolved to grow into a fully grown CMS. In this second release I have moved the CMS into an engine and given the system a complete make over visually and technically.
4
+
5
+ ![GemVersion](https://badge.fury.io/rb/roroacms.png)
6
+
7
+ ### Documentation & Demo
8
+
9
+ I am currently working relentlessly on creating a good demo and documentation for Roroacms but I do not want to release them both until I am completely satified with them. For now however you are able to install the engine and check the admin panel out!
10
+
11
+
12
+ ### Installing into a new Rails application
13
+
14
+ To get up and running with Roroacms in a new Rails application is simple. Just follow the
15
+ instructions below and you'll be up and running in minutes.
16
+
17
+ Roroacms works with Rails 4 onwards. You can add it to your Gemfile with:
18
+
19
+ ```ruby
20
+ gem 'roroacms'
21
+ ```
22
+
23
+ Run the bundle command to install it.
24
+
25
+ After you install Roroacms and add it to your Gemfile, you need to run the generator:
26
+
27
+ ```console
28
+ rails generate roroacms:install
29
+ ```
30
+
31
+ After you have installed Roroacms start the server
32
+
33
+ ```console
34
+ rails server
35
+ ```
36
+
37
+ Once you start the server and visit the URL you will be presented with a installtion page which will walk you through setting the engine up fully.
38
+
39
+ ### File Management
40
+
41
+ One thing to note about Roroacms is that it's media area is fully integrated with Amazon S3 at the moment so before you start head over to [http://aws.amazon.com/s3/](http://aws.amazon.com/s3/ "Amazon S3") and create a Amazon s3 account (Please make sure that the folder is open to the public).
42
+
43
+ alternatively if you are not interested in using the file manager you can leave the Amazon S3 config settings blank.
44
+
45
+ ### Contribution
46
+
47
+ If you'd like to help with this project, please get in touch with me. The best place is on Twitter (@roroacms) or by e-mail to roroacms@gmail.com.
48
+
49
+ ### License
50
+
51
+ Licensed under the [MIT License](http://creativecommons.org/licenses/MIT/)
52
+
53
+ Copyright 2012 [Simon Fletcher](https://github.com/fletcher890)
54
+
55
+ Icons from [Font Awesome](http://fortawesome.github.io/Font-Awesome/)
56
+
57
+ ### Other Information
58
+
59
+ Project homepage: http://roroacms.co.uk
60
+
61
+ Wiki : https://github.com/fletcher890/roroacms/wiki
62
+
62
63
  Version: 2.0
data/Rakefile CHANGED
@@ -1,20 +1,20 @@
1
- begin
2
- require 'bundler/setup'
3
- rescue LoadError
4
- puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
5
- end
6
-
7
- APP_RAKEFILE = File.expand_path("../spec/dummy/Rakefile", __FILE__)
8
- load 'rails/tasks/engine.rake'
9
-
10
- Bundler::GemHelper.install_tasks
11
-
12
- Dir[File.join(File.dirname(__FILE__), 'tasks/**/*.rake')].each {|f| load f }
13
-
14
- require 'rspec/core'
15
- require 'rspec/core/rake_task'
16
-
17
- desc "Run all specs in spec directory (excluding plugin specs)"
18
- RSpec::Core::RakeTask.new(:spec => 'app:db:test:prepare')
19
-
1
+ begin
2
+ require 'bundler/setup'
3
+ rescue LoadError
4
+ puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
5
+ end
6
+
7
+ APP_RAKEFILE = File.expand_path("../spec/dummy/Rakefile", __FILE__)
8
+ load 'rails/tasks/engine.rake'
9
+
10
+ Bundler::GemHelper.install_tasks
11
+
12
+ Dir[File.join(File.dirname(__FILE__), 'tasks/**/*.rake')].each {|f| load f }
13
+
14
+ require 'rspec/core'
15
+ require 'rspec/core/rake_task'
16
+
17
+ desc "Run all specs in spec directory (excluding plugin specs)"
18
+ RSpec::Core::RakeTask.new(:spec => 'app:db:test:prepare')
19
+
20
20
  task :default => :spec
@@ -4,7 +4,5 @@
4
4
  //= require ../vendor/datatables/js/datatables.bootstrap.js
5
5
  //= require_tree ../vendor
6
6
  //= require jquery_ujs
7
- //= require_tree .
8
7
  //= require_directory .
9
-
10
- console.log('23123123');
8
+ //= require_tree .
@@ -1,47 +1,47 @@
1
- $(document).ready(function(){
2
-
3
- if ($(window).width() >= 768 && $('.js-settings').attr('data-tour-taken') == 'N') {
4
-
5
- // Define the tour!
6
- var tour = {
7
- id: "hello-hopscotch",
8
- onEnd: function(){
9
- $.ajax({
10
- type: "post",
11
- url: $('.js-settings').attr('data-site-url') + 'setup/tour_complete',
12
- dataType: "html"
13
- });
14
- },
15
- steps: [
16
- {
17
- title: "Content",
18
- content: "Everything that you need to manage Articles, Pages, Tags and Categories in one place",
19
- target: "dashboardContent",
20
- placement: "right"
21
- },
22
- {
23
- title: "Menus",
24
- content: "Create and manage your applications menus from here",
25
- target: "dashboardMenus",
26
- placement: "right"
27
- },
28
- {
29
- title: "Comments",
30
- content: "If you have system comments switched on, any comments against articles will be stored here for you to manage",
31
- target: "dashboardComments",
32
- placement: "right"
33
- },
34
- {
35
- title: "Settings",
36
- content: "The application has a number of settings which you are able to manage from here <br /><br /> And that's it, away you go!",
37
- target: "dashboardSettings",
38
- placement: "right"
39
- }
40
- ]
41
- };
42
- // Start the tour!
43
- hopscotch.startTour(tour);
44
-
45
- }
46
-
1
+ $(document).ready(function(){
2
+
3
+ if ($(window).width() >= 768 && $('.js-settings').attr('data-tour-taken') == 'N') {
4
+
5
+ // Define the tour!
6
+ var tour = {
7
+ id: "hello-hopscotch",
8
+ onEnd: function(){
9
+ $.ajax({
10
+ type: "post",
11
+ url: $('.js-settings').attr('data-site-url') + 'setup/tour_complete',
12
+ dataType: "html"
13
+ });
14
+ },
15
+ steps: [
16
+ {
17
+ title: "Content",
18
+ content: "Everything that you need to manage Articles, Pages, Tags and Categories in one place",
19
+ target: "dashboardContent",
20
+ placement: "right"
21
+ },
22
+ {
23
+ title: "Menus",
24
+ content: "Create and manage your applications menus from here",
25
+ target: "dashboardMenus",
26
+ placement: "right"
27
+ },
28
+ {
29
+ title: "Comments",
30
+ content: "If you have system comments switched on, any comments against articles will be stored here for you to manage",
31
+ target: "dashboardComments",
32
+ placement: "right"
33
+ },
34
+ {
35
+ title: "Settings",
36
+ content: "The application has a number of settings which you are able to manage from here <br /><br /> And that's it, away you go!",
37
+ target: "dashboardSettings",
38
+ placement: "right"
39
+ }
40
+ ]
41
+ };
42
+ // Start the tour!
43
+ hopscotch.startTour(tour);
44
+
45
+ }
46
+
47
47
  });
@@ -1,21 +1,9 @@
1
- // This is a manifest file that'll be compiled into application.js, which will include all the files
2
- // listed below.
3
- //
4
- // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
5
- // or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
6
- //
7
- // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
8
- // compiled file.
9
- //
10
- // Read Sprockets README (https://github.com/sstephenson/sprockets#sprockets-directives) for details
11
- // about supported directives.
12
- //
13
- //= require jquery
14
- //= require jquery_ujs
15
- //= require_tree .
16
-
17
- $.ajaxSetup({
18
- beforeSend: function(xhr) {
19
- xhr.setRequestHeader("X-CSRF-Token", $("meta[name=\"csrf-token\"]").attr("content"));
20
- }
21
- });
1
+ //= require jquery
2
+ //= require jquery_ujs
3
+ //= require_tree .
4
+
5
+ $.ajaxSetup({
6
+ beforeSend: function(xhr) {
7
+ xhr.setRequestHeader("X-CSRF-Token", $("meta[name=\"csrf-token\"]").attr("content"));
8
+ }
9
+ });