roroacms 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/MIT-LICENSE +20 -20
- data/README.md +62 -61
- data/Rakefile +19 -19
- data/app/assets/javascripts/roroacms/admin/application.js +1 -3
- data/app/assets/javascripts/roroacms/admin/roroacms-tour.js +46 -46
- data/app/assets/javascripts/roroacms/application.js +9 -21
- data/app/assets/javascripts/roroacms/vendor/hopscotch.js +2409 -2409
- data/app/assets/stylesheets/roroacms/admin/application.css +5 -3
- data/app/assets/stylesheets/roroacms/vendor/hopscotch.css +512 -512
- data/app/assets/stylesheets/roroacms/vendor/jquery/jquery-ui.css +1177 -1177
- data/app/controllers/roroacms/admin_controller.rb +1 -0
- data/app/controllers/roroacms/application_controller.rb +5 -3
- data/app/helpers/roroacms/admin_roroa_helper.rb +4 -4
- data/app/helpers/roroacms/admin_view_helper.rb +16 -16
- data/app/helpers/roroacms/application_helper.rb +4 -4
- data/app/helpers/roroacms/general_helper.rb +8 -8
- data/app/helpers/roroacms/new_view_helper.rb +7 -6
- data/app/helpers/roroacms/routing_helper.rb +15 -15
- data/app/helpers/roroacms/seo_helper.rb +2 -1
- data/app/helpers/roroacms/theme_helper.rb +6 -6
- data/app/helpers/roroacms/view_helper.rb +4 -4
- data/app/mailers/roroacms/emailer.rb +31 -31
- data/app/views/layouts/roroacms/application.html.erb +1 -1
- data/app/views/roroacms/admin/partials/_append_sidebar_menu.html.erb +51 -51
- data/app/views/roroacms/admin/partials/_comment.html.erb +10 -1
- data/app/views/roroacms/admin/partials/_editor.html.erb +21 -21
- data/app/views/roroacms/setup/administrator.html.erb +72 -72
- data/app/views/roroacms/setup/index.html.erb +108 -108
- data/config/initializers/devise.rb +258 -258
- data/config/locales/devise.en.yml +115 -115
- data/config/locales/en.yml +1 -1
- data/config/routes.rb +96 -96
- data/db/migrate/20140801203556_add_admins.rb +44 -44
- data/db/migrate/20140802084604_add_roroacms_comments.rb +31 -31
- data/db/migrate/20140802084615_add_roroacms_menu_options.rb +24 -24
- data/db/migrate/20140802084624_add_roroacms_menus.rb +18 -18
- data/db/migrate/20140802084631_add_roroacms_posts.rb +42 -42
- data/db/migrate/20140802084638_add_roroacms_settings.rb +21 -21
- data/db/migrate/20140802084658_add_roroacms_term_anatomies.rb +20 -20
- data/db/migrate/20140802084707_add_roroacms_term_relationships.rb +23 -23
- data/db/migrate/20140802084717_add_roroacms_terms.rb +27 -27
- data/lib/ext/string.rb +4 -4
- data/lib/generators/roroacms/install_generator.rb +16 -16
- data/lib/roroacms/engine.rb +4 -5
- data/lib/roroacms/version.rb +3 -3
- data/lib/roroacms.rb +5 -5
- data/lib/tasks/roroacms_tasks.rake +9 -9
- data/spec/controllers/roroacms/admin/themes_controller_spec.rb +2 -2
- data/spec/dummy/README.rdoc +28 -28
- data/spec/dummy/Rakefile +6 -6
- data/spec/dummy/app/controllers/application_controller.rb +5 -5
- data/spec/dummy/app/helpers/application_helper.rb +2 -2
- data/spec/dummy/app/helpers/theme_helper.rb +12 -12
- data/spec/dummy/app/views/layouts/application.html.erb +14 -14
- data/spec/dummy/app/views/theme/roroa-bootstrap-3/theme_helper.rb +8 -8
- data/spec/dummy/app/views/theme/roroa1/assets/stylesheets/style.css.scss +8 -8
- data/spec/dummy/app/views/theme/roroa1/layout.html.erb +1 -1
- data/spec/dummy/bin/bundle +3 -3
- data/spec/dummy/bin/rails +4 -4
- data/spec/dummy/bin/rake +4 -4
- data/spec/dummy/config/application.rb +23 -23
- data/spec/dummy/config/boot.rb +5 -5
- data/spec/dummy/config/database.yml +7 -7
- data/spec/dummy/config/environment.rb +5 -5
- data/spec/dummy/config/environments/development.rb +37 -37
- data/spec/dummy/config/environments/production.rb +82 -82
- data/spec/dummy/config/environments/test.rb +39 -39
- data/spec/dummy/config/initializers/assets.rb +8 -8
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -7
- data/spec/dummy/config/initializers/cookies_serializer.rb +2 -2
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -4
- data/spec/dummy/config/initializers/inflections.rb +16 -16
- data/spec/dummy/config/initializers/mime_types.rb +4 -4
- data/spec/dummy/config/initializers/session_store.rb +3 -3
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -14
- data/spec/dummy/config/locales/en.yml +23 -23
- data/spec/dummy/config/routes.rb +3 -3
- data/spec/dummy/config/secrets.yml +22 -22
- data/spec/dummy/config.ru +4 -4
- data/spec/dummy/db/schema.rb +149 -149
- data/spec/dummy/public/404.html +67 -67
- data/spec/dummy/public/422.html +67 -67
- data/spec/dummy/public/500.html +66 -66
- data/spec/dummy/public/javascripts/translations.js +1 -1
- data/spec/dummy/tmp/cache/i18n-js.yml +36 -36
- data/spec/models/roroacms/admin_spec.rb +67 -67
- data/spec/spec_helper.rb +35 -35
- data/spec/support/factories.rb +79 -79
- metadata +2 -2
data/MIT-LICENSE
CHANGED
@@ -1,20 +1,20 @@
|
|
1
|
-
Copyright 2014
|
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
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
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
|
@@ -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
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
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
|
+
});
|