express_admin 1.6.2 → 1.6.3

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: 707d79b70437794485e68269636b019ed519b409
4
- data.tar.gz: 421297d6d814654bb04624de86bd06edece46960
3
+ metadata.gz: f9460f5701a84778f81b01fc273b3730c1f403b1
4
+ data.tar.gz: 1343f5df30af52c64470c72f8032581d99464beb
5
5
  SHA512:
6
- metadata.gz: 0e3ca274eb1714b8f6e4cd5fb26db88051ab4e8fe59714493d930aa0f132cce2ec4eb0d668441056d448b9a5492e4e59481f9d38da4e2145a6fb3ffbee08eb8b
7
- data.tar.gz: 1fc7d52884145fe37656d7ff4d6b5d5588d1bd7a753459a224017d0f4a74870b11015aec38bf6fce374bb919b3c520d66e3e176354ed3b0575643d7a15524456
6
+ metadata.gz: 0ec3af25e93920df8844339bc3d3c62a2e4f690e50657be411c1298e224abf879e31ada2786aac40b329a1a4203b9a427a02601a0f5700f56cc435565dfe378a
7
+ data.tar.gz: 0cc4ea6f9051aed939b93da442a36f19c200ba338455f777d87c6d04d1c75fa7f06e4a599a4b66866a00dc2d7da14de4442ffa6da2f905882b24fd52607ab278
@@ -1,3 +1,3 @@
1
1
  module ExpressAdmin
2
- VERSION = "1.6.2"
2
+ VERSION = "1.6.3"
3
3
  end
Binary file
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- express_templates (0.10.1)
4
+ express_templates (0.11.0)
5
5
  activesupport (~> 4.2)
6
6
  arbre (~> 1.0)
7
7
  parslet (~> 1.6)
@@ -15,12 +15,15 @@ module ExpressTemplates
15
15
  class_attribute :before_build_hooks
16
16
  self.before_build_hooks = []
17
17
 
18
+ class_attribute :builder_method_name
19
+
18
20
  def self.builder_method_and_class(method_name, klass)
19
21
  Arbre::Element::BuilderMethods.class_eval <<-EOF, __FILE__, __LINE__
20
22
  def #{method_name}(*args, &block)
21
23
  insert_tag ::#{klass.name}, *args, &block
22
24
  end
23
25
  EOF
26
+ self.builder_method_name = method_name
24
27
  # puts "added #{method_name} -> #{klass.name}"
25
28
  end
26
29
 
@@ -73,15 +76,11 @@ module ExpressTemplates
73
76
  end
74
77
 
75
78
  def self.inherited(subclass)
76
- builder_method_and_class subclass.builder_method_name, subclass
77
- end
78
-
79
- def self.builder_method_name
80
- to_s.demodulize.underscore
79
+ subclass.builder_method_and_class subclass.to_s.demodulize.underscore, subclass
81
80
  end
82
81
 
83
- def builder_method_name
84
- self.class.builder_method_name
82
+ def self.builder_method(name)
83
+ builder_method_and_class name, self
85
84
  end
86
85
 
87
86
  def self.descendants
@@ -1,3 +1,3 @@
1
1
  module ExpressTemplates
2
- VERSION = "0.11.0"
2
+ VERSION = "0.11.1"
3
3
  end
@@ -26089,3 +26089,324 @@ ExpressTemplatesTest: test_ExpressTemplates.render_renders_a_template
26089
26089
  -------------------------------------------
26090
26090
  ExpressTemplatesTest: test_we_have_a_module
26091
26091
  -------------------------------------------
26092
+ -----------------------------------------------------------
26093
+ RadioTest: test_radio_has_correct_label_field_name_and_text
26094
+ -----------------------------------------------------------
26095
+ ------------------------------------------------------------------
26096
+ RadioTest: test_radio_options_from_collection_when_options_omitted
26097
+ ------------------------------------------------------------------
26098
+ ----------------------------------------------------------
26099
+ RadioTest: test_radio_options_may_be_specified_with_a_hash
26100
+ ----------------------------------------------------------
26101
+ --------------------------------------------------------
26102
+ RadioTest: test_radio_options_present_with_class_'radio'
26103
+ --------------------------------------------------------
26104
+ -------------------------------------------------
26105
+ RadioTest: test_radio_requires_a_parent_component
26106
+ -------------------------------------------------
26107
+ ------------------------------------------------------------
26108
+ RadioTest: test_radio_throws_error_if_given_improper_options
26109
+ ------------------------------------------------------------
26110
+ ----------------------------------------------------------------
26111
+ SelectTest: test_select_collection_works_using_collection_select
26112
+ ----------------------------------------------------------------
26113
+ ------------------------------------------
26114
+ SelectTest: test_select_comes_with_a_label
26115
+ ------------------------------------------
26116
+ --------------------------------------------------
26117
+ SelectTest: test_select_defaults_can_be_overridden
26118
+ --------------------------------------------------
26119
+ -------------------------------------------------------
26120
+ SelectTest: test_select_defaults_to_include_blank:_true
26121
+ -------------------------------------------------------
26122
+ ------------------------------------------------------------------------------------
26123
+ SelectTest: test_select_generates_correct_options_when_values_are_specified_as_array
26124
+ ------------------------------------------------------------------------------------
26125
+ ------------------------------------------------------------------------
26126
+ SelectTest: test_select_generates_options_from_data_when_options_omitted
26127
+ ------------------------------------------------------------------------
26128
+ --------------------------------------------------------------
26129
+ SelectTest: test_select_multiple:_true_if_passed_multiple_true
26130
+ --------------------------------------------------------------
26131
+ -----------------------------------------------------------------------------------------
26132
+ SelectTest: test_select_multiple_gets_options_from_associated_has_many_through_collection
26133
+ -----------------------------------------------------------------------------------------
26134
+ ---------------------------------------------------
26135
+ SelectTest: test_select_requires_a_parent_component
26136
+ ---------------------------------------------------
26137
+ ---------------------------------------------------------------------------
26138
+ SelectTest: test_select_uses_options_from_collect..._when_field_is_relation
26139
+ ---------------------------------------------------------------------------
26140
+ -------------------------------------------------------------------------
26141
+ SelectTest: test_selected_option_is_omitted_selection_is_taken_from_model
26142
+ -------------------------------------------------------------------------
26143
+ -----------------------------------------------------------------------------
26144
+ ConfigurableTest: test_.has_argument_adds_a_positional_configuration_argument
26145
+ -----------------------------------------------------------------------------
26146
+ ----------------------------------------------------------------------------------------
26147
+ ConfigurableTest: test_.has_argument_appends_supported_arguments_in_order_of_inheritence
26148
+ ----------------------------------------------------------------------------------------
26149
+ -------------------------------------------------------------------------------
26150
+ ConfigurableTest: test_.has_argument_as:_allows_overwrite_of_inherited_argument
26151
+ -------------------------------------------------------------------------------
26152
+ -----------------------------------------------------------------------------------------------------
26153
+ ConfigurableTest: test_.has_argument_makes_builder_arguments_accessible_by_name_according_to_position
26154
+ -----------------------------------------------------------------------------------------------------
26155
+ ---------------------------------------------------
26156
+ ConfigurableTest: test_default_values_are_supported
26157
+ ---------------------------------------------------
26158
+ ----------------------------------------------------------------------
26159
+ ConfigurableTest: test_default_values_for_attributes_can_be_overridden
26160
+ ----------------------------------------------------------------------
26161
+ ------------------------------------------------------------------------
26162
+ ConfigurableTest: test_does_not_pass_declared_options_as_html_attributes
26163
+ ------------------------------------------------------------------------
26164
+ -----------------------------------------------------------
26165
+ ConfigurableTest: test_has_no_id_attribute_if_not_specified
26166
+ -----------------------------------------------------------
26167
+ --------------------------------------------
26168
+ ConfigurableTest: test_options_are_inherited
26169
+ --------------------------------------------
26170
+ -------------------------------------------------------
26171
+ ConfigurableTest: test_renders_first_argument_as_dom_id
26172
+ -------------------------------------------------------
26173
+ ----------------------------------------------------
26174
+ ConfigurableTest: test_required_options_are_required
26175
+ ----------------------------------------------------
26176
+ --------------------------------------------------
26177
+ ConfigurableTest: test_supports_option_declaration
26178
+ --------------------------------------------------
26179
+ ---------------------------------------------------------------
26180
+ ConfigurableTest: test_unrecognized_options_raises_an_exception
26181
+ ---------------------------------------------------------------
26182
+ ----------------------------------------------------
26183
+ ConfigurableTest: test_values_can_be_set_for_options
26184
+ ----------------------------------------------------
26185
+ ---------------------------------------------------------------------
26186
+ ExpressTemplatesTest: test_ExpressTemplates.render_renders_a_template
26187
+ ---------------------------------------------------------------------
26188
+ -------------------------------------------
26189
+ ExpressTemplatesTest: test_we_have_a_module
26190
+ -------------------------------------------
26191
+ -----------------------------------------------------------------------------------------
26192
+ ProcTest: test_#source_body_captures_full_body_when_parens_around_parameters_not_provided
26193
+ -----------------------------------------------------------------------------------------
26194
+ ------------------------------------------------
26195
+ ProcTest: test_#source_body_handles_funky_bodies
26196
+ ------------------------------------------------
26197
+ ----------------------------------------------------------
26198
+ ProcTest: test_#source_body_raises_exception_for_arity_>_0
26199
+ ----------------------------------------------------------
26200
+ ------------------------------------------------------
26201
+ ProcTest: test_#source_body_returns_the_body_of_a_proc
26202
+ ------------------------------------------------------
26203
+ ----------------------------------------------
26204
+ ProcTest: test_#source_returns_a_proc's_source
26205
+ ----------------------------------------------
26206
+ ---------------------------------------------------------------
26207
+ ProcTest: test_#source_work_with_a_stabby_lambda_spanning_lines
26208
+ ---------------------------------------------------------------
26209
+ -----------------------------------------------------------------
26210
+ ProcTest: test_#source_works_when_a_proc_is_inside_a_hash_literal
26211
+ -----------------------------------------------------------------
26212
+ ------------------------------------------------------------
26213
+ ProcTest: test_#source_works_with_a_block_containing_a_block
26214
+ ------------------------------------------------------------
26215
+ --------------------------------------------
26216
+ ProcTest: test_#source_works_with_a_do_block
26217
+ --------------------------------------------
26218
+ -----------------------------------------------------
26219
+ ProcTest: test_#source_works_with_a_single_line_block
26220
+ -----------------------------------------------------
26221
+ -------------------------------------------------
26222
+ ProcTest: test_#source_works_with_a_stabby_lambda
26223
+ -------------------------------------------------
26224
+ ----------------------------------------------------------------------------------------
26225
+ ProcTest: test_.from_source_stores_source_of_a_dynamicly_built_proc_for_later_inspection
26226
+ ----------------------------------------------------------------------------------------
26227
+ ---------------------------------------------------------------------------------------
26228
+ BasicFieldsTest: test_adds_error_class_if_there_are_errors_on_a_field_with_no_class_set
26229
+ ---------------------------------------------------------------------------------------
26230
+ ----------------------------------------------------------------------------------------------
26231
+ BasicFieldsTest: test_adds_error_class_if_there_are_errors_on_a_field_with_no_input_attributes
26232
+ ----------------------------------------------------------------------------------------------
26233
+ --------------------------------------------------------------------------------------------
26234
+ BasicFieldsTest: test_adds_error_to_class_if_there_are_errors_on_a_field_with_existing_class
26235
+ --------------------------------------------------------------------------------------------
26236
+ -------------------------------------
26237
+ BasicFieldsTest: test_all_fields_work
26238
+ -------------------------------------
26239
+ ---------------------------------------------------------------------------------
26240
+ BasicFieldsTest: test_hidden_field_passes_additional_html_options_to_rails_helper
26241
+ ---------------------------------------------------------------------------------
26242
+ ---------------------------------------------------------
26243
+ BasicFieldsTest: test_hidden_uses_rails_hidden_tag_helper
26244
+ ---------------------------------------------------------
26245
+ ---------------------------------------------------------
26246
+ BasicFieldsTest: test_passing_html_options_to_fields_work
26247
+ ---------------------------------------------------------
26248
+ -----------------------------------------------------------------------------
26249
+ BasicFieldsTest: test_textarea_passes_additional_html_options_to_rails_helper
26250
+ -----------------------------------------------------------------------------
26251
+ ----------------------------------------------------------
26252
+ BasicFieldsTest: test_textarea_uses_rails_text_area_helper
26253
+ ----------------------------------------------------------
26254
+ -----------------------------------------
26255
+ HelloControllerTest: test_should_get_show
26256
+ -----------------------------------------
26257
+ Processing by HelloController#show as HTML
26258
+ Rendered hello/show.html.et within layouts/application (0.8ms)
26259
+ Completed 200 OK in 119ms (Views: 119.3ms)
26260
+ --------------------------------------------------------------
26261
+ HandlerTest: test_helpers_returning_html_when_alone_in_a_block
26262
+ --------------------------------------------------------------
26263
+ ------------------------------------------------------------------------
26264
+ HandlerTest: test_helpers_returning_html_work_in_sequence_within_a_block
26265
+ ------------------------------------------------------------------------
26266
+ ----------------------------------------------------------
26267
+ HandlerTest: test_html_generates_<h1>Hello</h1>_by_default
26268
+ ----------------------------------------------------------
26269
+ -----------------------------
26270
+ HandlerTest: test_locals_work
26271
+ -----------------------------
26272
+ ------------------------------------------------------------
26273
+ HandlerTest: test_nesting_elements_with_ruby_block_structure
26274
+ ------------------------------------------------------------
26275
+ ----------------------------------
26276
+ HandlerTest: test_other_attributes
26277
+ ----------------------------------
26278
+ -------------------------------------------
26279
+ HandlerTest: test_our_handler_is_registered
26280
+ -------------------------------------------
26281
+ ------------------------------------------------------------------
26282
+ HandlerTest: test_raises_warning_if_template_has_conditional_logic
26283
+ ------------------------------------------------------------------
26284
+ ---------------------------------------
26285
+ HandlerTest: test_string_in_block_works
26286
+ ---------------------------------------
26287
+ ------------------------------------------------------------------------------------
26288
+ InterpolatorTest: test_"{{some_{{thing}}_foo}}"_transforms_to_"#{some_#{thing}_foo}"
26289
+ ------------------------------------------------------------------------------------
26290
+ -------------------------------------------------------------------
26291
+ InterpolatorTest: test_"{{something}}"_transforms_to_"#{something}"
26292
+ -------------------------------------------------------------------
26293
+ ---------------------------------------------------------------------
26294
+ InterpolatorTest: test_'a_lot_of_{{something_"{{good}}"}}'_transforms
26295
+ ---------------------------------------------------------------------
26296
+ ---------------------------------------------------------------------
26297
+ InterpolatorTest: test_nested_with_multiple_nested_expressions_parses
26298
+ ---------------------------------------------------------------------
26299
+ ----------------------------------------------------
26300
+ InterpolatorTest: test_nested_with_outer_text_parses
26301
+ ----------------------------------------------------
26302
+ -------------------------------------------------------
26303
+ InterpolatorTest: test_nested_without_outer_text_parses
26304
+ -------------------------------------------------------
26305
+ ---------------------------------------------------------------------
26306
+ InterpolatorTest: test_simple_expression_with_surrounding_text_parses
26307
+ ---------------------------------------------------------------------
26308
+ -------------------------------------------------
26309
+ InterpolatorTest: test_simplest_expression_parses
26310
+ -------------------------------------------------
26311
+ ------------------------------------------------------------------------------------
26312
+ StringTest: test_String#inspect_works_normally_when_#to_view_code_hasn't_been_called
26313
+ ------------------------------------------------------------------------------------
26314
+ --------------------------------------------------------------------------------
26315
+ StringTest: test_String#to_view_code_causes_subsequent_#inspect_to_remove_quotes
26316
+ --------------------------------------------------------------------------------
26317
+ -------------------------------------------------------
26318
+ StringTest: test_String#to_view_code_returns_the_string
26319
+ -------------------------------------------------------
26320
+ --------------------------------------------------------------------------------------------------
26321
+ ExpressTemplates::ResourcefulTest: test_#resource_class_returns_resource_class_option_if_specified
26322
+ --------------------------------------------------------------------------------------------------
26323
+ -----------------------------------------------------------------------------------------
26324
+ ExpressTemplates::ResourcefulTest: test_infers_a_namespace_and_no_prefix_within_an_engine
26325
+ -----------------------------------------------------------------------------------------
26326
+ ---------------------------------------------------------------------------------------------------
26327
+ ExpressTemplates::ResourcefulTest: test_infers_namespace_and_path_prefix_within_an_engine_and_scope
26328
+ ---------------------------------------------------------------------------------------------------
26329
+ ------------------------------------------------------------------------------------------------
26330
+ ExpressTemplates::ResourcefulTest: test_no_namespace,_infers_prefix_within_a_scope_within_an_app
26331
+ ------------------------------------------------------------------------------------------------
26332
+ -----------------------------------------------------------------------------
26333
+ ExpressTemplates::ResourcefulTest: test_no_namespace,_no_prefix_within_an_app
26334
+ -----------------------------------------------------------------------------
26335
+ ----------------------------------------------
26336
+ SubmitTest: test_submit_accepts_a_class_option
26337
+ ----------------------------------------------
26338
+ --------------------------------------------------------
26339
+ SubmitTest: test_submit_accepts_a_value_and_class_option
26340
+ --------------------------------------------------------
26341
+ ----------------------------------------------------
26342
+ SubmitTest: test_submit_takes_string_param_for_value
26343
+ ----------------------------------------------------
26344
+ --------------------------------------------
26345
+ CompilerTest: test_.compile_returns_a_string
26346
+ --------------------------------------------
26347
+ ---------------------------------------------------------------------------------------------
26348
+ IndenterTest: test_.for(:name)_returns_current_indent_without_newline_when_block_is_not_given
26349
+ ---------------------------------------------------------------------------------------------
26350
+ -----------------------------------------------------------------
26351
+ IndenterTest: test_.for(:name)_takes_a_block_receiving_whitespace
26352
+ -----------------------------------------------------------------
26353
+ ------------------------------------------------------------------
26354
+ IndenterTest: test_nesting_blocks_increases_whitespace_accordingly
26355
+ ------------------------------------------------------------------
26356
+ -----------------------------------------------------------------
26357
+ BaseTest: test_.contains_places_fragment_inside_the_enclosing_tag
26358
+ -----------------------------------------------------------------
26359
+ ---------------------------------------------------------
26360
+ BaseTest: test_.has_attributes_creates_default_attributes
26361
+ ---------------------------------------------------------
26362
+ -----------------------------------------------------
26363
+ BaseTest: test_.tag_name_determines_the_enclosing_tag
26364
+ -----------------------------------------------------
26365
+ --------------------------------------------------
26366
+ BaseTest: test_before_build_hook_runs_before_build
26367
+ --------------------------------------------------
26368
+ --------------------------------------------------------------
26369
+ BaseTest: test_class_name_is_dasherized_instead_of_underscored
26370
+ --------------------------------------------------------------
26371
+ -----------------------------------------------------------
26372
+ BaseTest: test_class_option_adds_a_class,_does_not_override
26373
+ -----------------------------------------------------------
26374
+ ----------------------------------------------------
26375
+ BaseTest: test_options_are_passed_to_html_attributes
26376
+ ----------------------------------------------------
26377
+ ------------------------------------------------------------
26378
+ TreeForTest: test_tree_for_accepts_block_with_custom_content
26379
+ ------------------------------------------------------------
26380
+ ---------------------------------------------------------------------------
26381
+ TreeForTest: test_tree_for_renders_correct_markup_with_node.name_as_default
26382
+ ---------------------------------------------------------------------------
26383
+ -------------------------------------------------------------
26384
+ CheckboxTest: test_checkbox_places_the_label_before_the_input
26385
+ -------------------------------------------------------------
26386
+ -------------------------------------------------------
26387
+ CheckboxTest: test_checkbox_respects_label_after:_true_
26388
+ -------------------------------------------------------
26389
+ ---------------------------------------------------------------
26390
+ ExpressFormTest: test_express_form_contents_are_inside_the_form
26391
+ ---------------------------------------------------------------
26392
+ ---------------------------------------------------------
26393
+ ExpressFormTest: test_express_form_default_method_is_POST
26394
+ ---------------------------------------------------------
26395
+ -----------------------------------------------------
26396
+ ExpressFormTest: test_simplest_form_contains_form_tag
26397
+ -----------------------------------------------------
26398
+ ---------------------------------------------------------------
26399
+ ExpressFormTest: test_simplest_form_contains_rails_form_helpers
26400
+ ---------------------------------------------------------------
26401
+ ---------------------------------------------------
26402
+ ExpressFormTest: test_simplest_form_contains_submit
26403
+ ---------------------------------------------------
26404
+ -------------------------------------------
26405
+ ExpressFormTest: test_simplest_form_renders
26406
+ -------------------------------------------
26407
+ -------------------------------------------------------------------
26408
+ ExpressFormTest: test_simplest_form_uses_form_action_for_the_action
26409
+ -------------------------------------------------------------------
26410
+ -----------------------------------------------------------
26411
+ ExpressFormTest: test_simplest_form_will_have_the_proper_id
26412
+ -----------------------------------------------------------
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: express_admin
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.2
4
+ version: 1.6.3
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: 2015-09-01 00:00:00.000000000 Z
11
+ date: 2015-09-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bourbon
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '0.10'
33
+ version: '0.11'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '0.10'
40
+ version: '0.11'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: jquery-rails
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -591,6 +591,7 @@ files:
591
591
  - vendor/gems/express_templates/README.md
592
592
  - vendor/gems/express_templates/Rakefile
593
593
  - vendor/gems/express_templates/express_templates-0.11.0.gem
594
+ - vendor/gems/express_templates/express_templates-0.11.1.gem
594
595
  - vendor/gems/express_templates/express_templates.gemspec
595
596
  - vendor/gems/express_templates/lib/arbre/patches.rb
596
597
  - vendor/gems/express_templates/lib/core_extensions/proc.rb