sunrise-cms 0.6.2 → 0.6.3
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.rdoc +5 -0
- data/README.md +11 -0
- data/app/assets/stylesheets/devise/application.css +6 -0
- data/app/assets/stylesheets/devise/style.css +171 -0
- data/app/assets/stylesheets/sunrise/customize.css +19 -1
- data/app/views/layouts/sunrise/devise.html.erb +19 -0
- data/app/views/sunrise/manager/_controls.html.erb +0 -0
- data/app/views/sunrise/manager/_header_show.html.erb +42 -0
- data/app/views/sunrise/manager/structures/thumbs/_record.html.erb +2 -2
- data/app/views/sunrise/manager/structures/tree/_record.html.erb +3 -3
- data/app/views/sunrise/manager/table/_model_filter.html.erb +2 -2
- data/app/views/sunrise/manager/table/_record.html.erb +2 -2
- data/app/views/sunrise/manager/thumbs/_model_filter.html.erb +2 -2
- data/app/views/sunrise/manager/thumbs/_record.html.erb +7 -5
- data/lib/sunrise/version.rb +1 -1
- data/spec/dummy/log/test.log +6032 -0
- data/spec/dummy/public/uploads/avatar/content_rails.png +0 -0
- data/spec/dummy/public/uploads/avatar/rails.png +0 -0
- data/spec/dummy/public/uploads/avatar/thumb_rails.png +0 -0
- data/spec/dummy/public/uploads/tmp/20130328-1652-10572-0194/silicon_valley.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/20130328-1652-10572-0194/small_silicon_valley.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/20130328-1652-10572-0194/thumb_silicon_valley.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/20130328-1652-10572-2067/rails.png +0 -0
- data/spec/dummy/public/uploads/tmp/20130328-1652-10572-3421/rails.png +0 -0
- data/spec/dummy/public/uploads/tmp/20130328-1652-10572-3421/small_rails.png +0 -0
- data/spec/dummy/public/uploads/tmp/20130328-1652-10572-3421/thumb_rails.png +0 -0
- data/spec/dummy/public/uploads/tmp/20130328-1652-10572-4629/rails.png +0 -0
- data/spec/dummy/public/uploads/tmp/20130328-1652-10572-7745/rails.png +0 -0
- data/spec/dummy/public/uploads/tmp/20130328-1652-10572-8054/rails.png +0 -0
- data/spec/dummy/public/uploads/tmp/20130328-1652-10572-8054/small_rails.png +0 -0
- data/spec/dummy/public/uploads/tmp/20130328-1652-10572-8054/thumb_rails.png +0 -0
- data/spec/dummy/public/uploads/tmp/20130328-1652-10572-9023/rails.png +0 -0
- data/spec/dummy/public/uploads/tmp/20130328-1652-10572-9287/rails.png +0 -0
- data/spec/dummy/public/uploads/tmp/20130328-1652-10572-9287/small_rails.png +0 -0
- data/spec/dummy/public/uploads/tmp/20130328-1652-10572-9287/thumb_rails.png +0 -0
- data/spec/dummy/public/uploads/tmp/20130328-1652-10572-9992/rails.png +0 -0
- data/spec/dummy/public/uploads/tmp/20130328-1817-13734-0058/silicon_valley.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/20130328-1817-13734-0058/small_silicon_valley.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/20130328-1817-13734-0058/thumb_silicon_valley.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/20130328-1817-13734-0280/rails.png +0 -0
- data/spec/dummy/public/uploads/tmp/20130328-1817-13734-0319/rails.png +0 -0
- data/spec/dummy/public/uploads/tmp/20130328-1817-13734-1339/rails.png +0 -0
- data/spec/dummy/public/uploads/tmp/20130328-1817-13734-3744/rails.png +0 -0
- data/spec/dummy/public/uploads/tmp/20130328-1817-13734-6109/rails.png +0 -0
- data/spec/dummy/public/uploads/tmp/20130328-1817-13734-6109/small_rails.png +0 -0
- data/spec/dummy/public/uploads/tmp/20130328-1817-13734-6109/thumb_rails.png +0 -0
- data/spec/dummy/public/uploads/tmp/20130328-1817-13734-7542/rails.png +0 -0
- data/spec/dummy/public/uploads/tmp/20130328-1817-13734-7542/small_rails.png +0 -0
- data/spec/dummy/public/uploads/tmp/20130328-1817-13734-7542/thumb_rails.png +0 -0
- data/spec/dummy/public/uploads/tmp/20130328-1817-13734-7559/rails.png +0 -0
- data/spec/dummy/public/uploads/tmp/20130328-1817-13734-7855/rails.png +0 -0
- data/spec/dummy/public/uploads/tmp/20130328-1817-13734-7855/small_rails.png +0 -0
- data/spec/dummy/public/uploads/tmp/20130328-1817-13734-7855/thumb_rails.png +0 -0
- data/spec/tmp/app/models/defaults/ability.rb +18 -0
- data/spec/tmp/app/models/defaults/asset.rb +7 -0
- data/spec/tmp/app/models/defaults/attachment_file.rb +5 -0
- data/spec/tmp/app/models/defaults/avatar.rb +7 -0
- data/spec/tmp/app/models/defaults/picture.rb +7 -0
- data/spec/tmp/app/models/defaults/position_type.rb +7 -0
- data/spec/tmp/app/models/defaults/role_type.rb +8 -0
- data/spec/tmp/app/models/defaults/settings.rb +6 -0
- data/spec/tmp/app/models/defaults/structure.rb +10 -0
- data/spec/tmp/app/models/defaults/structure_type.rb +9 -0
- data/spec/tmp/app/models/defaults/user.rb +14 -0
- data/spec/tmp/app/models/sunrise/sunrise_navigation.rb +14 -0
- data/spec/tmp/app/models/sunrise/sunrise_page.rb +10 -0
- data/spec/tmp/app/models/sunrise/sunrise_structure.rb +35 -0
- data/spec/tmp/app/models/sunrise/sunrise_user.rb +50 -0
- data/spec/tmp/app/uploaders/attachment_file_uploader.rb +5 -0
- data/spec/tmp/app/uploaders/avatar_uploader.rb +15 -0
- data/spec/tmp/app/uploaders/picture_uploader.rb +15 -0
- data/spec/tmp/app/views/layouts/application.html.erb +22 -0
- data/spec/tmp/app/views/pages/show.html.erb +2 -0
- data/spec/tmp/app/views/shared/_notice.html.erb +17 -0
- data/spec/tmp/config/application.rb +63 -0
- data/spec/tmp/config/database.yml.sample +34 -0
- data/spec/tmp/config/initializers/sunrise.rb +51 -0
- data/spec/tmp/config/logrotate-config.sample +9 -0
- data/spec/tmp/config/nginx-config.sample +67 -0
- data/spec/tmp/config/routes.rb +10 -0
- data/spec/tmp/db/seeds.rb +30 -0
- data/spec/tmp/spec/controllers/pages_controller_spec.rb +22 -0
- data/spec/tmp/spec/controllers/welcome_controller_spec.rb +18 -0
- data/spec/tmp/spec/factories/structure_factory.rb +22 -0
- data/spec/tmp/spec/factories/user_factory.rb +61 -0
- data/spec/tmp/spec/spec_helper.rb +37 -0
- data/spec/tmp/spec/support/helpers/controller_macros.rb +52 -0
- metadata +150 -4
@@ -0,0 +1,34 @@
|
|
1
|
+
# And be sure to use new-style password hashing:
|
2
|
+
# http://dev.mysql.com/doc/refman/5.0/en/old-client.html
|
3
|
+
development:
|
4
|
+
adapter: mysql2
|
5
|
+
encoding: utf8
|
6
|
+
reconnect: false
|
7
|
+
database: dummy
|
8
|
+
pool: 5
|
9
|
+
username: root
|
10
|
+
password:
|
11
|
+
socket: /var/run/mysqld/mysqld.sock
|
12
|
+
|
13
|
+
# Warning: The database defined as "test" will be erased and
|
14
|
+
# re-generated from your development database when you run "rake".
|
15
|
+
# Do not set this db to the same as development or production.
|
16
|
+
test:
|
17
|
+
adapter: mysql2
|
18
|
+
encoding: utf8
|
19
|
+
reconnect: false
|
20
|
+
database: dummy_test
|
21
|
+
pool: 5
|
22
|
+
username: root
|
23
|
+
password:
|
24
|
+
socket: /var/run/mysqld/mysqld.sock
|
25
|
+
|
26
|
+
production:
|
27
|
+
adapter: mysql2
|
28
|
+
encoding: utf8
|
29
|
+
reconnect: true
|
30
|
+
database: dummy
|
31
|
+
pool: 5
|
32
|
+
username: root
|
33
|
+
password:
|
34
|
+
socket: /var/run/mysqld/mysqld.sock
|
@@ -0,0 +1,51 @@
|
|
1
|
+
require 'meta_manager/orm/active_record'
|
2
|
+
require 'page_parts/orm/active_record'
|
3
|
+
|
4
|
+
# Use this hook to configure sunrise
|
5
|
+
Sunrise.setup do |config|
|
6
|
+
# Paginate records per page (default: 25)
|
7
|
+
# config.default_items_per_page = 25
|
8
|
+
|
9
|
+
# Display audits events on dashboard (default: 50)
|
10
|
+
# config.activities_per_page = 50
|
11
|
+
|
12
|
+
# By default show latest first (default: :desc)
|
13
|
+
# config.default_sort_mode = :desc
|
14
|
+
|
15
|
+
# The display for a model instance (i.e. a single database record).
|
16
|
+
# config.label_methods = [:title, :name]
|
17
|
+
|
18
|
+
# Defailt list template view (default: "thumbs")
|
19
|
+
# config.default_list_view = "thumbs"
|
20
|
+
|
21
|
+
# Avariable lists views (default: [:list, :thumbs, :table])
|
22
|
+
# config.available_list_view = [:list, :thumbs, :table]
|
23
|
+
|
24
|
+
# Defailt list template view (default: "sort_order")
|
25
|
+
# config.sort_column = "sort_order"
|
26
|
+
|
27
|
+
# Find template before rendering (default: true)
|
28
|
+
# config.scoped_views = true
|
29
|
+
|
30
|
+
# Set available locales in app (default: [])
|
31
|
+
# config.available_locales = []
|
32
|
+
|
33
|
+
# Set transliteration for babosa gem
|
34
|
+
# more info here: https://github.com/norman/babosa (default: :russian)
|
35
|
+
# config.transliteration = :russian
|
36
|
+
|
37
|
+
# Set list toolbar buttons (default: [:delete, :edit, :new, :sort, :export])
|
38
|
+
# config.default_toolbar_buttons = [:delete, :edit, :new, :sort, :export]
|
39
|
+
|
40
|
+
# Lists the formats that should be treated as navigational (default: [:html, :json])
|
41
|
+
# config.navigational_formats = [:html, :json]
|
42
|
+
end
|
43
|
+
|
44
|
+
PublicActivity::Config.set do
|
45
|
+
orm :active_record
|
46
|
+
end
|
47
|
+
|
48
|
+
#if Settings.table_exists?
|
49
|
+
# Settings.defaults[:some_setting] = "value"
|
50
|
+
# Settings.defaults[:some_setting2] = "value2"
|
51
|
+
#end
|
@@ -0,0 +1,67 @@
|
|
1
|
+
# dummy
|
2
|
+
#
|
3
|
+
upstream dummy_backend {
|
4
|
+
server unix:/var/www/dummy/tmp/sockets/unicorn.sock fail_timeout=0;
|
5
|
+
}
|
6
|
+
|
7
|
+
server {
|
8
|
+
listen 5.9.17.136:80;
|
9
|
+
server_name dummy.fodojo.com;
|
10
|
+
|
11
|
+
access_log off;
|
12
|
+
error_log off;
|
13
|
+
server_tokens off;
|
14
|
+
|
15
|
+
root /var/www/dummy/public;
|
16
|
+
|
17
|
+
try_files $uri $uri.html $uri/index.html cache$uri/index.html cache$uri.html cache$uri @app;
|
18
|
+
|
19
|
+
location ^~ /cache {
|
20
|
+
return 404;
|
21
|
+
}
|
22
|
+
|
23
|
+
location ~ /\.[^\/]+ {
|
24
|
+
return 404;
|
25
|
+
}
|
26
|
+
|
27
|
+
location @app {
|
28
|
+
proxy_redirect off;
|
29
|
+
proxy_set_header Host $host;
|
30
|
+
proxy_set_header X-Real-IP $remote_addr;
|
31
|
+
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
32
|
+
# proxy_set_header X-Forwarded-Proto https; # for SSL, add this
|
33
|
+
|
34
|
+
client_max_body_size 20m;
|
35
|
+
client_body_buffer_size 128k;
|
36
|
+
|
37
|
+
proxy_connect_timeout 90;
|
38
|
+
proxy_send_timeout 90;
|
39
|
+
proxy_read_timeout 90;
|
40
|
+
|
41
|
+
proxy_buffer_size 4k;
|
42
|
+
proxy_buffers 4 32k;
|
43
|
+
proxy_busy_buffers_size 64k;
|
44
|
+
proxy_temp_file_write_size 64k;
|
45
|
+
|
46
|
+
proxy_pass http://dummy_backend;
|
47
|
+
}
|
48
|
+
|
49
|
+
location ~ ^/(assets|uploads|images|javascripts|stylesheets)/ {
|
50
|
+
expires 1y;
|
51
|
+
add_header Cache-Control public;
|
52
|
+
add_header Last-Modified "";
|
53
|
+
add_header ETag "";
|
54
|
+
break;
|
55
|
+
}
|
56
|
+
|
57
|
+
# This rewrites all the requests to the maintenance.html page if it exists in the doc root.
|
58
|
+
if (-f $document_root/system/maintenance.html) {
|
59
|
+
return 503;
|
60
|
+
}
|
61
|
+
|
62
|
+
error_page 503 @503;
|
63
|
+
location @503 {
|
64
|
+
root /var/www/dummy/public;
|
65
|
+
rewrite ^(.*)$ /system/maintenance.html break;
|
66
|
+
}
|
67
|
+
}
|
@@ -0,0 +1,30 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
def insert_user
|
4
|
+
User.truncate!
|
5
|
+
password = Rails.env.production? ? Devise.friendly_token : (1..9).to_a.join
|
6
|
+
|
7
|
+
admin = User.new do |u|
|
8
|
+
u.name = "Administrator"
|
9
|
+
u.email = 'dev@fodojo.com'
|
10
|
+
u.password = password
|
11
|
+
u.password_confirmation = password
|
12
|
+
u.login = 'admin' if u.respond_to?(:login)
|
13
|
+
u.role_type = RoleType.admin
|
14
|
+
end
|
15
|
+
|
16
|
+
admin.skip_confirmation!
|
17
|
+
admin.save!
|
18
|
+
|
19
|
+
puts "Admin: #{admin.email}, #{admin.password}"
|
20
|
+
end
|
21
|
+
|
22
|
+
def insert_structures
|
23
|
+
Structure.truncate!
|
24
|
+
|
25
|
+
main_page = Structure.create!(title: "Главная страница", slug: "main-page", structure_type: StructureType.main, parent: nil)
|
26
|
+
# Structure.create!(title: "Трансляции", slug: "broadcasts", structure_type: StructureType.broadcasts, parent: main_page)
|
27
|
+
end
|
28
|
+
|
29
|
+
insert_user
|
30
|
+
insert_structures
|
@@ -0,0 +1,22 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe PagesController do
|
4
|
+
render_views
|
5
|
+
|
6
|
+
before(:all) do
|
7
|
+
@root = FactoryGirl.create(:structure_main)
|
8
|
+
end
|
9
|
+
|
10
|
+
context "page" do
|
11
|
+
before(:each) { @page = FactoryGirl.create(:structure_page, :parent => @root) }
|
12
|
+
|
13
|
+
it "should render show action" do
|
14
|
+
get :show, :id => @page.slug
|
15
|
+
|
16
|
+
assigns(:structure).should == @page
|
17
|
+
|
18
|
+
response.should be_success
|
19
|
+
response.should render_template('show')
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe WelcomeController do
|
4
|
+
render_views
|
5
|
+
|
6
|
+
before(:each) do
|
7
|
+
@root = FactoryGirl.create(:structure_main)
|
8
|
+
end
|
9
|
+
|
10
|
+
it "should render index action" do
|
11
|
+
get :index
|
12
|
+
|
13
|
+
assigns(:structure).should == @root
|
14
|
+
|
15
|
+
response.should be_success
|
16
|
+
response.should render_template('index')
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
FactoryGirl.define do
|
3
|
+
factory :structure_page, :class => Structure do
|
4
|
+
title 'Structure'
|
5
|
+
slug { FactoryGirl.generate(:slug) }
|
6
|
+
structure_type StructureType.page
|
7
|
+
position_type PositionType.menu
|
8
|
+
is_visible true
|
9
|
+
end
|
10
|
+
|
11
|
+
factory :structure_main, :class => Structure do
|
12
|
+
title "Main page"
|
13
|
+
slug "main-page"
|
14
|
+
structure_type StructureType.main
|
15
|
+
position_type PositionType.default
|
16
|
+
is_visible true
|
17
|
+
end
|
18
|
+
|
19
|
+
sequence :slug do |n|
|
20
|
+
"slug#{n}"
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,61 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
FactoryGirl.define do
|
3
|
+
factory :admin_user, :class => User do |user|
|
4
|
+
user.name 'Admin'
|
5
|
+
user.email { FactoryGirl.generate(:email) }
|
6
|
+
user.password 'password'
|
7
|
+
user.password_confirmation 'password'
|
8
|
+
|
9
|
+
user.after(:build) do |u|
|
10
|
+
u.roles.build(:role_type => RoleType.admin)
|
11
|
+
u.skip_confirmation!
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
factory :redactor_user, :class => User do |user|
|
16
|
+
user.name 'Redactor'
|
17
|
+
user.email { FactoryGirl.generate(:email) }
|
18
|
+
user.password 'password'
|
19
|
+
user.password_confirmation 'password'
|
20
|
+
|
21
|
+
user.after(:build) do |u|
|
22
|
+
u.roles.build(:role_type => RoleType.redactor)
|
23
|
+
u.skip_confirmation!
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
factory :moderator_user, :class => User do |user|
|
28
|
+
user.name 'Redactor'
|
29
|
+
user.email { FactoryGirl.generate(:email) }
|
30
|
+
user.password 'password'
|
31
|
+
user.password_confirmation 'password'
|
32
|
+
|
33
|
+
user.after(:build) do |u|
|
34
|
+
u.roles.build(:role_type => RoleType.moderator)
|
35
|
+
u.skip_confirmation!
|
36
|
+
end
|
37
|
+
end
|
38
|
+
|
39
|
+
factory :default_user, :class => User do |user|
|
40
|
+
user.name 'Test'
|
41
|
+
user.email { FactoryGirl.generate(:email) }
|
42
|
+
user.password 'password'
|
43
|
+
user.password_confirmation 'password'
|
44
|
+
|
45
|
+
user.after(:build) do |u|
|
46
|
+
u.roles.build(:role_type => RoleType.default)
|
47
|
+
u.skip_confirmation!
|
48
|
+
end
|
49
|
+
end
|
50
|
+
|
51
|
+
factory :user, :class => User do |user|
|
52
|
+
user.name 'Test'
|
53
|
+
user.email { FactoryGirl.generate(:email) }
|
54
|
+
user.password 'password'
|
55
|
+
user.password_confirmation 'password'
|
56
|
+
end
|
57
|
+
|
58
|
+
sequence :email do |n|
|
59
|
+
"testing#{n}@example.com"
|
60
|
+
end
|
61
|
+
end
|
@@ -0,0 +1,37 @@
|
|
1
|
+
# This file is copied to spec/ when you run 'rails generate rspec:install'
|
2
|
+
ENV["RAILS_ENV"] ||= 'test'
|
3
|
+
require File.expand_path("../../config/environment", __FILE__)
|
4
|
+
require 'rspec/rails'
|
5
|
+
|
6
|
+
# Requires supporting ruby files with custom matchers and macros, etc,
|
7
|
+
# in spec/support/ and its subdirectories.
|
8
|
+
Dir[Rails.root.join("spec/support/**/*.rb")].each {|f| require f}
|
9
|
+
|
10
|
+
RSpec.configure do |config|
|
11
|
+
# == Mock Framework
|
12
|
+
#
|
13
|
+
# If you prefer to use mocha, flexmock or RR, uncomment the appropriate line:
|
14
|
+
#
|
15
|
+
# config.mock_with :mocha
|
16
|
+
# config.mock_with :flexmock
|
17
|
+
# config.mock_with :rr
|
18
|
+
config.mock_with :rspec
|
19
|
+
|
20
|
+
config.include Devise::TestHelpers, :type => :controller
|
21
|
+
config.extend ControllerMacros, :type => :controller
|
22
|
+
|
23
|
+
# If you're not using ActiveRecord, or you'd prefer not to run each of your
|
24
|
+
# examples within a transaction, remove the following line or assign false
|
25
|
+
# instead of true.
|
26
|
+
config.use_transactional_fixtures = false
|
27
|
+
|
28
|
+
require 'database_cleaner'
|
29
|
+
config.before(:suite) do
|
30
|
+
DatabaseCleaner.strategy = :truncation
|
31
|
+
DatabaseCleaner.clean
|
32
|
+
end
|
33
|
+
|
34
|
+
config.after(:all) do
|
35
|
+
DatabaseCleaner.clean
|
36
|
+
end
|
37
|
+
end
|
@@ -0,0 +1,52 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
module ControllerMacros
|
3
|
+
def login_admin
|
4
|
+
before(:all) do
|
5
|
+
@admin = FactoryGirl.create(:admin_user)
|
6
|
+
end
|
7
|
+
|
8
|
+
before(:each) do
|
9
|
+
sign_out :user
|
10
|
+
sign_in @admin
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
def login_default
|
15
|
+
before(:all) do
|
16
|
+
@user = FactoryGirl.create(:default_user)
|
17
|
+
end
|
18
|
+
|
19
|
+
before(:each) do
|
20
|
+
sign_out :user
|
21
|
+
sign_in @user
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
25
|
+
def login_redactor
|
26
|
+
before(:all) do
|
27
|
+
@user = FactoryGirl.create(:redactor_user)
|
28
|
+
end
|
29
|
+
|
30
|
+
before(:each) do
|
31
|
+
sign_out :user
|
32
|
+
sign_in @user
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
def login_moderator
|
37
|
+
before(:all) do
|
38
|
+
@user = FactoryGirl.create(:moderator_user)
|
39
|
+
end
|
40
|
+
|
41
|
+
before(:each) do
|
42
|
+
sign_out :user
|
43
|
+
sign_in @user
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
def user_logout
|
48
|
+
before(:each) do
|
49
|
+
sign_out :user
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sunrise-cms
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2013-03-
|
13
|
+
date: 2013-03-28 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rails
|
@@ -389,6 +389,7 @@ extra_rdoc_files:
|
|
389
389
|
- CHANGELOG.rdoc
|
390
390
|
files:
|
391
391
|
- app/views/layouts/sunrise/application.html.erb
|
392
|
+
- app/views/layouts/sunrise/devise.html.erb
|
392
393
|
- app/views/sunrise/dashboard/_header.html.erb
|
393
394
|
- app/views/sunrise/dashboard/index.html.erb
|
394
395
|
- app/views/sunrise/dashboard/_activity.html.erb
|
@@ -417,11 +418,13 @@ files:
|
|
417
418
|
- app/views/sunrise/manager/tree/index.html.erb
|
418
419
|
- app/views/sunrise/manager/_field.html.erb
|
419
420
|
- app/views/sunrise/manager/new.html.erb
|
421
|
+
- app/views/sunrise/manager/_controls.html.erb
|
420
422
|
- app/views/sunrise/manager/buttons/_export.html.erb
|
421
423
|
- app/views/sunrise/manager/buttons/_new.html.erb
|
422
424
|
- app/views/sunrise/manager/buttons/_sort.html.erb
|
423
425
|
- app/views/sunrise/manager/buttons/_delete.html.erb
|
424
426
|
- app/views/sunrise/manager/buttons/_edit.html.erb
|
427
|
+
- app/views/sunrise/manager/_header_show.html.erb
|
425
428
|
- app/views/sunrise/manager/edit.html.erb
|
426
429
|
- app/views/sunrise/manager/thumbs/_record.html.erb
|
427
430
|
- app/views/sunrise/manager/thumbs/index.html.erb
|
@@ -437,6 +440,8 @@ files:
|
|
437
440
|
- app/assets/stylesheets/sunrise/application.css
|
438
441
|
- app/assets/stylesheets/sunrise/main.css
|
439
442
|
- app/assets/stylesheets/sunrise/customize.css
|
443
|
+
- app/assets/stylesheets/devise/application.css
|
444
|
+
- app/assets/stylesheets/devise/style.css
|
440
445
|
- app/assets/javascripts/sunrise/jquery.pagination.js.coffee
|
441
446
|
- app/assets/javascripts/sunrise/jquery.lang-tabs.js.coffee
|
442
447
|
- app/assets/javascripts/sunrise/application.js
|
@@ -662,6 +667,40 @@ files:
|
|
662
667
|
- Rakefile
|
663
668
|
- README.md
|
664
669
|
- CHANGELOG.rdoc
|
670
|
+
- spec/tmp/spec/support/helpers/controller_macros.rb
|
671
|
+
- spec/tmp/spec/spec_helper.rb
|
672
|
+
- spec/tmp/spec/factories/structure_factory.rb
|
673
|
+
- spec/tmp/spec/factories/user_factory.rb
|
674
|
+
- spec/tmp/spec/controllers/pages_controller_spec.rb
|
675
|
+
- spec/tmp/spec/controllers/welcome_controller_spec.rb
|
676
|
+
- spec/tmp/app/views/layouts/application.html.erb
|
677
|
+
- spec/tmp/app/views/pages/show.html.erb
|
678
|
+
- spec/tmp/app/views/shared/_notice.html.erb
|
679
|
+
- spec/tmp/app/models/defaults/role_type.rb
|
680
|
+
- spec/tmp/app/models/defaults/avatar.rb
|
681
|
+
- spec/tmp/app/models/defaults/asset.rb
|
682
|
+
- spec/tmp/app/models/defaults/settings.rb
|
683
|
+
- spec/tmp/app/models/defaults/position_type.rb
|
684
|
+
- spec/tmp/app/models/defaults/picture.rb
|
685
|
+
- spec/tmp/app/models/defaults/structure.rb
|
686
|
+
- spec/tmp/app/models/defaults/attachment_file.rb
|
687
|
+
- spec/tmp/app/models/defaults/ability.rb
|
688
|
+
- spec/tmp/app/models/defaults/structure_type.rb
|
689
|
+
- spec/tmp/app/models/defaults/user.rb
|
690
|
+
- spec/tmp/app/models/sunrise/sunrise_user.rb
|
691
|
+
- spec/tmp/app/models/sunrise/sunrise_page.rb
|
692
|
+
- spec/tmp/app/models/sunrise/sunrise_navigation.rb
|
693
|
+
- spec/tmp/app/models/sunrise/sunrise_structure.rb
|
694
|
+
- spec/tmp/app/uploaders/attachment_file_uploader.rb
|
695
|
+
- spec/tmp/app/uploaders/picture_uploader.rb
|
696
|
+
- spec/tmp/app/uploaders/avatar_uploader.rb
|
697
|
+
- spec/tmp/config/routes.rb
|
698
|
+
- spec/tmp/config/application.rb
|
699
|
+
- spec/tmp/config/database.yml.sample
|
700
|
+
- spec/tmp/config/nginx-config.sample
|
701
|
+
- spec/tmp/config/logrotate-config.sample
|
702
|
+
- spec/tmp/config/initializers/sunrise.rb
|
703
|
+
- spec/tmp/db/seeds.rb
|
665
704
|
- spec/support/hooks/structure.rb
|
666
705
|
- spec/support/helpers/controller_macros.rb
|
667
706
|
- spec/support/helpers/controller_helper.rb
|
@@ -687,20 +726,57 @@ files:
|
|
687
726
|
- spec/dummy/tmp/cache/assets/DDE/270/sprockets%2F0dd428ae1aed245ab1c713f6f0aabb06
|
688
727
|
- spec/dummy/tmp/cache/assets/D21/5D0/sprockets%2Fe2c4f946939f2d7d0b42d86383755cae
|
689
728
|
- spec/dummy/Rakefile
|
729
|
+
- spec/dummy/public/uploads/tmp/20130328-1817-13734-3744/rails.png
|
690
730
|
- spec/dummy/public/uploads/tmp/20130307-1257-8980-1852/silicon_valley.jpg
|
691
731
|
- spec/dummy/public/uploads/tmp/20130307-1257-8980-1852/thumb_silicon_valley.jpg
|
692
732
|
- spec/dummy/public/uploads/tmp/20130307-1257-8980-1852/small_silicon_valley.jpg
|
733
|
+
- spec/dummy/public/uploads/tmp/20130328-1652-10572-2067/rails.png
|
734
|
+
- spec/dummy/public/uploads/tmp/20130328-1652-10572-3421/small_rails.png
|
735
|
+
- spec/dummy/public/uploads/tmp/20130328-1652-10572-3421/rails.png
|
736
|
+
- spec/dummy/public/uploads/tmp/20130328-1652-10572-3421/thumb_rails.png
|
693
737
|
- spec/dummy/public/uploads/tmp/20130307-1257-8980-2984/small_rails.png
|
694
738
|
- spec/dummy/public/uploads/tmp/20130307-1257-8980-2984/rails.png
|
695
739
|
- spec/dummy/public/uploads/tmp/20130307-1257-8980-2984/thumb_rails.png
|
740
|
+
- spec/dummy/public/uploads/tmp/20130328-1652-10572-9023/rails.png
|
741
|
+
- spec/dummy/public/uploads/tmp/20130328-1652-10572-7745/rails.png
|
696
742
|
- spec/dummy/public/uploads/tmp/20130307-1257-8980-4258/small_rails.png
|
697
743
|
- spec/dummy/public/uploads/tmp/20130307-1257-8980-4258/rails.png
|
698
744
|
- spec/dummy/public/uploads/tmp/20130307-1257-8980-4258/thumb_rails.png
|
745
|
+
- spec/dummy/public/uploads/tmp/20130328-1652-10572-4629/rails.png
|
746
|
+
- spec/dummy/public/uploads/tmp/20130328-1817-13734-7855/small_rails.png
|
747
|
+
- spec/dummy/public/uploads/tmp/20130328-1817-13734-7855/rails.png
|
748
|
+
- spec/dummy/public/uploads/tmp/20130328-1817-13734-7855/thumb_rails.png
|
749
|
+
- spec/dummy/public/uploads/tmp/20130328-1817-13734-6109/small_rails.png
|
750
|
+
- spec/dummy/public/uploads/tmp/20130328-1817-13734-6109/rails.png
|
751
|
+
- spec/dummy/public/uploads/tmp/20130328-1817-13734-6109/thumb_rails.png
|
752
|
+
- spec/dummy/public/uploads/tmp/20130328-1817-13734-7542/small_rails.png
|
753
|
+
- spec/dummy/public/uploads/tmp/20130328-1817-13734-7542/rails.png
|
754
|
+
- spec/dummy/public/uploads/tmp/20130328-1817-13734-7542/thumb_rails.png
|
755
|
+
- spec/dummy/public/uploads/tmp/20130328-1652-10572-9287/small_rails.png
|
756
|
+
- spec/dummy/public/uploads/tmp/20130328-1652-10572-9287/rails.png
|
757
|
+
- spec/dummy/public/uploads/tmp/20130328-1652-10572-9287/thumb_rails.png
|
758
|
+
- spec/dummy/public/uploads/tmp/20130328-1652-10572-9992/rails.png
|
759
|
+
- spec/dummy/public/uploads/tmp/20130328-1817-13734-0280/rails.png
|
760
|
+
- spec/dummy/public/uploads/tmp/20130328-1817-13734-0058/silicon_valley.jpg
|
761
|
+
- spec/dummy/public/uploads/tmp/20130328-1817-13734-0058/thumb_silicon_valley.jpg
|
762
|
+
- spec/dummy/public/uploads/tmp/20130328-1817-13734-0058/small_silicon_valley.jpg
|
699
763
|
- spec/dummy/public/uploads/tmp/20130307-1257-8980-0875/small_rails.png
|
700
764
|
- spec/dummy/public/uploads/tmp/20130307-1257-8980-0875/rails.png
|
701
765
|
- spec/dummy/public/uploads/tmp/20130307-1257-8980-0875/thumb_rails.png
|
766
|
+
- spec/dummy/public/uploads/tmp/20130328-1652-10572-0194/silicon_valley.jpg
|
767
|
+
- spec/dummy/public/uploads/tmp/20130328-1652-10572-0194/thumb_silicon_valley.jpg
|
768
|
+
- spec/dummy/public/uploads/tmp/20130328-1652-10572-0194/small_silicon_valley.jpg
|
769
|
+
- spec/dummy/public/uploads/tmp/20130328-1817-13734-7559/rails.png
|
770
|
+
- spec/dummy/public/uploads/tmp/20130328-1817-13734-0319/rails.png
|
702
771
|
- spec/dummy/public/uploads/tmp/20130307-1257-8980-8785/rails.png
|
772
|
+
- spec/dummy/public/uploads/tmp/20130328-1817-13734-1339/rails.png
|
703
773
|
- spec/dummy/public/uploads/tmp/20130307-1257-8980-1524/rails.png
|
774
|
+
- spec/dummy/public/uploads/tmp/20130328-1652-10572-8054/small_rails.png
|
775
|
+
- spec/dummy/public/uploads/tmp/20130328-1652-10572-8054/rails.png
|
776
|
+
- spec/dummy/public/uploads/tmp/20130328-1652-10572-8054/thumb_rails.png
|
777
|
+
- spec/dummy/public/uploads/avatar/content_rails.png
|
778
|
+
- spec/dummy/public/uploads/avatar/rails.png
|
779
|
+
- spec/dummy/public/uploads/avatar/thumb_rails.png
|
704
780
|
- spec/dummy/public/500.html
|
705
781
|
- spec/dummy/public/favicon.ico
|
706
782
|
- spec/dummy/public/404.html
|
@@ -809,11 +885,45 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
809
885
|
version: '0'
|
810
886
|
requirements: []
|
811
887
|
rubyforge_project: sunrise-cms
|
812
|
-
rubygems_version: 1.8.
|
888
|
+
rubygems_version: 1.8.25
|
813
889
|
signing_key:
|
814
890
|
specification_version: 3
|
815
891
|
summary: Rails CMS
|
816
892
|
test_files:
|
893
|
+
- spec/tmp/spec/support/helpers/controller_macros.rb
|
894
|
+
- spec/tmp/spec/spec_helper.rb
|
895
|
+
- spec/tmp/spec/factories/structure_factory.rb
|
896
|
+
- spec/tmp/spec/factories/user_factory.rb
|
897
|
+
- spec/tmp/spec/controllers/pages_controller_spec.rb
|
898
|
+
- spec/tmp/spec/controllers/welcome_controller_spec.rb
|
899
|
+
- spec/tmp/app/views/layouts/application.html.erb
|
900
|
+
- spec/tmp/app/views/pages/show.html.erb
|
901
|
+
- spec/tmp/app/views/shared/_notice.html.erb
|
902
|
+
- spec/tmp/app/models/defaults/role_type.rb
|
903
|
+
- spec/tmp/app/models/defaults/avatar.rb
|
904
|
+
- spec/tmp/app/models/defaults/asset.rb
|
905
|
+
- spec/tmp/app/models/defaults/settings.rb
|
906
|
+
- spec/tmp/app/models/defaults/position_type.rb
|
907
|
+
- spec/tmp/app/models/defaults/picture.rb
|
908
|
+
- spec/tmp/app/models/defaults/structure.rb
|
909
|
+
- spec/tmp/app/models/defaults/attachment_file.rb
|
910
|
+
- spec/tmp/app/models/defaults/ability.rb
|
911
|
+
- spec/tmp/app/models/defaults/structure_type.rb
|
912
|
+
- spec/tmp/app/models/defaults/user.rb
|
913
|
+
- spec/tmp/app/models/sunrise/sunrise_user.rb
|
914
|
+
- spec/tmp/app/models/sunrise/sunrise_page.rb
|
915
|
+
- spec/tmp/app/models/sunrise/sunrise_navigation.rb
|
916
|
+
- spec/tmp/app/models/sunrise/sunrise_structure.rb
|
917
|
+
- spec/tmp/app/uploaders/attachment_file_uploader.rb
|
918
|
+
- spec/tmp/app/uploaders/picture_uploader.rb
|
919
|
+
- spec/tmp/app/uploaders/avatar_uploader.rb
|
920
|
+
- spec/tmp/config/routes.rb
|
921
|
+
- spec/tmp/config/application.rb
|
922
|
+
- spec/tmp/config/database.yml.sample
|
923
|
+
- spec/tmp/config/nginx-config.sample
|
924
|
+
- spec/tmp/config/logrotate-config.sample
|
925
|
+
- spec/tmp/config/initializers/sunrise.rb
|
926
|
+
- spec/tmp/db/seeds.rb
|
817
927
|
- spec/support/hooks/structure.rb
|
818
928
|
- spec/support/helpers/controller_macros.rb
|
819
929
|
- spec/support/helpers/controller_helper.rb
|
@@ -839,20 +949,57 @@ test_files:
|
|
839
949
|
- spec/dummy/tmp/cache/assets/DDE/270/sprockets%2F0dd428ae1aed245ab1c713f6f0aabb06
|
840
950
|
- spec/dummy/tmp/cache/assets/D21/5D0/sprockets%2Fe2c4f946939f2d7d0b42d86383755cae
|
841
951
|
- spec/dummy/Rakefile
|
952
|
+
- spec/dummy/public/uploads/tmp/20130328-1817-13734-3744/rails.png
|
842
953
|
- spec/dummy/public/uploads/tmp/20130307-1257-8980-1852/silicon_valley.jpg
|
843
954
|
- spec/dummy/public/uploads/tmp/20130307-1257-8980-1852/thumb_silicon_valley.jpg
|
844
955
|
- spec/dummy/public/uploads/tmp/20130307-1257-8980-1852/small_silicon_valley.jpg
|
956
|
+
- spec/dummy/public/uploads/tmp/20130328-1652-10572-2067/rails.png
|
957
|
+
- spec/dummy/public/uploads/tmp/20130328-1652-10572-3421/small_rails.png
|
958
|
+
- spec/dummy/public/uploads/tmp/20130328-1652-10572-3421/rails.png
|
959
|
+
- spec/dummy/public/uploads/tmp/20130328-1652-10572-3421/thumb_rails.png
|
845
960
|
- spec/dummy/public/uploads/tmp/20130307-1257-8980-2984/small_rails.png
|
846
961
|
- spec/dummy/public/uploads/tmp/20130307-1257-8980-2984/rails.png
|
847
962
|
- spec/dummy/public/uploads/tmp/20130307-1257-8980-2984/thumb_rails.png
|
963
|
+
- spec/dummy/public/uploads/tmp/20130328-1652-10572-9023/rails.png
|
964
|
+
- spec/dummy/public/uploads/tmp/20130328-1652-10572-7745/rails.png
|
848
965
|
- spec/dummy/public/uploads/tmp/20130307-1257-8980-4258/small_rails.png
|
849
966
|
- spec/dummy/public/uploads/tmp/20130307-1257-8980-4258/rails.png
|
850
967
|
- spec/dummy/public/uploads/tmp/20130307-1257-8980-4258/thumb_rails.png
|
968
|
+
- spec/dummy/public/uploads/tmp/20130328-1652-10572-4629/rails.png
|
969
|
+
- spec/dummy/public/uploads/tmp/20130328-1817-13734-7855/small_rails.png
|
970
|
+
- spec/dummy/public/uploads/tmp/20130328-1817-13734-7855/rails.png
|
971
|
+
- spec/dummy/public/uploads/tmp/20130328-1817-13734-7855/thumb_rails.png
|
972
|
+
- spec/dummy/public/uploads/tmp/20130328-1817-13734-6109/small_rails.png
|
973
|
+
- spec/dummy/public/uploads/tmp/20130328-1817-13734-6109/rails.png
|
974
|
+
- spec/dummy/public/uploads/tmp/20130328-1817-13734-6109/thumb_rails.png
|
975
|
+
- spec/dummy/public/uploads/tmp/20130328-1817-13734-7542/small_rails.png
|
976
|
+
- spec/dummy/public/uploads/tmp/20130328-1817-13734-7542/rails.png
|
977
|
+
- spec/dummy/public/uploads/tmp/20130328-1817-13734-7542/thumb_rails.png
|
978
|
+
- spec/dummy/public/uploads/tmp/20130328-1652-10572-9287/small_rails.png
|
979
|
+
- spec/dummy/public/uploads/tmp/20130328-1652-10572-9287/rails.png
|
980
|
+
- spec/dummy/public/uploads/tmp/20130328-1652-10572-9287/thumb_rails.png
|
981
|
+
- spec/dummy/public/uploads/tmp/20130328-1652-10572-9992/rails.png
|
982
|
+
- spec/dummy/public/uploads/tmp/20130328-1817-13734-0280/rails.png
|
983
|
+
- spec/dummy/public/uploads/tmp/20130328-1817-13734-0058/silicon_valley.jpg
|
984
|
+
- spec/dummy/public/uploads/tmp/20130328-1817-13734-0058/thumb_silicon_valley.jpg
|
985
|
+
- spec/dummy/public/uploads/tmp/20130328-1817-13734-0058/small_silicon_valley.jpg
|
851
986
|
- spec/dummy/public/uploads/tmp/20130307-1257-8980-0875/small_rails.png
|
852
987
|
- spec/dummy/public/uploads/tmp/20130307-1257-8980-0875/rails.png
|
853
988
|
- spec/dummy/public/uploads/tmp/20130307-1257-8980-0875/thumb_rails.png
|
989
|
+
- spec/dummy/public/uploads/tmp/20130328-1652-10572-0194/silicon_valley.jpg
|
990
|
+
- spec/dummy/public/uploads/tmp/20130328-1652-10572-0194/thumb_silicon_valley.jpg
|
991
|
+
- spec/dummy/public/uploads/tmp/20130328-1652-10572-0194/small_silicon_valley.jpg
|
992
|
+
- spec/dummy/public/uploads/tmp/20130328-1817-13734-7559/rails.png
|
993
|
+
- spec/dummy/public/uploads/tmp/20130328-1817-13734-0319/rails.png
|
854
994
|
- spec/dummy/public/uploads/tmp/20130307-1257-8980-8785/rails.png
|
995
|
+
- spec/dummy/public/uploads/tmp/20130328-1817-13734-1339/rails.png
|
855
996
|
- spec/dummy/public/uploads/tmp/20130307-1257-8980-1524/rails.png
|
997
|
+
- spec/dummy/public/uploads/tmp/20130328-1652-10572-8054/small_rails.png
|
998
|
+
- spec/dummy/public/uploads/tmp/20130328-1652-10572-8054/rails.png
|
999
|
+
- spec/dummy/public/uploads/tmp/20130328-1652-10572-8054/thumb_rails.png
|
1000
|
+
- spec/dummy/public/uploads/avatar/content_rails.png
|
1001
|
+
- spec/dummy/public/uploads/avatar/rails.png
|
1002
|
+
- spec/dummy/public/uploads/avatar/thumb_rails.png
|
856
1003
|
- spec/dummy/public/500.html
|
857
1004
|
- spec/dummy/public/favicon.ico
|
858
1005
|
- spec/dummy/public/404.html
|
@@ -941,4 +1088,3 @@ test_files:
|
|
941
1088
|
- spec/controllers/sunrise/shared_controller_spec.rb
|
942
1089
|
- spec/controllers/sunrise/settings_controller_spec.rb
|
943
1090
|
- spec/controllers/sunrise/manager_controller_spec.rb
|
944
|
-
has_rdoc:
|