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
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: zena
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 19
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 1
|
|
8
|
+
- 1
|
|
8
9
|
- 0
|
|
9
|
-
|
|
10
|
-
version: 1.0.0
|
|
10
|
+
version: 1.1.0
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Gaspard Bucher
|
|
@@ -15,7 +15,7 @@ autorequire:
|
|
|
15
15
|
bindir: bin
|
|
16
16
|
cert_chain: []
|
|
17
17
|
|
|
18
|
-
date: 2011-
|
|
18
|
+
date: 2011-07-11 00:00:00 +02:00
|
|
19
19
|
default_executable: zena
|
|
20
20
|
dependencies:
|
|
21
21
|
- !ruby/object:Gem::Dependency
|
|
@@ -90,12 +90,12 @@ dependencies:
|
|
|
90
90
|
requirements:
|
|
91
91
|
- - "="
|
|
92
92
|
- !ruby/object:Gem::Version
|
|
93
|
-
hash:
|
|
93
|
+
hash: 53
|
|
94
94
|
segments:
|
|
95
95
|
- 0
|
|
96
96
|
- 8
|
|
97
|
-
-
|
|
98
|
-
version: 0.8.
|
|
97
|
+
- 5
|
|
98
|
+
version: 0.8.5
|
|
99
99
|
type: :runtime
|
|
100
100
|
version_requirements: *id005
|
|
101
101
|
- !ruby/object:Gem::Dependency
|
|
@@ -154,12 +154,12 @@ dependencies:
|
|
|
154
154
|
requirements:
|
|
155
155
|
- - "="
|
|
156
156
|
- !ruby/object:Gem::Version
|
|
157
|
-
hash:
|
|
157
|
+
hash: 59
|
|
158
158
|
segments:
|
|
159
159
|
- 0
|
|
160
160
|
- 8
|
|
161
|
-
-
|
|
162
|
-
version: 0.8.
|
|
161
|
+
- 2
|
|
162
|
+
version: 0.8.2
|
|
163
163
|
type: :runtime
|
|
164
164
|
version_requirements: *id009
|
|
165
165
|
- !ruby/object:Gem::Dependency
|
|
@@ -358,12 +358,12 @@ dependencies:
|
|
|
358
358
|
requirements:
|
|
359
359
|
- - "="
|
|
360
360
|
- !ruby/object:Gem::Version
|
|
361
|
-
hash:
|
|
361
|
+
hash: 21
|
|
362
362
|
segments:
|
|
363
363
|
- 1
|
|
364
364
|
- 0
|
|
365
|
-
-
|
|
366
|
-
version: 1.0.
|
|
365
|
+
- 1
|
|
366
|
+
version: 1.0.1
|
|
367
367
|
type: :runtime
|
|
368
368
|
version_requirements: *id022
|
|
369
369
|
description: zena is a Ruby on Rails CMS (content managment system) with a focus on usability, ease of customization and web 2.0 goodness (application like behaviour).
|
|
@@ -638,6 +638,7 @@ files:
|
|
|
638
638
|
- bricks/acls/lib/bricks/acls.rb
|
|
639
639
|
- bricks/acls/zena/init.rb
|
|
640
640
|
- bricks/acls/zena/migrate/20110509141600_create_acls.rb
|
|
641
|
+
- bricks/acls/zena/migrate/20110627193757_add_allowed_mode_and_format_to_acl.rb
|
|
641
642
|
- bricks/acls/zena/test/integration/acl_integration_test.rb
|
|
642
643
|
- bricks/acls/zena/test/sites/erebus/acls.yml
|
|
643
644
|
- bricks/acls/zena/test/sites/erebus/groups.yml
|
|
@@ -681,6 +682,8 @@ files:
|
|
|
681
682
|
- bricks/pdf/test/shoulda_macros/shoulda_pdf.rb
|
|
682
683
|
- bricks/pdf/zena/init.rb
|
|
683
684
|
- bricks/pdf/zena/tasks.rb
|
|
685
|
+
- bricks/single/lib/bricks/single.rb
|
|
686
|
+
- bricks/single/zena/init.rb
|
|
684
687
|
- bricks/sphinx/MIT-LICENSE
|
|
685
688
|
- bricks/sphinx/README
|
|
686
689
|
- bricks/sphinx/lib/bricks/sphinx.rb
|
|
@@ -689,6 +692,28 @@ files:
|
|
|
689
692
|
- bricks/sphinx/zena/migrate/20091102171258_add_delta_for_sphinx.rb
|
|
690
693
|
- bricks/sphinx/zena/sphinx.yml.erb
|
|
691
694
|
- bricks/sphinx/zena/tasks.rb
|
|
695
|
+
- bricks/static/lib/bricks/static.rb
|
|
696
|
+
- bricks/static/zena/init.rb
|
|
697
|
+
- bricks/static/zena/migrate/20110702010330_add_static_to_idx_templates.rb
|
|
698
|
+
- bricks/static/zena/skins/blog/Image-edit.zafu
|
|
699
|
+
- bricks/static/zena/skins/blog/Image.zafu
|
|
700
|
+
- bricks/static/zena/skins/blog/Node-+index.zafu
|
|
701
|
+
- bricks/static/zena/skins/blog/Node-+notFound.zafu
|
|
702
|
+
- bricks/static/zena/skins/blog/Node-+search.zafu
|
|
703
|
+
- bricks/static/zena/skins/blog/Node.zafu
|
|
704
|
+
- bricks/static/zena/skins/blog/Post.zafu
|
|
705
|
+
- bricks/static/zena/skins/blog/Project--kml.zafu
|
|
706
|
+
- bricks/static/zena/skins/blog/Project.zafu
|
|
707
|
+
- bricks/static/zena/skins/blog/comments.zafu
|
|
708
|
+
- bricks/static/zena/skins/blog/dict.yml
|
|
709
|
+
- bricks/static/zena/skins/blog/img/dateBg.jpg
|
|
710
|
+
- bricks/static/zena/skins/blog/img/header.png
|
|
711
|
+
- bricks/static/zena/skins/blog/img/mapPin.png
|
|
712
|
+
- bricks/static/zena/skins/blog/img/menu.gif
|
|
713
|
+
- bricks/static/zena/skins/blog/img/menuover.gif
|
|
714
|
+
- bricks/static/zena/skins/blog/img/style.css
|
|
715
|
+
- bricks/static/zena/test/integration/static_integration_test.rb
|
|
716
|
+
- bricks/static/zena/test/unit/static_test.rb
|
|
692
717
|
- bricks/tags/README
|
|
693
718
|
- bricks/tags/lib/bricks/tags.rb
|
|
694
719
|
- bricks/tags/zena/init.rb
|
|
@@ -711,6 +736,8 @@ files:
|
|
|
711
736
|
- bricks/zena/zena/migrate/02_zerox1_schema.rb
|
|
712
737
|
- bricks/zena/zena/migrate/03_zerox1_data.rb
|
|
713
738
|
- bricks/zena/zena/migrate/20110315161158_add_reverse_scope_to_roles.rb
|
|
739
|
+
- bricks/zena/zena/migrate/20110623072048_fix_cached_path_index.rb
|
|
740
|
+
- bricks/zena/zena/migrate/20110710113731_remove_icon_field.rb
|
|
714
741
|
- config/boot.rb
|
|
715
742
|
- config/bricks.yml
|
|
716
743
|
- config/database_example.yml
|
|
@@ -723,6 +750,7 @@ files:
|
|
|
723
750
|
- config/initializers/mime_types.rb
|
|
724
751
|
- config/initializers/zena.rb
|
|
725
752
|
- config/mongrel_upload_progress.conf
|
|
753
|
+
- config/selenium.yml
|
|
726
754
|
- config/sphinx.yml
|
|
727
755
|
- db/fix/024_correct_vclass_kpath.rb
|
|
728
756
|
- db/fix/025_move_tag_into_vclass.rb
|
|
@@ -902,12 +930,15 @@ files:
|
|
|
902
930
|
- lib/zena/db_helper/postgresql.rb
|
|
903
931
|
- lib/zena/db_helper/sqlite3.rb
|
|
904
932
|
- lib/zena/deploy.rb
|
|
933
|
+
- lib/zena/deploy/app_init.rhtml
|
|
905
934
|
- lib/zena/deploy/awstats.conf.rhtml
|
|
906
935
|
- lib/zena/deploy/database.rhtml
|
|
936
|
+
- lib/zena/deploy/haproxy.cnf.rhtml
|
|
907
937
|
- lib/zena/deploy/httpd.rhtml
|
|
908
938
|
- lib/zena/deploy/logrotate_app.rhtml
|
|
909
939
|
- lib/zena/deploy/logrotate_host.rhtml
|
|
910
940
|
- lib/zena/deploy/start.html
|
|
941
|
+
- lib/zena/deploy/start_stop.rhtml
|
|
911
942
|
- lib/zena/deploy/stats.vhost.rhtml
|
|
912
943
|
- lib/zena/deploy/template.rb
|
|
913
944
|
- lib/zena/deploy/vhost.rhtml
|
|
@@ -2179,7 +2210,7 @@ files:
|
|
|
2179
2210
|
- script/set_revision
|
|
2180
2211
|
- spec/controllers/versions_controller_spec.rb
|
|
2181
2212
|
- test/custom_queries/complex.host.yml
|
|
2182
|
-
- test/fixtures/files/
|
|
2213
|
+
- test/fixtures/files/TestNode.zafu
|
|
2183
2214
|
- test/fixtures/files/bird.jpg
|
|
2184
2215
|
- test/fixtures/files/bomb.png
|
|
2185
2216
|
- test/fixtures/files/exif_sample.jpg
|
|
@@ -2280,6 +2311,28 @@ files:
|
|
|
2280
2311
|
- test/integration/zafu_compiler/zafu_attributes.yml
|
|
2281
2312
|
- test/integration/zafu_compiler/zazen.yml
|
|
2282
2313
|
- test/integration/zafu_compiler_test.rb
|
|
2314
|
+
- test/selenium.readme
|
|
2315
|
+
- test/selenium/Add/0setup.rsel
|
|
2316
|
+
- test/selenium/Add/add1.rsel
|
|
2317
|
+
- test/selenium/Add/add2.rsel
|
|
2318
|
+
- test/selenium/Add/add3.rsel
|
|
2319
|
+
- test/selenium/Drop/0setup.rsel
|
|
2320
|
+
- test/selenium/Drop/drop1.rsel
|
|
2321
|
+
- test/selenium/Drop/drop2.rsel
|
|
2322
|
+
- test/selenium/Drop/drop3.rsel
|
|
2323
|
+
- test/selenium/Drop/drop4.rsel
|
|
2324
|
+
- test/selenium/Drop/drop5.rsel
|
|
2325
|
+
- test/selenium/Edit/0setup.rsel
|
|
2326
|
+
- test/selenium/Edit/edit1.rsel
|
|
2327
|
+
- test/selenium/Edit/edit2.rsel
|
|
2328
|
+
- test/selenium/Edit/edit3.rsel
|
|
2329
|
+
- test/selenium/Form/0setup.rsel
|
|
2330
|
+
- test/selenium/Form/form1.rsel
|
|
2331
|
+
- test/selenium/Form/form2.rsel
|
|
2332
|
+
- test/selenium/Paginate/0setup.rsel
|
|
2333
|
+
- test/selenium/Paginate/paginate1.rsel
|
|
2334
|
+
- test/selenium/Toggle/0setup.rsel
|
|
2335
|
+
- test/selenium/Toggle/toggle1.rsel
|
|
2283
2336
|
- test/sites/README
|
|
2284
2337
|
- test/sites/complex/columns.yml
|
|
2285
2338
|
- test/sites/complex/complex.png
|
|
@@ -2392,95 +2445,6 @@ files:
|
|
|
2392
2445
|
- test/unit/zena/use/zafu_template_test.rb
|
|
2393
2446
|
- test/unit/zena/use/zazen_test.rb
|
|
2394
2447
|
- test/unit/zena/workflow/status_version_test.rb
|
|
2395
|
-
- vendor/TextMate/Ruby Shoulda.tmbundle/Commands/Run 2.tmCommand
|
|
2396
|
-
- vendor/TextMate/Ruby Shoulda.tmbundle/Commands/Run Context.tmCommand
|
|
2397
|
-
- vendor/TextMate/Ruby Shoulda.tmbundle/Commands/Run Focused Should.tmCommand
|
|
2398
|
-
- vendor/TextMate/Ruby Shoulda.tmbundle/Commands/Run.tmCommand
|
|
2399
|
-
- vendor/TextMate/Ruby Shoulda.tmbundle/Commands/YAML to Shoulda.tmCommand
|
|
2400
|
-
- "vendor/TextMate/Ruby Shoulda.tmbundle/Preferences/Symbol List: Context.tmPreferences"
|
|
2401
|
-
- "vendor/TextMate/Ruby Shoulda.tmbundle/Preferences/Symbol List: Should.tmPreferences"
|
|
2402
|
-
- vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/Factory attributes for.tmSnippet
|
|
2403
|
-
- vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/Factory build.tmSnippet
|
|
2404
|
-
- vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/Factory.tmSnippet
|
|
2405
|
-
- vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/Factory_define with class.tmSnippet
|
|
2406
|
-
- vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/Factory_define.tmSnippet
|
|
2407
|
-
- vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/Factory_next.tmSnippet
|
|
2408
|
-
- vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/Factory_sequence.tmSnippet
|
|
2409
|
-
- vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/assert_bad_value.tmSnippet
|
|
2410
|
-
- vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/assert_contains.tmSnippet
|
|
2411
|
-
- vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/assert_does_not_contain.tmSnippet
|
|
2412
|
-
- vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/assert_good_value.tmSnippet
|
|
2413
|
-
- vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/assert_same_elements.tmSnippet
|
|
2414
|
-
- vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/assert_save.tmSnippet
|
|
2415
|
-
- vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/assert_sent_email.tmSnippet
|
|
2416
|
-
- vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/assert_valid.tmSnippet
|
|
2417
|
-
- vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/association.tmSnippet
|
|
2418
|
-
- vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/attribute.tmSnippet
|
|
2419
|
-
- vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/before_should block.tmSnippet
|
|
2420
|
-
- vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/context block get.tmSnippet
|
|
2421
|
-
- vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/context block post.tmSnippet
|
|
2422
|
-
- vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/context block with setup.tmSnippet
|
|
2423
|
-
- vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/setup.tmSnippet
|
|
2424
|
-
- vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should block with before proc.tmSnippet
|
|
2425
|
-
- vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should block.tmSnippet
|
|
2426
|
-
- vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_allow_values_for.tmSnippet
|
|
2427
|
-
- vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_assign_to.tmSnippet
|
|
2428
|
-
- vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_be_restful denied.tmSnippet
|
|
2429
|
-
- vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_be_restful.tmSnippet
|
|
2430
|
-
- vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_belong_to.tmSnippet
|
|
2431
|
-
- vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_change by.tmSnippet
|
|
2432
|
-
- vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_change from to.tmSnippet
|
|
2433
|
-
- vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_ensure_length_at_least.tmSnippet
|
|
2434
|
-
- vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_ensure_length_in_range.tmSnippet
|
|
2435
|
-
- vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_ensure_length_is.tmSnippet
|
|
2436
|
-
- vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_ensure_value_in_range.tmSnippet
|
|
2437
|
-
- vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_eventually.tmSnippet
|
|
2438
|
-
- vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_filter_params.tmSnippet
|
|
2439
|
-
- vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_have_and_belong_to_many.tmSnippet
|
|
2440
|
-
- vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_have_class_methods.tmSnippet
|
|
2441
|
-
- vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_have_db_column.tmSnippet
|
|
2442
|
-
- vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_have_db_columns.tmSnippet
|
|
2443
|
-
- vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_have_index.tmSnippet
|
|
2444
|
-
- vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_have_indices.tmSnippet
|
|
2445
|
-
- vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_have_instance_methods.tmSnippet
|
|
2446
|
-
- vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_have_many.tmSnippet
|
|
2447
|
-
- vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_have_named_scope.tmSnippet
|
|
2448
|
-
- vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_have_one.tmSnippet
|
|
2449
|
-
- vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_have_readonly_attributes.tmSnippet
|
|
2450
|
-
- vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_not_allow_mass_assignment_of.tmSnippet
|
|
2451
|
-
- vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_not_allow_values_for.tmSnippet
|
|
2452
|
-
- vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_not_assign_to.tmSnippet
|
|
2453
|
-
- vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_not_change.tmSnippet
|
|
2454
|
-
- vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_not_set_the_flash.tmSnippet
|
|
2455
|
-
- vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_redirect_to.tmSnippet
|
|
2456
|
-
- vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_render_a_form.tmSnippet
|
|
2457
|
-
- vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_render_template.tmSnippet
|
|
2458
|
-
- vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_render_with_layout.tmSnippet
|
|
2459
|
-
- vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_render_without_layout.tmSnippet
|
|
2460
|
-
- vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_respond_with.tmSnippet
|
|
2461
|
-
- vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_respond_with_content_type.tmSnippet
|
|
2462
|
-
- vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_return_from_session.tmSnippet
|
|
2463
|
-
- vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_route.tmSnippet
|
|
2464
|
-
- vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_set_the_flash_to.tmSnippet
|
|
2465
|
-
- vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_validate_acceptance_of.tmSnippet
|
|
2466
|
-
- vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_validate_numericality_of.tmSnippet
|
|
2467
|
-
- vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_validate_presence_of.tmSnippet
|
|
2468
|
-
- vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_validate_uniqueness_of with scope.tmSnippet
|
|
2469
|
-
- vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_validate_uniqueness_of.tmSnippet
|
|
2470
|
-
- vendor/TextMate/Ruby Shoulda.tmbundle/Support/RubyMate/catch_exception.rb
|
|
2471
|
-
- vendor/TextMate/Ruby Shoulda.tmbundle/Support/RubyMate/run_script.rb
|
|
2472
|
-
- vendor/TextMate/Ruby Shoulda.tmbundle/Support/RubyMate/stdin_dialog.rb
|
|
2473
|
-
- vendor/TextMate/Ruby Shoulda.tmbundle/Support/RubyMate/test.rb
|
|
2474
|
-
- vendor/TextMate/Ruby Shoulda.tmbundle/Support/RubyMate/todo.txt
|
|
2475
|
-
- vendor/TextMate/Ruby Shoulda.tmbundle/Support/bin/yaml_to_shoulda.rb
|
|
2476
|
-
- vendor/TextMate/Ruby Shoulda.tmbundle/Syntaxes/Ruby on Rails (Shoulda).tmLanguage
|
|
2477
|
-
- vendor/TextMate/Ruby Shoulda.tmbundle/info.plist
|
|
2478
|
-
- vendor/TextMate/Zena.tmbundle/Commands/Run all yaml tests.tmCommand
|
|
2479
|
-
- vendor/TextMate/Zena.tmbundle/Commands/Run focused yaml test.tmCommand
|
|
2480
|
-
- vendor/TextMate/Zena.tmbundle/Support/RubyMate/catch_exception.rb
|
|
2481
|
-
- vendor/TextMate/Zena.tmbundle/Support/RubyMate/run_script.rb
|
|
2482
|
-
- vendor/TextMate/Zena.tmbundle/Support/RubyMate/stdin_dialog.rb
|
|
2483
|
-
- vendor/TextMate/Zena.tmbundle/info.plist
|
|
2484
2448
|
- vendor/apache2_upload_progress/MIT-LICENSE
|
|
2485
2449
|
- vendor/apache2_upload_progress/README
|
|
2486
2450
|
- vendor/apache2_upload_progress/mod_upload_progress.c
|
|
@@ -1,24 +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>beforeRunningCommand</key>
|
|
6
|
-
<string>nop</string>
|
|
7
|
-
<key>command</key>
|
|
8
|
-
<string>#!/bin/sh
|
|
9
|
-
|
|
10
|
-
export RUBYLIB="$TM_BUNDLE_SUPPORT/RubyMate${RUBYLIB:+:$RUBYLIB}"
|
|
11
|
-
"${TM_RUBY:-ruby}" -- "$TM_BUNDLE_SUPPORT/RubyMate/run_script.rb"
|
|
12
|
-
</string>
|
|
13
|
-
<key>input</key>
|
|
14
|
-
<string>document</string>
|
|
15
|
-
<key>keyEquivalent</key>
|
|
16
|
-
<string>@r</string>
|
|
17
|
-
<key>name</key>
|
|
18
|
-
<string>Run</string>
|
|
19
|
-
<key>output</key>
|
|
20
|
-
<string>showAsHTML</string>
|
|
21
|
-
<key>uuid</key>
|
|
22
|
-
<string>156042A4-5813-46D2-BA06-901C91D1A0B9</string>
|
|
23
|
-
</dict>
|
|
24
|
-
</plist>
|
|
@@ -1,58 +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>beforeRunningCommand</key>
|
|
6
|
-
<string>saveActiveFile</string>
|
|
7
|
-
<key>command</key>
|
|
8
|
-
<string># Assumes the current file is a unittest file
|
|
9
|
-
# Runs with the currently-focused method as the test name
|
|
10
|
-
|
|
11
|
-
args=$(${TM_RUBY:=ruby} <<"EOF"
|
|
12
|
-
|
|
13
|
-
def parse_from_quotes(name)
|
|
14
|
-
name.to_s.gsub(/^(?:.*"(.*)"|.*'(.*)').*$/) { $1 || $2 }
|
|
15
|
-
end
|
|
16
|
-
|
|
17
|
-
n = ENV['TM_LINE_NUMBER'].to_i
|
|
18
|
-
|
|
19
|
-
should, context = nil, nil
|
|
20
|
-
|
|
21
|
-
File.open(ENV['TM_FILEPATH']) do |f|
|
|
22
|
-
lines = f.read.split("\n")[0...n].reverse
|
|
23
|
-
context = lines.find { |line| line =~ /^\s*context\b/ }
|
|
24
|
-
should = parse_from_quotes(lines.find { |line| line =~ /^\s*should\b/ })
|
|
25
|
-
end
|
|
26
|
-
|
|
27
|
-
if !context.empty? && !should.empty?
|
|
28
|
-
puts "shoulda"
|
|
29
|
-
context = parse_from_quotes( context )
|
|
30
|
-
name = "#{context}".gsub(/[\+\.\s\'\"\(\)]/,'.')
|
|
31
|
-
print "--name=/#{name}/ -v v"
|
|
32
|
-
end
|
|
33
|
-
|
|
34
|
-
EOF)
|
|
35
|
-
|
|
36
|
-
if [[ -z "$args" ]]; then
|
|
37
|
-
echo -e "This doesn't appear to be a TestCase class."
|
|
38
|
-
exit_show_tool_tip
|
|
39
|
-
fi
|
|
40
|
-
|
|
41
|
-
export RUBYLIB="$TM_BUNDLE_SUPPORT/RubyMate${RUBYLIB:+:$RUBYLIB}"
|
|
42
|
-
"${TM_RUBY:-ruby}" -- "$TM_BUNDLE_SUPPORT/RubyMate/run_script.rb" $args</string>
|
|
43
|
-
<key>fallbackInput</key>
|
|
44
|
-
<string>scope</string>
|
|
45
|
-
<key>input</key>
|
|
46
|
-
<string>document</string>
|
|
47
|
-
<key>keyEquivalent</key>
|
|
48
|
-
<string>~@r</string>
|
|
49
|
-
<key>name</key>
|
|
50
|
-
<string>Run Context</string>
|
|
51
|
-
<key>output</key>
|
|
52
|
-
<string>showAsHTML</string>
|
|
53
|
-
<key>scope</key>
|
|
54
|
-
<string>source.ruby.rails.shoulda</string>
|
|
55
|
-
<key>uuid</key>
|
|
56
|
-
<string>2989704F-8F6B-439F-83A7-368BB174A010</string>
|
|
57
|
-
</dict>
|
|
58
|
-
</plist>
|
|
@@ -1,88 +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>beforeRunningCommand</key>
|
|
6
|
-
<string>saveActiveFile</string>
|
|
7
|
-
<key>captureFormatString</key>
|
|
8
|
-
<string>$0</string>
|
|
9
|
-
<key>capturePattern</key>
|
|
10
|
-
<string>(/[^:]+):(\d+)</string>
|
|
11
|
-
<key>command</key>
|
|
12
|
-
<string># Assumes the current file is a unittest/shoulda file
|
|
13
|
-
# Runs with the currently-focused method as the test name
|
|
14
|
-
#bin/sh
|
|
15
|
-
|
|
16
|
-
args=$(${TM_RUBY:=ruby} <<"EOF"
|
|
17
|
-
def parse_from_quotes(name)
|
|
18
|
-
name.to_s.gsub(/^(?:.*"(.*)"|.*'(.*)').*$/) { $1 || $2 }
|
|
19
|
-
end
|
|
20
|
-
|
|
21
|
-
n = ENV['TM_LINE_NUMBER'].to_i
|
|
22
|
-
INDENT = 2 # two spaces
|
|
23
|
-
contexts, should, indent = [], nil, ''
|
|
24
|
-
name, test_type = nil, nil
|
|
25
|
-
|
|
26
|
-
File.open(ENV['TM_FILEPATH']) do |f|
|
|
27
|
-
f.read.split("\n")[0...n].reverse_each do |line|
|
|
28
|
-
if should
|
|
29
|
-
if line =~ /^(\s*)context\b/
|
|
30
|
-
if $1 == indent
|
|
31
|
-
# we must use indent to avoid stumbling on a context that's not for us
|
|
32
|
-
contexts.unshift parse_from_quotes(line)
|
|
33
|
-
indent = indent[0..(-INDENT - 1)]
|
|
34
|
-
if indent.length < INDENT
|
|
35
|
-
break
|
|
36
|
-
end
|
|
37
|
-
else
|
|
38
|
-
# wrong indent, ignore
|
|
39
|
-
end
|
|
40
|
-
end
|
|
41
|
-
elsif line =~ /^(\s*)should\b/
|
|
42
|
-
test_type = :shoulda
|
|
43
|
-
should = parse_from_quotes(line)
|
|
44
|
-
indent = $1[0..(-INDENT - 1)]
|
|
45
|
-
elsif line =~ /^\s*def\s+(test_[\w_]+)/
|
|
46
|
-
test_type = :test_unit
|
|
47
|
-
name = $1
|
|
48
|
-
break
|
|
49
|
-
end
|
|
50
|
-
end
|
|
51
|
-
end
|
|
52
|
-
|
|
53
|
-
if test_type == :shoulda
|
|
54
|
-
if should && !contexts.empty? && !should.empty?
|
|
55
|
-
#puts "shoulda"
|
|
56
|
-
name = "#{contexts.join(' ')} should #{should}".gsub(/[\+\.\s\'\"\(\)]/,'.')
|
|
57
|
-
print "--name=/#{name}/ -v v"
|
|
58
|
-
end
|
|
59
|
-
else
|
|
60
|
-
print "--name=#{name} -v v"
|
|
61
|
-
end
|
|
62
|
-
EOF)
|
|
63
|
-
|
|
64
|
-
if [[ -z "$args" ]]; then
|
|
65
|
-
echo -e "This doesn't appear to be a TestCase class."
|
|
66
|
-
exit_show_tool_tip
|
|
67
|
-
fi
|
|
68
|
-
|
|
69
|
-
export RUBYLIB="$TM_BUNDLE_SUPPORT/RubyMate${RUBYLIB:+:$RUBYLIB}"
|
|
70
|
-
"${TM_RUBY:-ruby}" -- "$TM_BUNDLE_SUPPORT/RubyMate/run_script.rb" $args</string>
|
|
71
|
-
<key>fileCaptureRegister</key>
|
|
72
|
-
<string>1</string>
|
|
73
|
-
<key>input</key>
|
|
74
|
-
<string>document</string>
|
|
75
|
-
<key>keyEquivalent</key>
|
|
76
|
-
<string>@R</string>
|
|
77
|
-
<key>lineCaptureRegister</key>
|
|
78
|
-
<string>2</string>
|
|
79
|
-
<key>name</key>
|
|
80
|
-
<string>Run Focused Should</string>
|
|
81
|
-
<key>output</key>
|
|
82
|
-
<string>showAsHTML</string>
|
|
83
|
-
<key>scope</key>
|
|
84
|
-
<string>source.ruby.rails.shoulda</string>
|
|
85
|
-
<key>uuid</key>
|
|
86
|
-
<string>6AFF5956-7774-4175-A005-9A03AF7F29B3</string>
|
|
87
|
-
</dict>
|
|
88
|
-
</plist>
|