zena 1.0.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/History.txt +28 -0
- data/README.rdoc +6 -6
- data/Rakefile +3 -0
- data/app/controllers/users_controller.rb +4 -2
- data/app/models/acl.rb +6 -0
- data/app/models/cached_page.rb +2 -1
- data/app/models/document.rb +3 -4
- data/app/models/node.rb +8 -5
- data/app/models/site.rb +1 -1
- data/app/models/template.rb +2 -2
- data/app/models/user.rb +5 -3
- data/app/views/acls/_add.rhtml +2 -1
- data/app/views/acls/_form.rhtml +15 -7
- data/app/views/acls/_li.rhtml +2 -0
- data/app/views/acls/index.rhtml +3 -1
- data/app/views/acls/show.html.erb +1 -1
- data/app/views/links/destroy.rjs +16 -2
- data/app/views/versions/destroy.rjs +1 -1
- data/app/views/zafu/default/Node-admin.zafu +1 -1
- data/bin/zena +5 -3
- data/bricks/acls/lib/bricks/acls.rb +11 -4
- data/bricks/acls/zena/migrate/20110627193757_add_allowed_mode_and_format_to_acl.rb +11 -0
- data/bricks/acls/zena/test/integration/acl_integration_test.rb +42 -0
- data/bricks/acls/zena/test/sites/erebus/acls.yml +8 -0
- data/bricks/mongrel/zena/deploy.rb +19 -0
- data/bricks/single/lib/bricks/single.rb +15 -0
- data/bricks/single/zena/init.rb +1 -0
- data/bricks/sphinx/zena/tasks.rb +1 -1
- data/bricks/static/lib/bricks/static.rb +151 -0
- data/bricks/static/zena/init.rb +1 -0
- data/bricks/static/zena/migrate/20110702010330_add_static_to_idx_templates.rb +12 -0
- data/bricks/static/zena/skins/blog/Image-edit.zafu +6 -0
- data/bricks/static/zena/skins/blog/Image.zafu +19 -0
- data/bricks/static/zena/skins/blog/Node-+index.zafu +1 -0
- data/bricks/static/zena/skins/blog/Node-+notFound.zafu +7 -0
- data/bricks/static/zena/skins/blog/Node-+search.zafu +19 -0
- data/bricks/static/zena/skins/blog/Node.zafu +66 -0
- data/bricks/static/zena/skins/blog/Post.zafu +12 -0
- data/bricks/static/zena/skins/blog/Project--kml.zafu +30 -0
- data/bricks/static/zena/skins/blog/Project.zafu +45 -0
- data/bricks/static/zena/skins/blog/comments.zafu +30 -0
- data/bricks/static/zena/skins/blog/dict.yml +11 -0
- data/bricks/static/zena/skins/blog/img/dateBg.jpg +0 -0
- data/bricks/static/zena/skins/blog/img/header.png +0 -0
- data/bricks/static/zena/skins/blog/img/mapPin.png +0 -0
- data/bricks/static/zena/skins/blog/img/menu.gif +0 -0
- data/bricks/static/zena/skins/blog/img/menuover.gif +0 -0
- data/bricks/static/zena/skins/blog/img/style.css +110 -0
- data/bricks/static/zena/test/integration/static_integration_test.rb +30 -0
- data/bricks/static/zena/test/unit/static_test.rb +33 -0
- data/bricks/zena/zena/migrate/01_base.rb +1 -2
- data/bricks/zena/zena/migrate/20110623072048_fix_cached_path_index.rb +10 -0
- data/bricks/zena/zena/migrate/20110710113731_remove_icon_field.rb +18 -0
- data/config/bricks.yml +4 -0
- data/config/deploy.rb +17 -2
- data/config/gems.yml +9 -7
- data/config/selenium.yml +38 -0
- data/lib/bricks/requirements_validation.rb +8 -2
- data/lib/gettext_strings.rb +2 -1
- data/lib/tasks/zena.rake +5 -0
- data/lib/zena/app.rb +12 -0
- data/lib/zena/console.rb +9 -1
- data/lib/zena/core_ext/string.rb +7 -2
- data/lib/zena/deploy.rb +60 -6
- data/lib/zena/deploy/app_init.rhtml +56 -0
- data/lib/zena/deploy/haproxy.cnf.rhtml +34 -0
- data/lib/zena/deploy/httpd.rhtml +6 -0
- data/lib/zena/deploy/start_stop.rhtml +35 -0
- data/lib/zena/info.rb +1 -1
- data/lib/zena/remote/connection.rb +1 -1
- data/lib/zena/site_worker.rb +9 -5
- data/lib/zena/use.rb +1 -1
- data/lib/zena/use/action.rb +2 -2
- data/lib/zena/use/ajax.rb +22 -9
- data/lib/zena/use/conditional.rb +5 -0
- data/lib/zena/use/context.rb +6 -1
- data/lib/zena/use/dates.rb +17 -2
- data/lib/zena/use/display.rb +14 -3
- data/lib/zena/use/forms.rb +37 -47
- data/lib/zena/use/html_tags.rb +3 -0
- data/lib/zena/use/node_context.rb +17 -17
- data/lib/zena/use/rendering.rb +1 -1
- data/lib/zena/use/urls.rb +11 -2
- data/lib/zena/use/zafu_attributes.rb +1 -0
- data/lib/zena/use/zafu_safe_definitions.rb +16 -1
- data/lib/zena/use/zafu_templates.rb +39 -24
- data/lib/zena/use/zazen.rb +1 -0
- data/locale/de/LC_MESSAGES/zena.mo +0 -0
- data/locale/de/zena.po +105 -89
- data/locale/en/LC_MESSAGES/zena.mo +0 -0
- data/locale/en/zena.mo +0 -0
- data/locale/en/zena.po +188 -253
- data/locale/fr/LC_MESSAGES/zena.mo +0 -0
- data/locale/fr/zena.mo +0 -0
- data/locale/fr/zena.po +200 -257
- data/locale/zena.pot +95 -85
- data/public/javascripts/zena.js +2 -2
- data/test/fixtures/files/{Node-test.zafu → TestNode.zafu} +206 -4
- data/test/functional/nodes_controller_test.rb +2 -2
- data/test/integration/navigation_test.rb +9 -3
- data/test/integration/query_node/basic.yml +4 -4
- data/test/integration/query_node/filters.yml +2 -2
- data/test/integration/zafu_compiler/ajax.yml +6 -6
- data/test/integration/zafu_compiler/basic.yml +1 -1
- data/test/integration/zafu_compiler/calendar.yml +4 -3
- data/test/integration/zafu_compiler/conditional.yml +3 -10
- data/test/integration/zafu_compiler/context.yml +1 -1
- data/test/integration/zafu_compiler/dates.yml +9 -1
- data/test/integration/zafu_compiler/display.yml +7 -1
- data/test/integration/zafu_compiler/eval.yml +12 -46
- data/test/integration/zafu_compiler/forms.yml +1 -1
- data/test/integration/zafu_compiler/query.yml +2 -2
- data/test/integration/zafu_compiler/relations.yml +19 -9
- data/test/integration/zafu_compiler/roles.yml +12 -0
- data/test/integration/zafu_compiler/safe_definitions.yml +1 -1
- data/test/integration/zafu_compiler/urls.yml +13 -5
- data/test/integration/zafu_compiler/version.yml +6 -0
- data/test/integration/zafu_compiler/zafu_attributes.yml +4 -4
- data/test/integration/zafu_compiler_test.rb +1 -1
- data/test/selenium.readme +8 -0
- data/test/selenium/Add/0setup.rsel +12 -0
- data/test/selenium/Add/add1.rsel +22 -0
- data/test/selenium/Add/add2.rsel +22 -0
- data/test/selenium/Add/add3.rsel +22 -0
- data/test/selenium/Drop/0setup.rsel +12 -0
- data/test/selenium/Drop/drop1.rsel +25 -0
- data/test/selenium/Drop/drop2.rsel +25 -0
- data/test/selenium/Drop/drop3.rsel +51 -0
- data/test/selenium/Drop/drop4.rsel +44 -0
- data/test/selenium/Drop/drop5.rsel +16 -0
- data/test/selenium/Edit/0setup.rsel +12 -0
- data/test/selenium/Edit/edit1.rsel +31 -0
- data/test/selenium/Edit/edit2.rsel +39 -0
- data/test/selenium/Edit/edit3.rsel +40 -0
- data/test/selenium/Form/0setup.rsel +12 -0
- data/test/selenium/Form/form1.rsel +9 -0
- data/test/selenium/Form/form2.rsel +9 -0
- data/test/selenium/Paginate/0setup.rsel +12 -0
- data/test/selenium/Paginate/paginate1.rsel +24 -0
- data/test/selenium/Toggle/0setup.rsel +12 -0
- data/test/selenium/Toggle/toggle1.rsel +21 -0
- data/test/sites/zena/nodes.yml +4 -4
- data/test/sites/zena/roles.yml +3 -2
- data/test/sites/zena/versions.yml +12 -11
- data/test/unit/core_ext_test.rb +23 -5
- data/test/unit/document_test.rb +6 -2
- data/test/unit/node_test.rb +2 -2
- data/test/unit/remote_test.rb +1 -2
- data/test/unit/role_test.rb +2 -2
- data/test/unit/user_test.rb +48 -1
- data/test/unit/virtual_class_test.rb +7 -7
- data/test/unit/zena/acts/secure_test.rb +1 -1
- data/test/unit/zena/use/rendering_test.rb +1 -1
- data/test/unit/zena/use/urls_test.rb +3 -3
- data/zena.gemspec +65 -101
- metadata +67 -103
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Commands/Run 2.tmCommand +0 -24
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Commands/Run Context.tmCommand +0 -58
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Commands/Run Focused Should.tmCommand +0 -88
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Commands/Run.tmCommand +0 -27
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Commands/YAML to Shoulda.tmCommand +0 -23
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Preferences/Symbol List: Context.tmPreferences +0 -19
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Preferences/Symbol List: Should.tmPreferences +0 -19
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/Factory attributes for.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/Factory build.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/Factory.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/Factory_define with class.tmSnippet +0 -18
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/Factory_define.tmSnippet +0 -18
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/Factory_next.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/Factory_sequence.tmSnippet +0 -18
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/assert_bad_value.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/assert_contains.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/assert_does_not_contain.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/assert_good_value.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/assert_same_elements.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/assert_save.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/assert_sent_email.tmSnippet +0 -18
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/assert_valid.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/association.tmSnippet +0 -17
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/attribute.tmSnippet +0 -17
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/before_should block.tmSnippet +0 -18
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/context block get.tmSnippet +0 -22
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/context block post.tmSnippet +0 -23
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/context block with setup.tmSnippet +0 -25
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/setup.tmSnippet +0 -18
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should block with before proc.tmSnippet +0 -18
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should block.tmSnippet +0 -18
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_allow_values_for.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_assign_to.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_be_restful denied.tmSnippet +0 -20
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_be_restful.tmSnippet +0 -20
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_belong_to.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_change by.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_change from to.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_ensure_length_at_least.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_ensure_length_in_range.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_ensure_length_is.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_ensure_value_in_range.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_eventually.tmSnippet +0 -18
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_filter_params.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_have_and_belong_to_many.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_have_class_methods.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_have_db_column.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_have_db_columns.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_have_index.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_have_indices.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_have_instance_methods.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_have_many.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_have_named_scope.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_have_one.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_have_readonly_attributes.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_not_allow_mass_assignment_of.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_not_allow_values_for.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_not_assign_to.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_not_change.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_not_set_the_flash.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_redirect_to.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_render_a_form.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_render_template.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_render_with_layout.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_render_without_layout.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_respond_with.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_respond_with_content_type.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_return_from_session.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_route.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_set_the_flash_to.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_validate_acceptance_of.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_validate_numericality_of.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_validate_presence_of.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_validate_uniqueness_of with scope.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_validate_uniqueness_of.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Support/RubyMate/catch_exception.rb +0 -39
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Support/RubyMate/run_script.rb +0 -104
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Support/RubyMate/stdin_dialog.rb +0 -14
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Support/RubyMate/test.rb +0 -17
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Support/RubyMate/todo.txt +0 -13
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Support/bin/yaml_to_shoulda.rb +0 -25
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Syntaxes/Ruby on Rails (Shoulda).tmLanguage +0 -166
- data/vendor/TextMate/Ruby Shoulda.tmbundle/info.plist +0 -304
- data/vendor/TextMate/Zena.tmbundle/Commands/Run all yaml tests.tmCommand +0 -37
- data/vendor/TextMate/Zena.tmbundle/Commands/Run focused yaml test.tmCommand +0 -52
- data/vendor/TextMate/Zena.tmbundle/Support/RubyMate/catch_exception.rb +0 -39
- data/vendor/TextMate/Zena.tmbundle/Support/RubyMate/run_script.rb +0 -118
- data/vendor/TextMate/Zena.tmbundle/Support/RubyMate/stdin_dialog.rb +0 -14
- data/vendor/TextMate/Zena.tmbundle/info.plist +0 -17
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
-
<plist version="1.0">
|
|
4
|
-
<dict>
|
|
5
|
-
<key>content</key>
|
|
6
|
-
<string>context "on POST to :${1:create}" do
|
|
7
|
-
setup { post :$1, :${2:user} => { ${3::${4:key} => ${5:value}${6:, :${7:key} => ${8:value}}} } }
|
|
8
|
-
|
|
9
|
-
${9:should "${10:description}" do
|
|
10
|
-
$0
|
|
11
|
-
end}
|
|
12
|
-
end
|
|
13
|
-
</string>
|
|
14
|
-
<key>name</key>
|
|
15
|
-
<string>context block post</string>
|
|
16
|
-
<key>scope</key>
|
|
17
|
-
<string>source.ruby.rails.shoulda</string>
|
|
18
|
-
<key>tabTrigger</key>
|
|
19
|
-
<string>contp</string>
|
|
20
|
-
<key>uuid</key>
|
|
21
|
-
<string>CFF59EC4-3F70-4593-9697-34241653E003</string>
|
|
22
|
-
</dict>
|
|
23
|
-
</plist>
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
-
<plist version="1.0">
|
|
4
|
-
<dict>
|
|
5
|
-
<key>content</key>
|
|
6
|
-
<string>context '${1:description}' do
|
|
7
|
-
${2:setup do
|
|
8
|
-
$3
|
|
9
|
-
end
|
|
10
|
-
|
|
11
|
-
}should '${4:description}' do
|
|
12
|
-
$0
|
|
13
|
-
end
|
|
14
|
-
end
|
|
15
|
-
</string>
|
|
16
|
-
<key>name</key>
|
|
17
|
-
<string>context block with setup</string>
|
|
18
|
-
<key>scope</key>
|
|
19
|
-
<string>source.ruby.rails.shoulda</string>
|
|
20
|
-
<key>tabTrigger</key>
|
|
21
|
-
<string>cont</string>
|
|
22
|
-
<key>uuid</key>
|
|
23
|
-
<string>9AD00D7F-EB66-431C-A3BD-13DEE32BA00F</string>
|
|
24
|
-
</dict>
|
|
25
|
-
</plist>
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
-
<plist version="1.0">
|
|
4
|
-
<dict>
|
|
5
|
-
<key>content</key>
|
|
6
|
-
<string>setup do
|
|
7
|
-
$0
|
|
8
|
-
end</string>
|
|
9
|
-
<key>name</key>
|
|
10
|
-
<string>setup</string>
|
|
11
|
-
<key>scope</key>
|
|
12
|
-
<string>source.ruby.rails.shoulda</string>
|
|
13
|
-
<key>tabTrigger</key>
|
|
14
|
-
<string>setup</string>
|
|
15
|
-
<key>uuid</key>
|
|
16
|
-
<string>645882B7-2BA1-4574-B268-C72716FEF111</string>
|
|
17
|
-
</dict>
|
|
18
|
-
</plist>
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
-
<plist version="1.0">
|
|
4
|
-
<dict>
|
|
5
|
-
<key>content</key>
|
|
6
|
-
<string>should '$1', :before => ${2:lambda { ${3:any_code} \}} do
|
|
7
|
-
$0
|
|
8
|
-
end</string>
|
|
9
|
-
<key>name</key>
|
|
10
|
-
<string>should block with before proc</string>
|
|
11
|
-
<key>scope</key>
|
|
12
|
-
<string>source.ruby.rails.shoulda</string>
|
|
13
|
-
<key>tabTrigger</key>
|
|
14
|
-
<string>shb</string>
|
|
15
|
-
<key>uuid</key>
|
|
16
|
-
<string>6DA95A99-EC2D-4F6A-98D8-333F811EB18C</string>
|
|
17
|
-
</dict>
|
|
18
|
-
</plist>
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
-
<plist version="1.0">
|
|
4
|
-
<dict>
|
|
5
|
-
<key>content</key>
|
|
6
|
-
<string>should '$1' do
|
|
7
|
-
$0
|
|
8
|
-
end</string>
|
|
9
|
-
<key>name</key>
|
|
10
|
-
<string>should block</string>
|
|
11
|
-
<key>scope</key>
|
|
12
|
-
<string>source.ruby.rails.shoulda</string>
|
|
13
|
-
<key>tabTrigger</key>
|
|
14
|
-
<string>sh</string>
|
|
15
|
-
<key>uuid</key>
|
|
16
|
-
<string>D8AB6BAF-153A-4134-9A46-B1273943F16D</string>
|
|
17
|
-
</dict>
|
|
18
|
-
</plist>
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
-
<plist version="1.0">
|
|
4
|
-
<dict>
|
|
5
|
-
<key>content</key>
|
|
6
|
-
<string>should_allow_values_for :${1:attribute}, "$2"${3:, "$4"${5:, "$6"}}</string>
|
|
7
|
-
<key>name</key>
|
|
8
|
-
<string>should_allow_values_for</string>
|
|
9
|
-
<key>scope</key>
|
|
10
|
-
<string>source.ruby.rails.shoulda</string>
|
|
11
|
-
<key>tabTrigger</key>
|
|
12
|
-
<string>shav</string>
|
|
13
|
-
<key>uuid</key>
|
|
14
|
-
<string>F312BABE-A19D-4451-A714-4FA4127AD2DD</string>
|
|
15
|
-
</dict>
|
|
16
|
-
</plist>
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
-
<plist version="1.0">
|
|
4
|
-
<dict>
|
|
5
|
-
<key>content</key>
|
|
6
|
-
<string>should_assign_to :${1:name}${2:${3:, :class => ${4:Model}}${5:, :equals => '${6:@$1}'}}</string>
|
|
7
|
-
<key>name</key>
|
|
8
|
-
<string>should_assign_to</string>
|
|
9
|
-
<key>scope</key>
|
|
10
|
-
<string>source.ruby.rails.shoulda</string>
|
|
11
|
-
<key>tabTrigger</key>
|
|
12
|
-
<string>sha</string>
|
|
13
|
-
<key>uuid</key>
|
|
14
|
-
<string>1FB69312-1897-4A64-A7E8-F7B699F871B1</string>
|
|
15
|
-
</dict>
|
|
16
|
-
</plist>
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
-
<plist version="1.0">
|
|
4
|
-
<dict>
|
|
5
|
-
<key>content</key>
|
|
6
|
-
<string>should_be_restful do |resource|
|
|
7
|
-
resource.denied.actions = :${1:all}
|
|
8
|
-
resource.denied.flash = /${2:must be logged in}/i
|
|
9
|
-
resource.denied.redirect = '${3:login_url}'
|
|
10
|
-
end</string>
|
|
11
|
-
<key>name</key>
|
|
12
|
-
<string>should_be_restful denied</string>
|
|
13
|
-
<key>scope</key>
|
|
14
|
-
<string>source.ruby.rails.shoulda</string>
|
|
15
|
-
<key>tabTrigger</key>
|
|
16
|
-
<string>shbrdenied</string>
|
|
17
|
-
<key>uuid</key>
|
|
18
|
-
<string>436D0EC3-9F61-46E7-9A86-C775D4515DB5</string>
|
|
19
|
-
</dict>
|
|
20
|
-
</plist>
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
-
<plist version="1.0">
|
|
4
|
-
<dict>
|
|
5
|
-
<key>content</key>
|
|
6
|
-
<string>should_be_restful do |resource|
|
|
7
|
-
resource.formats = [:html]
|
|
8
|
-
${1:resource.${2:something}}
|
|
9
|
-
end
|
|
10
|
-
$0</string>
|
|
11
|
-
<key>name</key>
|
|
12
|
-
<string>should_be_restful</string>
|
|
13
|
-
<key>scope</key>
|
|
14
|
-
<string>source.ruby.rails.shoulda</string>
|
|
15
|
-
<key>tabTrigger</key>
|
|
16
|
-
<string>shbr</string>
|
|
17
|
-
<key>uuid</key>
|
|
18
|
-
<string>3072E3F8-22C5-467E-BE8C-8C14DF4308A7</string>
|
|
19
|
-
</dict>
|
|
20
|
-
</plist>
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
-
<plist version="1.0">
|
|
4
|
-
<dict>
|
|
5
|
-
<key>content</key>
|
|
6
|
-
<string>should_belong_to :${1:object}</string>
|
|
7
|
-
<key>name</key>
|
|
8
|
-
<string>should_belong_to</string>
|
|
9
|
-
<key>scope</key>
|
|
10
|
-
<string>source.ruby.rails.shoulda</string>
|
|
11
|
-
<key>tabTrigger</key>
|
|
12
|
-
<string>shbt</string>
|
|
13
|
-
<key>uuid</key>
|
|
14
|
-
<string>AFAC9DA9-19C9-417C-8F6D-C8757450E1A8</string>
|
|
15
|
-
</dict>
|
|
16
|
-
</plist>
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
-
<plist version="1.0">
|
|
4
|
-
<dict>
|
|
5
|
-
<key>content</key>
|
|
6
|
-
<string>should_change "${1:${2:Model}.${3:count}}"${4:, :by => ${5:value}}</string>
|
|
7
|
-
<key>name</key>
|
|
8
|
-
<string>should_change by</string>
|
|
9
|
-
<key>scope</key>
|
|
10
|
-
<string>source.ruby.rails.shoulda</string>
|
|
11
|
-
<key>tabTrigger</key>
|
|
12
|
-
<string>shc</string>
|
|
13
|
-
<key>uuid</key>
|
|
14
|
-
<string>A425CEA8-E040-4A05-8407-9963A21F8458</string>
|
|
15
|
-
</dict>
|
|
16
|
-
</plist>
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
-
<plist version="1.0">
|
|
4
|
-
<dict>
|
|
5
|
-
<key>content</key>
|
|
6
|
-
<string>should_change "${1:${2:Model}.${3:count}}"${4:${5:, :from => ${6:old_value}}${7:, :to => ${8:new_value}}}</string>
|
|
7
|
-
<key>name</key>
|
|
8
|
-
<string>should_change from to</string>
|
|
9
|
-
<key>scope</key>
|
|
10
|
-
<string>source.ruby.rails.shoulda</string>
|
|
11
|
-
<key>tabTrigger</key>
|
|
12
|
-
<string>shc</string>
|
|
13
|
-
<key>uuid</key>
|
|
14
|
-
<string>FC179DAC-A1BC-476C-BB86-FD0FC62B9B1B</string>
|
|
15
|
-
</dict>
|
|
16
|
-
</plist>
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
-
<plist version="1.0">
|
|
4
|
-
<dict>
|
|
5
|
-
<key>content</key>
|
|
6
|
-
<string>should_ensure_length_at_least :${1:attribute}, ${2:min_length}</string>
|
|
7
|
-
<key>name</key>
|
|
8
|
-
<string>should_ensure_length_at_least</string>
|
|
9
|
-
<key>scope</key>
|
|
10
|
-
<string>source.ruby.rails.shoulda</string>
|
|
11
|
-
<key>tabTrigger</key>
|
|
12
|
-
<string>shel</string>
|
|
13
|
-
<key>uuid</key>
|
|
14
|
-
<string>38012D12-1485-13A6-56701D95CBCE3780</string>
|
|
15
|
-
</dict>
|
|
16
|
-
</plist>
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
-
<plist version="1.0">
|
|
4
|
-
<dict>
|
|
5
|
-
<key>content</key>
|
|
6
|
-
<string>should_ensure_length_in_range :${1:attribute}, (${2:range})</string>
|
|
7
|
-
<key>name</key>
|
|
8
|
-
<string>should_ensure_length_in_range</string>
|
|
9
|
-
<key>scope</key>
|
|
10
|
-
<string>source.ruby.rails.shoulda</string>
|
|
11
|
-
<key>tabTrigger</key>
|
|
12
|
-
<string>shel</string>
|
|
13
|
-
<key>uuid</key>
|
|
14
|
-
<string>279BC6CF-139C-486A-ADD3-59E7D1BFC412</string>
|
|
15
|
-
</dict>
|
|
16
|
-
</plist>
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
-
<plist version="1.0">
|
|
4
|
-
<dict>
|
|
5
|
-
<key>content</key>
|
|
6
|
-
<string>should_ensure_length_is :${1:attribute}, ${2:length}</string>
|
|
7
|
-
<key>name</key>
|
|
8
|
-
<string>should_ensure_length_is</string>
|
|
9
|
-
<key>scope</key>
|
|
10
|
-
<string>source.ruby.rails.shoulda</string>
|
|
11
|
-
<key>tabTrigger</key>
|
|
12
|
-
<string>shel</string>
|
|
13
|
-
<key>uuid</key>
|
|
14
|
-
<string>1954ED62-6BB5-4906-B178-45D639FD4101</string>
|
|
15
|
-
</dict>
|
|
16
|
-
</plist>
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
-
<plist version="1.0">
|
|
4
|
-
<dict>
|
|
5
|
-
<key>content</key>
|
|
6
|
-
<string>should_ensure_value_in_range :${1:attribute}, (${2:range})</string>
|
|
7
|
-
<key>name</key>
|
|
8
|
-
<string>should_ensure_value_in_range</string>
|
|
9
|
-
<key>scope</key>
|
|
10
|
-
<string>source.ruby.rails.shoulda</string>
|
|
11
|
-
<key>tabTrigger</key>
|
|
12
|
-
<string>sher</string>
|
|
13
|
-
<key>uuid</key>
|
|
14
|
-
<string>D80B7236-B3A8-4E47-B70D-57F5561419D7</string>
|
|
15
|
-
</dict>
|
|
16
|
-
</plist>
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
-
<plist version="1.0">
|
|
4
|
-
<dict>
|
|
5
|
-
<key>content</key>
|
|
6
|
-
<string>should_eventually "$1" do
|
|
7
|
-
$0
|
|
8
|
-
end</string>
|
|
9
|
-
<key>name</key>
|
|
10
|
-
<string>should_eventually</string>
|
|
11
|
-
<key>scope</key>
|
|
12
|
-
<string>source.ruby.rails.shoulda</string>
|
|
13
|
-
<key>tabTrigger</key>
|
|
14
|
-
<string>she</string>
|
|
15
|
-
<key>uuid</key>
|
|
16
|
-
<string>7F642DCE-BDA2-4630-8215-ECE11E31CC5F</string>
|
|
17
|
-
</dict>
|
|
18
|
-
</plist>
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
-
<plist version="1.0">
|
|
4
|
-
<dict>
|
|
5
|
-
<key>content</key>
|
|
6
|
-
<string>should_filter_params :${1:key}${2:, :${3:key}${4:, :${5:key}}}</string>
|
|
7
|
-
<key>name</key>
|
|
8
|
-
<string>should_filter_params</string>
|
|
9
|
-
<key>scope</key>
|
|
10
|
-
<string>source.ruby.rails.shoulda</string>
|
|
11
|
-
<key>tabTrigger</key>
|
|
12
|
-
<string>shfp</string>
|
|
13
|
-
<key>uuid</key>
|
|
14
|
-
<string>6CF2F8CC-F6B1-480E-849D-AB9F646E90EF</string>
|
|
15
|
-
</dict>
|
|
16
|
-
</plist>
|
data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_have_and_belong_to_many.tmSnippet
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
-
<plist version="1.0">
|
|
4
|
-
<dict>
|
|
5
|
-
<key>content</key>
|
|
6
|
-
<string>should_have_and_belong_to_many :${1:object}${2:, :${3:object}${4:, :${5:object}}}</string>
|
|
7
|
-
<key>name</key>
|
|
8
|
-
<string>should_have_and_belong_to_many</string>
|
|
9
|
-
<key>scope</key>
|
|
10
|
-
<string>source.ruby.rails.shoulda</string>
|
|
11
|
-
<key>tabTrigger</key>
|
|
12
|
-
<string>shhabtm</string>
|
|
13
|
-
<key>uuid</key>
|
|
14
|
-
<string>5595BC8B-3932-407A-9457-968A96662D2C</string>
|
|
15
|
-
</dict>
|
|
16
|
-
</plist>
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
-
<plist version="1.0">
|
|
4
|
-
<dict>
|
|
5
|
-
<key>content</key>
|
|
6
|
-
<string>should_have_class_methods :${1:method}${2:, :${3:method}${4:, :${5:method}}}</string>
|
|
7
|
-
<key>name</key>
|
|
8
|
-
<string>should_have_class_methods</string>
|
|
9
|
-
<key>scope</key>
|
|
10
|
-
<string>source.ruby.rails.shoulda</string>
|
|
11
|
-
<key>tabTrigger</key>
|
|
12
|
-
<string>shhcm</string>
|
|
13
|
-
<key>uuid</key>
|
|
14
|
-
<string>BEC0BD89-6425-4547-9FF2-9BB35A2FAA58</string>
|
|
15
|
-
</dict>
|
|
16
|
-
</plist>
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
-
<plist version="1.0">
|
|
4
|
-
<dict>
|
|
5
|
-
<key>content</key>
|
|
6
|
-
<string>should_have_db_column :${1:name}${2:, :${3:type} => ${4:"${5:string}"}${6:, :${7:default} => ${8:nil}}}</string>
|
|
7
|
-
<key>name</key>
|
|
8
|
-
<string>should_have_db_column</string>
|
|
9
|
-
<key>scope</key>
|
|
10
|
-
<string>source.ruby.rails.shoulda</string>
|
|
11
|
-
<key>tabTrigger</key>
|
|
12
|
-
<string>shhdc</string>
|
|
13
|
-
<key>uuid</key>
|
|
14
|
-
<string>C8D9DE77-4B1F-4064-9410-E1B7F785095B</string>
|
|
15
|
-
</dict>
|
|
16
|
-
</plist>
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
-
<plist version="1.0">
|
|
4
|
-
<dict>
|
|
5
|
-
<key>content</key>
|
|
6
|
-
<string>should_have_db_columns :${1:column}${2:, :${3:column}${4:, :${5:column}}}</string>
|
|
7
|
-
<key>name</key>
|
|
8
|
-
<string>should_have_db_columns</string>
|
|
9
|
-
<key>scope</key>
|
|
10
|
-
<string>source.ruby.rails.shoulda</string>
|
|
11
|
-
<key>tabTrigger</key>
|
|
12
|
-
<string>shhdc</string>
|
|
13
|
-
<key>uuid</key>
|
|
14
|
-
<string>AFAFBE19-C52E-43F0-9B28-B8318134F18B</string>
|
|
15
|
-
</dict>
|
|
16
|
-
</plist>
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
-
<plist version="1.0">
|
|
4
|
-
<dict>
|
|
5
|
-
<key>content</key>
|
|
6
|
-
<string>should_have_index :${1:column}</string>
|
|
7
|
-
<key>name</key>
|
|
8
|
-
<string>should_have_index</string>
|
|
9
|
-
<key>scope</key>
|
|
10
|
-
<string>source.ruby.rails.shoulda</string>
|
|
11
|
-
<key>tabTrigger</key>
|
|
12
|
-
<string>shhi</string>
|
|
13
|
-
<key>uuid</key>
|
|
14
|
-
<string>4B75A76F-D56C-4B2D-A786-8EBDA6D21E12</string>
|
|
15
|
-
</dict>
|
|
16
|
-
</plist>
|