rohbau 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (56) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +18 -0
  3. data/.rubocop_todo.yml +149 -0
  4. data/.travis.yml +2 -0
  5. data/Gemfile +4 -0
  6. data/LICENSE.txt +1 -1
  7. data/README.md +404 -20
  8. data/README.md.template +104 -20
  9. data/Rakefile +1 -1
  10. data/bin/build_readme +3 -1
  11. data/examples/email_service/email_service.rb +5 -0
  12. data/examples/event_tube.rb +9 -0
  13. data/examples/my_application.rb +13 -0
  14. data/examples/runtime.rb +7 -24
  15. data/examples/service_factory_validation.rb +4 -4
  16. data/examples/use_case.rb +10 -0
  17. data/examples/user_entity.rb +20 -0
  18. data/examples/user_service/create_user_use_case.rb +14 -0
  19. data/examples/user_service/event_tube.rb +6 -0
  20. data/examples/user_service/request.rb +16 -0
  21. data/examples/user_service/runtime.rb +13 -0
  22. data/examples/user_service/service_factory.rb +10 -0
  23. data/examples/user_service/user_gateway.rb +16 -0
  24. data/examples/user_service.rb +1 -0
  25. data/examples/verify/examples.txt +31 -0
  26. data/examples/verify/examples_spec.rb +25 -0
  27. data/lib/rohbau/application.rb +5 -8
  28. data/lib/rohbau/default_memory_gateway.rb +0 -2
  29. data/lib/rohbau/entity.rb +1 -3
  30. data/lib/rohbau/event_tube.rb +2 -1
  31. data/lib/rohbau/index.rb +4 -5
  32. data/lib/rohbau/interface.rb +130 -0
  33. data/lib/rohbau/it_behaves_like.rb +0 -2
  34. data/lib/rohbau/minitest/exclude.rb +0 -6
  35. data/lib/rohbau/registry.rb +4 -6
  36. data/lib/rohbau/request.rb +2 -4
  37. data/lib/rohbau/request_cache.rb +19 -0
  38. data/lib/rohbau/require.rb +0 -1
  39. data/lib/rohbau/runtime.rb +0 -2
  40. data/lib/rohbau/service_factory.rb +1 -2
  41. data/lib/rohbau/shared_spec.rb +0 -2
  42. data/lib/rohbau/shared_specs/default_gateway.rb +2 -6
  43. data/lib/rohbau/use_case.rb +0 -3
  44. data/lib/rohbau/version.rb +1 -1
  45. data/lib/rohbau.rb +19 -1
  46. data/rakelib/build_readme.rake +23 -0
  47. data/rakelib/ci.rake +5 -0
  48. data/rakelib/examples.rake +16 -0
  49. data/rakelib/rubocop.rake +18 -0
  50. data/spec/event_tube_spec.rb +2 -3
  51. data/spec/interface_spec.rb +111 -0
  52. data/spec/runtime_loader_spec.rb +1 -2
  53. data/spec/service_factory_spec.rb +6 -9
  54. data/spec/shared_spec_spec.rb +0 -2
  55. metadata +43 -20
  56. data/etc/build_readme.rb +0 -14
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rohbau
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jakob Holderbaum
@@ -12,90 +12,90 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2015-02-27 00:00:00.000000000 Z
15
+ date: 2015-04-22 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: thread_safe
19
19
  requirement: !ruby/object:Gem::Requirement
20
20
  requirements:
21
- - - "~>"
21
+ - - ~>
22
22
  - !ruby/object:Gem::Version
23
23
  version: '0.3'
24
24
  type: :runtime
25
25
  prerelease: false
26
26
  version_requirements: !ruby/object:Gem::Requirement
27
27
  requirements:
28
- - - "~>"
28
+ - - ~>
29
29
  - !ruby/object:Gem::Version
30
30
  version: '0.3'
31
31
  - !ruby/object:Gem::Dependency
32
32
  name: bound
33
33
  requirement: !ruby/object:Gem::Requirement
34
34
  requirements:
35
- - - "~>"
35
+ - - ~>
36
36
  - !ruby/object:Gem::Version
37
37
  version: '2.1'
38
38
  type: :runtime
39
39
  prerelease: false
40
40
  version_requirements: !ruby/object:Gem::Requirement
41
41
  requirements:
42
- - - "~>"
42
+ - - ~>
43
43
  - !ruby/object:Gem::Version
44
44
  version: '2.1'
45
45
  - !ruby/object:Gem::Dependency
46
46
  name: bundler
47
47
  requirement: !ruby/object:Gem::Requirement
48
48
  requirements:
49
- - - "~>"
49
+ - - ~>
50
50
  - !ruby/object:Gem::Version
51
51
  version: '1.7'
52
52
  type: :development
53
53
  prerelease: false
54
54
  version_requirements: !ruby/object:Gem::Requirement
55
55
  requirements:
56
- - - "~>"
56
+ - - ~>
57
57
  - !ruby/object:Gem::Version
58
58
  version: '1.7'
59
59
  - !ruby/object:Gem::Dependency
60
60
  name: rake
61
61
  requirement: !ruby/object:Gem::Requirement
62
62
  requirements:
63
- - - "~>"
63
+ - - ~>
64
64
  - !ruby/object:Gem::Version
65
65
  version: '10.3'
66
66
  type: :development
67
67
  prerelease: false
68
68
  version_requirements: !ruby/object:Gem::Requirement
69
69
  requirements:
70
- - - "~>"
70
+ - - ~>
71
71
  - !ruby/object:Gem::Version
72
72
  version: '10.3'
73
73
  - !ruby/object:Gem::Dependency
74
74
  name: minitest
75
75
  requirement: !ruby/object:Gem::Requirement
76
76
  requirements:
77
- - - "~>"
77
+ - - ~>
78
78
  - !ruby/object:Gem::Version
79
79
  version: '5.4'
80
80
  type: :development
81
81
  prerelease: false
82
82
  version_requirements: !ruby/object:Gem::Requirement
83
83
  requirements:
84
- - - "~>"
84
+ - - ~>
85
85
  - !ruby/object:Gem::Version
86
86
  version: '5.4'
87
87
  - !ruby/object:Gem::Dependency
88
88
  name: simplecov
89
89
  requirement: !ruby/object:Gem::Requirement
90
90
  requirements:
91
- - - ">="
91
+ - - '>='
92
92
  - !ruby/object:Gem::Version
93
93
  version: '0'
94
94
  type: :development
95
95
  prerelease: false
96
96
  version_requirements: !ruby/object:Gem::Requirement
97
97
  requirements:
98
- - - ">="
98
+ - - '>='
99
99
  - !ruby/object:Gem::Version
100
100
  version: '0'
101
101
  description:
@@ -110,28 +110,45 @@ executables:
110
110
  extensions: []
111
111
  extra_rdoc_files: []
112
112
  files:
113
- - ".gitignore"
114
- - ".travis.yml"
113
+ - .gitignore
114
+ - .rubocop.yml
115
+ - .rubocop_todo.yml
116
+ - .travis.yml
115
117
  - Gemfile
116
118
  - LICENSE.txt
117
119
  - README.md
118
120
  - README.md.template
119
121
  - Rakefile
120
122
  - bin/build_readme
121
- - etc/build_readme.rb
123
+ - examples/email_service/email_service.rb
124
+ - examples/event_tube.rb
125
+ - examples/my_application.rb
122
126
  - examples/runtime.rb
123
127
  - examples/service_factory.rb
124
128
  - examples/service_factory_validation.rb
129
+ - examples/use_case.rb
130
+ - examples/user_entity.rb
131
+ - examples/user_service.rb
132
+ - examples/user_service/create_user_use_case.rb
133
+ - examples/user_service/event_tube.rb
134
+ - examples/user_service/request.rb
135
+ - examples/user_service/runtime.rb
136
+ - examples/user_service/service_factory.rb
137
+ - examples/user_service/user_gateway.rb
138
+ - examples/verify/examples.txt
139
+ - examples/verify/examples_spec.rb
125
140
  - lib/rohbau.rb
126
141
  - lib/rohbau/application.rb
127
142
  - lib/rohbau/default_memory_gateway.rb
128
143
  - lib/rohbau/entity.rb
129
144
  - lib/rohbau/event_tube.rb
130
145
  - lib/rohbau/index.rb
146
+ - lib/rohbau/interface.rb
131
147
  - lib/rohbau/it_behaves_like.rb
132
148
  - lib/rohbau/minitest/exclude.rb
133
149
  - lib/rohbau/registry.rb
134
150
  - lib/rohbau/request.rb
151
+ - lib/rohbau/request_cache.rb
135
152
  - lib/rohbau/require.rb
136
153
  - lib/rohbau/runtime.rb
137
154
  - lib/rohbau/runtime_loader.rb
@@ -140,8 +157,13 @@ files:
140
157
  - lib/rohbau/shared_specs/default_gateway.rb
141
158
  - lib/rohbau/use_case.rb
142
159
  - lib/rohbau/version.rb
160
+ - rakelib/build_readme.rake
161
+ - rakelib/ci.rake
162
+ - rakelib/examples.rake
163
+ - rakelib/rubocop.rake
143
164
  - rohbau.gemspec
144
165
  - spec/event_tube_spec.rb
166
+ - spec/interface_spec.rb
145
167
  - spec/runtime_loader_spec.rb
146
168
  - spec/service_factory_spec.rb
147
169
  - spec/shared_spec_spec.rb
@@ -156,22 +178,23 @@ require_paths:
156
178
  - lib
157
179
  required_ruby_version: !ruby/object:Gem::Requirement
158
180
  requirements:
159
- - - ">="
181
+ - - '>='
160
182
  - !ruby/object:Gem::Version
161
183
  version: '0'
162
184
  required_rubygems_version: !ruby/object:Gem::Requirement
163
185
  requirements:
164
- - - ">="
186
+ - - '>='
165
187
  - !ruby/object:Gem::Version
166
188
  version: '0'
167
189
  requirements: []
168
190
  rubyforge_project:
169
- rubygems_version: 2.2.2
191
+ rubygems_version: 2.1.11
170
192
  signing_key:
171
193
  specification_version: 4
172
194
  summary: Provides a set of patterns used in Domain Driven Design
173
195
  test_files:
174
196
  - spec/event_tube_spec.rb
197
+ - spec/interface_spec.rb
175
198
  - spec/runtime_loader_spec.rb
176
199
  - spec/service_factory_spec.rb
177
200
  - spec/shared_spec_spec.rb
data/etc/build_readme.rb DELETED
@@ -1,14 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- template = $stdin.read
4
- examples = template.scan(/include_example (.*)/).flatten
5
-
6
- examples.each do |example|
7
- file = "examples/#{example}.rb"
8
- if File.exists?(file)
9
- replacement = File.read(file)
10
- template.gsub!(/include_example #{example}/, replacement)
11
- end
12
- end
13
-
14
- $stdout.print template