meta_workflows 0.7.0 → 0.7.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: afd80be43cbf526411e03bbf7ced8c539b12d81e82d19b2e805dc2a85045aa83
4
- data.tar.gz: 4ce850bc8e751d2271ea049724bce5ddbf82d55b9d83749e7d06cfb1d0aebb2c
3
+ metadata.gz: bd9461e41652231e6ddcbd6aff71c4ced97fdb79a1a349a2cd789a0803379d67
4
+ data.tar.gz: 778d893c99b094d987021a41b6a80966044abae432a5a3644ec629339756daee
5
5
  SHA512:
6
- metadata.gz: 4fda18b86bf518cfbace011470987b8aa6fb7d1ebbfbb8e95933498736a6792b9c90183a8e820a2868ed8a34dab8cb0a32e194f054315d6bfbbdd4f6c067feb6
7
- data.tar.gz: 45148c5baac802a9c4c330206724b4e8a867df7886a2fc984b9f5b5854a14d926336492c88c0e0f718f84a3d0b8973373f682eaf20d628929dd03d7bc4c5a9ee
6
+ metadata.gz: 6473b7dbcaab6cbb688846dbba1bc403081f6b63d0833da4033a57fb45b8b316d104ab4273a260d2b23f06750b8770d914dd3f89749a1822f11a0b82d3b7ea7c
7
+ data.tar.gz: 05e7e92d737f5d2dc6a3f8b39e4be6aa0e456d07738f4d91e9e9f1f2bb0f2f990d74e9dd307d40fb3b44ea5ee4f1909933a18e8c19c7d57217a234f9dbb3fd2d
data/README.md CHANGED
@@ -112,6 +112,34 @@ Or install it yourself as:
112
112
  gem install meta_workflows
113
113
  ```
114
114
 
115
+ ## Git Hooks with Overcommit
116
+
117
+ This project uses Overcommit to manage Git hooks. The hooks are configured to run various code quality and security checks before commits and pushes:
118
+
119
+ - **Pre-commit**:
120
+ - RuboCop: Checks for code style violations
121
+
122
+ - **Pre-push**:
123
+ - RuboCop: Performs a more thorough code style check
124
+ - BundleAudit: Scans for vulnerable gems
125
+ - Brakeman: Scans for security vulnerabilities
126
+
127
+ To set up the git hooks, run:
128
+
129
+ ```shell
130
+ bundle install
131
+ bundle exec rake app:git:setup_hooks
132
+ ```
133
+
134
+ If you need to bypass the hooks temporarily, you can use:
135
+
136
+ ```shell
137
+ git commit --no-verify
138
+ git push --no-verify
139
+ ```
140
+
141
+ > **Note:** While bypassing hooks can be useful in specific scenarios, we recommend fixing issues rather than bypassing checks regularly.
142
+
115
143
  ## Setup
116
144
 
117
145
  ### 1. Database Setup
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  class AddErrorFieldsToWorkflowSteps < ActiveRecord::Migration[7.2]
2
4
  def change
3
5
  add_column :meta_workflows_workflow_steps, :error_message, :text
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MetaWorkflows
4
- VERSION = '0.7.0'
4
+ VERSION = '0.7.1'
5
5
  end
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ namespace :git do
4
+ desc 'Set up git hooks using Overcommit'
5
+ task setup_hooks: :environment do
6
+ puts 'Setting up git hooks with Overcommit...'
7
+
8
+ system('bundle exec overcommit --install') || abort('Failed to install Overcommit hooks')
9
+ system('bundle exec overcommit --sign') || abort('Failed to sign Overcommit hooks')
10
+ puts 'Git hooks have been set up successfully!'
11
+ end
12
+ 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.7.0
4
+ version: 0.7.1
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-06-16 00:00:00.000000000 Z
12
+ date: 2025-06-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -20,7 +20,7 @@ dependencies:
20
20
  version: 7.2.0
21
21
  - - "<"
22
22
  - !ruby/object:Gem::Version
23
- version: '9.0'
23
+ version: '8.1'
24
24
  type: :runtime
25
25
  prerelease: false
26
26
  version_requirements: !ruby/object:Gem::Requirement
@@ -30,7 +30,7 @@ dependencies:
30
30
  version: 7.2.0
31
31
  - - "<"
32
32
  - !ruby/object:Gem::Version
33
- version: '9.0'
33
+ version: '8.1'
34
34
  - !ruby/object:Gem::Dependency
35
35
  name: sidekiq
36
36
  requirement: !ruby/object:Gem::Requirement
@@ -186,6 +186,7 @@ files:
186
186
  - lib/services/meta_workflows/application_service.rb
187
187
  - lib/services/meta_workflows/meta_workflow_service.rb
188
188
  - lib/services/meta_workflows/updaters/meta_service.rb
189
+ - lib/tasks/git_hooks.rake
189
190
  - lib/tasks/meta_workflows_tasks.rake
190
191
  homepage: https://github.com/strongmind/meta_workflows
191
192
  licenses:
@@ -212,7 +213,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
212
213
  - !ruby/object:Gem::Version
213
214
  version: '0'
214
215
  requirements: []
215
- rubygems_version: 3.5.3
216
+ rubygems_version: 3.4.19
216
217
  signing_key:
217
218
  specification_version: 4
218
219
  summary: A Rails engine for managing AI-powered meta workflows