volt 0.9.0.pre3 → 0.9.0.pre4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (63) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +11 -7
  3. data/VERSION +1 -1
  4. data/app/volt/tasks/user_tasks.rb +7 -2
  5. data/lib/volt.rb +1 -0
  6. data/lib/volt/cli/generate.rb +28 -10
  7. data/lib/volt/controllers/http_controller.rb +1 -1
  8. data/lib/volt/extra_core/logger.rb +14 -11
  9. data/lib/volt/models/persistors/query/query_listener.rb +7 -1
  10. data/lib/volt/page/bindings/component_binding.rb +2 -2
  11. data/lib/volt/page/bindings/{template_binding.rb → view_binding.rb} +3 -3
  12. data/lib/volt/page/bindings/{template_binding → view_binding}/grouped_controllers.rb +0 -0
  13. data/lib/volt/page/bindings/{template_binding → view_binding}/view_lookup_for_path.rb +0 -0
  14. data/lib/volt/page/page.rb +1 -1
  15. data/lib/volt/server/html_parser/view_scope.rb +4 -1
  16. data/lib/volt/server/rack/component_paths.rb +1 -1
  17. data/lib/volt/spec/setup.rb +10 -2
  18. data/lib/volt/tasks/dispatcher.rb +10 -3
  19. data/lib/volt/utils/logging/task_argument_filterer.rb +42 -0
  20. data/lib/volt/utils/logging/task_logger.rb +14 -0
  21. data/lib/volt/utils/volt_user_error.rb +4 -0
  22. data/lib/volt/volt/users.rb +2 -2
  23. data/spec/apps/kitchen_sink/app/main/config/routes.rb +1 -0
  24. data/spec/apps/kitchen_sink/app/main/controllers/server/simple_http_controller.rb +1 -1
  25. data/spec/apps/kitchen_sink/app/main/views/main/first_last.html +13 -0
  26. data/spec/apps/kitchen_sink/app/main/views/main/main.html +2 -2
  27. data/spec/controllers/http_controller_spec.rb +2 -2
  28. data/spec/integration/bindings_spec.rb +154 -156
  29. data/spec/integration/cookies_spec.rb +28 -30
  30. data/spec/integration/first_last_spec.rb +14 -0
  31. data/spec/integration/http_endpoints_spec.rb +22 -24
  32. data/spec/integration/templates_spec.rb +7 -9
  33. data/spec/integration/user_spec.rb +49 -52
  34. data/spec/integration/yield_spec.rb +12 -14
  35. data/spec/page/bindings/template_binding/view_lookup_for_path_spec.rb +2 -2
  36. data/spec/server/html_parser/view_parser_spec.rb +2 -2
  37. data/spec/server/rack/http_resource_spec.rb +2 -2
  38. data/spec/utils/task_argument_filtererer_spec.rb +17 -0
  39. data/templates/component/config/routes.rb +0 -5
  40. data/templates/component/controllers/server/.empty_directory +0 -0
  41. data/templates/component/lib/.empty_directory +0 -0
  42. data/templates/component_specs/controllers/server/.empty_directory +0 -0
  43. data/templates/component_specs/integration/.empty_directory +0 -0
  44. data/templates/component_specs/models/.empty_directory +0 -0
  45. data/templates/component_specs/tasks/.empty_directory +0 -0
  46. data/templates/controller/http_controller.rb.tt +1 -1
  47. data/templates/controller/http_controller_spec.rb.tt +5 -0
  48. data/templates/controller/model_controller.rb.tt +1 -1
  49. data/templates/controller/model_controller_spec.rb.tt +5 -0
  50. data/templates/model/model.rb.tt +1 -1
  51. data/templates/model/model_spec.rb.tt +5 -0
  52. data/templates/newgem/app/newgem/controllers/server/.empty_directory +0 -0
  53. data/templates/newgem/app/newgem/lib/.empty_directory +0 -0
  54. data/templates/newgem/lib/newgem.rb.tt +1 -1
  55. data/templates/project/app/main/views/main/main.html.tt +2 -2
  56. data/templates/project/config/app.rb.tt +5 -0
  57. data/templates/project/spec/app/main/controllers/server/sample_http_controller_spec.rb +5 -0
  58. data/templates/project/spec/app/main/tasks/sample_task_spec.rb +5 -0
  59. data/templates/task/task.rb.tt +0 -1
  60. data/templates/task/task_spec.rb.tt +5 -0
  61. data/templates/view/index.html.tt +5 -0
  62. metadata +29 -6
  63. data/templates/view/view.rb.tt +0 -4
@@ -0,0 +1,5 @@
1
+ require 'spec_helper'
2
+
3
+ describe <%= config[:task_name] %>, type: :task do
4
+ # Specs here
5
+ end
@@ -0,0 +1,5 @@
1
+ <:Title>
2
+ <%= config[:view_name] %> index
3
+
4
+ <:Body>
5
+ <h1>Find me in app/<%= config[:component] %>/<%= config[:view_name] %>/index.html</h1>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: volt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0.pre3
4
+ version: 0.9.0.pre4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Stout
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-08 00:00:00.000000000 Z
11
+ date: 2015-04-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -545,9 +545,9 @@ files:
545
545
  - lib/volt/page/bindings/each_binding.rb
546
546
  - lib/volt/page/bindings/event_binding.rb
547
547
  - lib/volt/page/bindings/if_binding.rb
548
- - lib/volt/page/bindings/template_binding.rb
549
- - lib/volt/page/bindings/template_binding/grouped_controllers.rb
550
- - lib/volt/page/bindings/template_binding/view_lookup_for_path.rb
548
+ - lib/volt/page/bindings/view_binding.rb
549
+ - lib/volt/page/bindings/view_binding/grouped_controllers.rb
550
+ - lib/volt/page/bindings/view_binding/view_lookup_for_path.rb
551
551
  - lib/volt/page/bindings/yield_binding.rb
552
552
  - lib/volt/page/channel.rb
553
553
  - lib/volt/page/channel_stub.rb
@@ -616,9 +616,12 @@ files:
616
616
  - lib/volt/utils/generic_counting_pool.rb
617
617
  - lib/volt/utils/generic_pool.rb
618
618
  - lib/volt/utils/local_storage.rb
619
+ - lib/volt/utils/logging/task_argument_filterer.rb
620
+ - lib/volt/utils/logging/task_logger.rb
619
621
  - lib/volt/utils/modes.rb
620
622
  - lib/volt/utils/promise_patch.rb
621
623
  - lib/volt/utils/timers.rb
624
+ - lib/volt/utils/volt_user_error.rb
622
625
  - lib/volt/volt/environment.rb
623
626
  - lib/volt/volt/users.rb
624
627
  - spec/apps/file_loading/app/bootstrap/assets/js/bootstrap.js
@@ -641,6 +644,7 @@ files:
641
644
  - spec/apps/kitchen_sink/app/main/models/user.rb
642
645
  - spec/apps/kitchen_sink/app/main/views/main/bindings.html
643
646
  - spec/apps/kitchen_sink/app/main/views/main/cookie_test.html
647
+ - spec/apps/kitchen_sink/app/main/views/main/first_last.html
644
648
  - spec/apps/kitchen_sink/app/main/views/main/flash.html
645
649
  - spec/apps/kitchen_sink/app/main/views/main/index.html
646
650
  - spec/apps/kitchen_sink/app/main/views/main/main.html
@@ -665,6 +669,7 @@ files:
665
669
  - spec/extra_core/symbol_spec.rb
666
670
  - spec/integration/bindings_spec.rb
667
671
  - spec/integration/cookies_spec.rb
672
+ - spec/integration/first_last_spec.rb
668
673
  - spec/integration/flash_spec.rb
669
674
  - spec/integration/http_endpoints_spec.rb
670
675
  - spec/integration/list_spec.rb
@@ -720,6 +725,7 @@ files:
720
725
  - spec/templates/targets/binding_document/component_node_spec.rb
721
726
  - spec/utils/generic_counting_pool_spec.rb
722
727
  - spec/utils/generic_pool_spec.rb
728
+ - spec/utils/task_argument_filtererer_spec.rb
723
729
  - templates/.gitignore
724
730
  - templates/component/assets/css/.empty_directory
725
731
  - templates/component/assets/images/.empty_directory
@@ -727,12 +733,21 @@ files:
727
733
  - templates/component/config/dependencies.rb
728
734
  - templates/component/config/routes.rb
729
735
  - templates/component/controllers/main_controller.rb.tt
736
+ - templates/component/controllers/server/.empty_directory
737
+ - templates/component/lib/.empty_directory
730
738
  - templates/component/models/.empty_directory
731
739
  - templates/component/tasks/.empty_directory
732
740
  - templates/component/views/main/index.html.tt
741
+ - templates/component_specs/controllers/server/.empty_directory
742
+ - templates/component_specs/integration/.empty_directory
743
+ - templates/component_specs/models/.empty_directory
744
+ - templates/component_specs/tasks/.empty_directory
733
745
  - templates/controller/http_controller.rb.tt
746
+ - templates/controller/http_controller_spec.rb.tt
734
747
  - templates/controller/model_controller.rb.tt
748
+ - templates/controller/model_controller_spec.rb.tt
735
749
  - templates/model/model.rb.tt
750
+ - templates/model/model_spec.rb.tt
736
751
  - templates/newgem/Gemfile.tt
737
752
  - templates/newgem/LICENSE.txt.tt
738
753
  - templates/newgem/README.md.tt
@@ -743,6 +758,8 @@ files:
743
758
  - templates/newgem/app/newgem/config/dependencies.rb
744
759
  - templates/newgem/app/newgem/config/routes.rb
745
760
  - templates/newgem/app/newgem/controllers/main_controller.rb.tt
761
+ - templates/newgem/app/newgem/controllers/server/.empty_directory
762
+ - templates/newgem/app/newgem/lib/.empty_directory
746
763
  - templates/newgem/app/newgem/views/main/index.html
747
764
  - templates/newgem/bin/newgem.tt
748
765
  - templates/newgem/gitignore.tt
@@ -775,11 +792,14 @@ files:
775
792
  - templates/project/config/app.rb.tt
776
793
  - templates/project/config/base/index.html
777
794
  - templates/project/lib/.empty_directory
795
+ - templates/project/spec/app/main/controllers/server/sample_http_controller_spec.rb
778
796
  - templates/project/spec/app/main/integration/sample_integration_spec.rb
779
797
  - templates/project/spec/app/main/models/sample_model_spec.rb
798
+ - templates/project/spec/app/main/tasks/sample_task_spec.rb
780
799
  - templates/project/spec/spec_helper.rb
781
800
  - templates/task/task.rb.tt
782
- - templates/view/view.rb.tt
801
+ - templates/task/task_spec.rb.tt
802
+ - templates/view/index.html.tt
783
803
  - volt.gemspec
784
804
  homepage: http://voltframework.com
785
805
  licenses:
@@ -827,6 +847,7 @@ test_files:
827
847
  - spec/apps/kitchen_sink/app/main/models/user.rb
828
848
  - spec/apps/kitchen_sink/app/main/views/main/bindings.html
829
849
  - spec/apps/kitchen_sink/app/main/views/main/cookie_test.html
850
+ - spec/apps/kitchen_sink/app/main/views/main/first_last.html
830
851
  - spec/apps/kitchen_sink/app/main/views/main/flash.html
831
852
  - spec/apps/kitchen_sink/app/main/views/main/index.html
832
853
  - spec/apps/kitchen_sink/app/main/views/main/main.html
@@ -851,6 +872,7 @@ test_files:
851
872
  - spec/extra_core/symbol_spec.rb
852
873
  - spec/integration/bindings_spec.rb
853
874
  - spec/integration/cookies_spec.rb
875
+ - spec/integration/first_last_spec.rb
854
876
  - spec/integration/flash_spec.rb
855
877
  - spec/integration/http_endpoints_spec.rb
856
878
  - spec/integration/list_spec.rb
@@ -906,4 +928,5 @@ test_files:
906
928
  - spec/templates/targets/binding_document/component_node_spec.rb
907
929
  - spec/utils/generic_counting_pool_spec.rb
908
930
  - spec/utils/generic_pool_spec.rb
931
+ - spec/utils/task_argument_filtererer_spec.rb
909
932
  has_rdoc:
@@ -1,4 +0,0 @@
1
- <div>
2
- {{ # your code here }}
3
- </div>
4
-