zena 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- 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,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_indices :${1:column}${2:, :${3:column}${4:, :${5:column}}}</string>
|
7
|
-
<key>name</key>
|
8
|
-
<string>should_have_indices</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>B2C2BBCD-C38C-4A5D-853A-7226DC4C440F</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_instance_methods :${1:method}${2:, :${3:method}${4:, :${5:method}}}</string>
|
7
|
-
<key>name</key>
|
8
|
-
<string>should_have_instance_methods</string>
|
9
|
-
<key>scope</key>
|
10
|
-
<string>source.ruby.rails.shoulda</string>
|
11
|
-
<key>tabTrigger</key>
|
12
|
-
<string>shhim</string>
|
13
|
-
<key>uuid</key>
|
14
|
-
<string>5827CC16-B6E8-4293-A3CB-3969E5062C43</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_many :${1:objects}${2:${3:, :through => :${4:association}}${5:, :dependent => :${6:destroy}}}$0</string>
|
7
|
-
<key>name</key>
|
8
|
-
<string>should_have_many</string>
|
9
|
-
<key>scope</key>
|
10
|
-
<string>source.ruby.rails.shoulda</string>
|
11
|
-
<key>tabTrigger</key>
|
12
|
-
<string>shhm</string>
|
13
|
-
<key>uuid</key>
|
14
|
-
<string>43E1D56D-73E1-449B-A99B-8ECC4C438618</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_named_scope :${1:scope_call}${2:, :conditions => { :${3:column} => ${4:value} \}}</string>
|
7
|
-
<key>name</key>
|
8
|
-
<string>should_have_named_scope</string>
|
9
|
-
<key>scope</key>
|
10
|
-
<string>source.ruby.rails.shoulda</string>
|
11
|
-
<key>tabTrigger</key>
|
12
|
-
<string>shhns</string>
|
13
|
-
<key>uuid</key>
|
14
|
-
<string>AB124E74-8CD3-4C35-8006-62DDBE5625D8</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_one :${1:object}${2:, :dependent => :${3:destroy}}</string>
|
7
|
-
<key>name</key>
|
8
|
-
<string>should_have_one</string>
|
9
|
-
<key>scope</key>
|
10
|
-
<string>source.ruby.rails.shoulda</string>
|
11
|
-
<key>tabTrigger</key>
|
12
|
-
<string>shho</string>
|
13
|
-
<key>uuid</key>
|
14
|
-
<string>91843C06-640F-4199-93B8-32D196350AE4</string>
|
15
|
-
</dict>
|
16
|
-
</plist>
|
data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_have_readonly_attributes.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_readonly_attributes :${1:method}${2:, :${3:method}${4:, :${5:method}}}</string>
|
7
|
-
<key>name</key>
|
8
|
-
<string>should_have_readonly_attributes</string>
|
9
|
-
<key>scope</key>
|
10
|
-
<string>source.ruby.rails.shoulda</string>
|
11
|
-
<key>tabTrigger</key>
|
12
|
-
<string>shhra</string>
|
13
|
-
<key>uuid</key>
|
14
|
-
<string>2E9D52D9-D2C0-4ED6-9073-26455DFED202</string>
|
15
|
-
</dict>
|
16
|
-
</plist>
|
data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_not_allow_mass_assignment_of.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_not_allow_mass_assignment_of :${1:attribute}${2:, :${3:attribute}${4:, :${5:attribute}}}</string>
|
7
|
-
<key>name</key>
|
8
|
-
<string>should_not_allow_mass_assignment_of</string>
|
9
|
-
<key>scope</key>
|
10
|
-
<string>source.ruby.rails.shoulda</string>
|
11
|
-
<key>tabTrigger</key>
|
12
|
-
<string>shnamao</string>
|
13
|
-
<key>uuid</key>
|
14
|
-
<string>7E8F2C3E-9490-44CA-A527-A329398064BD</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_not_allow_values_for :${1:attribute}, "$2"${3:, "$4"${5:, "$6"}}</string>
|
7
|
-
<key>name</key>
|
8
|
-
<string>should_not_allow_values_for</string>
|
9
|
-
<key>scope</key>
|
10
|
-
<string>source.ruby.rails.shoulda</string>
|
11
|
-
<key>tabTrigger</key>
|
12
|
-
<string>shnav</string>
|
13
|
-
<key>uuid</key>
|
14
|
-
<string>6D66108D-9C49-4B89-A0AE-66A3BDC75EDA</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_not_assign_to :${1:name}${2:, :${3:name}${4:, :${5:name}}}</string>
|
7
|
-
<key>name</key>
|
8
|
-
<string>should_not_assign_to</string>
|
9
|
-
<key>scope</key>
|
10
|
-
<string>source.ruby.rails.shoulda</string>
|
11
|
-
<key>tabTrigger</key>
|
12
|
-
<string>shna</string>
|
13
|
-
<key>uuid</key>
|
14
|
-
<string>F50ED5FA-79F1-4854-BEE6-9F43E329A23B</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_not_change "${1:Model}.${2:count}"</string>
|
7
|
-
<key>name</key>
|
8
|
-
<string>should_not_change</string>
|
9
|
-
<key>scope</key>
|
10
|
-
<string>source.ruby.rails.shoulda</string>
|
11
|
-
<key>tabTrigger</key>
|
12
|
-
<string>shnc</string>
|
13
|
-
<key>uuid</key>
|
14
|
-
<string>108313B5-1B3C-4099-9C8C-FEB071DE6890</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_not_set_the_flash</string>
|
7
|
-
<key>name</key>
|
8
|
-
<string>should_not_set_the_flash</string>
|
9
|
-
<key>scope</key>
|
10
|
-
<string>source.ruby.rails.shoulda</string>
|
11
|
-
<key>tabTrigger</key>
|
12
|
-
<string>shnsf</string>
|
13
|
-
<key>uuid</key>
|
14
|
-
<string>9CD1EAE0-503A-4A47-86C8-3FC2D6868B88</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_redirect_to "${1:${2:user}s_url(@$2)}"</string>
|
7
|
-
<key>name</key>
|
8
|
-
<string>should_redirect_to</string>
|
9
|
-
<key>scope</key>
|
10
|
-
<string>source.ruby.rails.shoulda</string>
|
11
|
-
<key>tabTrigger</key>
|
12
|
-
<string>shre</string>
|
13
|
-
<key>uuid</key>
|
14
|
-
<string>213E7120-B580-4C77-BD67-ACDC70A5D100</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_render_a_form</string>
|
7
|
-
<key>name</key>
|
8
|
-
<string>should_render_a_form</string>
|
9
|
-
<key>scope</key>
|
10
|
-
<string>source.ruby.rails.shoulda</string>
|
11
|
-
<key>tabTrigger</key>
|
12
|
-
<string>shraf</string>
|
13
|
-
<key>uuid</key>
|
14
|
-
<string>84EF6B11-A96D-4964-90ED-D1E7123107D7</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_render_template :${1:template}</string>
|
7
|
-
<key>name</key>
|
8
|
-
<string>should_render_template</string>
|
9
|
-
<key>scope</key>
|
10
|
-
<string>source.ruby.rails.shoulda</string>
|
11
|
-
<key>tabTrigger</key>
|
12
|
-
<string>shrt</string>
|
13
|
-
<key>uuid</key>
|
14
|
-
<string>E9F561DC-64C6-49E1-8F18-CFD1389579B4</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_render_with_layout ${1:'${2:layout}'}</string>
|
7
|
-
<key>name</key>
|
8
|
-
<string>should_render_with_layout</string>
|
9
|
-
<key>scope</key>
|
10
|
-
<string>source.ruby.rails.shoulda</string>
|
11
|
-
<key>tabTrigger</key>
|
12
|
-
<string>shrl</string>
|
13
|
-
<key>uuid</key>
|
14
|
-
<string>992B2958-BD72-4E07-9627-957CD321D711</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_render_without_layout</string>
|
7
|
-
<key>name</key>
|
8
|
-
<string>should_render_without_layout</string>
|
9
|
-
<key>scope</key>
|
10
|
-
<string>source.ruby.rails.shoulda</string>
|
11
|
-
<key>tabTrigger</key>
|
12
|
-
<string>shrl</string>
|
13
|
-
<key>uuid</key>
|
14
|
-
<string>F4A20E41-8C75-437F-BD2E-4E6E3A25E1D3</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_respond_with :${1:success}</string>
|
7
|
-
<key>name</key>
|
8
|
-
<string>should_respond_with</string>
|
9
|
-
<key>scope</key>
|
10
|
-
<string>source.ruby.rails.shoulda</string>
|
11
|
-
<key>tabTrigger</key>
|
12
|
-
<string>shrw</string>
|
13
|
-
<key>uuid</key>
|
14
|
-
<string>FAD1A46E-E71E-46E7-9F12-D83DE6F3290E</string>
|
15
|
-
</dict>
|
16
|
-
</plist>
|
data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_respond_with_content_type.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_respond_with_content_type :${1:rss}</string>
|
7
|
-
<key>name</key>
|
8
|
-
<string>should_respond_with_content_type</string>
|
9
|
-
<key>scope</key>
|
10
|
-
<string>source.ruby.rails.shoulda</string>
|
11
|
-
<key>tabTrigger</key>
|
12
|
-
<string>shrw</string>
|
13
|
-
<key>uuid</key>
|
14
|
-
<string>27547CD9-0E8C-4E61-AF21-D56D17CBD329</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_return_from_session :${1:user}, "${2:@${3:${1}}}"</string>
|
7
|
-
<key>name</key>
|
8
|
-
<string>should_return_from_session</string>
|
9
|
-
<key>scope</key>
|
10
|
-
<string>source.ruby.rails.shoulda</string>
|
11
|
-
<key>tabTrigger</key>
|
12
|
-
<string>shrfs</string>
|
13
|
-
<key>uuid</key>
|
14
|
-
<string>6B8F56ED-F4BE-4D92-A0D8-11E79DEDF31E</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_route :${1:get|post|put|delete}, "${2:/posts}"${3:, :controller => :${4:posts}}${5:, :action => :${6:create}}${7:, :id => ${8:1}}</string>
|
7
|
-
<key>name</key>
|
8
|
-
<string>should_route</string>
|
9
|
-
<key>scope</key>
|
10
|
-
<string>source.ruby.rails.shoulda</string>
|
11
|
-
<key>tabTrigger</key>
|
12
|
-
<string>shr</string>
|
13
|
-
<key>uuid</key>
|
14
|
-
<string>40F75860-994B-4E9E-9879-97CE97EF1FE3</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_set_the_flash_to ${1:value}</string>
|
7
|
-
<key>name</key>
|
8
|
-
<string>should_set_the_flash_to</string>
|
9
|
-
<key>scope</key>
|
10
|
-
<string>source.ruby.rails.shoulda</string>
|
11
|
-
<key>tabTrigger</key>
|
12
|
-
<string>shsf</string>
|
13
|
-
<key>uuid</key>
|
14
|
-
<string>E3A9360A-3177-41C4-B21B-B1411282FB16</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_validate_acceptance_of :${1:attribute}</string>
|
7
|
-
<key>name</key>
|
8
|
-
<string>should_validate_acceptance_of</string>
|
9
|
-
<key>scope</key>
|
10
|
-
<string>source.ruby.rails.shoulda</string>
|
11
|
-
<key>tabTrigger</key>
|
12
|
-
<string>shvao</string>
|
13
|
-
<key>uuid</key>
|
14
|
-
<string>D6C46A2F-48F1-4D25-A763-F89D5E630809</string>
|
15
|
-
</dict>
|
16
|
-
</plist>
|
data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_validate_numericality_of.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_validate_numericality_of :${1:attribute}</string>
|
7
|
-
<key>name</key>
|
8
|
-
<string>should_validate_numericality_of</string>
|
9
|
-
<key>scope</key>
|
10
|
-
<string>source.ruby.rails.shoulda</string>
|
11
|
-
<key>tabTrigger</key>
|
12
|
-
<string>shvno</string>
|
13
|
-
<key>uuid</key>
|
14
|
-
<string>D69EC326-DE43-4757-8375-54DDFC6894ED</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_validate_presence_of :${1:method}${2:, :${3:method}${4:, :${5:method}}}</string>
|
7
|
-
<key>name</key>
|
8
|
-
<string>should_validate_presence_of</string>
|
9
|
-
<key>scope</key>
|
10
|
-
<string>source.ruby.rails.shoulda</string>
|
11
|
-
<key>tabTrigger</key>
|
12
|
-
<string>shvpo</string>
|
13
|
-
<key>uuid</key>
|
14
|
-
<string>DBD55A6E-FEF4-4E5F-9F78-30D9ECC3FDB0</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_validate_uniqueness_of :${1:method}${2:, :scoped_to => ${3:[:${4:column_id}, :${5:column_type}]}}</string>
|
7
|
-
<key>name</key>
|
8
|
-
<string>should_validate_uniqueness_of with scope</string>
|
9
|
-
<key>scope</key>
|
10
|
-
<string>source.ruby.rails.shoulda</string>
|
11
|
-
<key>tabTrigger</key>
|
12
|
-
<string>shvuo</string>
|
13
|
-
<key>uuid</key>
|
14
|
-
<string>769BADDC-DA2D-4220-BF83-C0B13E2436BE</string>
|
15
|
-
</dict>
|
16
|
-
</plist>
|