paradigm 0.1.2 → 0.1.3

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.
Files changed (57) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -2
  3. data/lib/generators/paradigm/install_generator.rb +3 -1
  4. data/lib/generators/paradigm/service_generator.rb +54 -14
  5. data/lib/generators/templates/service/nested_service.rb +1 -1
  6. data/lib/generators/templates/service/nested_service_test.rb +1 -1
  7. data/lib/generators/templates/service/service.rb +1 -1
  8. data/lib/generators/templates/service/service_test.rb +1 -1
  9. data/lib/paradigm.rb +3 -0
  10. data/lib/paradigm/version.rb +3 -0
  11. data/test/generators/install_generator_test.rb +4 -2
  12. data/test/generators/service_generator_test.rb +15 -6
  13. data/test/paradigm_test.rb +1 -1
  14. data/test/{dummy → rails_app}/README.rdoc +0 -0
  15. data/test/{dummy → rails_app}/Rakefile +0 -0
  16. data/test/{dummy → rails_app}/app/assets/javascripts/application.js +0 -0
  17. data/test/{dummy → rails_app}/app/assets/stylesheets/application.css +0 -0
  18. data/test/{dummy → rails_app}/app/controllers/application_controller.rb +0 -0
  19. data/test/{dummy → rails_app}/app/helpers/application_helper.rb +0 -0
  20. data/test/rails_app/app/models/concerns/account.rb +2 -0
  21. data/test/rails_app/app/models/concerns/payment.rb +2 -0
  22. data/test/{dummy → rails_app}/app/views/layouts/application.html.erb +0 -0
  23. data/test/{dummy → rails_app}/bin/bundle +0 -0
  24. data/test/{dummy → rails_app}/bin/rails +0 -0
  25. data/test/{dummy → rails_app}/bin/rake +0 -0
  26. data/test/{dummy → rails_app}/bin/setup +0 -0
  27. data/test/{dummy → rails_app}/config.ru +0 -0
  28. data/test/{dummy → rails_app}/config/application.rb +2 -2
  29. data/test/{dummy → rails_app}/config/boot.rb +0 -0
  30. data/test/{dummy → rails_app}/config/environment.rb +0 -0
  31. data/test/{dummy → rails_app}/config/environments/development.rb +0 -0
  32. data/test/{dummy → rails_app}/config/environments/production.rb +0 -0
  33. data/test/{dummy → rails_app}/config/environments/test.rb +0 -4
  34. data/test/{dummy → rails_app}/config/initializers/assets.rb +0 -0
  35. data/test/{dummy → rails_app}/config/initializers/backtrace_silencers.rb +0 -0
  36. data/test/{dummy → rails_app}/config/initializers/cookies_serializer.rb +0 -0
  37. data/test/{dummy → rails_app}/config/initializers/filter_parameter_logging.rb +0 -0
  38. data/test/{dummy → rails_app}/config/initializers/inflections.rb +0 -0
  39. data/test/{dummy → rails_app}/config/initializers/mime_types.rb +0 -0
  40. data/test/{dummy → rails_app}/config/initializers/session_store.rb +0 -0
  41. data/test/{dummy → rails_app}/config/initializers/wrap_parameters.rb +0 -0
  42. data/test/{dummy → rails_app}/config/locales/en.yml +0 -0
  43. data/test/{dummy → rails_app}/config/routes.rb +0 -0
  44. data/test/{dummy → rails_app}/config/secrets.yml +0 -0
  45. data/test/rails_app/log/test.log +150 -0
  46. data/test/{dummy → rails_app}/public/404.html +0 -0
  47. data/test/{dummy → rails_app}/public/422.html +0 -0
  48. data/test/{dummy → rails_app}/public/500.html +0 -0
  49. data/test/{dummy → rails_app}/public/favicon.ico +0 -0
  50. data/test/rails_app/tmp/app/services/payment/refund_user_payment_service.rb +11 -0
  51. data/test/rails_app/tmp/test/services/payment/refund_user_payment_service_test.rb +7 -0
  52. data/test/test_helper.rb +6 -8
  53. metadata +101 -75
  54. data/lib/paradigm/rails.rb +0 -8
  55. data/lib/paradigm/rails/version.rb +0 -5
  56. data/test/dummy/log/test.log +0 -432
  57. data/test/dummy/tmp/app/services/service.rb +0 -9
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 52245ad5ba70c75fe570e27715bb49cda29ad243
4
- data.tar.gz: 0481c691d64ea18d7a00de9bb25b370588627faf
3
+ metadata.gz: aedd3845b10707fa0050b41354c576758e5654af
4
+ data.tar.gz: 775dff5f1c91e85fb792f66cac85586153c4684e
5
5
  SHA512:
6
- metadata.gz: 788573fd3fd5297faefe113b042300de38d37e681c4ab7a3a00a2a09be7223e416c8bb4be0658bd41f17576c081d7531161d604bd23eac32d40ccc5fdf64238c
7
- data.tar.gz: 3b7d0618ac3172581cc3bf546b7a981b0e0909672d409ea98961e5651f4dd026739a7df2144e45cd0a5331509dc2cc09e5ec7f9bcd529285dd7cecd1fe950654
6
+ metadata.gz: 10bccae129e588543bd58856187f73701828b7ce620adcd223b8626b9ee239aed8059a71ccde8fb3a8e5b2457d652210fe21abc0a93177270afe4bb02f109196
7
+ data.tar.gz: 6dd8df315a49bf6600ec4d501d03edf66cf1ce27e2a5b910765ef8e7a4489f7236ba01ad195aea3124a2fbe30c6b0e0a0917c7445ce6c9dcfede9261dba16614
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- [![Version](https://img.shields.io/badge/gem-v0.1.2-blue.svg)](https://rubygems.org/gems/paradigm)
1
+ [![Version](https://img.shields.io/badge/gem-v0.1.3-blue.svg)](https://rubygems.org/gems/paradigm)
2
2
  [![Rating ](https://img.shields.io/badge/rating-100%2F5-brightgreen.svg)](https://rubygems.org/gems/paradigm)
3
3
 
4
4
  # Paradigm: abstractions so good you'll cry
@@ -36,7 +36,7 @@ Sets up a `app/services` directory with a `user_creation_service.rb` file. Also
36
36
  #### Nested services
37
37
 
38
38
  ```
39
- rails generate paradigm:service account:user_creation
39
+ rails generate paradigm:service account::user_creation
40
40
  ```
41
41
 
42
42
  Sets up a `app/services/account` directory with a `user_creation_service.rb` file. Also adds a `user_creation_service_test.rb` file in the `test/services/account` directory.
@@ -3,7 +3,9 @@ module Paradigm
3
3
  class InstallGenerator < ::Rails::Generators::Base
4
4
  desc 'Creates Service module in app/services'
5
5
 
6
- source_root File.expand_path('../../templates/install', __FILE__)
6
+ def self.source_root
7
+ @source_root ||= File.expand_path('../../templates/install', __FILE__)
8
+ end
7
9
 
8
10
  def copy_service
9
11
  template 'service.rb', 'app/services/service.rb'
@@ -1,30 +1,70 @@
1
1
  module Paradigm
2
2
  module Generators
3
- class ServiceGenerator < ::Rails::Generators::NamedBase
4
- desc 'Creates a new service object with accompanying test file'
3
+ class ServiceGenerator < Rails::Generators::Base
4
+ SINGLE_COLON = ':'.freeze
5
+ DOUBLE_COLON = '::'.freeze
5
6
 
6
- source_root File.expand_path('../../templates/service', __FILE__)
7
+ desc <<-DESC.strip_heredoc
8
+ ------------------------------------------------------------------
9
+ PARADIGM SERVICE GENERATOR
10
+ ------------------------------------------------------------------
7
11
 
8
- def create_service_file
9
- @file_name = file_name
12
+ Creates a new service object with accompanying test file in your
13
+ app/services folder.
10
14
 
11
- if nested_file_name?
12
- @path = file_name.partition(':').delete_if { |x| x == ':' }
15
+ Scoped service objects will be added to your app/services/[scope]
16
+ folder.
13
17
 
14
- template 'nested_service.rb', "app/services/#{path[0]}/#{path[1].underscore}_service.rb"
15
- template 'nested_service_test.rb', "test/services/#{path[0]}/#{path[1].underscore}_service_test.rb"
18
+ For top level services use:
19
+
20
+ #=> rails g paradigm:service [service]
21
+
22
+ For nested services use:
23
+
24
+ #=> rails g paradigm:service [scope]::[service]
25
+ ------------------------------------------------------------------
26
+ DESC
27
+
28
+ argument :service_name, required: true,
29
+ desc: 'The service to be created, can also be scoped'
30
+
31
+ def self.source_root
32
+ @source_root ||= File.expand_path('../../templates/service', __FILE__)
33
+ end
34
+
35
+ def create_service
36
+ @service_name = service_name
37
+
38
+ if scoped_service_containing?(DOUBLE_COLON)
39
+ use_scoped_templates(DOUBLE_COLON)
40
+ elsif scoped_service_containing?(SINGLE_COLON)
41
+ use_scoped_templates(SINGLE_COLON)
16
42
  else
17
- template 'service.rb', "app/services/#{file_name.underscore}_service.rb"
18
- template 'service_test.rb', "test/services/#{file_name.underscore}_service_test.rb"
43
+ template 'service.rb', "app/services/#{service_name.underscore}_service.rb"
44
+ template 'service_test.rb', "test/services/#{service_name.underscore}_service_test.rb"
19
45
  end
20
46
  end
21
47
 
22
48
  private
23
49
 
24
- attr_reader :file_name, :path
50
+ attr_reader :service_name, :scope, :service
51
+
52
+ def scoped_service_containing?(colon_style)
53
+ service_name.include?(colon_style)
54
+ end
55
+
56
+ def use_scoped_templates(colon_style)
57
+ split = split_by_colon(colon_style)
58
+ @scope, @service_name = split[0], split[1]
59
+
60
+ template 'nested_service.rb', "app/services/#{scope}/#{service_name.underscore}_service.rb"
61
+ template 'nested_service_test.rb', "test/services/#{scope}/#{service_name.underscore}_service_test.rb"
62
+ end
25
63
 
26
- def nested_file_name?
27
- file_name.include?(':')
64
+ def split_by_colon(colon_style)
65
+ service_name
66
+ .partition(colon_style)
67
+ .delete_if { |str| str == colon_style }
28
68
  end
29
69
  end
30
70
  end
@@ -1,4 +1,4 @@
1
- class <%= @path[0].camelcase %>::<%= @path[1].camelcase %>Service
1
+ class <%= scope.camelcase %>::<%= service_name.camelcase %>Service
2
2
  include Service
3
3
 
4
4
  def call
@@ -1,6 +1,6 @@
1
1
  require 'test_helper'
2
2
 
3
- class <%= @path[0].camelcase %>::<%= @path[1].camelcase %>ServiceTest < ActiveSupport::TestCase
3
+ class <%= scope.camelcase %>::<%= service_name.camelcase %>ServiceTest < ActiveSupport::TestCase
4
4
  # test '.call' do
5
5
  # assert true
6
6
  # end
@@ -1,4 +1,4 @@
1
- class <%= file_name.camelcase %>Service
1
+ class <%= service_name.camelcase %>Service
2
2
  include Service
3
3
 
4
4
  def call
@@ -1,6 +1,6 @@
1
1
  require 'test_helper'
2
2
 
3
- class <%= file_name.camelcase %>ServiceTest < ActiveSupport::TestCase
3
+ class <%= service_name.camelcase %>ServiceTest < ActiveSupport::TestCase
4
4
  # test '.call' do
5
5
  # assert true
6
6
  # end
@@ -0,0 +1,3 @@
1
+ module Paradigm
2
+
3
+ end
@@ -0,0 +1,3 @@
1
+ module Paradigm
2
+ VERSION = '0.1.3'
3
+ end
@@ -1,11 +1,13 @@
1
1
  require 'test_helper'
2
- require 'generators/paradigm/install_generator'
3
2
 
4
3
  class InstallGeneratorTest < Rails::Generators::TestCase
5
4
  tests Paradigm::Generators::InstallGenerator
6
5
 
7
6
  destination File.join(Rails.root, 'tmp')
8
- setup :prepare_destination
7
+
8
+ setup do
9
+ prepare_destination
10
+ end
9
11
 
10
12
  test 'service module is created' do
11
13
  run_generator
@@ -1,23 +1,32 @@
1
1
  require 'test_helper'
2
- require 'generators/paradigm/service_generator'
3
2
 
4
3
  class ServiceGeneratorTest < Rails::Generators::TestCase
5
4
  tests Paradigm::Generators::ServiceGenerator
6
5
 
7
6
  destination File.join(Rails.root, 'tmp')
8
- setup :prepare_destination
7
+
8
+ setup do
9
+ prepare_destination
10
+ end
9
11
 
10
12
  test 'service template files are created' do
11
- run_generator %w(send_user_email)
13
+ run_generator %w(send_confirmation)
12
14
 
13
- assert_file 'app/services/send_user_email_service.rb', %r{SendUserEmailService}
14
- assert_file 'test/services/send_user_email_service_test.rb', %r{SendUserEmailServiceTest}
15
+ assert_file 'app/services/send_confirmation_service.rb', %r{SendConfirmationService}
16
+ assert_file 'test/services/send_confirmation_service_test.rb', %r{SendConfirmationServiceTest}
15
17
  end
16
18
 
17
19
  test 'service template files can be nested' do
18
- run_generator %w(account:send_user_email)
20
+ run_generator %w(account::send_user_email)
19
21
 
20
22
  assert_file 'app/services/account/send_user_email_service.rb', %r{Account::SendUserEmailService}
21
23
  assert_file 'test/services/account/send_user_email_service_test.rb', %r{Account::SendUserEmailServiceTest}
22
24
  end
25
+
26
+ test 'single semicolons will also nest services' do
27
+ run_generator %w(payment:refund_user_payment)
28
+
29
+ assert_file 'app/services/payment/refund_user_payment_service.rb', %r{Payment::RefundUserPaymentService}
30
+ assert_file 'test/services/payment/refund_user_payment_service_test.rb', %r{Payment::RefundUserPaymentServiceTest}
31
+ end
23
32
  end
@@ -2,6 +2,6 @@ require 'test_helper'
2
2
 
3
3
  class ParadigmTest < ActiveSupport::TestCase
4
4
  test 'Paradigm has a version number' do
5
- refute_nil ::Paradigm::Rails::VERSION
5
+ refute_nil ::Paradigm::VERSION
6
6
  end
7
7
  end
File without changes
File without changes
@@ -0,0 +1,2 @@
1
+ class Account
2
+ end
@@ -0,0 +1,2 @@
1
+ class Payment
2
+ end
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -4,9 +4,9 @@ require 'sprockets/railtie'
4
4
  require 'rails/test_unit/railtie'
5
5
 
6
6
  Bundler.require(*Rails.groups)
7
- require 'paradigm/rails'
7
+ require 'paradigm'
8
8
 
9
- module Dummy
9
+ module RailsApp
10
10
  class Application < Rails::Application
11
11
  # Settings in config/environments/* take precedence over those specified here.
12
12
  # Application configuration should go into files in config/initializers
File without changes
@@ -12,10 +12,6 @@ Rails.application.configure do
12
12
  # preloads Rails for running tests, you may have to set it to true.
13
13
  config.eager_load = false
14
14
 
15
- # Configure static file server for tests with Cache-Control for performance.
16
- config.serve_static_files = true
17
- config.static_cache_control = 'public, max-age=3600'
18
-
19
15
  # Show full error reports and disable caching.
20
16
  config.consider_all_requests_local = true
21
17
  config.action_controller.perform_caching = false
@@ -0,0 +1,150 @@
1
+ ---------------------------------------------------------------
2
+ ServiceGeneratorTest: test_service_template_files_can_be_nested
3
+ ---------------------------------------------------------------
4
+ -------------------------------------------------------------
5
+ ServiceGeneratorTest: test_service_template_files_are_created
6
+ -------------------------------------------------------------
7
+ --------------------------------------------------------------------
8
+ ServiceGeneratorTest: test_single_semicolons_will_also_nest_services
9
+ --------------------------------------------------------------------
10
+ ------------------------------------------------
11
+ ParadigmTest: test_Paradigm_has_a_version_number
12
+ ------------------------------------------------
13
+ ----------------------------------------------------
14
+ InstallGeneratorTest: test_service_module_is_created
15
+ ----------------------------------------------------
16
+ ----------------------------------------------------
17
+ InstallGeneratorTest: test_service_module_is_created
18
+ ----------------------------------------------------
19
+ ------------------------------------------------
20
+ ParadigmTest: test_Paradigm_has_a_version_number
21
+ ------------------------------------------------
22
+ --------------------------------------------------------------------
23
+ ServiceGeneratorTest: test_single_semicolons_will_also_nest_services
24
+ --------------------------------------------------------------------
25
+ -------------------------------------------------------------
26
+ ServiceGeneratorTest: test_service_template_files_are_created
27
+ -------------------------------------------------------------
28
+ ---------------------------------------------------------------
29
+ ServiceGeneratorTest: test_service_template_files_can_be_nested
30
+ ---------------------------------------------------------------
31
+ ------------------------------------------------
32
+ ParadigmTest: test_Paradigm_has_a_version_number
33
+ ------------------------------------------------
34
+ ----------------------------------------------------
35
+ InstallGeneratorTest: test_service_module_is_created
36
+ ----------------------------------------------------
37
+ -------------------------------------------------------------
38
+ ServiceGeneratorTest: test_service_template_files_are_created
39
+ -------------------------------------------------------------
40
+ ---------------------------------------------------------------
41
+ ServiceGeneratorTest: test_service_template_files_can_be_nested
42
+ ---------------------------------------------------------------
43
+ --------------------------------------------------------------------
44
+ ServiceGeneratorTest: test_single_semicolons_will_also_nest_services
45
+ --------------------------------------------------------------------
46
+ ----------------------------------------------------
47
+ InstallGeneratorTest: test_service_module_is_created
48
+ ----------------------------------------------------
49
+ ------------------------------------------------
50
+ ParadigmTest: test_Paradigm_has_a_version_number
51
+ ------------------------------------------------
52
+ ---------------------------------------------------------------
53
+ ServiceGeneratorTest: test_service_template_files_can_be_nested
54
+ ---------------------------------------------------------------
55
+ --------------------------------------------------------------------
56
+ ServiceGeneratorTest: test_single_semicolons_will_also_nest_services
57
+ --------------------------------------------------------------------
58
+ -------------------------------------------------------------
59
+ ServiceGeneratorTest: test_service_template_files_are_created
60
+ -------------------------------------------------------------
61
+ ----------------------------------------------------
62
+ InstallGeneratorTest: test_service_module_is_created
63
+ ----------------------------------------------------
64
+ ------------------------------------------------
65
+ ParadigmTest: test_Paradigm_has_a_version_number
66
+ ------------------------------------------------
67
+ ---------------------------------------------------------------
68
+ ServiceGeneratorTest: test_service_template_files_can_be_nested
69
+ ---------------------------------------------------------------
70
+ --------------------------------------------------------------------
71
+ ServiceGeneratorTest: test_single_semicolons_will_also_nest_services
72
+ --------------------------------------------------------------------
73
+ -------------------------------------------------------------
74
+ ServiceGeneratorTest: test_service_template_files_are_created
75
+ -------------------------------------------------------------
76
+ ------------------------------------------------
77
+ ParadigmTest: test_Paradigm_has_a_version_number
78
+ ------------------------------------------------
79
+ ----------------------------------------------------
80
+ InstallGeneratorTest: test_service_module_is_created
81
+ ----------------------------------------------------
82
+ -------------------------------------------------------------
83
+ ServiceGeneratorTest: test_service_template_files_are_created
84
+ -------------------------------------------------------------
85
+ --------------------------------------------------------------------
86
+ ServiceGeneratorTest: test_single_semicolons_will_also_nest_services
87
+ --------------------------------------------------------------------
88
+ ---------------------------------------------------------------
89
+ ServiceGeneratorTest: test_service_template_files_can_be_nested
90
+ ---------------------------------------------------------------
91
+ -------------------------------------------------------------
92
+ ServiceGeneratorTest: test_service_template_files_are_created
93
+ -------------------------------------------------------------
94
+ ---------------------------------------------------------------
95
+ ServiceGeneratorTest: test_service_template_files_can_be_nested
96
+ ---------------------------------------------------------------
97
+ --------------------------------------------------------------------
98
+ ServiceGeneratorTest: test_single_semicolons_will_also_nest_services
99
+ --------------------------------------------------------------------
100
+ ----------------------------------------------------
101
+ InstallGeneratorTest: test_service_module_is_created
102
+ ----------------------------------------------------
103
+ ------------------------------------------------
104
+ ParadigmTest: test_Paradigm_has_a_version_number
105
+ ------------------------------------------------
106
+ ------------------------------------------------
107
+ ParadigmTest: test_Paradigm_has_a_version_number
108
+ ------------------------------------------------
109
+ ----------------------------------------------------
110
+ InstallGeneratorTest: test_service_module_is_created
111
+ ----------------------------------------------------
112
+ -------------------------------------------------------------
113
+ ServiceGeneratorTest: test_service_template_files_are_created
114
+ -------------------------------------------------------------
115
+ ---------------------------------------------------------------
116
+ ServiceGeneratorTest: test_service_template_files_can_be_nested
117
+ ---------------------------------------------------------------
118
+ --------------------------------------------------------------------
119
+ ServiceGeneratorTest: test_single_semicolons_will_also_nest_services
120
+ --------------------------------------------------------------------
121
+ -------------------------------------------------------------
122
+ ServiceGeneratorTest: test_service_template_files_are_created
123
+ -------------------------------------------------------------
124
+ --------------------------------------------------------------------
125
+ ServiceGeneratorTest: test_single_semicolons_will_also_nest_services
126
+ --------------------------------------------------------------------
127
+ ---------------------------------------------------------------
128
+ ServiceGeneratorTest: test_service_template_files_can_be_nested
129
+ ---------------------------------------------------------------
130
+ ----------------------------------------------------
131
+ InstallGeneratorTest: test_service_module_is_created
132
+ ----------------------------------------------------
133
+ ------------------------------------------------
134
+ ParadigmTest: test_Paradigm_has_a_version_number
135
+ ------------------------------------------------
136
+ ----------------------------------------------------
137
+ InstallGeneratorTest: test_service_module_is_created
138
+ ----------------------------------------------------
139
+ ---------------------------------------------------------------
140
+ ServiceGeneratorTest: test_service_template_files_can_be_nested
141
+ ---------------------------------------------------------------
142
+ -------------------------------------------------------------
143
+ ServiceGeneratorTest: test_service_template_files_are_created
144
+ -------------------------------------------------------------
145
+ --------------------------------------------------------------------
146
+ ServiceGeneratorTest: test_single_semicolons_will_also_nest_services
147
+ --------------------------------------------------------------------
148
+ ------------------------------------------------
149
+ ParadigmTest: test_Paradigm_has_a_version_number
150
+ ------------------------------------------------
@@ -0,0 +1,11 @@
1
+ class Payment::RefundUserPaymentService
2
+ include Service
3
+
4
+ def call
5
+ # add service logic here
6
+ end
7
+
8
+ private
9
+
10
+ # keep the #call method readable by extracting private methods
11
+ end
@@ -0,0 +1,7 @@
1
+ require 'test_helper'
2
+
3
+ class Payment::RefundUserPaymentServiceTest < ActiveSupport::TestCase
4
+ # test '.call' do
5
+ # assert true
6
+ # end
7
+ end
@@ -1,18 +1,16 @@
1
1
  # Configure Rails Environment
2
2
  ENV["RAILS_ENV"] = "test"
3
3
 
4
- require File.expand_path("../../test/dummy/config/environment.rb", __FILE__)
4
+ require File.expand_path("../../test/rails_app/config/environment.rb", __FILE__)
5
5
  require 'rails/test_help'
6
6
 
7
- # Filter out Minitest backtrace while allowing backtrace from other libraries
8
- # to be shown.
9
- Minitest.backtrace_filter = Minitest::BacktraceFilter.new
10
-
11
- # Load support files
12
- Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
13
-
14
7
  # Load fixtures from the engine
15
8
  if ActiveSupport::TestCase.respond_to?(:fixture_path=)
16
9
  ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
17
10
  ActiveSupport::TestCase.fixtures :all
18
11
  end
12
+
13
+ # For generators
14
+ require "rails/generators/test_case"
15
+ require "generators/paradigm/install_generator"
16
+ require "generators/paradigm/service_generator"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: paradigm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Glenn Espinosa
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-11-19 00:00:00.000000000 Z
11
+ date: 2016-11-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -16,9 +16,29 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
19
+ version: 4.1.0
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '5.1'
20
23
  type: :runtime
21
24
  prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: 4.1.0
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: '5.1'
33
+ - !ruby/object:Gem::Dependency
34
+ name: rake
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - ">="
38
+ - !ruby/object:Gem::Version
39
+ version: '0'
40
+ type: :development
41
+ prerelease: false
22
42
  version_requirements: !ruby/object:Gem::Requirement
23
43
  requirements:
24
44
  - - ">="
@@ -55,46 +75,49 @@ files:
55
75
  - lib/generators/templates/service/nested_service_test.rb
56
76
  - lib/generators/templates/service/service.rb
57
77
  - lib/generators/templates/service/service_test.rb
58
- - lib/paradigm/rails.rb
59
- - lib/paradigm/rails/version.rb
60
- - test/dummy/README.rdoc
61
- - test/dummy/Rakefile
62
- - test/dummy/app/assets/javascripts/application.js
63
- - test/dummy/app/assets/stylesheets/application.css
64
- - test/dummy/app/controllers/application_controller.rb
65
- - test/dummy/app/helpers/application_helper.rb
66
- - test/dummy/app/views/layouts/application.html.erb
67
- - test/dummy/bin/bundle
68
- - test/dummy/bin/rails
69
- - test/dummy/bin/rake
70
- - test/dummy/bin/setup
71
- - test/dummy/config.ru
72
- - test/dummy/config/application.rb
73
- - test/dummy/config/boot.rb
74
- - test/dummy/config/environment.rb
75
- - test/dummy/config/environments/development.rb
76
- - test/dummy/config/environments/production.rb
77
- - test/dummy/config/environments/test.rb
78
- - test/dummy/config/initializers/assets.rb
79
- - test/dummy/config/initializers/backtrace_silencers.rb
80
- - test/dummy/config/initializers/cookies_serializer.rb
81
- - test/dummy/config/initializers/filter_parameter_logging.rb
82
- - test/dummy/config/initializers/inflections.rb
83
- - test/dummy/config/initializers/mime_types.rb
84
- - test/dummy/config/initializers/session_store.rb
85
- - test/dummy/config/initializers/wrap_parameters.rb
86
- - test/dummy/config/locales/en.yml
87
- - test/dummy/config/routes.rb
88
- - test/dummy/config/secrets.yml
89
- - test/dummy/log/test.log
90
- - test/dummy/public/404.html
91
- - test/dummy/public/422.html
92
- - test/dummy/public/500.html
93
- - test/dummy/public/favicon.ico
94
- - test/dummy/tmp/app/services/service.rb
78
+ - lib/paradigm.rb
79
+ - lib/paradigm/version.rb
95
80
  - test/generators/install_generator_test.rb
96
81
  - test/generators/service_generator_test.rb
97
82
  - test/paradigm_test.rb
83
+ - test/rails_app/README.rdoc
84
+ - test/rails_app/Rakefile
85
+ - test/rails_app/app/assets/javascripts/application.js
86
+ - test/rails_app/app/assets/stylesheets/application.css
87
+ - test/rails_app/app/controllers/application_controller.rb
88
+ - test/rails_app/app/helpers/application_helper.rb
89
+ - test/rails_app/app/models/concerns/account.rb
90
+ - test/rails_app/app/models/concerns/payment.rb
91
+ - test/rails_app/app/views/layouts/application.html.erb
92
+ - test/rails_app/bin/bundle
93
+ - test/rails_app/bin/rails
94
+ - test/rails_app/bin/rake
95
+ - test/rails_app/bin/setup
96
+ - test/rails_app/config.ru
97
+ - test/rails_app/config/application.rb
98
+ - test/rails_app/config/boot.rb
99
+ - test/rails_app/config/environment.rb
100
+ - test/rails_app/config/environments/development.rb
101
+ - test/rails_app/config/environments/production.rb
102
+ - test/rails_app/config/environments/test.rb
103
+ - test/rails_app/config/initializers/assets.rb
104
+ - test/rails_app/config/initializers/backtrace_silencers.rb
105
+ - test/rails_app/config/initializers/cookies_serializer.rb
106
+ - test/rails_app/config/initializers/filter_parameter_logging.rb
107
+ - test/rails_app/config/initializers/inflections.rb
108
+ - test/rails_app/config/initializers/mime_types.rb
109
+ - test/rails_app/config/initializers/session_store.rb
110
+ - test/rails_app/config/initializers/wrap_parameters.rb
111
+ - test/rails_app/config/locales/en.yml
112
+ - test/rails_app/config/routes.rb
113
+ - test/rails_app/config/secrets.yml
114
+ - test/rails_app/log/test.log
115
+ - test/rails_app/public/404.html
116
+ - test/rails_app/public/422.html
117
+ - test/rails_app/public/500.html
118
+ - test/rails_app/public/favicon.ico
119
+ - test/rails_app/tmp/app/services/payment/refund_user_payment_service.rb
120
+ - test/rails_app/tmp/test/services/payment/refund_user_payment_service_test.rb
98
121
  - test/test_helper.rb
99
122
  homepage: https://github.com/gxespino/paradigm
100
123
  licenses:
@@ -121,43 +144,46 @@ signing_key:
121
144
  specification_version: 4
122
145
  summary: Template generators for service abstractions
123
146
  test_files:
124
- - test/dummy/app/assets/javascripts/application.js
125
- - test/dummy/app/assets/stylesheets/application.css
126
- - test/dummy/app/controllers/application_controller.rb
127
- - test/dummy/app/helpers/application_helper.rb
128
- - test/dummy/app/views/layouts/application.html.erb
129
- - test/dummy/bin/bundle
130
- - test/dummy/bin/rails
131
- - test/dummy/bin/rake
132
- - test/dummy/bin/setup
133
- - test/dummy/config/application.rb
134
- - test/dummy/config/boot.rb
135
- - test/dummy/config/environment.rb
136
- - test/dummy/config/environments/development.rb
137
- - test/dummy/config/environments/production.rb
138
- - test/dummy/config/environments/test.rb
139
- - test/dummy/config/initializers/assets.rb
140
- - test/dummy/config/initializers/backtrace_silencers.rb
141
- - test/dummy/config/initializers/cookies_serializer.rb
142
- - test/dummy/config/initializers/filter_parameter_logging.rb
143
- - test/dummy/config/initializers/inflections.rb
144
- - test/dummy/config/initializers/mime_types.rb
145
- - test/dummy/config/initializers/session_store.rb
146
- - test/dummy/config/initializers/wrap_parameters.rb
147
- - test/dummy/config/locales/en.yml
148
- - test/dummy/config/routes.rb
149
- - test/dummy/config/secrets.yml
150
- - test/dummy/config.ru
151
- - test/dummy/log/test.log
152
- - test/dummy/public/404.html
153
- - test/dummy/public/422.html
154
- - test/dummy/public/500.html
155
- - test/dummy/public/favicon.ico
156
- - test/dummy/Rakefile
157
- - test/dummy/README.rdoc
158
- - test/dummy/tmp/app/services/service.rb
159
147
  - test/generators/install_generator_test.rb
160
148
  - test/generators/service_generator_test.rb
161
149
  - test/paradigm_test.rb
150
+ - test/rails_app/app/assets/javascripts/application.js
151
+ - test/rails_app/app/assets/stylesheets/application.css
152
+ - test/rails_app/app/controllers/application_controller.rb
153
+ - test/rails_app/app/helpers/application_helper.rb
154
+ - test/rails_app/app/models/concerns/account.rb
155
+ - test/rails_app/app/models/concerns/payment.rb
156
+ - test/rails_app/app/views/layouts/application.html.erb
157
+ - test/rails_app/bin/bundle
158
+ - test/rails_app/bin/rails
159
+ - test/rails_app/bin/rake
160
+ - test/rails_app/bin/setup
161
+ - test/rails_app/config/application.rb
162
+ - test/rails_app/config/boot.rb
163
+ - test/rails_app/config/environment.rb
164
+ - test/rails_app/config/environments/development.rb
165
+ - test/rails_app/config/environments/production.rb
166
+ - test/rails_app/config/environments/test.rb
167
+ - test/rails_app/config/initializers/assets.rb
168
+ - test/rails_app/config/initializers/backtrace_silencers.rb
169
+ - test/rails_app/config/initializers/cookies_serializer.rb
170
+ - test/rails_app/config/initializers/filter_parameter_logging.rb
171
+ - test/rails_app/config/initializers/inflections.rb
172
+ - test/rails_app/config/initializers/mime_types.rb
173
+ - test/rails_app/config/initializers/session_store.rb
174
+ - test/rails_app/config/initializers/wrap_parameters.rb
175
+ - test/rails_app/config/locales/en.yml
176
+ - test/rails_app/config/routes.rb
177
+ - test/rails_app/config/secrets.yml
178
+ - test/rails_app/config.ru
179
+ - test/rails_app/log/test.log
180
+ - test/rails_app/public/404.html
181
+ - test/rails_app/public/422.html
182
+ - test/rails_app/public/500.html
183
+ - test/rails_app/public/favicon.ico
184
+ - test/rails_app/Rakefile
185
+ - test/rails_app/README.rdoc
186
+ - test/rails_app/tmp/app/services/payment/refund_user_payment_service.rb
187
+ - test/rails_app/tmp/test/services/payment/refund_user_payment_service_test.rb
162
188
  - test/test_helper.rb
163
189
  has_rdoc:
@@ -1,8 +0,0 @@
1
- require "paradigm/rails/version"
2
-
3
- module Paradigm
4
- module Rails
5
- class Engine < ::Rails::Engine
6
- end
7
- end
8
- end
@@ -1,5 +0,0 @@
1
- module Paradigm
2
- module Rails
3
- VERSION = "0.1.2"
4
- end
5
- end
@@ -1,432 +0,0 @@
1
- --------------------------------------------------
2
- ServiceGeneratorTest: test_service_file_is_created
3
- --------------------------------------------------
4
- ------------------------------------------------
5
- ParadigmTest: test_Paradigm_has_a_version_number
6
- ------------------------------------------------
7
- ------------------------------------------------
8
- ParadigmTest: test_Paradigm_has_a_version_number
9
- ------------------------------------------------
10
- --------------------------------------------------
11
- ServiceGeneratorTest: test_service_file_is_created
12
- --------------------------------------------------
13
- --------------------------------------------------
14
- ServiceGeneratorTest: test_service_file_is_created
15
- --------------------------------------------------
16
- ------------------------------------------------
17
- ParadigmTest: test_Paradigm_has_a_version_number
18
- ------------------------------------------------
19
- --------------------------------------------------
20
- ServiceGeneratorTest: test_service_file_is_created
21
- --------------------------------------------------
22
- ------------------------------------------------
23
- ParadigmTest: test_Paradigm_has_a_version_number
24
- ------------------------------------------------
25
- --------------------------------------------------
26
- ServiceGeneratorTest: test_service_file_is_created
27
- --------------------------------------------------
28
- ------------------------------------------------
29
- ParadigmTest: test_Paradigm_has_a_version_number
30
- ------------------------------------------------
31
- ------------------------------------------------
32
- ParadigmTest: test_Paradigm_has_a_version_number
33
- ------------------------------------------------
34
- --------------------------------------------------
35
- ServiceGeneratorTest: test_service_file_is_created
36
- --------------------------------------------------
37
- ------------------------------------
38
- SendUserEmailServiceTest: test_.call
39
- ------------------------------------
40
- --------------------------------------------------
41
- ServiceGeneratorTest: test_service_file_is_created
42
- --------------------------------------------------
43
- ------------------------------------------------
44
- ParadigmTest: test_Paradigm_has_a_version_number
45
- ------------------------------------------------
46
- ------------------------------------------------
47
- ParadigmTest: test_Paradigm_has_a_version_number
48
- ------------------------------------------------
49
- --------------------------------------------------
50
- ServiceGeneratorTest: test_service_file_is_created
51
- --------------------------------------------------
52
- ------------------------------------
53
- SendUserEmailServiceTest: test_.call
54
- ------------------------------------
55
- ------------------------------------------------
56
- ParadigmTest: test_Paradigm_has_a_version_number
57
- ------------------------------------------------
58
- --------------------------------------------------
59
- ServiceGeneratorTest: test_service_file_is_created
60
- --------------------------------------------------
61
- --------------------------------------------------
62
- ServiceGeneratorTest: test_service_file_is_created
63
- --------------------------------------------------
64
- ------------------------------------------------
65
- ParadigmTest: test_Paradigm_has_a_version_number
66
- ------------------------------------------------
67
- ------------------------------------------------
68
- ParadigmTest: test_Paradigm_has_a_version_number
69
- ------------------------------------------------
70
- --------------------------------------------------
71
- ServiceGeneratorTest: test_service_file_is_created
72
- --------------------------------------------------
73
- ------------------------------------
74
- SendUserEmailServiceTest: test_.call
75
- ------------------------------------
76
- --------------------------------------------------
77
- ServiceGeneratorTest: test_service_file_is_created
78
- --------------------------------------------------
79
- ------------------------------------------------
80
- ParadigmTest: test_Paradigm_has_a_version_number
81
- ------------------------------------------------
82
- --------------------------------------------------
83
- ServiceGeneratorTest: test_service_file_is_created
84
- --------------------------------------------------
85
- ------------------------------------------------
86
- ParadigmTest: test_Paradigm_has_a_version_number
87
- ------------------------------------------------
88
- --------------------------------------------------
89
- ServiceGeneratorTest: test_service_file_is_created
90
- --------------------------------------------------
91
- ------------------------------------------------
92
- ParadigmTest: test_Paradigm_has_a_version_number
93
- ------------------------------------------------
94
- ------------------------------------
95
- SendUserEmailServiceTest: test_.call
96
- ------------------------------------
97
- ------------------------------------------------
98
- ParadigmTest: test_Paradigm_has_a_version_number
99
- ------------------------------------------------
100
- --------------------------------------------------
101
- ServiceGeneratorTest: test_service_file_is_created
102
- --------------------------------------------------
103
- --------------------------------------------------
104
- ServiceGeneratorTest: test_service_file_is_created
105
- --------------------------------------------------
106
- ------------------------------------
107
- SendUserEmailServiceTest: test_.call
108
- ------------------------------------
109
- ------------------------------------------------
110
- ParadigmTest: test_Paradigm_has_a_version_number
111
- ------------------------------------------------
112
- ------------------------------------------------
113
- ParadigmTest: test_Paradigm_has_a_version_number
114
- ------------------------------------------------
115
- --------------------------------------------------
116
- ServiceGeneratorTest: test_service_file_is_created
117
- --------------------------------------------------
118
- ------------------------------------
119
- SendUserEmailServiceTest: test_.call
120
- ------------------------------------
121
- ------------------------------------------------
122
- ParadigmTest: test_Paradigm_has_a_version_number
123
- ------------------------------------------------
124
- --------------------------------------------------
125
- ServiceGeneratorTest: test_service_file_is_created
126
- --------------------------------------------------
127
- ------------------------------------
128
- SendUserEmailServiceTest: test_.call
129
- ------------------------------------
130
- --------------------------------------------------
131
- ServiceGeneratorTest: test_service_file_is_created
132
- --------------------------------------------------
133
- ------------------------------------
134
- SendUserEmailServiceTest: test_.call
135
- ------------------------------------
136
- ------------------------------------------------
137
- ParadigmTest: test_Paradigm_has_a_version_number
138
- ------------------------------------------------
139
- ------------------------------------
140
- SendUserEmailServiceTest: test_.call
141
- ------------------------------------
142
- --------------------------------------------------
143
- ServiceGeneratorTest: test_service_file_is_created
144
- --------------------------------------------------
145
- ------------------------------------------------
146
- ParadigmTest: test_Paradigm_has_a_version_number
147
- ------------------------------------------------
148
- --------------------------------------------------
149
- ServiceGeneratorTest: test_service_file_is_created
150
- --------------------------------------------------
151
- ------------------------------------------------
152
- ParadigmTest: test_Paradigm_has_a_version_number
153
- ------------------------------------------------
154
- ------------------------------------------------
155
- ParadigmTest: test_Paradigm_has_a_version_number
156
- ------------------------------------------------
157
- ------------------------------------
158
- SendUserEmailServiceTest: test_.call
159
- ------------------------------------
160
- --------------------------------------------------
161
- ServiceGeneratorTest: test_service_file_is_created
162
- --------------------------------------------------
163
- --------------------------------------------------
164
- ServiceGeneratorTest: test_service_file_is_created
165
- --------------------------------------------------
166
- ------------------------------------
167
- SendUserEmailServiceTest: test_.call
168
- ------------------------------------
169
- ------------------------------------------------
170
- ParadigmTest: test_Paradigm_has_a_version_number
171
- ------------------------------------------------
172
- ------------------------------------------------
173
- ParadigmTest: test_Paradigm_has_a_version_number
174
- ------------------------------------------------
175
- --------------------------------------------------
176
- ServiceGeneratorTest: test_service_file_is_created
177
- --------------------------------------------------
178
- ------------------------------------
179
- SendUserEmailServiceTest: test_.call
180
- ------------------------------------
181
- --------------------------------------------------
182
- ServiceGeneratorTest: test_service_file_is_created
183
- --------------------------------------------------
184
- ------------------------------------------------
185
- ParadigmTest: test_Paradigm_has_a_version_number
186
- ------------------------------------------------
187
- ------------------------------------------------
188
- ParadigmTest: test_Paradigm_has_a_version_number
189
- ------------------------------------------------
190
- --------------------------------------------------------
191
- ServiceGeneratorTest: test_service.rb_is_not_overwritten
192
- --------------------------------------------------------
193
- -------------------------------------------------------------
194
- ServiceGeneratorTest: test_service_template_files_are_created
195
- -------------------------------------------------------------
196
- ------------------------------------------------
197
- ParadigmTest: test_Paradigm_has_a_version_number
198
- ------------------------------------------------
199
- --------------------------------------------------------
200
- ServiceGeneratorTest: test_service.rb_is_not_overwritten
201
- --------------------------------------------------------
202
- -------------------------------------------------------------
203
- ServiceGeneratorTest: test_service_template_files_are_created
204
- -------------------------------------------------------------
205
- --------------------------------------------------------
206
- ServiceGeneratorTest: test_service.rb_is_not_overwritten
207
- --------------------------------------------------------
208
- -------------------------------------------------------------
209
- ServiceGeneratorTest: test_service_template_files_are_created
210
- -------------------------------------------------------------
211
- ------------------------------------------------
212
- ParadigmTest: test_Paradigm_has_a_version_number
213
- ------------------------------------------------
214
- --------------------------------------------------------
215
- ServiceGeneratorTest: test_service.rb_is_not_overwritten
216
- --------------------------------------------------------
217
- -------------------------------------------------------------
218
- ServiceGeneratorTest: test_service_template_files_are_created
219
- -------------------------------------------------------------
220
- ------------------------------------------------
221
- ParadigmTest: test_Paradigm_has_a_version_number
222
- ------------------------------------------------
223
- ------------------------------------------------
224
- ParadigmTest: test_Paradigm_has_a_version_number
225
- ------------------------------------------------
226
- -------------------------------------------------------------
227
- ServiceGeneratorTest: test_service_template_files_are_created
228
- -------------------------------------------------------------
229
- --------------------------------------------------------
230
- ServiceGeneratorTest: test_service.rb_is_not_overwritten
231
- --------------------------------------------------------
232
- -------------------------------------------------------------
233
- ServiceGeneratorTest: test_service_template_files_are_created
234
- -------------------------------------------------------------
235
- --------------------------------------------------------
236
- ServiceGeneratorTest: test_service.rb_is_not_overwritten
237
- --------------------------------------------------------
238
- ------------------------------------------------
239
- ParadigmTest: test_Paradigm_has_a_version_number
240
- ------------------------------------------------
241
- --------------------------------------------------------
242
- ServiceGeneratorTest: test_service.rb_is_not_overwritten
243
- --------------------------------------------------------
244
- -------------------------------------------------------------
245
- ServiceGeneratorTest: test_service_template_files_are_created
246
- -------------------------------------------------------------
247
- ------------------------------------------------
248
- ParadigmTest: test_Paradigm_has_a_version_number
249
- ------------------------------------------------
250
- --------------------------------------------------------
251
- ServiceGeneratorTest: test_service.rb_is_not_overwritten
252
- --------------------------------------------------------
253
- -------------------------------------------------------------
254
- ServiceGeneratorTest: test_service_template_files_are_created
255
- -------------------------------------------------------------
256
- ------------------------------------------------
257
- ParadigmTest: test_Paradigm_has_a_version_number
258
- ------------------------------------------------
259
- --------------------------------------------------------
260
- ServiceGeneratorTest: test_service.rb_is_not_overwritten
261
- --------------------------------------------------------
262
- -------------------------------------------------------------
263
- ServiceGeneratorTest: test_service_template_files_are_created
264
- -------------------------------------------------------------
265
- ------------------------------------------------
266
- ParadigmTest: test_Paradigm_has_a_version_number
267
- ------------------------------------------------
268
- ------------------------------------------------
269
- ParadigmTest: test_Paradigm_has_a_version_number
270
- ------------------------------------------------
271
- --------------------------------------------------------
272
- ServiceGeneratorTest: test_service.rb_is_not_overwritten
273
- --------------------------------------------------------
274
- -------------------------------------------------------------
275
- ServiceGeneratorTest: test_service_template_files_are_created
276
- -------------------------------------------------------------
277
- ------------------------------------------------
278
- ParadigmTest: test_Paradigm_has_a_version_number
279
- ------------------------------------------------
280
- -------------------------------------------------------------
281
- ServiceGeneratorTest: test_service_template_files_are_created
282
- -------------------------------------------------------------
283
- --------------------------------------------------------
284
- ServiceGeneratorTest: test_service.rb_is_not_overwritten
285
- --------------------------------------------------------
286
- ------------------------------------------------
287
- ParadigmTest: test_Paradigm_has_a_version_number
288
- ------------------------------------------------
289
- -------------------------------------------------------------
290
- ServiceGeneratorTest: test_service_template_files_are_created
291
- -------------------------------------------------------------
292
- --------------------------------------------------------
293
- ServiceGeneratorTest: test_service.rb_is_not_overwritten
294
- --------------------------------------------------------
295
- ------------------------------------------------
296
- ParadigmTest: test_Paradigm_has_a_version_number
297
- ------------------------------------------------
298
- -------------------------------------------------------------
299
- ServiceGeneratorTest: test_service_template_files_are_created
300
- -------------------------------------------------------------
301
- ------------------------------------------------
302
- ParadigmTest: test_Paradigm_has_a_version_number
303
- ------------------------------------------------
304
- -------------------------------------------------------------
305
- ServiceGeneratorTest: test_service_template_files_are_created
306
- -------------------------------------------------------------
307
- ------------------------------------------------
308
- ParadigmTest: test_Paradigm_has_a_version_number
309
- ------------------------------------------------
310
- -------------------------------------------------------------
311
- ServiceGeneratorTest: test_service_template_files_are_created
312
- -------------------------------------------------------------
313
- ----------------------------------------------------
314
- InstallGeneratorTest: test_service_module_is_created
315
- ----------------------------------------------------
316
- ------------------------------------------------
317
- ParadigmTest: test_Paradigm_has_a_version_number
318
- ------------------------------------------------
319
- ----------------------------------------------------
320
- InstallGeneratorTest: test_service_module_is_created
321
- ----------------------------------------------------
322
- -------------------------------------------------------------
323
- ServiceGeneratorTest: test_service_template_files_are_created
324
- -------------------------------------------------------------
325
- ------------------------------------------------
326
- ParadigmTest: test_Paradigm_has_a_version_number
327
- ------------------------------------------------
328
- ----------------------------------------------------
329
- InstallGeneratorTest: test_service_module_is_created
330
- ----------------------------------------------------
331
- -------------------------------------------------------------
332
- ServiceGeneratorTest: test_service_template_files_are_created
333
- -------------------------------------------------------------
334
- ----------------------------------------------------
335
- InstallGeneratorTest: test_service_module_is_created
336
- ----------------------------------------------------
337
- ------------------------------------------------
338
- ParadigmTest: test_Paradigm_has_a_version_number
339
- ------------------------------------------------
340
- -------------------------------------------------------------
341
- ServiceGeneratorTest: test_service_template_files_are_created
342
- -------------------------------------------------------------
343
- ----------------------------------------------------
344
- InstallGeneratorTest: test_service_module_is_created
345
- ----------------------------------------------------
346
- -------------------------------------------------------------
347
- ServiceGeneratorTest: test_service_template_files_are_created
348
- -------------------------------------------------------------
349
- ------------------------------------------------
350
- ParadigmTest: test_Paradigm_has_a_version_number
351
- ------------------------------------------------
352
- ----------------------------------------------------
353
- InstallGeneratorTest: test_service_module_is_created
354
- ----------------------------------------------------
355
- ------------------------------------------------
356
- ParadigmTest: test_Paradigm_has_a_version_number
357
- ------------------------------------------------
358
- -------------------------------------------------------------
359
- ServiceGeneratorTest: test_service_template_files_are_created
360
- -------------------------------------------------------------
361
- -------------------------------------------------------------
362
- ServiceGeneratorTest: test_service_template_files_are_created
363
- -------------------------------------------------------------
364
- ---------------------------------------------------------------
365
- ServiceGeneratorTest: test_service_template_files_can_be_nested
366
- ---------------------------------------------------------------
367
- ------------------------------------------------
368
- ParadigmTest: test_Paradigm_has_a_version_number
369
- ------------------------------------------------
370
- ----------------------------------------------------
371
- InstallGeneratorTest: test_service_module_is_created
372
- ----------------------------------------------------
373
- ---------------------------------------------------------------
374
- ServiceGeneratorTest: test_service_template_files_can_be_nested
375
- ---------------------------------------------------------------
376
- -------------------------------------------------------------
377
- ServiceGeneratorTest: test_service_template_files_are_created
378
- -------------------------------------------------------------
379
- ------------------------------------------------
380
- ParadigmTest: test_Paradigm_has_a_version_number
381
- ------------------------------------------------
382
- ----------------------------------------------------
383
- InstallGeneratorTest: test_service_module_is_created
384
- ----------------------------------------------------
385
- -------------------------------------------------------------
386
- ServiceGeneratorTest: test_service_template_files_are_created
387
- -------------------------------------------------------------
388
- ---------------------------------------------------------------
389
- ServiceGeneratorTest: test_service_template_files_can_be_nested
390
- ---------------------------------------------------------------
391
- ------------------------------------------------
392
- ParadigmTest: test_Paradigm_has_a_version_number
393
- ------------------------------------------------
394
- ----------------------------------------------------
395
- InstallGeneratorTest: test_service_module_is_created
396
- ----------------------------------------------------
397
- ----------------------------------------------------
398
- InstallGeneratorTest: test_service_module_is_created
399
- ----------------------------------------------------
400
- ------------------------------------------------
401
- ParadigmTest: test_Paradigm_has_a_version_number
402
- ------------------------------------------------
403
- -------------------------------------------------------------
404
- ServiceGeneratorTest: test_service_template_files_are_created
405
- -------------------------------------------------------------
406
- ---------------------------------------------------------------
407
- ServiceGeneratorTest: test_service_template_files_can_be_nested
408
- ---------------------------------------------------------------
409
- ------------------------------------------------
410
- ParadigmTest: test_Paradigm_has_a_version_number
411
- ------------------------------------------------
412
- -------------------------------------------------------------
413
- ServiceGeneratorTest: test_service_template_files_are_created
414
- -------------------------------------------------------------
415
- ---------------------------------------------------------------
416
- ServiceGeneratorTest: test_service_template_files_can_be_nested
417
- ---------------------------------------------------------------
418
- ----------------------------------------------------
419
- InstallGeneratorTest: test_service_module_is_created
420
- ----------------------------------------------------
421
- -------------------------------------------------------------
422
- ServiceGeneratorTest: test_service_template_files_are_created
423
- -------------------------------------------------------------
424
- ---------------------------------------------------------------
425
- ServiceGeneratorTest: test_service_template_files_can_be_nested
426
- ---------------------------------------------------------------
427
- ------------------------------------------------
428
- ParadigmTest: test_Paradigm_has_a_version_number
429
- ------------------------------------------------
430
- ----------------------------------------------------
431
- InstallGeneratorTest: test_service_module_is_created
432
- ----------------------------------------------------
@@ -1,9 +0,0 @@
1
- module Service
2
- extend ActiveSupport::Concern
3
-
4
- included do
5
- def self.call(*args)
6
- new(*args).call
7
- end
8
- end
9
- end