express_templates 0.2.5 → 0.2.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 07e430ee29720a9e7a29b668bdafdb09eaa997cc
4
- data.tar.gz: 1002363331e515438fc97bebf78918d4beaca39d
3
+ metadata.gz: 7b6190a5095924e870b1f124a224ddfb732d5d4f
4
+ data.tar.gz: 2487d86e01078c72584bc0a541765c65f253258b
5
5
  SHA512:
6
- metadata.gz: 1d80b5b553bb5f14693789a7d6d129c7930ecd585af21ffadb5bf5793db6a2f82e5d9f6c0f8dc7da1a6ceb87df0d6e747d879287da1e3a5c2050105ed105169b
7
- data.tar.gz: 81021e19f25c8b01bf185f3a92e39d1f89c50a001c0e37c7fcade904a862038dbce3803d5d169a990abf9001111c34b47bf27e06ab51f2786608311ee6e72ccb
6
+ metadata.gz: 544e12035fb76c7ec8376ac54194b0f4e3f2039cbeeb8a7d5b81a1c9f897c59bb6c26c4fb0760dfe1d9dc624649df8eaf83a83c0c2d5146dfc6799e9fcdd4a6d
7
+ data.tar.gz: da0703e5801154d1acf96e0304dc82ea88d633ab3bae2ffb1130794a7427ef0824ff2e320f45b811ce659443807ff5ae4eff5f795ba4b83fbcabd37f6a520e95
@@ -4,7 +4,7 @@ module ExpressTemplates
4
4
  TAGS = [ :a, :abbr, :address, :area, :article, :aside, :audio,
5
5
  :b, :base, :bdi, :bdo, :blockquote, :body, :br, :button,
6
6
  :canvas, :caption, :cite, :code, :col, :colgroup,
7
- :data, :datalist, :dd, :del, :details, :dfn, :div, :dl, :dt,
7
+ :data, :datalist, :dd, :del, :details, :dfn, :div, :dl, :dt, :doctype,
8
8
  :em, :embed,
9
9
  :fieldset, :figcaption, :figure, :footer, :form,
10
10
  :h1, :h2, :h3, :h4, :h5, :h6, :head, :header, :hr, :html,
@@ -38,5 +38,15 @@ module ExpressTemplates
38
38
  end
39
39
  end
40
40
 
41
+ Doctype.class_eval do
42
+ def start_tag
43
+ '<!DOCTYPE html>'
44
+ end
45
+
46
+ def close_tag
47
+ ''
48
+ end
49
+ end
50
+
41
51
  end
42
- end
52
+ end
@@ -1,3 +1,3 @@
1
1
  module ExpressTemplates
2
- VERSION = "0.2.5"
2
+ VERSION = "0.2.6"
3
3
  end
@@ -105208,3 +105208,288 @@ ConditionalityTest: test_when_supplied_condition_is_false,_renders_empty_string
105208
105208
  -------------------------------------------------------------------------------
105209
105209
  ConditionalityTest: test_when_supplied_condition_is_true,_renders_the_component
105210
105210
  -------------------------------------------------------------------------------
105211
+ ---------------------------------------------------------------------
105212
+ ExpressTemplatesTest: test_ExpressTemplates.render_renders_a_template
105213
+ ---------------------------------------------------------------------
105214
+ -------------------------------------------
105215
+ ExpressTemplatesTest: test_we_have_a_module
105216
+ -------------------------------------------
105217
+ ------------------------------------
105218
+ WrapperTest: test_args_are_preserved
105219
+ ------------------------------------
105220
+ -------------------------------------------------------------
105221
+ WrapperTest: test_double-braced_args_are_evaluated_in_context
105222
+ -------------------------------------------------------------
105223
+ -----------------------------------------------------------
105224
+ WrapperTest: test_initializer_block_is_preserved_in_compile
105225
+ -----------------------------------------------------------
105226
+ ---------------------------------------------------------------
105227
+ WrapperTest: test_lambda_option_values_are_evaluated_in_context
105228
+ ---------------------------------------------------------------
105229
+ --------------------------------------------
105230
+ WrapperTest: test_name_compiles_to_just_name
105231
+ --------------------------------------------
105232
+ -------------------------------------------
105233
+ WrapperTest: test_simple_args_are_preserved
105234
+ -------------------------------------------
105235
+ ---------------------------------------------------------------------------------------------
105236
+ WrapperTest: test_something_returning_nil_when_wrapped_and_compiled,_evals_to_an_empty_string
105237
+ ---------------------------------------------------------------------------------------------
105238
+ -----------------------------
105239
+ HandlerTest: test_class_names
105240
+ -----------------------------
105241
+ --------------------------------------------------------------
105242
+ HandlerTest: test_helpers_returning_html_when_alone_in_a_block
105243
+ --------------------------------------------------------------
105244
+ ------------------------------------------------------------------------
105245
+ HandlerTest: test_helpers_returning_html_work_in_sequence_within_a_block
105246
+ ------------------------------------------------------------------------
105247
+ ----------------------------------------------------------
105248
+ HandlerTest: test_html_generates_<h1>Hello</h1>_by_default
105249
+ ----------------------------------------------------------
105250
+ -----------------------------
105251
+ HandlerTest: test_locals_work
105252
+ -----------------------------
105253
+ ------------------------------------------------------------
105254
+ HandlerTest: test_nesting_elements_with_ruby_block_structure
105255
+ ------------------------------------------------------------
105256
+ ----------------------------------
105257
+ HandlerTest: test_other_attributes
105258
+ ----------------------------------
105259
+ -------------------------------------------
105260
+ HandlerTest: test_our_handler_is_registered
105261
+ -------------------------------------------
105262
+ ---------------------------------------
105263
+ HandlerTest: test_string_in_block_works
105264
+ ---------------------------------------
105265
+ ---------------------------------------------------------------------
105266
+ ExpanderTest: test_#expand_correctly_allocated_helpers_and_parameters
105267
+ ---------------------------------------------------------------------
105268
+ --------------------------------------------------------
105269
+ ExpanderTest: test_#expand_doesn't_yield_[]_for_children
105270
+ --------------------------------------------------------
105271
+ --------------------------------------------------------------------------------------
105272
+ ExpanderTest: test_#expand_of_'foo_{_bar_;_baz_}_returns_a_component_with_two_children
105273
+ --------------------------------------------------------------------------------------
105274
+ -------------------------------------------------------------------------------------
105275
+ ExpanderTest: test_#expand_of_'foo_{_foo_}_returns_a_component_with_a_child_component
105276
+ -------------------------------------------------------------------------------------
105277
+ ------------------------------------------------------------------------------------
105278
+ ExpanderTest: test_#expand_of_macros_with_args_returns_a_component_with_two_children
105279
+ ------------------------------------------------------------------------------------
105280
+ ------------------------------------------------------------------
105281
+ ExpanderTest: test_#expand_returns_an_array_containing_a_component
105282
+ ------------------------------------------------------------------
105283
+ ------------------------------------------------------------------------
105284
+ ExpanderTest: test_#expand_works_with_css_class_specification_syntax_xxx
105285
+ ------------------------------------------------------------------------
105286
+ ------------------------------------------
105287
+ ExpanderTest: test_helpers_can_take_blocks
105288
+ ------------------------------------------
105289
+ ------------------------------------------------------------
105290
+ ExpanderTest: test_initializer_accepts_special_handlers_hash
105291
+ ------------------------------------------------------------
105292
+ ----------------------------------------------------------------------------------------------------------------
105293
+ ExpanderTest: test_non-interpolated_string_children_containing_string_interpolations_will_interpolate_in_context
105294
+ ----------------------------------------------------------------------------------------------------------------
105295
+ ----------------------------------------------------------------------
105296
+ ConfigurableTest: test_a_configurable_component_accepts_an_id_argument
105297
+ ----------------------------------------------------------------------
105298
+ ----------------------------------------------------------------------------
105299
+ ConfigurableTest: test_a_configurable_component_may_have_also_be_a_container
105300
+ ----------------------------------------------------------------------------
105301
+ ----------------------------------------------------
105302
+ ConfigurableTest: test_renders_id_argument_as_dom_id
105303
+ ----------------------------------------------------
105304
+ -------------------------------------------------------------
105305
+ TagTest: test_#close_tag_is_my_macro_name_as_an_xml_close_tag
105306
+ -------------------------------------------------------------
105307
+ --------------------------------------------------------------------------------------------
105308
+ TagTest: test_#compile_on_bare_with_2_children_yields_'"<bare>"+"child1"+"child2"+"</bare>"'
105309
+ --------------------------------------------------------------------------------------------
105310
+ --------------------------------------------------------------------------------------------------------------
105311
+ TagTest: test_#compile_on_tag_with_subtag_returns_a_string_which_when_eval'd_looks_like_'<bare><sub_/></bare>'
105312
+ --------------------------------------------------------------------------------------------------------------
105313
+ ---------------------------------------
105314
+ TagTest: test_#compile_returns_a_string
105315
+ ---------------------------------------
105316
+ -------------------------------------------------------
105317
+ TagTest: test_#macro_name_returns_the_name_of_the_class
105318
+ -------------------------------------------------------
105319
+ -------------------------------------------------------------
105320
+ TagTest: test_#start_tag_is_my_macro_name_as_an_xml_start_tag
105321
+ -------------------------------------------------------------
105322
+ -----------------------------------------------------
105323
+ TagTest: test_#to_template_on_bare_tag_returns_'bare'
105324
+ -----------------------------------------------------
105325
+ -----------------------------------------------------------
105326
+ TagTest: test_#to_template_on_nested_tags_indents_properly'
105327
+ -----------------------------------------------------------
105328
+ ---------------------------------------------------------------------
105329
+ TagTest: test_#to_template_on_tag_with_subtag_returns_'bare_{_sub_}_'
105330
+ ---------------------------------------------------------------------
105331
+ ------------------------------------------------------------------------------------
105332
+ TagTest: test_CSS_classes_specified_with_underscored_method_get_translated_to_dashed
105333
+ ------------------------------------------------------------------------------------
105334
+ ------------------------------------------
105335
+ TagTest: test_can_be_created_with_children
105336
+ ------------------------------------------
105337
+ ---------------------------------------------------------------------------------
105338
+ TagTest: test_children_still_evaluated_after_css_class_provided_via_method_syntax
105339
+ ---------------------------------------------------------------------------------
105340
+ ---------------------------------------------------------------------------------------
105341
+ TagTest: test_data_option_value_hashes_are_converted_to_data_attributes_similar_to_haml
105342
+ ---------------------------------------------------------------------------------------
105343
+ ----------------------------------------------------------------
105344
+ TagTest: test_data_option_value_hashes_can_take_immediate_values
105345
+ ----------------------------------------------------------------
105346
+ ----------------------------------------------
105347
+ TagTest: test_dom_ID_may_be_passed_as_a_symbol
105348
+ ----------------------------------------------
105349
+ -------------------------------------------------------------------------------------
105350
+ TagTest: test_double_bracketed_child_values_are_substituted_for_evaluation_in_context
105351
+ -------------------------------------------------------------------------------------
105352
+ --------------------------------------------------------------------------------------
105353
+ TagTest: test_double_bracketed_option_values_are_substituted_for_evaluation_in_context
105354
+ --------------------------------------------------------------------------------------
105355
+ ---------------------------------------------------------------------------------------
105356
+ TagTest: test_empty_i_tag_does_does_not_use_abbreviated_form_since_it_is_used_for_icons
105357
+ ---------------------------------------------------------------------------------------
105358
+ -------------------------------------------------------
105359
+ TagTest: test_empty_tags_use_abbreviated_empty_tag_form
105360
+ -------------------------------------------------------
105361
+ -----------------------------
105362
+ TagTest: test_has_no_children
105363
+ -----------------------------
105364
+ -----------------------------------------
105365
+ TagTest: test_method_missing_returns_self
105366
+ -----------------------------------------
105367
+ ---------------------------------------------------------------------------------------------
105368
+ IndenterTest: test_.for(:name)_returns_current_indent_without_newline_when_block_is_not_given
105369
+ ---------------------------------------------------------------------------------------------
105370
+ -----------------------------------------------------------------
105371
+ IndenterTest: test_.for(:name)_takes_a_block_receiving_whitespace
105372
+ -----------------------------------------------------------------
105373
+ ------------------------------------------------------------------
105374
+ IndenterTest: test_nesting_blocks_increases_whitespace_accordingly
105375
+ ------------------------------------------------------------------
105376
+ --------------------------------------------------
105377
+ PerformanceTest: test_performance_better_than_haml
105378
+ --------------------------------------------------
105379
+ -----------------------------------------
105380
+ PerformanceTest: test_performance_is_okay
105381
+ -----------------------------------------
105382
+ ----------------------------------------------------------------------
105383
+ PerformanceTest: test_performance_no_more_than_3.5x_slower_than_erubis
105384
+ ----------------------------------------------------------------------
105385
+ -------------------------------------------------------------------------------
105386
+ ConditionalityTest: test_when_supplied_condition_is_false,_renders_empty_string
105387
+ -------------------------------------------------------------------------------
105388
+ -------------------------------------------------------------------------------
105389
+ ConditionalityTest: test_when_supplied_condition_is_true,_renders_the_component
105390
+ -------------------------------------------------------------------------------
105391
+ ----------------------------------------------
105392
+ ProcTest: test_#source_returns_a_proc's_source
105393
+ ----------------------------------------------
105394
+ ------------------------------------------------------------
105395
+ ProcTest: test_#source_works_with_a_block_containing_a_block
105396
+ ------------------------------------------------------------
105397
+ --------------------------------------------
105398
+ ProcTest: test_#source_works_with_a_do_block
105399
+ --------------------------------------------
105400
+ -----------------------------------------------------
105401
+ ProcTest: test_#source_works_with_a_single_line_block
105402
+ -----------------------------------------------------
105403
+ -----------------------------------------------
105404
+ YielderTest: test_yielder_preserves_symbol_args
105405
+ -----------------------------------------------
105406
+ --------------------------------------------
105407
+ CompilerTest: test_.compile_returns_a_string
105408
+ --------------------------------------------
105409
+ -----------------------------------------------------------------------------
105410
+ ContainerTest: test_.render_with_children_renders_children_in_place_of__yield
105411
+ -----------------------------------------------------------------------------
105412
+ --------------------------------------------------------------------
105413
+ ContainerTest: test_Container#compile_calls_#compile_on_its_children
105414
+ --------------------------------------------------------------------
105415
+ ----------------------------------------------
105416
+ ContainerTest: test_a_Container_is_a_Component
105417
+ ----------------------------------------------
105418
+ -------------------------------------------------------------------
105419
+ ContainerTest: test_a_container_has_children_but_initially_has_none
105420
+ -------------------------------------------------------------------
105421
+ -----------------------------------------
105422
+ HelloControllerTest: test_should_get_show
105423
+ -----------------------------------------
105424
+ Processing by HelloController#show as HTML
105425
+ Rendered hello/show.html.et within layouts/application (0.8ms)
105426
+ Completed 200 OK in 23ms (Views: 22.5ms)
105427
+ -----------------------------------------
105428
+ ColumnTest: test_a_column_is_configurable
105429
+ -----------------------------------------
105430
+ -----------------------------------------------------------------------------------------
105431
+ BaseTest: test_.has_markup_makes_compile_return_the_block_passed_through_express_compiled
105432
+ -----------------------------------------------------------------------------------------
105433
+ ----------------------------------------------
105434
+ BaseTest: test_.render_accepts_a_fragment_name
105435
+ ----------------------------------------------
105436
+ ----------------------------------------------------------
105437
+ BaseTest: test_.using_logic_controls_the_markup_generation
105438
+ ----------------------------------------------------------
105439
+ -------------------------------------------------------
105440
+ BaseTest: test_components_register_themselves_as_macros
105441
+ -------------------------------------------------------
105442
+ --------------------------------------------------------------
105443
+ BaseTest: test_fragments_and_has_markup_are_synonyms_for_emits
105444
+ --------------------------------------------------------------
105445
+ --------------------------------------------------------------------
105446
+ BaseTest: test_helpers_defined_in_component_are_evaluated_in_context
105447
+ --------------------------------------------------------------------
105448
+ ---------------------------------------------
105449
+ BaseTest: test_render_should_not_return_a_nil
105450
+ ---------------------------------------------
105451
+ ------------------------------------------------------------
105452
+ IteratingTest: test_.for_each_iterates_markup_for_each_value
105453
+ ------------------------------------------------------------
105454
+ ---------------------------------------------------------------
105455
+ IteratingTest: test_.wrap_with_wraps_via__yield_special_handler
105456
+ ---------------------------------------------------------------
105457
+ ----------------------------------------------------------------
105458
+ IteratingTest: test_empty_state_renders_when_collection_is_empty
105459
+ ----------------------------------------------------------------
105460
+ ----------------------------------------------------------------------------------------------------
105461
+ IteratingTest: test_if_collection_is_empty_and_no_empty_fragment_specified,_empty_string_is_rendered
105462
+ ----------------------------------------------------------------------------------------------------
105463
+ --------------------------------------------------------------------
105464
+ ContentForTest: test_content_for_accepts_a_block_of_express_template
105465
+ --------------------------------------------------------------------
105466
+ --------------------------------------------------------------------------------
105467
+ ContentForTest: test_content_for_accepts_a_second_argument_which_contains_markup
105468
+ --------------------------------------------------------------------------------
105469
+ --------------------------------------------------
105470
+ ContentForTest: test_content_for_body_is_html_safe
105471
+ --------------------------------------------------
105472
+ ------------------------------------------------------------------
105473
+ ContentForTest: test_content_for_without_a_body_returns_the_markup
105474
+ ------------------------------------------------------------------
105475
+ ---------------------------------------------------------
105476
+ ExpanderStackTest: test_#<<_adds_something_to_the_current
105477
+ ---------------------------------------------------------
105478
+ ----------------------------------------------
105479
+ ExpanderStackTest: test_#all_returns_the_stack
105480
+ ----------------------------------------------
105481
+ --------------------------------
105482
+ ExpanderStackTest: test_#ascend!
105483
+ --------------------------------
105484
+ -----------------------------------------
105485
+ ExpanderStackTest: test_#current_is_empty
105486
+ -----------------------------------------
105487
+ -------------------------------------------------------------------------------
105488
+ ExpanderStackTest: test_#descend!_adds_a_level_to_the_stack_and_updates_current
105489
+ -------------------------------------------------------------------------------
105490
+ -----------------------------------
105491
+ RowTest: test_a_row_is_configurable
105492
+ -----------------------------------
105493
+ ----------------------------
105494
+ RowTest: test_id_is_optional
105495
+ ----------------------------
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: express_templates
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steven Talcott Smith
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-27 00:00:00.000000000 Z
11
+ date: 2014-10-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport