exel 1.1.0 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +1 -0
  3. data/.rubocop_todo.yml +10 -16
  4. data/Gemfile +2 -0
  5. data/README.md +5 -2
  6. data/exel.gemspec +2 -1
  7. data/lib/exel/ast_node.rb +2 -1
  8. data/lib/exel/context.rb +45 -42
  9. data/lib/exel/deferred_context_value.rb +35 -0
  10. data/lib/exel/error/job_termination.rb +3 -5
  11. data/lib/exel/events.rb +26 -0
  12. data/lib/exel/instruction.rb +2 -4
  13. data/lib/exel/instruction_node.rb +1 -0
  14. data/lib/exel/job.rb +32 -10
  15. data/lib/exel/listen_instruction.rb +17 -0
  16. data/lib/exel/null_instruction.rb +1 -0
  17. data/lib/exel/old_context.rb +109 -0
  18. data/lib/exel/processor_helper.rb +1 -4
  19. data/lib/exel/processors/async_processor.rb +1 -0
  20. data/lib/exel/processors/run_processor.rb +3 -0
  21. data/lib/exel/processors/split_processor.rb +12 -2
  22. data/lib/exel/providers/local_file_provider.rb +3 -1
  23. data/lib/exel/providers/threaded_async_provider.rb +1 -0
  24. data/lib/exel/sequence_node.rb +1 -0
  25. data/lib/exel/value.rb +1 -0
  26. data/lib/exel/version.rb +1 -1
  27. data/lib/exel.rb +20 -1
  28. data/spec/exel/ast_node_spec.rb +4 -4
  29. data/spec/exel/context_spec.rb +35 -109
  30. data/spec/exel/deferred_context_value_spec.rb +51 -7
  31. data/spec/exel/events_spec.rb +89 -0
  32. data/spec/exel/instruction_node_spec.rb +3 -3
  33. data/spec/exel/instruction_spec.rb +9 -9
  34. data/spec/exel/job_spec.rb +23 -13
  35. data/spec/exel/listen_instruction_spec.rb +14 -0
  36. data/spec/exel/logging_spec.rb +3 -3
  37. data/spec/exel/processors/split_processor_spec.rb +14 -6
  38. data/spec/exel/sequence_node_spec.rb +1 -1
  39. data/spec/exel_spec.rb +7 -0
  40. data/spec/fixtures/sample.csv +501 -0
  41. data/spec/integration/integration_spec.rb +51 -0
  42. data/spec/spec_helper.rb +17 -1
  43. data/spec/support/integration_test_classes.rb +44 -0
  44. metadata +32 -5
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: exel
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - yroo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-14 00:00:00.000000000 Z
11
+ date: 2016-03-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -128,14 +128,14 @@ dependencies:
128
128
  requirements:
129
129
  - - "~>"
130
130
  - !ruby/object:Gem::Version
131
- version: '0'
131
+ version: 0.37.0
132
132
  type: :development
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
136
  - - "~>"
137
137
  - !ruby/object:Gem::Version
138
- version: '0'
138
+ version: 0.37.0
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: rubocop-rspec
141
141
  requirement: !ruby/object:Gem::Requirement
@@ -164,6 +164,20 @@ dependencies:
164
164
  - - "~>"
165
165
  - !ruby/object:Gem::Version
166
166
  version: '0'
167
+ - !ruby/object:Gem::Dependency
168
+ name: pry-byebug
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - ">="
172
+ - !ruby/object:Gem::Version
173
+ version: '0'
174
+ type: :development
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - ">="
179
+ - !ruby/object:Gem::Version
180
+ version: '0'
167
181
  description: A DSL for defining jobs that can be run in a highly scalable manner
168
182
  email:
169
183
  - dev@yroo.com
@@ -187,11 +201,14 @@ files:
187
201
  - lib/exel/context.rb
188
202
  - lib/exel/deferred_context_value.rb
189
203
  - lib/exel/error/job_termination.rb
204
+ - lib/exel/events.rb
190
205
  - lib/exel/instruction.rb
191
206
  - lib/exel/instruction_node.rb
192
207
  - lib/exel/job.rb
208
+ - lib/exel/listen_instruction.rb
193
209
  - lib/exel/logging.rb
194
210
  - lib/exel/null_instruction.rb
211
+ - lib/exel/old_context.rb
195
212
  - lib/exel/processor_helper.rb
196
213
  - lib/exel/processors/async_processor.rb
197
214
  - lib/exel/processors/run_processor.rb
@@ -204,9 +221,11 @@ files:
204
221
  - spec/exel/ast_node_spec.rb
205
222
  - spec/exel/context_spec.rb
206
223
  - spec/exel/deferred_context_value_spec.rb
224
+ - spec/exel/events_spec.rb
207
225
  - spec/exel/instruction_node_spec.rb
208
226
  - spec/exel/instruction_spec.rb
209
227
  - spec/exel/job_spec.rb
228
+ - spec/exel/listen_instruction_spec.rb
210
229
  - spec/exel/logging_spec.rb
211
230
  - spec/exel/null_instruction_spec.rb
212
231
  - spec/exel/processors/async_processor_spec.rb
@@ -217,7 +236,10 @@ files:
217
236
  - spec/exel/sequence_node_spec.rb
218
237
  - spec/exel/value_spec.rb
219
238
  - spec/exel_spec.rb
239
+ - spec/fixtures/sample.csv
240
+ - spec/integration/integration_spec.rb
220
241
  - spec/spec_helper.rb
242
+ - spec/support/integration_test_classes.rb
221
243
  homepage: https://github.com/47colborne/exel
222
244
  licenses:
223
245
  - MIT
@@ -238,7 +260,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
238
260
  version: '0'
239
261
  requirements: []
240
262
  rubyforge_project:
241
- rubygems_version: 2.2.2
263
+ rubygems_version: 2.4.5.1
242
264
  signing_key:
243
265
  specification_version: 4
244
266
  summary: EXEL, the Elastic eXEcution Language
@@ -246,9 +268,11 @@ test_files:
246
268
  - spec/exel/ast_node_spec.rb
247
269
  - spec/exel/context_spec.rb
248
270
  - spec/exel/deferred_context_value_spec.rb
271
+ - spec/exel/events_spec.rb
249
272
  - spec/exel/instruction_node_spec.rb
250
273
  - spec/exel/instruction_spec.rb
251
274
  - spec/exel/job_spec.rb
275
+ - spec/exel/listen_instruction_spec.rb
252
276
  - spec/exel/logging_spec.rb
253
277
  - spec/exel/null_instruction_spec.rb
254
278
  - spec/exel/processors/async_processor_spec.rb
@@ -259,4 +283,7 @@ test_files:
259
283
  - spec/exel/sequence_node_spec.rb
260
284
  - spec/exel/value_spec.rb
261
285
  - spec/exel_spec.rb
286
+ - spec/fixtures/sample.csv
287
+ - spec/integration/integration_spec.rb
262
288
  - spec/spec_helper.rb
289
+ - spec/support/integration_test_classes.rb