riveter 0.0.1 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +0 -3
  3. data/Gemfile.lock +1 -1
  4. data/README.md +5 -1
  5. data/app/helpers/riveter.rb +2 -0
  6. data/app/helpers/riveter/query_filter_form_helper.rb +1 -1
  7. data/lib/generators/haml/command_controller/command_controller_generator.rb +1 -1
  8. data/lib/generators/haml/enquiry_controller/enquiry_controller_generator.rb +1 -1
  9. data/lib/generators/riveter/enquiry/enquiry_generator.rb +5 -0
  10. data/lib/generators/riveter/enum/enum_generator.rb +1 -1
  11. data/lib/generators/riveter/query_filter/query_filter_generator.rb +1 -1
  12. data/lib/riveter/booleaness_validator.rb +0 -7
  13. data/lib/riveter/version.rb +1 -1
  14. data/spec/examples/generator_examples.rb +57 -0
  15. data/spec/generators/haml/command_controller/command_controller_generator_spec.rb +38 -19
  16. data/spec/generators/haml/enquiry_controller/enquiry_controller_generator_spec.rb +38 -19
  17. data/spec/generators/riveter/command/command_generator_spec.rb +32 -36
  18. data/spec/generators/riveter/command_controller/command_controller_generator_spec.rb +51 -0
  19. data/spec/generators/riveter/enquiry/enquiry_generator_spec.rb +53 -0
  20. data/spec/generators/riveter/enquiry_controller/enquiry_controller_generator_spec.rb +51 -0
  21. data/spec/generators/riveter/enum/enum_generator_spec.rb +64 -0
  22. data/spec/generators/riveter/install/install_generator_spec.rb +6 -0
  23. data/spec/generators/riveter/presenter/presenter_generator_spec.rb +32 -0
  24. data/spec/generators/riveter/query/query_generator_spec.rb +32 -0
  25. data/spec/generators/riveter/query_filter/query_filter_generator_spec.rb +31 -36
  26. data/spec/generators/riveter/service/service_generator_spec.rb +33 -0
  27. data/spec/generators/riveter/worker/worker_generator_spec.rb +32 -0
  28. data/spec/generators/rspec/command/command_generator_spec.rb +24 -0
  29. data/spec/generators/rspec/command_controller/command_controller_generator_spec.rb +36 -0
  30. data/spec/generators/rspec/enquiry/enquiry_generator_spec.rb +24 -0
  31. data/spec/generators/rspec/enquiry_controller/enquiry_controller_generator_spec.rb +36 -0
  32. data/spec/generators/rspec/enum/enum_generator_spec.rb +24 -0
  33. data/spec/generators/rspec/presenter/presenter_generator_spec.rb +24 -0
  34. data/spec/generators/rspec/query/query_generator_spec.rb +24 -0
  35. data/spec/generators/rspec/query_filter/query_filter_generator_spec.rb +24 -0
  36. data/spec/generators/rspec/service/service_generator_spec.rb +24 -0
  37. data/spec/generators/rspec/worker/worker_generator_spec.rb +24 -0
  38. data/spec/helpers/riveter/command_form_helper_spec.rb +26 -0
  39. data/spec/helpers/riveter/enquiry_form_helper_spec.rb +26 -0
  40. data/spec/helpers/riveter/query_filter_form_helper_spec.rb +26 -0
  41. data/spec/riveter/booleaness_validator_spec.rb +83 -0
  42. data/spec/riveter/command_spec.rb +7 -2
  43. data/spec/spec_helper.rb +3 -17
  44. data/spec/support/test_class_with_attributes.rb +3 -0
  45. data/spec/support/test_service.rb +0 -5
  46. metadata +47 -2
@@ -1,7 +1,2 @@
1
1
  class TestService < Riveter::Service::Base
2
- # register_as_handler_for TestCommand
3
-
4
- # def perform(command, *args)
5
- # true
6
- # end
7
2
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: riveter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Stefano
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-10 00:00:00.000000000 Z
11
+ date: 2014-06-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -253,6 +253,7 @@ files:
253
253
  - LICENSE.txt
254
254
  - README.md
255
255
  - Rakefile
256
+ - app/helpers/riveter.rb
256
257
  - app/helpers/riveter/command_form_helper.rb
257
258
  - app/helpers/riveter/enquiry_form_helper.rb
258
259
  - app/helpers/riveter/query_filter_form_helper.rb
@@ -371,15 +372,37 @@ files:
371
372
  - lib/riveter/worker.rb
372
373
  - riveter.gemspec
373
374
  - spec/examples/attribute_examples.rb
375
+ - spec/examples/generator_examples.rb
374
376
  - spec/generators/haml/command_controller/command_controller_generator_spec.rb
375
377
  - spec/generators/haml/enquiry_controller/enquiry_controller_generator_spec.rb
376
378
  - spec/generators/riveter/command/command_generator_spec.rb
377
379
  - spec/generators/riveter/command_controller/command_controller_generator_spec.rb
378
380
  - spec/generators/riveter/enquiry/enquiry_generator_spec.rb
381
+ - spec/generators/riveter/enquiry_controller/enquiry_controller_generator_spec.rb
382
+ - spec/generators/riveter/enum/enum_generator_spec.rb
383
+ - spec/generators/riveter/install/install_generator_spec.rb
384
+ - spec/generators/riveter/presenter/presenter_generator_spec.rb
385
+ - spec/generators/riveter/query/query_generator_spec.rb
379
386
  - spec/generators/riveter/query_filter/query_filter_generator_spec.rb
387
+ - spec/generators/riveter/service/service_generator_spec.rb
388
+ - spec/generators/riveter/worker/worker_generator_spec.rb
389
+ - spec/generators/rspec/command/command_generator_spec.rb
390
+ - spec/generators/rspec/command_controller/command_controller_generator_spec.rb
391
+ - spec/generators/rspec/enquiry/enquiry_generator_spec.rb
392
+ - spec/generators/rspec/enquiry_controller/enquiry_controller_generator_spec.rb
393
+ - spec/generators/rspec/enum/enum_generator_spec.rb
394
+ - spec/generators/rspec/presenter/presenter_generator_spec.rb
395
+ - spec/generators/rspec/query/query_generator_spec.rb
396
+ - spec/generators/rspec/query_filter/query_filter_generator_spec.rb
397
+ - spec/generators/rspec/service/service_generator_spec.rb
398
+ - spec/generators/rspec/worker/worker_generator_spec.rb
399
+ - spec/helpers/riveter/command_form_helper_spec.rb
400
+ - spec/helpers/riveter/enquiry_form_helper_spec.rb
401
+ - spec/helpers/riveter/query_filter_form_helper_spec.rb
380
402
  - spec/riveter/associated_type_registry_spec.rb
381
403
  - spec/riveter/attribute_default_value_spec.rb
382
404
  - spec/riveter/attributes_spec.rb
405
+ - spec/riveter/booleaness_validator_spec.rb
383
406
  - spec/riveter/command_controller_spec.rb
384
407
  - spec/riveter/command_routes_spec.rb
385
408
  - spec/riveter/command_spec.rb
@@ -441,15 +464,37 @@ specification_version: 4
441
464
  summary: Provides several useful patterns, packaged in a gem, for use in Rails.
442
465
  test_files:
443
466
  - spec/examples/attribute_examples.rb
467
+ - spec/examples/generator_examples.rb
444
468
  - spec/generators/haml/command_controller/command_controller_generator_spec.rb
445
469
  - spec/generators/haml/enquiry_controller/enquiry_controller_generator_spec.rb
446
470
  - spec/generators/riveter/command/command_generator_spec.rb
447
471
  - spec/generators/riveter/command_controller/command_controller_generator_spec.rb
448
472
  - spec/generators/riveter/enquiry/enquiry_generator_spec.rb
473
+ - spec/generators/riveter/enquiry_controller/enquiry_controller_generator_spec.rb
474
+ - spec/generators/riveter/enum/enum_generator_spec.rb
475
+ - spec/generators/riveter/install/install_generator_spec.rb
476
+ - spec/generators/riveter/presenter/presenter_generator_spec.rb
477
+ - spec/generators/riveter/query/query_generator_spec.rb
449
478
  - spec/generators/riveter/query_filter/query_filter_generator_spec.rb
479
+ - spec/generators/riveter/service/service_generator_spec.rb
480
+ - spec/generators/riveter/worker/worker_generator_spec.rb
481
+ - spec/generators/rspec/command/command_generator_spec.rb
482
+ - spec/generators/rspec/command_controller/command_controller_generator_spec.rb
483
+ - spec/generators/rspec/enquiry/enquiry_generator_spec.rb
484
+ - spec/generators/rspec/enquiry_controller/enquiry_controller_generator_spec.rb
485
+ - spec/generators/rspec/enum/enum_generator_spec.rb
486
+ - spec/generators/rspec/presenter/presenter_generator_spec.rb
487
+ - spec/generators/rspec/query/query_generator_spec.rb
488
+ - spec/generators/rspec/query_filter/query_filter_generator_spec.rb
489
+ - spec/generators/rspec/service/service_generator_spec.rb
490
+ - spec/generators/rspec/worker/worker_generator_spec.rb
491
+ - spec/helpers/riveter/command_form_helper_spec.rb
492
+ - spec/helpers/riveter/enquiry_form_helper_spec.rb
493
+ - spec/helpers/riveter/query_filter_form_helper_spec.rb
450
494
  - spec/riveter/associated_type_registry_spec.rb
451
495
  - spec/riveter/attribute_default_value_spec.rb
452
496
  - spec/riveter/attributes_spec.rb
497
+ - spec/riveter/booleaness_validator_spec.rb
453
498
  - spec/riveter/command_controller_spec.rb
454
499
  - spec/riveter/command_routes_spec.rb
455
500
  - spec/riveter/command_spec.rb