radiant 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of radiant might be problematic. Click here for more details.
- data/CHANGELOG +1 -0
- data/CONTRIBUTORS +12 -0
- data/LICENSE +9 -0
- data/README +91 -0
- data/Rakefile +10 -0
- data/app/behaviors/archive_behavior.rb +42 -0
- data/app/behaviors/archive_day_index_behavior.rb +30 -0
- data/app/behaviors/archive_month_index_behavior.rb +30 -0
- data/app/behaviors/archive_year_index_behavior.rb +30 -0
- data/app/behaviors/env_behavior.rb +18 -0
- data/app/behaviors/page_missing_behavior.rb +31 -0
- data/app/controllers/admin/export_controller.rb +8 -0
- data/app/controllers/admin/layout_controller.rb +23 -0
- data/app/controllers/admin/model_controller.rb +119 -0
- data/app/controllers/admin/page_controller.rb +119 -0
- data/app/controllers/admin/snippet_controller.rb +6 -0
- data/app/controllers/admin/user_controller.rb +45 -0
- data/app/controllers/admin/welcome_controller.rb +39 -0
- data/app/controllers/application.rb +32 -0
- data/app/controllers/site_controller.rb +54 -0
- data/app/filters/markdown_filter.rb +9 -0
- data/app/filters/textile_filter.rb +9 -0
- data/app/helpers/admin/export_helper.rb +2 -0
- data/app/helpers/admin/layout_helper.rb +2 -0
- data/app/helpers/admin/page_helper.rb +10 -0
- data/app/helpers/admin/snippet_helper.rb +2 -0
- data/app/helpers/admin/user_helper.rb +2 -0
- data/app/helpers/admin/welcome_helper.rb +2 -0
- data/app/helpers/application_helper.rb +141 -0
- data/app/helpers/site_helper.rb +2 -0
- data/app/models/archive_finder.rb +66 -0
- data/app/models/behavior.rb +194 -0
- data/app/models/layout.rb +13 -0
- data/app/models/page.rb +91 -0
- data/app/models/page_context.rb +526 -0
- data/app/models/page_part.rb +13 -0
- data/app/models/radiant/config.rb +53 -0
- data/app/models/radiant/exporter.rb +11 -0
- data/app/models/response_cache.rb +112 -0
- data/app/models/snippet.rb +16 -0
- data/app/models/status.rb +31 -0
- data/app/models/text_filter.rb +11 -0
- data/app/models/user.rb +70 -0
- data/app/models/user_action_observer.rb +13 -0
- data/app/views/admin/layout/index.rhtml +38 -0
- data/app/views/admin/layout/new.rhtml +37 -0
- data/app/views/admin/layout/remove.rhtml +17 -0
- data/app/views/admin/page/_node.rhtml +51 -0
- data/app/views/admin/page/_part.rhtml +17 -0
- data/app/views/admin/page/children.rhtml +4 -0
- data/app/views/admin/page/index.rhtml +172 -0
- data/app/views/admin/page/new.rhtml +164 -0
- data/app/views/admin/page/remove.rhtml +14 -0
- data/app/views/admin/snippet/index.rhtml +36 -0
- data/app/views/admin/snippet/new.rhtml +28 -0
- data/app/views/admin/snippet/remove.rhtml +16 -0
- data/app/views/admin/user/index.rhtml +43 -0
- data/app/views/admin/user/new.rhtml +48 -0
- data/app/views/admin/user/preferences.rhtml +29 -0
- data/app/views/admin/user/remove.rhtml +16 -0
- data/app/views/admin/welcome/login.rhtml +51 -0
- data/app/views/layouts/application.rhtml +75 -0
- data/app/views/site/not_found.rhtml +3 -0
- data/bin/radiant +305 -0
- data/config/boot.rb +80 -0
- data/config/database.mysql.yml +20 -0
- data/config/database.postgresql.yml +20 -0
- data/config/database.sqlite.yml +20 -0
- data/config/environment.rb +76 -0
- data/config/environments/development.rb +20 -0
- data/config/environments/production.rb +22 -0
- data/config/environments/test.rb +20 -0
- data/config/locomotive.yml +6 -0
- data/config/routes.rb +64 -0
- data/db/development_structure.sql +80 -0
- data/db/migrate/001_create_radiant_tables.rb +73 -0
- data/db/migrate/002_insert_initial_data.rb +45 -0
- data/db/migrate/003_rename_behavior_column.rb +9 -0
- data/db/migrate/004_rename_filter_column.rb +11 -0
- data/db/migrate/005_add_virtual_column_to_page.rb +9 -0
- data/db/migrate/006_integer_columns_to_boolean.rb +11 -0
- data/db/migrate/007_remove_virtual_column_from_page.rb +9 -0
- data/db/migrate/008_add_virtual_column_to_page_again.rb +9 -0
- data/db/migrate/009_add_content_type_field_to_layout.rb +9 -0
- data/db/schema.rb +74 -0
- data/db/templates/empty.yml +2 -0
- data/db/templates/simple-blog.yml +197 -0
- data/db/templates/styled-blog.yml +472 -0
- data/lib/advanced_delegation.rb +21 -0
- data/lib/archive_index_behavior_tags_and_methods.rb +48 -0
- data/lib/generators/behavior/USAGE +16 -0
- data/lib/generators/behavior/behavior_generator.rb +22 -0
- data/lib/generators/behavior/templates/model.rb.template +9 -0
- data/lib/generators/behavior/templates/unit_test.rb.template +16 -0
- data/lib/generators/filter/USAGE +16 -0
- data/lib/generators/filter/filter_generator.rb +22 -0
- data/lib/generators/filter/templates/model.rb.template +8 -0
- data/lib/generators/filter/templates/unit_test.rb.template +7 -0
- data/lib/inheritable_class_attributes.rb +65 -0
- data/lib/login_system.rb +80 -0
- data/lib/plugins/index_quoting_fix/init.rb +32 -0
- data/lib/plugins/string_io/init.rb +2 -0
- data/lib/radiant.rb +5 -0
- data/lib/registerable.rb +70 -0
- data/lib/tasks/release.rake +84 -0
- data/public/404.html +8 -0
- data/public/500.html +8 -0
- data/public/dispatch.cgi +10 -0
- data/public/dispatch.fcgi +24 -0
- data/public/dispatch.rb +10 -0
- data/public/favicon.ico +0 -0
- data/public/images/add-child.png +0 -0
- data/public/images/brown-bottom-line.gif +0 -0
- data/public/images/clear-page-cache.png +0 -0
- data/public/images/collapse.png +0 -0
- data/public/images/expand.png +0 -0
- data/public/images/minus.png +0 -0
- data/public/images/new-homepage.png +0 -0
- data/public/images/new-layout.png +0 -0
- data/public/images/new-snippet.png +0 -0
- data/public/images/new-user.png +0 -0
- data/public/images/page.png +0 -0
- data/public/images/plus.png +0 -0
- data/public/images/remove-disabled.png +0 -0
- data/public/images/remove.png +0 -0
- data/public/images/snippet.png +0 -0
- data/public/images/spinner.gif +0 -0
- data/public/images/view-site.gif +0 -0
- data/public/images/virtual-page.png +0 -0
- data/public/javascripts/application.js +2 -0
- data/public/javascripts/controls.js +815 -0
- data/public/javascripts/dragdrop.js +913 -0
- data/public/javascripts/effects.js +958 -0
- data/public/javascripts/pngfix.js +78 -0
- data/public/javascripts/prototype.js +2006 -0
- data/public/javascripts/ruledtable.js +28 -0
- data/public/javascripts/string.js +23 -0
- data/public/javascripts/tabcontrol.js +140 -0
- data/public/robots.txt +1 -0
- data/public/stylesheets/admin.css +464 -0
- data/script/about +3 -0
- data/script/breakpointer +3 -0
- data/script/console +3 -0
- data/script/destroy +3 -0
- data/script/generate +3 -0
- data/script/performance/benchmarker +3 -0
- data/script/performance/profiler +3 -0
- data/script/plugin +3 -0
- data/script/process/reaper +3 -0
- data/script/process/spawner +3 -0
- data/script/process/spinner +3 -0
- data/script/runner +3 -0
- data/script/server +3 -0
- data/script/setup_database +297 -0
- data/test/fixtures/layouts.yml +26 -0
- data/test/fixtures/page_parts.yml +99 -0
- data/test/fixtures/pages.yml +359 -0
- data/test/fixtures/pages.yml.rej +28 -0
- data/test/fixtures/snippets.yml +18 -0
- data/test/fixtures/users.yml +30 -0
- data/test/functional/admin/export_controller_test.rb +22 -0
- data/test/functional/admin/layout_controller_test.rb +40 -0
- data/test/functional/admin/model_controller_test.rb +152 -0
- data/test/functional/admin/page_controller_test.rb +179 -0
- data/test/functional/admin/snippet_controller_test.rb +11 -0
- data/test/functional/admin/user_controller_test.rb +71 -0
- data/test/functional/admin/welcome_controller_test.rb +48 -0
- data/test/functional/application_controller_test.rb +44 -0
- data/test/functional/login_system_test.rb +155 -0
- data/test/functional/site_controller_test.rb +172 -0
- data/test/helpers/archive_index_test_helper.rb +35 -0
- data/test/helpers/behavior_render_test_helper.rb +34 -0
- data/test/helpers/behavior_test_helper.rb +47 -0
- data/test/helpers/caching_test_helper.rb +41 -0
- data/test/helpers/layout_test_helper.rb +35 -0
- data/test/helpers/page_part_test_helper.rb +49 -0
- data/test/helpers/page_test_helper.rb +36 -0
- data/test/helpers/snippet_test_helper.rb +32 -0
- data/test/helpers/user_test_helper.rb +34 -0
- data/test/helpers/validation_test_helper.rb +42 -0
- data/test/test_helper.rb +54 -0
- data/test/unit/behavior_test.rb +196 -0
- data/test/unit/behaviors/archive_behavior_test.rb +33 -0
- data/test/unit/behaviors/archive_day_index_behavior_test.rb +21 -0
- data/test/unit/behaviors/archive_month_index_behavior_test.rb +21 -0
- data/test/unit/behaviors/archive_year_index_behavior_test.rb +21 -0
- data/test/unit/behaviors/page_missing_behavior_test.rb +27 -0
- data/test/unit/filters/markdown_filter_test.rb +14 -0
- data/test/unit/filters/textile_filter_test.rb +14 -0
- data/test/unit/inheritable_class_attributes_test.rb +47 -0
- data/test/unit/layout_test.rb +29 -0
- data/test/unit/page_context_test.rb +375 -0
- data/test/unit/page_context_test.rb.rej +26 -0
- data/test/unit/page_part_test.rb +44 -0
- data/test/unit/page_test.rb +224 -0
- data/test/unit/radiant/config_test.rb +46 -0
- data/test/unit/radiant/exporter_test.rb +26 -0
- data/test/unit/registerable_test.rb +68 -0
- data/test/unit/response_cache_test.rb +133 -0
- data/test/unit/snippet_test.rb +47 -0
- data/test/unit/status_test.rb +43 -0
- data/test/unit/text_filter_test.rb +14 -0
- data/test/unit/user_action_observer_test.rb +40 -0
- data/test/unit/user_test.rb +138 -0
- metadata +355 -0
@@ -0,0 +1,47 @@
|
|
1
|
+
require File.dirname(__FILE__) + '/../test_helper'
|
2
|
+
|
3
|
+
class SnippetTest < Test::Unit::TestCase
|
4
|
+
fixtures :snippets
|
5
|
+
test_helper :snippets, :validations
|
6
|
+
|
7
|
+
# Replace this with your real tests.
|
8
|
+
def test_truth
|
9
|
+
assert_kind_of Snippet, snippets(:first)
|
10
|
+
end
|
11
|
+
|
12
|
+
def setup
|
13
|
+
@snippet = @model = Snippet.new(VALID_SNIPPET_PARAMS)
|
14
|
+
end
|
15
|
+
|
16
|
+
def test_validates_length_of
|
17
|
+
{
|
18
|
+
:name => 100,
|
19
|
+
:filter_id => 25
|
20
|
+
}.each do |field, max|
|
21
|
+
assert_invalid field, ('%d-character limit' % max), 'x' * (max + 1)
|
22
|
+
assert_valid field, 'x' * max
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
def test_validates_presence_of
|
27
|
+
[:name].each do |field|
|
28
|
+
assert_invalid field, 'required', '', ' ', nil
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
def test_validates_uniqueness_of
|
33
|
+
assert_invalid :name, 'name already in use', 'first', 'another', 'markdown'
|
34
|
+
assert_valid :name, 'just-a-test'
|
35
|
+
end
|
36
|
+
|
37
|
+
def test_validates_format_of_name
|
38
|
+
assert_valid :name, 'abc', 'abcd-efg', 'abcd_efg', 'abc.html', '/', '123'
|
39
|
+
assert_invalid :name, 'cannot contain spaces or tabs'
|
40
|
+
end
|
41
|
+
|
42
|
+
def test_filter
|
43
|
+
@snippet = snippets(:markdown)
|
44
|
+
assert_kind_of MarkdownFilter, @snippet.filter
|
45
|
+
end
|
46
|
+
|
47
|
+
end
|
@@ -0,0 +1,43 @@
|
|
1
|
+
require File.dirname(__FILE__) + '/../test_helper'
|
2
|
+
|
3
|
+
class StatusTest < Test::Unit::TestCase
|
4
|
+
def test_initialize
|
5
|
+
status = Status.new(:id => 1, :name => 'Test')
|
6
|
+
assert_equal 1, status.id
|
7
|
+
assert_equal 'Test', status.name
|
8
|
+
assert_equal :test, status.symbol
|
9
|
+
end
|
10
|
+
|
11
|
+
# Class Methods
|
12
|
+
|
13
|
+
def test_find
|
14
|
+
status = Status.find(1)
|
15
|
+
assert_equal 1, status.id
|
16
|
+
end
|
17
|
+
def test_find__by_string
|
18
|
+
status = Status.find('1')
|
19
|
+
assert_equal 1, status.id
|
20
|
+
end
|
21
|
+
def test_find__nonexistant
|
22
|
+
status = Status.find(0)
|
23
|
+
assert_equal nil, status
|
24
|
+
end
|
25
|
+
|
26
|
+
def test_brackets
|
27
|
+
status = Status[:draft]
|
28
|
+
assert_equal 'Draft', status.name
|
29
|
+
end
|
30
|
+
|
31
|
+
def test_brackets__nonexistant
|
32
|
+
status = Status[:drafts]
|
33
|
+
assert_equal nil, status
|
34
|
+
end
|
35
|
+
|
36
|
+
def test_find_all
|
37
|
+
statuses = Status.find_all
|
38
|
+
assert statuses.size > 0
|
39
|
+
statuses.each do |status|
|
40
|
+
assert_kind_of Status, status
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
require File.dirname(__FILE__) + '/../test_helper'
|
2
|
+
|
3
|
+
class TextFilterTest < Test::Unit::TestCase
|
4
|
+
|
5
|
+
def test_base_filter
|
6
|
+
filter = TextFilter::Base.new
|
7
|
+
assert_equal 'test', filter.filter('test')
|
8
|
+
end
|
9
|
+
|
10
|
+
def test_registerable
|
11
|
+
assert TextFilter::Base.respond_to?(:register)
|
12
|
+
end
|
13
|
+
|
14
|
+
end
|
@@ -0,0 +1,40 @@
|
|
1
|
+
require File.dirname(__FILE__) + '/../test_helper'
|
2
|
+
|
3
|
+
class UserActionObserverTest < Test::Unit::TestCase
|
4
|
+
fixtures :users, :pages, :layouts, :snippets
|
5
|
+
test_helper :users, :pages, :layouts, :snippets
|
6
|
+
|
7
|
+
def setup
|
8
|
+
@user = users(:existing)
|
9
|
+
UserActionObserver.current_user = @user
|
10
|
+
@page_title = 'User Action Test Page'
|
11
|
+
destroy_test_user
|
12
|
+
destroy_test_page
|
13
|
+
destroy_test_layout
|
14
|
+
destroy_test_snippet
|
15
|
+
end
|
16
|
+
|
17
|
+
def test_create
|
18
|
+
[
|
19
|
+
create_test_user,
|
20
|
+
create_test_page,
|
21
|
+
create_test_layout,
|
22
|
+
create_test_snippet
|
23
|
+
].each do |model|
|
24
|
+
assert_equal @user, model.created_by
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
def test_update
|
29
|
+
[
|
30
|
+
users(:existing),
|
31
|
+
pages(:homepage),
|
32
|
+
layouts(:main),
|
33
|
+
snippets(:first)
|
34
|
+
].each do |model|
|
35
|
+
model.attributes = model.attributes.dup
|
36
|
+
assert model.save, "Errors: #{model.errors.inspect}, Model: #{model.class.name}"
|
37
|
+
assert_equal @user, model.updated_by, "Model: #{model.class.name}"
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
@@ -0,0 +1,138 @@
|
|
1
|
+
require File.dirname(__FILE__) + '/../test_helper'
|
2
|
+
|
3
|
+
class UserTest < Test::Unit::TestCase
|
4
|
+
|
5
|
+
fixtures :users
|
6
|
+
test_helper :users
|
7
|
+
test_helper :validations
|
8
|
+
|
9
|
+
def setup
|
10
|
+
@model = @user = User.new(VALID_USER_PARAMS)
|
11
|
+
@user.confirm_password = false
|
12
|
+
end
|
13
|
+
|
14
|
+
def teardown
|
15
|
+
@user.destroy unless @user.new_record?
|
16
|
+
end
|
17
|
+
|
18
|
+
def test_after_initialize
|
19
|
+
@user = User.new
|
20
|
+
assert_equal true, @user.confirm_password?
|
21
|
+
end
|
22
|
+
|
23
|
+
def test_confirm_password
|
24
|
+
assert_equal false, @user.confirm_password?
|
25
|
+
end
|
26
|
+
|
27
|
+
def test_validates_length_of
|
28
|
+
assert_invalid :name, '100-character limit', 'x' * 101
|
29
|
+
assert_valid :name, 'x' * 100
|
30
|
+
|
31
|
+
assert_invalid :email, '255-character limit', ('x' * 247) + '@test.com'
|
32
|
+
assert_valid :email, ('x' * 246) + '@test.com'
|
33
|
+
end
|
34
|
+
|
35
|
+
def test_validates_length_of__ranges
|
36
|
+
{
|
37
|
+
:login => 3..40,
|
38
|
+
:password => 5..40
|
39
|
+
}.each do |field, range|
|
40
|
+
max = 'x' * range.max
|
41
|
+
min = 'x' * range.min
|
42
|
+
one_over = 'x' + max
|
43
|
+
one_under = min[1..-1]
|
44
|
+
assert_invalid field, ('%d-character limit' % range.max), one_over
|
45
|
+
assert_invalid field, ('%d-character minimum' % range.min), one_under
|
46
|
+
assert_valid field, max, min
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
50
|
+
def test_validates_length_of__ranges__on_existing
|
51
|
+
assert @user.save
|
52
|
+
{
|
53
|
+
:password => 5..40
|
54
|
+
}.each do |field, range|
|
55
|
+
max = 'x' * range.max
|
56
|
+
min = 'x' * range.min
|
57
|
+
one_over = 'x' + max
|
58
|
+
one_under = min[1..-1]
|
59
|
+
assert_invalid field, ('%d-character limit' % range.max), one_over
|
60
|
+
assert_invalid field, ('%d-character minimum' % range.min), one_under
|
61
|
+
assert_valid field, max, min
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
65
|
+
def test_validates_presence_of
|
66
|
+
[:name, :login, :password, :password_confirmation].each do |field|
|
67
|
+
assert_invalid field, 'required', '', ' ', nil
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
71
|
+
def test_validates_numericality_of
|
72
|
+
[:id].each do |field|
|
73
|
+
assert_valid field, '1', '0'
|
74
|
+
assert_invalid field, 'must be a number', 'abcd', '1,2', '1.3'
|
75
|
+
end
|
76
|
+
end
|
77
|
+
|
78
|
+
def test_validates_confirmation_of
|
79
|
+
@user.confirm_password = true
|
80
|
+
assert_invalid :password, 'must match confirmation', 'test'
|
81
|
+
end
|
82
|
+
|
83
|
+
def test_validates_uniqueness_of
|
84
|
+
assert_invalid :login, 'login already in use', 'existing'
|
85
|
+
end
|
86
|
+
|
87
|
+
def test_validates_format_of
|
88
|
+
assert_invalid :email, 'invalid e-mail address', '@test.com', 'test@', 'testtest.com',
|
89
|
+
'test@test', 'test me@test.com', 'test@me.c'
|
90
|
+
assert_valid :email, '', 'test@test.com'
|
91
|
+
end
|
92
|
+
|
93
|
+
def test_save__password_encrypted
|
94
|
+
@user.confirm_password = true
|
95
|
+
@user.password_confirmation = @user.password = 'test_password'
|
96
|
+
assert @user.save, "Errors: #{@user.errors.inspect}"
|
97
|
+
assert_equal User.sha1('test_password'), @user.password
|
98
|
+
end
|
99
|
+
|
100
|
+
def test_save__existing_but_empty_password
|
101
|
+
assert @user.save
|
102
|
+
@user.password_confirmation = @user.password = ''
|
103
|
+
assert @user.save, "Errors: #{@user.errors.inspect}"
|
104
|
+
assert_equal User.sha1('coolness'), @user.password
|
105
|
+
end
|
106
|
+
|
107
|
+
def test_save__existing_but_different_password
|
108
|
+
assert @user.save
|
109
|
+
@user.password_confirmation = @user.password = 'cool beans'
|
110
|
+
assert @user.save, "Errors: #{@user.errors.inspect}"
|
111
|
+
assert_equal User.sha1('cool beans'), @user.password
|
112
|
+
end
|
113
|
+
|
114
|
+
def test_save__existing_but_same_password
|
115
|
+
assert @user.save && @user.save
|
116
|
+
assert_equal User.sha1('coolness'), @user.password
|
117
|
+
end
|
118
|
+
|
119
|
+
# Class Methods
|
120
|
+
|
121
|
+
def test_authenticate
|
122
|
+
expected = users(:existing)
|
123
|
+
user = User.authenticate('existing', 'password')
|
124
|
+
assert_equal expected, user
|
125
|
+
end
|
126
|
+
|
127
|
+
def test_authenticate__bad_password
|
128
|
+
assert_nil User.authenticate('existing', 'bad password')
|
129
|
+
end
|
130
|
+
|
131
|
+
def test_authenticate__bad_user
|
132
|
+
assert_nil User.authenticate('nonexisting', 'password')
|
133
|
+
end
|
134
|
+
|
135
|
+
def test_sha1
|
136
|
+
assert_equal 'a304e6063c3cdc261ae04bf1f938d7d9d579fee5', User.sha1('test')
|
137
|
+
end
|
138
|
+
end
|
metadata
ADDED
@@ -0,0 +1,355 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
rubygems_version: 0.8.11
|
3
|
+
specification_version: 1
|
4
|
+
name: radiant
|
5
|
+
version: !ruby/object:Gem::Version
|
6
|
+
version: 0.5.0
|
7
|
+
date: 2006-06-28 00:00:00 -05:00
|
8
|
+
summary: A no-fluff content management system designed for small teams.
|
9
|
+
require_paths:
|
10
|
+
- lib
|
11
|
+
email:
|
12
|
+
homepage: http://radiantcms.org
|
13
|
+
rubyforge_project: radiant
|
14
|
+
description: Radiant is a simple and powerful publishing system for small teams. It is built with Rails and is similar to Textpattern or MovableType, general purpose content managment system--not merely a blogging engine.
|
15
|
+
autorequire: radiant
|
16
|
+
default_executable:
|
17
|
+
bindir: bin
|
18
|
+
has_rdoc: true
|
19
|
+
required_ruby_version: !ruby/object:Gem::Version::Requirement
|
20
|
+
requirements:
|
21
|
+
- - ">"
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: 0.0.0
|
24
|
+
version:
|
25
|
+
platform: ruby
|
26
|
+
signing_key:
|
27
|
+
cert_chain:
|
28
|
+
authors: []
|
29
|
+
|
30
|
+
files:
|
31
|
+
- app
|
32
|
+
- bin
|
33
|
+
- cache
|
34
|
+
- CHANGELOG
|
35
|
+
- components
|
36
|
+
- config
|
37
|
+
- CONTRIBUTORS
|
38
|
+
- db
|
39
|
+
- lib
|
40
|
+
- LICENSE
|
41
|
+
- log
|
42
|
+
- public
|
43
|
+
- Rakefile
|
44
|
+
- README
|
45
|
+
- script
|
46
|
+
- test
|
47
|
+
- app/behaviors
|
48
|
+
- app/controllers
|
49
|
+
- app/filters
|
50
|
+
- app/helpers
|
51
|
+
- app/models
|
52
|
+
- app/views
|
53
|
+
- app/behaviors/archive_behavior.rb
|
54
|
+
- app/behaviors/archive_day_index_behavior.rb
|
55
|
+
- app/behaviors/archive_month_index_behavior.rb
|
56
|
+
- app/behaviors/archive_year_index_behavior.rb
|
57
|
+
- app/behaviors/env_behavior.rb
|
58
|
+
- app/behaviors/page_missing_behavior.rb
|
59
|
+
- app/controllers/admin
|
60
|
+
- app/controllers/application.rb
|
61
|
+
- app/controllers/site_controller.rb
|
62
|
+
- app/controllers/admin/export_controller.rb
|
63
|
+
- app/controllers/admin/layout_controller.rb
|
64
|
+
- app/controllers/admin/model_controller.rb
|
65
|
+
- app/controllers/admin/page_controller.rb
|
66
|
+
- app/controllers/admin/snippet_controller.rb
|
67
|
+
- app/controllers/admin/user_controller.rb
|
68
|
+
- app/controllers/admin/welcome_controller.rb
|
69
|
+
- app/filters/markdown_filter.rb
|
70
|
+
- app/filters/textile_filter.rb
|
71
|
+
- app/helpers/admin
|
72
|
+
- app/helpers/application_helper.rb
|
73
|
+
- app/helpers/site_helper.rb
|
74
|
+
- app/helpers/admin/export_helper.rb
|
75
|
+
- app/helpers/admin/layout_helper.rb
|
76
|
+
- app/helpers/admin/page_helper.rb
|
77
|
+
- app/helpers/admin/snippet_helper.rb
|
78
|
+
- app/helpers/admin/user_helper.rb
|
79
|
+
- app/helpers/admin/welcome_helper.rb
|
80
|
+
- app/models/archive_finder.rb
|
81
|
+
- app/models/behavior.rb
|
82
|
+
- app/models/layout.rb
|
83
|
+
- app/models/page.rb
|
84
|
+
- app/models/page_context.rb
|
85
|
+
- app/models/page_part.rb
|
86
|
+
- app/models/radiant
|
87
|
+
- app/models/response_cache.rb
|
88
|
+
- app/models/snippet.rb
|
89
|
+
- app/models/status.rb
|
90
|
+
- app/models/text_filter.rb
|
91
|
+
- app/models/user.rb
|
92
|
+
- app/models/user_action_observer.rb
|
93
|
+
- app/models/radiant/config.rb
|
94
|
+
- app/models/radiant/exporter.rb
|
95
|
+
- app/views/admin
|
96
|
+
- app/views/layouts
|
97
|
+
- app/views/site
|
98
|
+
- app/views/admin/layout
|
99
|
+
- app/views/admin/page
|
100
|
+
- app/views/admin/snippet
|
101
|
+
- app/views/admin/user
|
102
|
+
- app/views/admin/welcome
|
103
|
+
- app/views/admin/layout/index.rhtml
|
104
|
+
- app/views/admin/layout/new.rhtml
|
105
|
+
- app/views/admin/layout/remove.rhtml
|
106
|
+
- app/views/admin/page/_node.rhtml
|
107
|
+
- app/views/admin/page/_part.rhtml
|
108
|
+
- app/views/admin/page/children.rhtml
|
109
|
+
- app/views/admin/page/index.rhtml
|
110
|
+
- app/views/admin/page/new.rhtml
|
111
|
+
- app/views/admin/page/remove.rhtml
|
112
|
+
- app/views/admin/snippet/index.rhtml
|
113
|
+
- app/views/admin/snippet/new.rhtml
|
114
|
+
- app/views/admin/snippet/remove.rhtml
|
115
|
+
- app/views/admin/user/index.rhtml
|
116
|
+
- app/views/admin/user/new.rhtml
|
117
|
+
- app/views/admin/user/preferences.rhtml
|
118
|
+
- app/views/admin/user/remove.rhtml
|
119
|
+
- app/views/admin/welcome/login.rhtml
|
120
|
+
- app/views/layouts/application.rhtml
|
121
|
+
- app/views/site/not_found.rhtml
|
122
|
+
- bin/radiant
|
123
|
+
- config/boot.rb
|
124
|
+
- config/database.mysql.yml
|
125
|
+
- config/database.postgresql.yml
|
126
|
+
- config/database.sqlite.yml
|
127
|
+
- config/environment.rb
|
128
|
+
- config/environments
|
129
|
+
- config/locomotive.yml
|
130
|
+
- config/routes.rb
|
131
|
+
- config/environments/development.rb
|
132
|
+
- config/environments/production.rb
|
133
|
+
- config/environments/test.rb
|
134
|
+
- db/development_structure.sql
|
135
|
+
- db/migrate
|
136
|
+
- db/schema.rb
|
137
|
+
- db/templates
|
138
|
+
- db/migrate/001_create_radiant_tables.rb
|
139
|
+
- db/migrate/002_insert_initial_data.rb
|
140
|
+
- db/migrate/003_rename_behavior_column.rb
|
141
|
+
- db/migrate/004_rename_filter_column.rb
|
142
|
+
- db/migrate/005_add_virtual_column_to_page.rb
|
143
|
+
- db/migrate/006_integer_columns_to_boolean.rb
|
144
|
+
- db/migrate/007_remove_virtual_column_from_page.rb
|
145
|
+
- db/migrate/008_add_virtual_column_to_page_again.rb
|
146
|
+
- db/migrate/009_add_content_type_field_to_layout.rb
|
147
|
+
- db/templates/empty.yml
|
148
|
+
- db/templates/simple-blog.yml
|
149
|
+
- db/templates/styled-blog.yml
|
150
|
+
- lib/advanced_delegation.rb
|
151
|
+
- lib/archive_index_behavior_tags_and_methods.rb
|
152
|
+
- lib/generators
|
153
|
+
- lib/inheritable_class_attributes.rb
|
154
|
+
- lib/login_system.rb
|
155
|
+
- lib/plugins
|
156
|
+
- lib/radiant.rb
|
157
|
+
- lib/registerable.rb
|
158
|
+
- lib/tasks
|
159
|
+
- lib/generators/behavior
|
160
|
+
- lib/generators/filter
|
161
|
+
- lib/generators/behavior/behavior_generator.rb
|
162
|
+
- lib/generators/behavior/templates
|
163
|
+
- lib/generators/behavior/USAGE
|
164
|
+
- lib/generators/behavior/templates/model.rb.template
|
165
|
+
- lib/generators/behavior/templates/unit_test.rb.template
|
166
|
+
- lib/generators/filter/filter_generator.rb
|
167
|
+
- lib/generators/filter/templates
|
168
|
+
- lib/generators/filter/USAGE
|
169
|
+
- lib/generators/filter/templates/model.rb.template
|
170
|
+
- lib/generators/filter/templates/unit_test.rb.template
|
171
|
+
- lib/plugins/index_quoting_fix
|
172
|
+
- lib/plugins/string_io
|
173
|
+
- lib/plugins/index_quoting_fix/init.rb
|
174
|
+
- lib/plugins/string_io/init.rb
|
175
|
+
- lib/tasks/release.rake
|
176
|
+
- public/404.html
|
177
|
+
- public/500.html
|
178
|
+
- public/dispatch.cgi
|
179
|
+
- public/dispatch.fcgi
|
180
|
+
- public/dispatch.rb
|
181
|
+
- public/favicon.ico
|
182
|
+
- public/images
|
183
|
+
- public/javascripts
|
184
|
+
- public/robots.txt
|
185
|
+
- public/stylesheets
|
186
|
+
- public/images/add-child.png
|
187
|
+
- public/images/brown-bottom-line.gif
|
188
|
+
- public/images/clear-page-cache.png
|
189
|
+
- public/images/collapse.png
|
190
|
+
- public/images/expand.png
|
191
|
+
- public/images/minus.png
|
192
|
+
- public/images/new-homepage.png
|
193
|
+
- public/images/new-layout.png
|
194
|
+
- public/images/new-snippet.png
|
195
|
+
- public/images/new-user.png
|
196
|
+
- public/images/page.png
|
197
|
+
- public/images/plus.png
|
198
|
+
- public/images/remove-disabled.png
|
199
|
+
- public/images/remove.png
|
200
|
+
- public/images/snippet.png
|
201
|
+
- public/images/spinner.gif
|
202
|
+
- public/images/view-site.gif
|
203
|
+
- public/images/virtual-page.png
|
204
|
+
- public/javascripts/application.js
|
205
|
+
- public/javascripts/controls.js
|
206
|
+
- public/javascripts/dragdrop.js
|
207
|
+
- public/javascripts/effects.js
|
208
|
+
- public/javascripts/pngfix.js
|
209
|
+
- public/javascripts/prototype.js
|
210
|
+
- public/javascripts/ruledtable.js
|
211
|
+
- public/javascripts/string.js
|
212
|
+
- public/javascripts/tabcontrol.js
|
213
|
+
- public/stylesheets/admin.css
|
214
|
+
- script/about
|
215
|
+
- script/breakpointer
|
216
|
+
- script/console
|
217
|
+
- script/destroy
|
218
|
+
- script/generate
|
219
|
+
- script/performance
|
220
|
+
- script/plugin
|
221
|
+
- script/process
|
222
|
+
- script/runner
|
223
|
+
- script/server
|
224
|
+
- script/setup_database
|
225
|
+
- script/performance/benchmarker
|
226
|
+
- script/performance/profiler
|
227
|
+
- script/process/reaper
|
228
|
+
- script/process/spawner
|
229
|
+
- script/process/spinner
|
230
|
+
- test/fixtures
|
231
|
+
- test/functional
|
232
|
+
- test/helpers
|
233
|
+
- test/mocks
|
234
|
+
- test/test_helper.rb
|
235
|
+
- test/unit
|
236
|
+
- test/fixtures/layouts.yml
|
237
|
+
- test/fixtures/page_parts.yml
|
238
|
+
- test/fixtures/pages.yml
|
239
|
+
- test/fixtures/pages.yml.rej
|
240
|
+
- test/fixtures/snippets.yml
|
241
|
+
- test/fixtures/users.yml
|
242
|
+
- test/functional/admin
|
243
|
+
- test/functional/application_controller_test.rb
|
244
|
+
- test/functional/login_system_test.rb
|
245
|
+
- test/functional/site_controller_test.rb
|
246
|
+
- test/functional/admin/export_controller_test.rb
|
247
|
+
- test/functional/admin/layout_controller_test.rb
|
248
|
+
- test/functional/admin/model_controller_test.rb
|
249
|
+
- test/functional/admin/page_controller_test.rb
|
250
|
+
- test/functional/admin/snippet_controller_test.rb
|
251
|
+
- test/functional/admin/user_controller_test.rb
|
252
|
+
- test/functional/admin/welcome_controller_test.rb
|
253
|
+
- test/helpers/archive_index_test_helper.rb
|
254
|
+
- test/helpers/behavior_render_test_helper.rb
|
255
|
+
- test/helpers/behavior_test_helper.rb
|
256
|
+
- test/helpers/caching_test_helper.rb
|
257
|
+
- test/helpers/layout_test_helper.rb
|
258
|
+
- test/helpers/page_part_test_helper.rb
|
259
|
+
- test/helpers/page_test_helper.rb
|
260
|
+
- test/helpers/snippet_test_helper.rb
|
261
|
+
- test/helpers/user_test_helper.rb
|
262
|
+
- test/helpers/validation_test_helper.rb
|
263
|
+
- test/mocks/development
|
264
|
+
- test/mocks/test
|
265
|
+
- test/unit/behavior_test.rb
|
266
|
+
- test/unit/behaviors
|
267
|
+
- test/unit/filters
|
268
|
+
- test/unit/inheritable_class_attributes_test.rb
|
269
|
+
- test/unit/layout_test.rb
|
270
|
+
- test/unit/page_context_test.rb
|
271
|
+
- test/unit/page_context_test.rb.rej
|
272
|
+
- test/unit/page_part_test.rb
|
273
|
+
- test/unit/page_test.rb
|
274
|
+
- test/unit/radiant
|
275
|
+
- test/unit/registerable_test.rb
|
276
|
+
- test/unit/response_cache_test.rb
|
277
|
+
- test/unit/snippet_test.rb
|
278
|
+
- test/unit/status_test.rb
|
279
|
+
- test/unit/text_filter_test.rb
|
280
|
+
- test/unit/user_action_observer_test.rb
|
281
|
+
- test/unit/user_test.rb
|
282
|
+
- test/unit/behaviors/archive_behavior_test.rb
|
283
|
+
- test/unit/behaviors/archive_day_index_behavior_test.rb
|
284
|
+
- test/unit/behaviors/archive_month_index_behavior_test.rb
|
285
|
+
- test/unit/behaviors/archive_year_index_behavior_test.rb
|
286
|
+
- test/unit/behaviors/page_missing_behavior_test.rb
|
287
|
+
- test/unit/filters/markdown_filter_test.rb
|
288
|
+
- test/unit/filters/textile_filter_test.rb
|
289
|
+
- test/unit/radiant/config_test.rb
|
290
|
+
- test/unit/radiant/exporter_test.rb
|
291
|
+
test_files: []
|
292
|
+
|
293
|
+
rdoc_options:
|
294
|
+
- --title
|
295
|
+
- Radiant -- Publishing for Small Teams
|
296
|
+
- --line-numbers
|
297
|
+
- --main
|
298
|
+
- README
|
299
|
+
extra_rdoc_files:
|
300
|
+
- README
|
301
|
+
- CONTRIBUTORS
|
302
|
+
- CHANGELOG
|
303
|
+
- LICENSE
|
304
|
+
executables:
|
305
|
+
- radiant
|
306
|
+
extensions: []
|
307
|
+
|
308
|
+
requirements:
|
309
|
+
- rails, redcloth, bluecloth, radius
|
310
|
+
dependencies:
|
311
|
+
- !ruby/object:Gem::Dependency
|
312
|
+
name: rails
|
313
|
+
version_requirement:
|
314
|
+
version_requirements: !ruby/object:Gem::Version::Requirement
|
315
|
+
requirements:
|
316
|
+
- - "="
|
317
|
+
- !ruby/object:Gem::Version
|
318
|
+
version: 1.1.2
|
319
|
+
version:
|
320
|
+
- !ruby/object:Gem::Dependency
|
321
|
+
name: radius
|
322
|
+
version_requirement:
|
323
|
+
version_requirements: !ruby/object:Gem::Version::Requirement
|
324
|
+
requirements:
|
325
|
+
- - ">="
|
326
|
+
- !ruby/object:Gem::Version
|
327
|
+
version: 0.5.1
|
328
|
+
- - <
|
329
|
+
- !ruby/object:Gem::Version
|
330
|
+
version: "0.6"
|
331
|
+
version:
|
332
|
+
- !ruby/object:Gem::Dependency
|
333
|
+
name: RedCloth
|
334
|
+
version_requirement:
|
335
|
+
version_requirements: !ruby/object:Gem::Version::Requirement
|
336
|
+
requirements:
|
337
|
+
- - ">="
|
338
|
+
- !ruby/object:Gem::Version
|
339
|
+
version: 3.0.3
|
340
|
+
- - <
|
341
|
+
- !ruby/object:Gem::Version
|
342
|
+
version: "3.1"
|
343
|
+
version:
|
344
|
+
- !ruby/object:Gem::Dependency
|
345
|
+
name: BlueCloth
|
346
|
+
version_requirement:
|
347
|
+
version_requirements: !ruby/object:Gem::Version::Requirement
|
348
|
+
requirements:
|
349
|
+
- - ">="
|
350
|
+
- !ruby/object:Gem::Version
|
351
|
+
version: 1.0.0
|
352
|
+
- - <
|
353
|
+
- !ruby/object:Gem::Version
|
354
|
+
version: "1.1"
|
355
|
+
version:
|