camunda-workflow 0.2.0 → 0.2.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a0d3b0b64c74b94ea30da234937034f57514ccc70c88d39b249ec4d58d6656f5
4
- data.tar.gz: 7cf0641100c47867188ff70bb420798345a178ae76ad46142100e893cc39c4a2
3
+ metadata.gz: de3f5b53f63bf54079ee7c40c5b4484610f5fff5aea834f277c53c2a19061066
4
+ data.tar.gz: 9bc948e1114eb799505598a585874070436097ec1ee86396f806457aad8a304c
5
5
  SHA512:
6
- metadata.gz: e454dd0b2ed5c3380ff19243ae7899b3a59a378e2bc50b60e8e5032f88cfd3b8347a75c18aaf10badfaa376d7afca52725daf010c33c899633c02b586665ccbb
7
- data.tar.gz: c2274f504b54e1d15c7d8af1313bb791f4242bbd5fbfae4ef7af3dbacadbc26ca44a4763e80701ced9e64c43a7e0112c9c01114fb779ad02fcfb517d0e5621df
6
+ metadata.gz: 75e7a0452733b6c14c62a60bcb794c29d5760431721ab85bc138ea3bb35e32ae11803466247de18ec86825f4f057963f9735744c6418b5549f2f0811dd9f13d2
7
+ data.tar.gz: f97120868b79674a2dc60c04d7c646fe511da2674113f198da67fcfc6081507fc263edc8713d4631e371c979cea2f9b564f62a846c316856170b8640089e5063
@@ -3,6 +3,7 @@ require 'active_support/core_ext/object/blank.rb'
3
3
  require 'her'
4
4
  require 'faraday'
5
5
  require 'faraday_middleware'
6
+ require 'camunda/railtie' if defined?(Rails)
6
7
  # Top level module for camunda-workflow.
7
8
  module Camunda
8
9
  # Camunda class
@@ -43,7 +43,7 @@ class Camunda::ExternalTask < Camunda::Model
43
43
  self.class.post_raw("#{collection_path}/#{id}/failure",
44
44
  workerId: worker_id, errorMessage: exception.message,
45
45
  errorDetails:
46
- variables_information.to_s +
46
+ variables_information.to_s + exception.message +
47
47
  backtrace_cleaner.clean(exception.backtrace).join("\n"))[:response]
48
48
  end
49
49
 
@@ -0,0 +1,6 @@
1
+ module Camunda
2
+ # Railtie that includes rake tasks for camunda-workflow
3
+ class Railtie < Rails::Railtie
4
+ rake_tasks { load "tasks/camunda.rake" }
5
+ end
6
+ end
@@ -1,5 +1,5 @@
1
1
  module Camunda
2
2
  module Workflow
3
- VERSION = '0.2.0'.freeze
3
+ VERSION = '0.2.1'.freeze
4
4
  end
5
5
  end
@@ -21,7 +21,6 @@ module Camunda
21
21
  copy_file 'logback.xml', File.join(java_app_path, 'src/main/resources/logback.xml')
22
22
  copy_file 'application.properties', File.join(java_app_path, 'src/main/resources/application.properties')
23
23
  copy_file 'Camunda.java', File.join(java_app_path, 'src/main/java/camunda/Camunda.java')
24
- copy_file 'camunda.rake', 'lib/tasks/camunda.rake'
25
24
  end
26
25
 
27
26
  # Copies a sample bpmn file to help demonstrate the usage for camunda-workflow
@@ -43,35 +42,6 @@ module Camunda
43
42
  end
44
43
  end
45
44
 
46
- # Provides instruction regarding an error with EventedFileChecker listening on the entire Rails folder.
47
- def output_error_instructions
48
- puts <<~DOC
49
- If you get an error when starting your Rails app
50
-
51
- ** ERROR: directory is already being watched! **
52
-
53
- Directory: bpmn/java_app/src/main/resources
54
- is already being watched through: bpmn/diagrams
55
-
56
- MORE INFO: https://github.com/guard/listen/wiki/Duplicate-directory-errors
57
-
58
- It is because ActionMailer preview causes test/mailers/previews to get added to the Rails EventedFileChecker
59
- by default. RSpec is supposed to override it, but it is not overridden properly for EventedFileChecker and/or
60
- you don't have spec/mailers/preview existing. If that directory does not exist it goes to the first common
61
- directory that exists which is your Rails root folder.
62
-
63
- So EventedFileChecker is listening to your entire Rails folder. Not a big problem, but it causes a problem
64
- for our created symlink.
65
-
66
- So add:
67
-
68
- config.action_mailer.show_previews = false
69
-
70
- to your development.rb file to solve Listen errors about a symlink. Unless you are using ActionMailer
71
- previews in which case you should have the directory created already.
72
- DOC
73
- end
74
-
75
45
  private
76
46
 
77
47
  def bpmn_folder_name
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: camunda-workflow
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ankur Sethi
@@ -215,6 +215,7 @@ files:
215
215
  - lib/camunda/poller.rb
216
216
  - lib/camunda/process_definition.rb
217
217
  - lib/camunda/process_instance.rb
218
+ - lib/camunda/railtie.rb
218
219
  - lib/camunda/signal.rb
219
220
  - lib/camunda/task.rb
220
221
  - lib/camunda/variable_serialization.rb
@@ -233,10 +234,10 @@ files:
233
234
  - lib/generators/camunda/spring_boot/templates/ProcessScenarioTest.java
234
235
  - lib/generators/camunda/spring_boot/templates/application.properties
235
236
  - lib/generators/camunda/spring_boot/templates/camunda.cfg.xml
236
- - lib/generators/camunda/spring_boot/templates/camunda.rake
237
237
  - lib/generators/camunda/spring_boot/templates/logback.xml
238
238
  - lib/generators/camunda/spring_boot/templates/pom.xml
239
239
  - lib/generators/camunda/spring_boot/templates/sample.bpmn
240
+ - lib/tasks/camunda.rake
240
241
  homepage: https://github.com/amalagaura/camunda-workflow
241
242
  licenses:
242
243
  - MIT