core_audit 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: f643ea0f67a5ea0b54f570e899701a159205370318bd0cd2a691288504fdc742
4
+ data.tar.gz: c22c763eb79ed9c0967c35c1d14e1ea6b33d4ecc61bc20b35a3d4ea25c7941d6
5
+ SHA512:
6
+ metadata.gz: 6e0ba6b52692cacc96ad69bda3811306a67f928ba9467067cd987effaa2b972da6131bf655ae3d2d0b68a74072f347a853ad531a79bd9fb51b332c6f917c323c
7
+ data.tar.gz: bf6d44d810a2b33e415c41fd05fd0d3df63d0f87c393db04ab049f066bd761d0aa0304db79800f1437bc0b081fa28b01ff3d1fc0f9ba9ba014833f5c4ec0f7fb
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/.rubocop.yml ADDED
@@ -0,0 +1,29 @@
1
+ AllCops:
2
+ NewCops: enable
3
+ TargetRubyVersion: 3.3
4
+ SuggestExtensions: false
5
+
6
+ Style/StringLiterals:
7
+ Enabled: true
8
+
9
+ Style/StringLiteralsInInterpolation:
10
+ Enabled: true
11
+
12
+ Layout/LineLength:
13
+ Max: 120
14
+
15
+ Style/Documentation:
16
+ Enabled: false
17
+
18
+ Style/BlockComments:
19
+ Enabled: false
20
+
21
+ Metrics/MethodLength:
22
+ Max: 15
23
+ AllowedMethods:
24
+ - change
25
+
26
+ Naming/PredicateName:
27
+ Exclude:
28
+ - 'lib/core_audit/rails/controller.rb'
29
+ - 'lib/core_audit/rails/model.rb'
data/CHANGELOG.md ADDED
@@ -0,0 +1,5 @@
1
+ ## [Unreleased]
2
+
3
+ ## [0.1.0] - 2024-03-04
4
+
5
+ - Initial release
@@ -0,0 +1,84 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
6
+
7
+ We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
8
+
9
+ ## Our Standards
10
+
11
+ Examples of behavior that contributes to a positive environment for our community include:
12
+
13
+ * Demonstrating empathy and kindness toward other people
14
+ * Being respectful of differing opinions, viewpoints, and experiences
15
+ * Giving and gracefully accepting constructive feedback
16
+ * Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
17
+ * Focusing on what is best not just for us as individuals, but for the overall community
18
+
19
+ Examples of unacceptable behavior include:
20
+
21
+ * The use of sexualized language or imagery, and sexual attention or
22
+ advances of any kind
23
+ * Trolling, insulting or derogatory comments, and personal or political attacks
24
+ * Public or private harassment
25
+ * Publishing others' private information, such as a physical or email
26
+ address, without their explicit permission
27
+ * Other conduct which could reasonably be considered inappropriate in a
28
+ professional setting
29
+
30
+ ## Enforcement Responsibilities
31
+
32
+ Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
33
+
34
+ Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
35
+
36
+ ## Scope
37
+
38
+ This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
39
+
40
+ ## Enforcement
41
+
42
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at brunopascoa@gmail.com. All complaints will be reviewed and investigated promptly and fairly.
43
+
44
+ All community leaders are obligated to respect the privacy and security of the reporter of any incident.
45
+
46
+ ## Enforcement Guidelines
47
+
48
+ Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
49
+
50
+ ### 1. Correction
51
+
52
+ **Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
53
+
54
+ **Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
55
+
56
+ ### 2. Warning
57
+
58
+ **Community Impact**: A violation through a single incident or series of actions.
59
+
60
+ **Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
61
+
62
+ ### 3. Temporary Ban
63
+
64
+ **Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
65
+
66
+ **Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
67
+
68
+ ### 4. Permanent Ban
69
+
70
+ **Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
71
+
72
+ **Consequence**: A permanent ban from any sort of public interaction within the community.
73
+
74
+ ## Attribution
75
+
76
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0,
77
+ available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
78
+
79
+ Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
80
+
81
+ [homepage]: https://www.contributor-covenant.org
82
+
83
+ For answers to common questions about this code of conduct, see the FAQ at
84
+ https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2024 Bruno Páscoa
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,39 @@
1
+ # CoreAudit
2
+
3
+ TODO: Delete this and the text below, and describe your gem
4
+
5
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/core_audit`. To experiment with that code, run `bin/console` for an interactive prompt.
6
+
7
+ ## Installation
8
+
9
+ TODO: Replace `UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG` with your gem name right after releasing it to RubyGems.org. Please do not do it earlier due to security reasons. Alternatively, replace this section with instructions to install your gem from git if you don't plan to release to RubyGems.org.
10
+
11
+ Install the gem and add to the application's Gemfile by executing:
12
+
13
+ $ bundle add UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG
14
+
15
+ If bundler is not being used to manage dependencies, install the gem by executing:
16
+
17
+ $ gem install UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG
18
+
19
+ ## Usage
20
+
21
+ TODO: Write usage instructions here
22
+
23
+ ## Development
24
+
25
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
26
+
27
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
28
+
29
+ ## Contributing
30
+
31
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/core_audit. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/[USERNAME]/core_audit/blob/master/CODE_OF_CONDUCT.md).
32
+
33
+ ## License
34
+
35
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
36
+
37
+ ## Code of Conduct
38
+
39
+ Everyone interacting in the CoreAudit project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/core_audit/blob/master/CODE_OF_CONDUCT.md).
data/Rakefile ADDED
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'bundler/gem_tasks'
4
+ require 'rspec/core/rake_task'
5
+
6
+ RSpec::Core::RakeTask.new(:spec)
7
+
8
+ require 'rubocop/rake_task'
9
+
10
+ RuboCop::RakeTask.new
11
+
12
+ task default: %i[spec rubocop]
@@ -0,0 +1,46 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'lib/core_audit/version'
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = 'core_audit'
7
+ spec.version = CoreAudit::VERSION
8
+ spec.authors = ['Bruno Páscoa']
9
+ spec.email = ['bruno@coreplan.com.br']
10
+
11
+ spec.summary = 'Gem para integração com o serviço de auditória CoreAudit.'
12
+ # spec.description = "TODO: Write a longer description or delete this line."
13
+ spec.homepage = 'https://www.coreplan.com.br'
14
+ spec.license = 'MIT'
15
+ spec.required_ruby_version = '>= 3.3.0'
16
+
17
+ spec.metadata['allowed_push_host'] = 'https://rubygems.org'
18
+
19
+ spec.metadata['homepage_uri'] = spec.homepage
20
+ spec.metadata['source_code_uri'] = 'https://rubygems.org/gems/core_audit'
21
+ spec.metadata['changelog_uri'] = 'https://rubygems.org/gems/core_audit'
22
+
23
+ # spec.metadata['rubygems_mfa_required'] = 'true'
24
+
25
+ # Specify which files should be added to the gem when it is released.
26
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
27
+ spec.files = Dir.chdir(__dir__) do
28
+ `git ls-files -z`.split("\x0").reject do |f|
29
+ (File.expand_path(f) == __FILE__) ||
30
+ f.start_with?(*%w[bin/ test/ spec/ features/ .git .gitlab-ci.yml appveyor Gemfile])
31
+ end
32
+ end
33
+ spec.bindir = 'exe'
34
+ spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
35
+ spec.require_paths = ['lib']
36
+
37
+ # Uncomment to register a new dependency of your gem
38
+ # spec.add_dependency "example-gem", "~> 1.0"
39
+
40
+ # For more information and examples about making a new gem, check out our
41
+ # guide at: https://bundler.io/guides/creating_gem.html
42
+
43
+ spec.add_dependency 'rails', '>= 7.0.4'
44
+ spec.add_dependency 'sidekiq', '>= 7.2'
45
+ spec.metadata['rubygems_mfa_required'] = 'true'
46
+ end
@@ -0,0 +1,29 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'net/http'
4
+ require 'uri'
5
+ require 'json'
6
+
7
+ module CoreAudit
8
+ class Client
9
+ def initialize
10
+ CoreAudit.configuration.validate!
11
+ end
12
+
13
+ def post(payload)
14
+ uri = URI("#{CoreAudit.configuration.base_url}/audit")
15
+
16
+ request = Net::HTTP::Post.new(
17
+ uri,
18
+ 'Content-Type' => 'application/json',
19
+ 'Authorization' => "Bearer #{CoreAudit.configuration.api_key}"
20
+ )
21
+
22
+ request.body = { audit: payload }.to_json
23
+
24
+ Net::HTTP.start(uri.hostname, uri.port, use_ssl: uri.scheme == 'https') do |http|
25
+ http.request(request)
26
+ end
27
+ end
28
+ end
29
+ end
@@ -0,0 +1,19 @@
1
+ # frozen_string_literal: true
2
+
3
+ module CoreAudit
4
+ class Configuration
5
+ attr_accessor :api_key, :base_url
6
+
7
+ def initialize
8
+ @api_key = ENV['CORE_AUDIT_KEY'].presence
9
+ @base_url = ENV['CORE_AUDIT_URL'].presence
10
+ end
11
+
12
+ def validate!
13
+ raise 'Environment variable CORE_AUDIT_KEY is not set' if @api_key.blank?
14
+ raise 'Environment variable CORE_AUDIT_URL is not set' if @base_url.blank?
15
+
16
+ true
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ module CoreAudit
4
+ module Middleware
5
+ class ClearRequestDataStore
6
+ def initialize(app)
7
+ @app = app
8
+ end
9
+
10
+ def call(env)
11
+ @app.call(env)
12
+ ensure
13
+ CoreAudit::Stores::RequestDataStore.clear
14
+ end
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,54 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'active_support/concern'
4
+
5
+ module CoreAudit
6
+ module Rails
7
+ module Controller
8
+ extend ActiveSupport::Concern
9
+
10
+ included do
11
+ before_action :set_request_data_store
12
+ end
13
+
14
+ class_methods do
15
+ def has_core_audit(options = {})
16
+ before_action_options = options.slice(:only, :except)
17
+ before_action before_action_options do
18
+ publish_audit_data
19
+ end
20
+ end
21
+ end
22
+
23
+ def publish_audit_data
24
+ CoreAudit.publish(audit_data)
25
+ end
26
+
27
+ private
28
+
29
+ def audit_data
30
+ {
31
+ action: 'request',
32
+ action_date: Time.now.to_s,
33
+ resource_type: self.class.name,
34
+ resource_id: action_name,
35
+ metadata: params.permit
36
+ }
37
+ end
38
+
39
+ def set_request_data_store
40
+ user_id = defined?(current_entity) ? current_entity.try(:id) : nil
41
+
42
+ request_data = {
43
+ user_id:,
44
+ request_ip: request.ip,
45
+ remote_ip: request.remote_ip,
46
+ host: request.host,
47
+ path: request.path
48
+ }
49
+
50
+ CoreAudit::Stores::RequestDataStore.set(request_data)
51
+ end
52
+ end
53
+ end
54
+ end
@@ -0,0 +1,35 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'active_job'
4
+ require 'core_audit/client'
5
+
6
+ module CoreAudit
7
+ module Rails
8
+ module Jobs
9
+ class AuditJob < ActiveJob::Base
10
+ queue_as :default
11
+
12
+ def perform(data)
13
+ client = CoreAudit::Client.new
14
+ response = client.post(data)
15
+
16
+ if response.is_a?(Net::HTTPSuccess)
17
+ handle_success(response)
18
+ else
19
+ handle_failure(response)
20
+ end
21
+ end
22
+
23
+ private
24
+
25
+ def handle_success(response)
26
+ { status: :success, body: response.body }
27
+ end
28
+
29
+ def handle_failure(response)
30
+ raise response.body
31
+ end
32
+ end
33
+ end
34
+ end
35
+ end
@@ -0,0 +1,39 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'active_support/concern'
4
+
5
+ module CoreAudit
6
+ module Rails
7
+ module Model
8
+ extend ActiveSupport::Concern
9
+
10
+ class_methods do
11
+ def has_core_audit(options = {})
12
+ after_commit :publish_audit_data, on: options[:only] || %i[create update destroy]
13
+ end
14
+ end
15
+
16
+ private
17
+
18
+ def publish_audit_data
19
+ CoreAudit.publish(audit_data)
20
+ end
21
+
22
+ def audit_data
23
+ {
24
+ action: determine_action,
25
+ action_date: Time.now.to_s,
26
+ resource_type: self.class.name,
27
+ resource_id: id,
28
+ resource_data: previous_changes
29
+ }
30
+ end
31
+
32
+ def determine_action
33
+ return 'destroy' unless persisted?
34
+
35
+ previous_changes.any? ? 'update' : 'create'
36
+ end
37
+ end
38
+ end
39
+ end
@@ -0,0 +1,34 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'rails/railtie'
4
+ require 'core_audit/middleware/clear_request_data_store'
5
+ require 'core_audit/rails/controller'
6
+ require 'core_audit/rails/model'
7
+
8
+ module CoreAudit
9
+ module Rails
10
+ class Railtie < ::Rails::Railtie
11
+ initializer 'core_audit.add_middleware' do |app|
12
+ app.config.middleware.use CoreAudit::Middleware::ClearRequestDataStore
13
+ end
14
+
15
+ initializer 'core_audit.extend_action_controller' do
16
+ ActiveSupport.on_load(:action_controller_base) do
17
+ ActionController::Base.include CoreAudit::Rails::Controller
18
+ extend CoreAudit::Rails::Controller::ClassMethods
19
+ end
20
+ ActiveSupport.on_load(:action_controller_api) do
21
+ ActionController::API.include CoreAudit::Rails::Controller
22
+ extend CoreAudit::Rails::Controller::ClassMethods
23
+ end
24
+ end
25
+
26
+ initializer 'core_audit.extend_active_record' do
27
+ ActiveSupport.on_load(:active_record) do
28
+ ActiveRecord::Base.include CoreAudit::Rails::Model
29
+ ActiveRecord::Base.extend CoreAudit::Rails::Model::ClassMethods
30
+ end
31
+ end
32
+ end
33
+ end
34
+ end
@@ -0,0 +1,24 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'core_audit/rails/jobs/audit_job'
4
+
5
+ module CoreAudit
6
+ module Services
7
+ class PublishAuditDataService
8
+ def initialize(audit_data)
9
+ @audit_data = Array.wrap(audit_data)
10
+ end
11
+
12
+ def call
13
+ @audit_data.map { |item_data| CoreAudit::Rails::Jobs::AuditJob.perform_later(item_data) }
14
+ rescue StandardError => e
15
+ logger.error e.message
16
+ logger.error e.backtrace.join("\n")
17
+
18
+ Airbrake.notify('Audit failure', exception: e) if defined?(Airbrake)
19
+
20
+ nil
21
+ end
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,27 @@
1
+ # frozen_string_literal: true
2
+
3
+ module CoreAudit
4
+ module Stores
5
+ module RequestDataStore
6
+ class << self
7
+ def get
8
+ Thread.current[key_name]
9
+ end
10
+
11
+ def set(value)
12
+ Thread.current[key_name] = value
13
+ end
14
+
15
+ def clear
16
+ Thread.current[key_name] = nil
17
+ end
18
+
19
+ private
20
+
21
+ def key_name
22
+ 'core_audit_request_data'
23
+ end
24
+ end
25
+ end
26
+ end
27
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module CoreAudit
4
+ VERSION = '0.0.5'
5
+ end
data/lib/core_audit.rb ADDED
@@ -0,0 +1,43 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'core_audit/rails/railtie'
4
+ require 'core_audit/configuration'
5
+ require 'core_audit/services/publish_audit_data_service'
6
+ require 'core_audit/stores/request_data_store'
7
+ require 'core_audit/version'
8
+
9
+ # Main module for CoreAudit gem
10
+ module CoreAudit
11
+ class << self
12
+ attr_accessor :configuration
13
+
14
+ def configure
15
+ self.configuration ||= CoreAudit::Configuration.new
16
+ yield(configuration) if block_given?
17
+ self.configuration.validate!
18
+ end
19
+
20
+ def publish(data)
21
+ service = CoreAudit::Services::PublishAuditDataService.new(audit_data(data))
22
+ service.call
23
+ end
24
+
25
+ private
26
+
27
+ def audit_data(data)
28
+ request_data = CoreAudit::Stores::RequestDataStore.get
29
+ user_id = request_data.fetch(:user_id) || 'unknown'
30
+ local_ip = Socket.ip_address_list.find { |ai| ai.ipv4? && !ai.ipv4_loopback? }.ip_address
31
+ host_name = Socket.gethostname
32
+
33
+ default_data = {
34
+ user_id:,
35
+ local_ip:,
36
+ host_name:,
37
+ request_data:
38
+ }
39
+
40
+ data.merge(default_data)
41
+ end
42
+ end
43
+ end
@@ -0,0 +1,4 @@
1
+ module CoreAudit
2
+ VERSION: String
3
+ # See the writing guide of rbs: https://github.com/ruby/rbs#guides
4
+ end
metadata ADDED
@@ -0,0 +1,96 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: core_audit
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.5
5
+ platform: ruby
6
+ authors:
7
+ - Bruno Páscoa
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2024-03-12 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rails
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: 7.0.4
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: 7.0.4
27
+ - !ruby/object:Gem::Dependency
28
+ name: sidekiq
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '7.2'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '7.2'
41
+ description:
42
+ email:
43
+ - bruno@coreplan.com.br
44
+ executables: []
45
+ extensions: []
46
+ extra_rdoc_files: []
47
+ files:
48
+ - ".rspec"
49
+ - ".rubocop.yml"
50
+ - CHANGELOG.md
51
+ - CODE_OF_CONDUCT.md
52
+ - LICENSE.txt
53
+ - README.md
54
+ - Rakefile
55
+ - core_audit.gemspec
56
+ - lib/core_audit.rb
57
+ - lib/core_audit/client.rb
58
+ - lib/core_audit/configuration.rb
59
+ - lib/core_audit/middleware/clear_request_data_store.rb
60
+ - lib/core_audit/rails/controller.rb
61
+ - lib/core_audit/rails/jobs/audit_job.rb
62
+ - lib/core_audit/rails/model.rb
63
+ - lib/core_audit/rails/railtie.rb
64
+ - lib/core_audit/services/publish_audit_data_service.rb
65
+ - lib/core_audit/stores/request_data_store.rb
66
+ - lib/core_audit/version.rb
67
+ - sig/core_audit.rbs
68
+ homepage: https://www.coreplan.com.br
69
+ licenses:
70
+ - MIT
71
+ metadata:
72
+ allowed_push_host: https://rubygems.org
73
+ homepage_uri: https://www.coreplan.com.br
74
+ source_code_uri: https://rubygems.org/gems/core_audit
75
+ changelog_uri: https://rubygems.org/gems/core_audit
76
+ rubygems_mfa_required: 'true'
77
+ post_install_message:
78
+ rdoc_options: []
79
+ require_paths:
80
+ - lib
81
+ required_ruby_version: !ruby/object:Gem::Requirement
82
+ requirements:
83
+ - - ">="
84
+ - !ruby/object:Gem::Version
85
+ version: 3.3.0
86
+ required_rubygems_version: !ruby/object:Gem::Requirement
87
+ requirements:
88
+ - - ">="
89
+ - !ruby/object:Gem::Version
90
+ version: '0'
91
+ requirements: []
92
+ rubygems_version: 3.5.3
93
+ signing_key:
94
+ specification_version: 4
95
+ summary: Gem para integração com o serviço de auditória CoreAudit.
96
+ test_files: []