typo 5.4.4 → 5.5
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +59 -28
- data/MAINTAINERS +9 -17
- data/README +28 -20
- data/UPGRADE +6 -2
- data/app/controllers/accounts_controller.rb +1 -1
- data/app/controllers/admin/content_controller.rb +1 -1
- data/app/controllers/admin/feedback_controller.rb +3 -3
- data/app/controllers/admin/pages_controller.rb +2 -0
- data/app/controllers/application_controller.rb +6 -1
- data/app/controllers/articles_controller.rb +13 -1
- data/app/helpers/application_helper.rb +5 -2
- data/app/helpers/authors_helper.rb +14 -3
- data/app/models/article.rb +6 -4
- data/app/models/blog.rb +0 -4
- data/app/models/blog_sweeper.rb +1 -1
- data/app/models/content.rb +10 -5
- data/app/models/page_cache.rb +6 -7
- data/app/models/user.rb +1 -0
- data/app/views/admin/content/_form.html.erb +13 -11
- data/app/views/admin/content/_images.html.erb +1 -1
- data/app/views/admin/content/_simple_editor.html.erb +1 -0
- data/app/views/admin/content/_visual_editor.html.erb +1 -0
- data/app/views/admin/dashboard/_overview.html.erb +7 -7
- data/app/views/admin/pages/_form.html.erb +1 -0
- data/app/views/admin/pages/_images.html.erb +18 -0
- data/app/views/admin/pages/_simple_editor.html.erb +1 -2
- data/app/views/admin/pages/_visual_editor.html.erb +2 -1
- data/app/views/admin/pages/index.html.erb +1 -1
- data/app/views/admin/settings/feedback.html.erb +2 -1
- data/app/views/admin/tags/edit.html.erb +1 -1
- data/app/views/articles/_article.html.erb +17 -13
- data/app/views/articles/_article_content.html.erb +1 -0
- data/app/views/articles/_comment_box.html.erb +1 -1
- data/app/views/articles/_password_form.html.erb +10 -0
- data/app/views/articles/groupings.html.erb +1 -1
- data/app/views/articles/index.html.erb +1 -2
- data/app/views/articles/read.html.erb +1 -4
- data/app/views/articles/search.html.erb +1 -1
- data/app/views/layouts/administration.html.erb +1 -1
- data/app/views/shared/_search.html.erb +1 -1
- data/config/ckeditor.yml +14 -0
- data/config/environment.rb +13 -25
- data/config/environments/test.rb +1 -3
- data/config/filemanager.yml +16 -0
- data/config/initializers/access_rules.rb +5 -0
- data/config/routes.rb +5 -1
- data/db/migrate/004_add_sidebars.rb +3 -9
- data/db/migrate/089_drop_cache_information_table.rb +31 -0
- data/db/migrate/090_remove_keywords_from_posts.rb +9 -0
- data/db/migrate/091_adds_password_protection_to_posts.rb +9 -0
- data/doc/CACHE.SETUP.README +36 -0
- data/lang/de_DE.rb +6 -1
- data/lang/pl_PL.rb +221 -89
- data/lib/filemanager.rb +53 -0
- data/lib/filemanager/controller.rb +217 -0
- data/lib/i18n_interpolation_deprecation.rb +26 -0
- data/lib/rails_patch/active_support.rb +4 -0
- data/lib/tasks/release.rake +4 -131
- data/lib/typo_version.rb +1 -1
- data/public/.htaccess +6 -5
- data/public/filemanager/images/avi.gif +0 -0
- data/public/filemanager/images/box.gif +0 -0
- data/public/filemanager/images/bullet.gif +0 -0
- data/public/filemanager/images/close.gif +0 -0
- data/public/filemanager/images/closelabel.gif +0 -0
- data/public/filemanager/images/doc.gif +0 -0
- data/public/filemanager/images/donate-button.gif +0 -0
- data/public/filemanager/images/download-icon.gif +0 -0
- data/public/filemanager/images/folder.gif +0 -0
- data/public/filemanager/images/gif.gif +0 -0
- data/public/filemanager/images/htm.gif +0 -0
- data/public/filemanager/images/html.gif +0 -0
- data/public/filemanager/images/image-1.jpg +0 -0
- data/public/filemanager/images/image.gif +0 -0
- data/public/filemanager/images/jpg.gif +0 -0
- data/public/filemanager/images/loading.gif +0 -0
- data/public/filemanager/images/mov.gif +0 -0
- data/public/filemanager/images/nextlabel.gif +0 -0
- data/public/filemanager/images/pdf.gif +0 -0
- data/public/filemanager/images/png.gif +0 -0
- data/public/filemanager/images/ppt.gif +0 -0
- data/public/filemanager/images/prevlabel.gif +0 -0
- data/public/filemanager/images/rar.gif +0 -0
- data/public/filemanager/images/rm.gif +0 -0
- data/public/filemanager/images/rmvb.gif +0 -0
- data/public/filemanager/images/separator.gif +0 -0
- data/public/filemanager/images/spacer.gif +0 -0
- data/public/filemanager/images/swf.gif +0 -0
- data/public/filemanager/images/thumb-1.jpg +0 -0
- data/public/filemanager/images/tool_copy.gif +0 -0
- data/public/filemanager/images/tool_cut.gif +0 -0
- data/public/filemanager/images/tool_del.gif +0 -0
- data/public/filemanager/images/tool_folder.gif +0 -0
- data/public/filemanager/images/tool_imagemanager.gif +0 -0
- data/public/filemanager/images/tool_new.gif +0 -0
- data/public/filemanager/images/tool_paste.gif +0 -0
- data/public/filemanager/images/tool_props.gif +0 -0
- data/public/filemanager/images/tool_refresh.gif +0 -0
- data/public/filemanager/images/tool_unzip.gif +0 -0
- data/public/filemanager/images/tool_upload.gif +0 -0
- data/public/filemanager/images/tool_zip.gif +0 -0
- data/public/filemanager/images/txt.gif +0 -0
- data/public/filemanager/images/unknown.gif +0 -0
- data/public/filemanager/images/wmv.gif +0 -0
- data/public/filemanager/images/xls.gif +0 -0
- data/public/filemanager/images/zip.gif +0 -0
- data/public/filemanager/javascripts/filemanager.js +6 -0
- data/public/filemanager/javascripts/lang/en.js +31 -0
- data/public/filemanager/javascripts/lang/zh_CN.js +31 -0
- data/public/filemanager/javascripts/lightbox.js +497 -0
- data/public/filemanager/javascripts/translate.js +42 -0
- data/public/filemanager/resources/resources.txt +1 -0
- data/public/filemanager/stylesheets/filelist.css +147 -0
- data/public/filemanager/stylesheets/general.css +135 -0
- data/public/filemanager/stylesheets/lightbox.css +27 -0
- data/public/javascripts/prototype_ext.js +117 -0
- data/public/stylesheets/administration.css +19 -2
- data/themes/dirtylicious/views/articles/_article.html.erb +16 -12
- data/themes/dirtylicious/views/articles/_article_content.html.erb +1 -0
- data/themes/dirtylicious/views/articles/_password_form.html.erb +10 -0
- data/themes/scribbish/views/articles/_article.html.erb +18 -14
- data/themes/scribbish/views/articles/_article_content.html.erb +1 -0
- data/themes/scribbish/views/articles/_password_form.html.erb +10 -0
- data/themes/standard_issue/views/articles/_article.html.erb +16 -12
- data/themes/standard_issue/views/articles/_article_content.html.erb +1 -0
- data/themes/standard_issue/views/articles/_password_form.html.erb +10 -0
- data/themes/true-blue-3/helpers/theme_helper.rb +2 -2
- data/themes/true-blue-3/images/submit_form.jpg +0 -0
- data/themes/true-blue-3/stylesheets/style.css +27 -3
- data/themes/true-blue-3/views/articles/_article.html.erb +13 -8
- data/themes/true-blue-3/views/articles/_article_content.html.erb +1 -0
- data/themes/true-blue-3/views/articles/_comment_form.html.erb +1 -1
- data/themes/true-blue-3/views/articles/_password_form.html.erb +10 -0
- data/themes/true-blue-3/views/categories/_article.html.erb +5 -0
- data/themes/true-blue-3/views/tags/_article.html.erb +4 -0
- data/themes/typographic/views/articles/_article.html.erb +16 -12
- data/themes/typographic/views/articles/_article_content.html.erb +1 -0
- data/themes/typographic/views/articles/_password_form.html.erb +10 -0
- data/vendor/plugins/easy-ckeditor/app/controllers/ckeditor_controller.rb +2 -1
- data/vendor/plugins/easy-ckeditor/lib/ckeditor.rb +1 -20
- data/vendor/plugins/easy-ckeditor/{tasks → lib/tasks}/ckeditor_tasks.rake +0 -0
- data/vendor/plugins/filemanager/app/controllers/fm/filemanager_controller.rb +22 -0
- data/vendor/plugins/filemanager/app/views/fm/filemanager/index.html.erb +512 -0
- data/vendor/plugins/filemanager/app/views/fm/filemanager/view.html.erb +67 -0
- data/vendor/plugins/filemanager/filemanager.yml +16 -0
- data/vendor/plugins/static_sidebar/lib/static_sidebar.rb +4 -2
- data/vendor/plugins/typo_converter/{tasks → lib/tasks}/typo_converters_tasks.rake +0 -0
- data/vendor/plugins/typo_login_system/lib/access_control.rb +24 -1
- data/vendor/plugins/typo_textfilter_code/{tasks → lib/tasks}/typo_textfilter_code_tasks.rake +0 -0
- data/vendor/plugins/typo_textfilter_code/lib/typo_textfilter_code.rb +4 -3
- data/vendor/plugins/typo_textfilter_flickr/{tasks → lib/tasks}/typo_textfilter_flickr_tasks.rake +0 -0
- data/vendor/plugins/typo_textfilter_htmlfilter/{tasks → lib/tasks}/typo_textfilter_htmlfilter_tasks.rake +0 -0
- data/vendor/plugins/typo_textfilter_lightbox/{tasks → lib/tasks}/typo_textfilter_lightbox_tasks.rake +0 -0
- data/vendor/plugins/typo_textfilter_markdown/{tasks → lib/tasks}/typo_textfilter_markdown_tasks.rake +0 -0
- data/vendor/plugins/typo_textfilter_none/{tasks → lib/tasks}/typo_textfilter_none_tasks.rake +0 -0
- data/vendor/plugins/typo_textfilter_smartypants/{tasks → lib/tasks}/typo_textfilter_smartypants_tasks.rake +0 -0
- data/vendor/plugins/typo_textfilter_textile/{tasks → lib/tasks}/typo_textfilter_textile_tasks.rake +0 -0
- data/vendor/plugins/typo_textfilter_textile_and_markdown/{tasks → lib/tasks}/typo_textfilter_textile_and_markdown_tasks.rake +0 -0
- data/vendor/plugins/xml_sidebar/views/content.rhtml +1 -1
- metadata +190 -195
- data/app/controllers/admin/cache_controller.rb +0 -9
- data/app/models/cache_information.rb +0 -19
- data/db/schema.rb +0 -242
- data/doc/test_themes.rb +0 -50
- data/public/javascripts/ckeditor/config.js +0 -27
- data/spec/controllers/accounts_controller_spec.rb +0 -414
- data/spec/controllers/admin/cache_controller_spec.rb +0 -18
- data/spec/controllers/admin/categories_controller_spec.rb +0 -73
- data/spec/controllers/admin/content_controller_spec.rb +0 -443
- data/spec/controllers/admin/dashboard_controller_spec.rb +0 -13
- data/spec/controllers/admin/feedback_controller_spec.rb +0 -308
- data/spec/controllers/admin/pages_controller_spec.rb +0 -80
- data/spec/controllers/admin/profiles_controller_spec.rb +0 -22
- data/spec/controllers/admin/resources_controller_spec.rb +0 -53
- data/spec/controllers/admin/settings_controller_spec.rb +0 -80
- data/spec/controllers/admin/tags_controller_spec.rb +0 -64
- data/spec/controllers/admin/textfilters_controller_spec.rb +0 -20
- data/spec/controllers/admin/themes_controller_spec.rb +0 -30
- data/spec/controllers/admin/users_controller_spec.rb +0 -109
- data/spec/controllers/application_controller_spec.rb +0 -18
- data/spec/controllers/articles_controller_spec.rb +0 -440
- data/spec/controllers/authors_controller_spec.rb +0 -42
- data/spec/controllers/backend_controller_spec.rb +0 -337
- data/spec/controllers/categories_controller_spec.rb +0 -117
- data/spec/controllers/comments_controller_spec.rb +0 -137
- data/spec/controllers/routes/articles_routing_spec.rb +0 -31
- data/spec/controllers/routes/xml_routing_spec.rb +0 -71
- data/spec/controllers/setup_controller_spec.rb +0 -24
- data/spec/controllers/tags_controller_spec.rb +0 -147
- data/spec/controllers/textfilter_controller_spec.rb +0 -192
- data/spec/controllers/theme_controller_spec.rb +0 -39
- data/spec/controllers/xml_controller_spec.rb +0 -185
- data/spec/factories.rb +0 -69
- data/spec/helpers/application_helper_spec.rb +0 -25
- data/spec/helpers/content_helper_spec.rb +0 -28
- data/spec/lib/text_filter_plugin_spec.rb +0 -15
- data/spec/models/amazon_sidebar_spec.rb +0 -40
- data/spec/models/article_closing_spec.rb +0 -42
- data/spec/models/article_spec.rb +0 -515
- data/spec/models/blog_spec.rb +0 -116
- data/spec/models/cache_information_spec.rb +0 -42
- data/spec/models/cache_support_spec.rb +0 -51
- data/spec/models/category_spec.rb +0 -44
- data/spec/models/comment_spec.rb +0 -240
- data/spec/models/configuration_spec.rb +0 -91
- data/spec/models/content_state/feedback_states_spec.rb +0 -64
- data/spec/models/notification_spec.rb +0 -8
- data/spec/models/page_cache_spec.rb +0 -30
- data/spec/models/page_spec.rb +0 -91
- data/spec/models/ping_pinger_spec.rb +0 -33
- data/spec/models/ping_spec.rb +0 -154
- data/spec/models/redirect_spec.rb +0 -17
- data/spec/models/resource_spec.rb +0 -39
- data/spec/models/route_cache_spec.rb +0 -11
- data/spec/models/sidebar_spec.rb +0 -7
- data/spec/models/static_sidebar_spec.rb +0 -17
- data/spec/models/tag_spec.rb +0 -65
- data/spec/models/text_filter_spec.rb +0 -34
- data/spec/models/theme_spec.rb +0 -45
- data/spec/models/trackback_spec.rb +0 -60
- data/spec/models/trigger_spec.rb +0 -40
- data/spec/models/user_spec.rb +0 -198
- data/spec/rcov.opts +0 -2
- data/spec/spec.opts +0 -4
- data/spec/spec_helper.rb +0 -133
- data/spec/views/articles/index_spec.rb +0 -63
- data/spec/views/articles/read_spec.rb +0 -67
- data/spec/views/comments/html_sanitization_spec.rb +0 -119
- data/test/fixtures/blogs.yml +0 -27
- data/test/fixtures/categories.yml +0 -29
- data/test/fixtures/categorizations.yml +0 -31
- data/test/fixtures/contents.yml +0 -231
- data/test/fixtures/feedback.yml +0 -180
- data/test/fixtures/notification_mailer/article +0 -3
- data/test/fixtures/notification_mailer/comment +0 -3
- data/test/fixtures/notification_mailer/trackback +0 -3
- data/test/fixtures/notifications.yml +0 -0
- data/test/fixtures/page_caches.yml +0 -7
- data/test/fixtures/profiles.yml +0 -27
- data/test/fixtures/redirects.yml +0 -10
- data/test/fixtures/resources.yml +0 -21
- data/test/fixtures/sidebars.yml +0 -10
- data/test/fixtures/tags.yml +0 -10
- data/test/fixtures/text_filters.yml +0 -37
- data/test/fixtures/triggers.yml +0 -1
- data/test/fixtures/users.yml +0 -101
- data/test/mocks/test/dns_mock.rb +0 -13
- data/test/mocks/test/flickr_mock.rb +0 -30
- data/test/mocks/test/http_mock.rb +0 -39
- data/test/mocks/test/theme_mock.rb +0 -5
- data/test/mocks/test/xmlrpc_mock.rb +0 -28
- data/test/mocks/themes/123-numbers-in-path/about.markdown +0 -0
- data/test/mocks/themes/CamelCaseDirectory/about.markdown +0 -0
- data/test/mocks/themes/i-have-special-chars/about.markdown +0 -0
- data/test/mocks/themes/typographic/about.markdown +0 -7
- data/test/mocks/themes/typographic/images/Thumbs.db +0 -0
- data/test/mocks/themes/typographic/images/accept.png +0 -0
- data/test/mocks/themes/typographic/images/accept50.png +0 -0
- data/test/mocks/themes/typographic/images/bg_body.jpg +0 -0
- data/test/mocks/themes/typographic/images/bg_white.png +0 -0
- data/test/mocks/themes/typographic/images/bg_wrapper.jpg +0 -0
- data/test/mocks/themes/typographic/images/bullet_bottom.png +0 -0
- data/test/mocks/themes/typographic/images/bullet_right.png +0 -0
- data/test/mocks/themes/typographic/images/email_open.png +0 -0
- data/test/mocks/themes/typographic/images/email_open50.png +0 -0
- data/test/mocks/themes/typographic/images/meta.png +0 -0
- data/test/mocks/themes/typographic/images/page_edit.png +0 -0
- data/test/mocks/themes/typographic/images/page_edit50.png +0 -0
- data/test/mocks/themes/typographic/images/tag.png +0 -0
- data/test/mocks/themes/typographic/images/user.png +0 -0
- data/test/mocks/themes/typographic/images/user50.png +0 -0
- data/test/mocks/themes/typographic/images/world_link.png +0 -0
- data/test/mocks/themes/typographic/images/world_link50.png +0 -0
- data/test/mocks/themes/typographic/layouts/default.html.erb +0 -42
- data/test/mocks/themes/typographic/preview.png +0 -0
- data/test/mocks/themes/typographic/stylesheets/colors.css +0 -51
- data/test/mocks/themes/typographic/stylesheets/layout.css +0 -346
- data/test/mocks/themes/typographic/stylesheets/reset.css +0 -5
- data/test/mocks/themes/typographic/stylesheets/style.css +0 -36
- data/test/mocks/themes/typographic/views/articles/_article.html.erb +0 -41
- data/test/mocks/themes/typographic/views/articles/_comment.html.erb +0 -14
- data/test/mocks/themes/typographic/views/articles/_comment_form.html.erb +0 -48
- data/test/mocks/themes/typographic/views/articles/_comment_list.html.erb +0 -7
- data/test/mocks/themes/typographic/views/articles/_trackback.html.erb +0 -9
- data/test/mocks/themes/typographic/views/articles/comment_preview.html.erb +0 -10
- data/test/mocks/themes/typographic/views/articles/index.html.erb +0 -5
- data/test/mocks/themes/typographic/views/articles/read.html.erb +0 -42
- data/test/mocks/themes/typographic/views/shared/_search.html.erb +0 -17
- data/test/mocks/themes/typographic/views/theme/static_view_test.html.erb +0 -1
- data/test/test_helper.rb +0 -13
- data/themes/true-blue-3/images/frederic-de-villamil.jpg +0 -0
- data/themes/true-blue-3/images/textarea_bg.jpg +0 -0
File without changes
|
data/test/fixtures/profiles.yml
DELETED
@@ -1,27 +0,0 @@
|
|
1
|
-
admin:
|
2
|
-
label: admin
|
3
|
-
nicename: Typo administrator
|
4
|
-
modules:
|
5
|
-
- :dashboard
|
6
|
-
- :write
|
7
|
-
- :content
|
8
|
-
- :feedback
|
9
|
-
- :themes
|
10
|
-
- :sidebar
|
11
|
-
- :profile
|
12
|
-
- :users
|
13
|
-
- :settings
|
14
|
-
|
15
|
-
publisher:
|
16
|
-
label: publisher
|
17
|
-
nicename: Blog publisher
|
18
|
-
modules:
|
19
|
-
- :users
|
20
|
-
- :dashboard
|
21
|
-
- :write
|
22
|
-
- :content
|
23
|
-
- :feedback
|
24
|
-
|
25
|
-
contributor:
|
26
|
-
label: contributor
|
27
|
-
nicename: Contributor
|
data/test/fixtures/redirects.yml
DELETED
@@ -1,10 +0,0 @@
|
|
1
|
-
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
|
2
|
-
foo_redirect:
|
3
|
-
from_path: foo/bar
|
4
|
-
to_path: /someplace/else
|
5
|
-
archive1_redirect:
|
6
|
-
from_path: archives/000001.html
|
7
|
-
to_path: /articles/read/1
|
8
|
-
rooted_bar_redirect:
|
9
|
-
from_path: bar/foo
|
10
|
-
to_path: /blog/someplace/else
|
data/test/fixtures/resources.yml
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
|
2
|
-
resource1:
|
3
|
-
article: article1
|
4
|
-
filename: me.jpg
|
5
|
-
mime: 'image/jpeg'
|
6
|
-
created_at: <%= 1.week.ago.strftime("%Y-%m-%d %H:%M:%S") %>
|
7
|
-
size: 100
|
8
|
-
|
9
|
-
resource2:
|
10
|
-
article: article1
|
11
|
-
filename: moi
|
12
|
-
mime: 'image/jpeg'
|
13
|
-
created_at: <%= 1.day.ago.strftime("%Y-%m-%d %H:%M:%S") %>
|
14
|
-
size: 110
|
15
|
-
|
16
|
-
resource3:
|
17
|
-
article: article2
|
18
|
-
filename: my_latest_typo_patch.diff
|
19
|
-
mime: 'text/plain'
|
20
|
-
created_at: <%= 1.day.ago.strftime("%Y-%m-%d %H:%M:%S") %>
|
21
|
-
size: 0
|
data/test/fixtures/sidebars.yml
DELETED
@@ -1,10 +0,0 @@
|
|
1
|
-
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
|
2
|
-
static_sidebar:
|
3
|
-
active_position: 1
|
4
|
-
staged_position: 1
|
5
|
-
config: |+
|
6
|
-
--- !map:HashWithIndifferentAccess
|
7
|
-
title: Static Sidebar
|
8
|
-
body: The body of a static sidebar
|
9
|
-
|
10
|
-
type: StaticSidebar
|
data/test/fixtures/tags.yml
DELETED
@@ -1,37 +0,0 @@
|
|
1
|
-
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
|
2
|
-
markdown_filter:
|
3
|
-
name: "markdown"
|
4
|
-
description: "Markdown"
|
5
|
-
markup: markdown
|
6
|
-
filters: --- []
|
7
|
-
params: --- {}
|
8
|
-
|
9
|
-
smartypants_filter:
|
10
|
-
name: "smartypants"
|
11
|
-
description: "SmartyPants"
|
12
|
-
markup: none
|
13
|
-
filters:
|
14
|
-
- :smartypants
|
15
|
-
params: --- {}
|
16
|
-
|
17
|
-
markdownsmartypants_filter:
|
18
|
-
name: "markdown smartypants"
|
19
|
-
description: "Markdown with SmartyPants"
|
20
|
-
markup: markdown
|
21
|
-
filters:
|
22
|
-
- :smartypants
|
23
|
-
params: --- {}
|
24
|
-
|
25
|
-
textile_filter:
|
26
|
-
name: "textile"
|
27
|
-
description: "Textile"
|
28
|
-
markup: textile
|
29
|
-
filters: --- []
|
30
|
-
params: --- {}
|
31
|
-
|
32
|
-
none_filter:
|
33
|
-
name: "none"
|
34
|
-
description: "None"
|
35
|
-
markup: none
|
36
|
-
filters: --- []
|
37
|
-
params: --- {}
|
data/test/fixtures/triggers.yml
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
|
data/test/fixtures/users.yml
DELETED
@@ -1,101 +0,0 @@
|
|
1
|
-
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
|
2
|
-
# NOTE: passwords are valid when User.salt == 'change-me'.
|
3
|
-
|
4
|
-
tobi:
|
5
|
-
login: tobi
|
6
|
-
password: ea0f5fd4398054c1c7aa0fbc7aaea30914a14441 # whatever
|
7
|
-
name: Tobi
|
8
|
-
email: tobi@example.com
|
9
|
-
notify_via_email: false
|
10
|
-
notify_on_new_articles: false
|
11
|
-
notify_on_comments: false
|
12
|
-
notify_watch_my_articles: false
|
13
|
-
profile: admin
|
14
|
-
text_filter: markdown_filter
|
15
|
-
state: active
|
16
|
-
last_connection: 2009-11-21 12:15:58
|
17
|
-
|
18
|
-
bob:
|
19
|
-
login: bob
|
20
|
-
password: 9a91e1d8d95b6315991a88121bb0aa9f03ba0dfc # test
|
21
|
-
name: Bob
|
22
|
-
email: bob@example.com
|
23
|
-
notify_via_email: false
|
24
|
-
notify_on_new_articles: false
|
25
|
-
notify_on_comments: false
|
26
|
-
notify_watch_my_articles: false
|
27
|
-
profile: admin
|
28
|
-
text_filter: none_filter
|
29
|
-
state: active
|
30
|
-
last_connection: 2009-11-21 12:15:58
|
31
|
-
|
32
|
-
existingbob:
|
33
|
-
login: existingbob
|
34
|
-
password: 9a91e1d8d95b6315991a88121bb0aa9f03ba0dfc # test
|
35
|
-
name: Also Bob
|
36
|
-
email: alsobob@example.com
|
37
|
-
notify_via_email: false
|
38
|
-
notify_on_new_articles: false
|
39
|
-
notify_on_comments: false
|
40
|
-
notify_watch_my_articles: false
|
41
|
-
profile: admin
|
42
|
-
text_filter: markdown_filter
|
43
|
-
state: active
|
44
|
-
last_connection: 2009-11-21 12:15:58
|
45
|
-
|
46
|
-
longbob:
|
47
|
-
login: longbob
|
48
|
-
password: 8e9b1a9a38e66ca572a5e8fdac8e256848842dfa # longtest
|
49
|
-
name: More Bob
|
50
|
-
email: longbob@example.com
|
51
|
-
notify_via_email: false
|
52
|
-
notify_on_new_articles: false
|
53
|
-
notify_on_comments: false
|
54
|
-
notify_watch_my_articles: false
|
55
|
-
profile: admin
|
56
|
-
text_filter: markdown_filter
|
57
|
-
state: active
|
58
|
-
last_connection: 2009-11-21 12:15:58
|
59
|
-
|
60
|
-
randomuser:
|
61
|
-
login: randomuser
|
62
|
-
password: 8e9b1a9a38e66ca572a5e8fdac8e256848842dfa # longtest
|
63
|
-
name: Random User
|
64
|
-
email: randomuser@example.com
|
65
|
-
notify_via_email: false
|
66
|
-
notify_on_new_articles: false
|
67
|
-
notify_on_comments: false
|
68
|
-
notify_watch_my_articles: false
|
69
|
-
profile: admin
|
70
|
-
text_filter: none_filter
|
71
|
-
state: active
|
72
|
-
last_connection: 2009-11-21 12:15:58
|
73
|
-
|
74
|
-
user_publisher:
|
75
|
-
login: shingara
|
76
|
-
password: 8e9b1a9a38e66ca572a5e8fdac8e256848842dfa # longtest
|
77
|
-
name: shingara
|
78
|
-
email: shingara@example.com
|
79
|
-
notify_via_email: false
|
80
|
-
notify_on_new_articles: false
|
81
|
-
notify_on_comments: false
|
82
|
-
notify_watch_my_articles: false
|
83
|
-
profile: publisher
|
84
|
-
text_filter: markdown_filter
|
85
|
-
state: active
|
86
|
-
last_connection: 2009-11-21 12:15:58
|
87
|
-
|
88
|
-
inactive_user:
|
89
|
-
login: inactive
|
90
|
-
password: 8e9b1a9a38e66ca572a5e8fdac8e256848842dfa # longtest
|
91
|
-
name: inactive
|
92
|
-
email: inactive@example.com
|
93
|
-
notify_via_email: false
|
94
|
-
notify_on_new_articles: false
|
95
|
-
notify_on_comments: false
|
96
|
-
notify_watch_my_articles: false
|
97
|
-
profile: publisher
|
98
|
-
text_filter: markdown_filter
|
99
|
-
state: inactive
|
100
|
-
last_connection: 2009-11-21 12:15:58
|
101
|
-
|
data/test/mocks/test/dns_mock.rb
DELETED
@@ -1,13 +0,0 @@
|
|
1
|
-
class IPSocket
|
2
|
-
def self.getaddress(host)
|
3
|
-
case host
|
4
|
-
when *%w{ buy-computer.us.bsb.empty.us chinaaircatering.com.bsb.empty.us
|
5
|
-
206.230.42.212.opm.blitzed.us }
|
6
|
-
"127.0.0.2"
|
7
|
-
when *%w{ bofh.org.uk.multi.surbl.org www.bofh.org.uk.multi.surbl.org }
|
8
|
-
"10.10.10.10"
|
9
|
-
else
|
10
|
-
raise SocketError.new("getaddrinfo: Name or service not known")
|
11
|
-
end
|
12
|
-
end
|
13
|
-
end
|
@@ -1,30 +0,0 @@
|
|
1
|
-
#remove_const "Flickr"
|
2
|
-
|
3
|
-
class Flickr
|
4
|
-
def initialize(key)
|
5
|
-
end
|
6
|
-
|
7
|
-
class Photo
|
8
|
-
def initialize(photoid)
|
9
|
-
unless photoid == '31366117'
|
10
|
-
raise 'Photo not found'
|
11
|
-
end
|
12
|
-
end
|
13
|
-
|
14
|
-
def sizes
|
15
|
-
[{"url"=>"http://www.flickr.com/photo_zoom.gne?id=31366117&size=sq", "height"=>"75", "source"=>"http://photos23.flickr.com/31366117_b1a791d68e_s.jpg", "label"=>"Square", "width"=>"75"}, {"url"=>"http://www.flickr.com/photo_zoom.gne?id=31366117&size=t", "height"=>"100", "source"=>"http://photos23.flickr.com/31366117_b1a791d68e_t.jpg", "label"=>"Thumbnail", "width"=>"67"}, {"url"=>"http://www.flickr.com/photo_zoom.gne?id=31366117&size=s", "height"=>"240", "source"=>"http://photos23.flickr.com/31366117_b1a791d68e_m.jpg", "label"=>"Small", "width"=>"160"}, {"url"=>"http://www.flickr.com/photo_zoom.gne?id=31366117&size=m", "height"=>"500", "source"=>"http://photos23.flickr.com/31366117_b1a791d68e.jpg", "label"=>"Medium", "width"=>"333"}, {"url"=>"http://www.flickr.com/photo_zoom.gne?id=31366117&size=l", "height"=>"1024", "source"=>"http://photos23.flickr.com/31366117_b1a791d68e_b.jpg", "label"=>"Large", "width"=>"683"}, {"url"=>"http://www.flickr.com/photo_zoom.gne?id=31366117&size=o", "height"=>"1536", "source"=>"http://photos23.flickr.com/31366117_b1a791d68e_o.jpg", "label"=>"Original", "width"=>"1024"}]
|
16
|
-
end
|
17
|
-
|
18
|
-
def description
|
19
|
-
"This is Matz, Ruby's creator"
|
20
|
-
end
|
21
|
-
|
22
|
-
def title
|
23
|
-
"Matz"
|
24
|
-
end
|
25
|
-
|
26
|
-
def url
|
27
|
-
"http://www.flickr.com/users/scottlaird/31366117"
|
28
|
-
end
|
29
|
-
end
|
30
|
-
end
|
@@ -1,39 +0,0 @@
|
|
1
|
-
module Net
|
2
|
-
remove_const "HTTP"
|
3
|
-
class Request < Struct.new(:host, :port, :query, :post_data, :headers)
|
4
|
-
def post(query, post, headers = {})
|
5
|
-
self.query = query
|
6
|
-
self.post_data = post
|
7
|
-
self.headers = headers
|
8
|
-
end
|
9
|
-
end
|
10
|
-
|
11
|
-
class Net::HTTP
|
12
|
-
def initialize(*args)
|
13
|
-
end
|
14
|
-
|
15
|
-
def self.start(host, port)
|
16
|
-
request = Request.new
|
17
|
-
request.host = host
|
18
|
-
request.port = port
|
19
|
-
|
20
|
-
@pings ||= []
|
21
|
-
@pings << request
|
22
|
-
|
23
|
-
yield request
|
24
|
-
|
25
|
-
end
|
26
|
-
|
27
|
-
def self.pings
|
28
|
-
@pings
|
29
|
-
end
|
30
|
-
|
31
|
-
def self.next_response=(mock_response)
|
32
|
-
@@response = mock_response
|
33
|
-
end
|
34
|
-
|
35
|
-
def self.get_response(*args)
|
36
|
-
@@response
|
37
|
-
end
|
38
|
-
end
|
39
|
-
end
|
@@ -1,28 +0,0 @@
|
|
1
|
-
module XMLRPC
|
2
|
-
class XMLRPC::Client
|
3
|
-
attr_reader :method_name, :args
|
4
|
-
attr_accessor :uri
|
5
|
-
$xmlrpc_pings = []
|
6
|
-
|
7
|
-
def initialize
|
8
|
-
end
|
9
|
-
|
10
|
-
def self.new2(uri)
|
11
|
-
$xmlrpc_pings ||= []
|
12
|
-
client = new
|
13
|
-
client.uri = uri
|
14
|
-
client
|
15
|
-
end
|
16
|
-
|
17
|
-
def self.pings
|
18
|
-
$xmlrpc_pings
|
19
|
-
end
|
20
|
-
|
21
|
-
def call(name, *args)
|
22
|
-
@method_name = name
|
23
|
-
@args = *args
|
24
|
-
$xmlrpc_pings ||= []
|
25
|
-
$xmlrpc_pings << self
|
26
|
-
end
|
27
|
-
end
|
28
|
-
end
|
File without changes
|
File without changes
|
File without changes
|
@@ -1,7 +0,0 @@
|
|
1
|
-
### Typographic by [Hélène][1]
|
2
|
-
|
3
|
-
Typographic is the new Typo default theme starting version 5.0.4. It was specially designed for this use by [Hélène][2] for [O2source][3].
|
4
|
-
|
5
|
-
[1]: http://www.o2sources.com/people/helene
|
6
|
-
[2]:http://www.jeuxdemaux.com/
|
7
|
-
[3]: http://www.o2sources.com
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -1,42 +0,0 @@
|
|
1
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
2
|
-
<html xmlns="http://www.w3.org/1999/xhtml">
|
3
|
-
<head>
|
4
|
-
<title><%=h page_title %></title>
|
5
|
-
<%= page_header %>
|
6
|
-
<%= stylesheet_link_tag '/stylesheets/theme/style.css', :media => 'all' %>
|
7
|
-
</head>
|
8
|
-
|
9
|
-
<body>
|
10
|
-
<div id="wrapper">
|
11
|
-
<!-- start header -->
|
12
|
-
<div id="header">
|
13
|
-
<h1><%= link_to this_blog.blog_name, this_blog.base_url %></h1>
|
14
|
-
<p class="desc"><%= this_blog.blog_subtitle %></p>
|
15
|
-
</div>
|
16
|
-
<!-- end header -->
|
17
|
-
|
18
|
-
<div id="page">
|
19
|
-
<div id="sidebar">
|
20
|
-
<!-- search -->
|
21
|
-
<%= render :partial => 'shared/search' %>
|
22
|
-
|
23
|
-
<!-- sidebar components -->
|
24
|
-
<%= render_sidebars %>
|
25
|
-
</div>
|
26
|
-
|
27
|
-
<div id="content">
|
28
|
-
<%= @content_for_layout %>
|
29
|
-
<%= javascript_tag 'show_dates_as_local_time()' %>
|
30
|
-
</div>
|
31
|
-
|
32
|
-
<div id="footer">
|
33
|
-
<div class="wrap">
|
34
|
-
<p id="legal">
|
35
|
-
<%= _("Powered by %s", link_to ('typo', 'http://typosphere.org')) %>
|
36
|
-
<%= _("Designed by %s ", link_to ('Hélène', 'http://www.o2sources.com/people/helene')) %>
|
37
|
-
</p>
|
38
|
-
</div>
|
39
|
-
</div>
|
40
|
-
</body>
|
41
|
-
</html>
|
42
|
-
|