meta_workflows 0.9.6 → 0.9.7

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: 9b835297aea3c338b551b18a2af39688deab85e1b2b6950e2c4a4840dae2210b
4
- data.tar.gz: 30802c58d20e7d8a7a712612a5426f58abc7150f20618603e212817fba1680bc
3
+ metadata.gz: f991d24a137d8a8b8f61723e714c5a2e08551d7e49d108a4bef7a434f4b122ad
4
+ data.tar.gz: 7832b5db6ac767be220115a98bbd423314416b93176a1a2147249c69735781f8
5
5
  SHA512:
6
- metadata.gz: 25873f478bc218571ba82fe3a1a46d3b02331d9cc84bfccf8e7e8e231fa2a64df4e6e0a3aae418151d600548bef0b480bad7af50fbbd554620a20645f849d10f
7
- data.tar.gz: 01f6dee9c5510a552489eeba1fa8f74ec26b281a8dc303cb624466d932214b283c5b94ced90bd013876e193be010122152567532200a7e805143ceb2e77d5110
6
+ metadata.gz: f0102f3753d5570e5f4cc8009699d99ee52e0994842d129666c390cb1047415713b142663ace02396997ec5bb6c392323a24958407fdfb54fee840cab14ffb94
7
+ data.tar.gz: 4ea71acd1ea97348f0ea9a1713f6542a693662b42f44ffc01abc1813c688a2ae2f82a5e7c7d2597a9fde25aaff1ccbe8606472b481ef06622c7fc2f74044ac96
@@ -69,7 +69,7 @@ module MetaWorkflows
69
69
  def handle_import_result(result)
70
70
  if result.success?
71
71
  import_result = result.data
72
- flash[:notice] = success_message(import_result)
72
+ flash[:notice] = format_success_message(import_result)
73
73
  redirect_to workflows_path
74
74
  else
75
75
  flash[:alert] = result.error
@@ -77,9 +77,13 @@ module MetaWorkflows
77
77
  end
78
78
  end
79
79
 
80
- def success_message(import_result)
81
- action = import_result[:action] == 'created' ? 'imported' : 'updated'
82
- "Workflow '#{import_result[:workflow_name]}' #{action} successfully!"
80
+ def format_success_message(import_result)
81
+ if import_result[:message].present?
82
+ import_result[:message]
83
+ else
84
+ action = import_result[:action] == 'created' ? 'imported' : 'updated'
85
+ "Workflow '#{import_result[:workflow_name]}' #{action} successfully!"
86
+ end
83
87
  end
84
88
  end
85
89
  end
@@ -3,7 +3,7 @@
3
3
  module MetaWorkflows
4
4
  MAJOR = 0
5
5
  MINOR = 9
6
- PATCH = 6 # this is automatically incremented by the build process
6
+ PATCH = 7 # this is automatically incremented by the build process
7
7
 
8
8
  VERSION = "#{MetaWorkflows::MAJOR}.#{MetaWorkflows::MINOR}.#{MetaWorkflows::PATCH}".freeze
9
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: meta_workflows
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.6
4
+ version: 0.9.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Leonid Medovyy
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2025-07-08 00:00:00.000000000 Z
12
+ date: 2025-07-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails