evento 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +8 -0
- data/Gemfile +9 -0
- data/Gemfile.lock +88 -0
- data/LICENSE.txt +21 -0
- data/README.md +77 -0
- data/Rakefile +14 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/evento.gemspec +34 -0
- data/lib/evento/extractor.rb +53 -0
- data/lib/evento/orchestrator.rb +65 -0
- data/lib/evento/version.rb +5 -0
- data/lib/evento.rb +10 -0
- metadata +225 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 33a11251bc4492d972009aabaaec9a203c978a7c805e0c0706153c808ffbea0e
|
4
|
+
data.tar.gz: 7916a8323786c8e7bafd6a435882e603222710915e234fa45f8cf0a5c067ba95
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 3fd000cffd86dbdff3d89537f21189c8d3204a479b8c0352a9145eedf1bfec4586da1d606473f290c41be74a89bed8a7bba44795a1446b8af6cbfc003d535f69
|
7
|
+
data.tar.gz: 95d53b17b4895393ed63be6bd0cf0c1fe1c42fe689b81cfc0a118ee8ab076921894a8758adf059b6048d51ab12d4eabc8b4bb70db23a1d8aa25105726b58c137
|
data/.gitignore
ADDED
data/Gemfile
ADDED
@@ -0,0 +1,9 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
source 'https://rubygems.org'
|
4
|
+
git_source(:entdec) { |repo_name| "git@code.entropydecelerator.com:#{repo_name}.git" }
|
5
|
+
|
6
|
+
# Specify your gem's dependencies in evento.gemspec
|
7
|
+
gemspec
|
8
|
+
|
9
|
+
gem 'auxilium', '~> 0.2', entdec: 'components/auxilium'
|
data/Gemfile.lock
ADDED
@@ -0,0 +1,88 @@
|
|
1
|
+
GIT
|
2
|
+
remote: git@code.entropydecelerator.com:components/auxilium.git
|
3
|
+
revision: 90a6531ca2ebdf62df3921b6ec3b0bba07b38989
|
4
|
+
specs:
|
5
|
+
auxilium (0.2.0)
|
6
|
+
activesupport (> 5.1)
|
7
|
+
|
8
|
+
PATH
|
9
|
+
remote: .
|
10
|
+
specs:
|
11
|
+
evento (0.1.7)
|
12
|
+
|
13
|
+
GEM
|
14
|
+
remote: https://rubygems.org/
|
15
|
+
specs:
|
16
|
+
aasm (5.0.8)
|
17
|
+
concurrent-ruby (~> 1.0)
|
18
|
+
activemodel (5.2.4.3)
|
19
|
+
activesupport (= 5.2.4.3)
|
20
|
+
activerecord (5.2.4.3)
|
21
|
+
activemodel (= 5.2.4.3)
|
22
|
+
activesupport (= 5.2.4.3)
|
23
|
+
arel (>= 9.0)
|
24
|
+
activesupport (5.2.4.3)
|
25
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
26
|
+
i18n (>= 0.7, < 2)
|
27
|
+
minitest (~> 5.1)
|
28
|
+
tzinfo (~> 1.1)
|
29
|
+
arel (9.0.0)
|
30
|
+
ast (2.4.0)
|
31
|
+
coderay (1.1.2)
|
32
|
+
concurrent-ruby (1.1.6)
|
33
|
+
i18n (1.8.2)
|
34
|
+
concurrent-ruby (~> 1.0)
|
35
|
+
method_source (1.0.0)
|
36
|
+
minitest (5.14.1)
|
37
|
+
parallel (1.19.1)
|
38
|
+
parser (2.7.1.2)
|
39
|
+
ast (~> 2.4.0)
|
40
|
+
pry (0.13.1)
|
41
|
+
coderay (~> 1.1)
|
42
|
+
method_source (~> 1.0)
|
43
|
+
rainbow (3.0.0)
|
44
|
+
rake (12.3.3)
|
45
|
+
rexml (3.2.4)
|
46
|
+
rubocop (0.83.0)
|
47
|
+
parallel (~> 1.10)
|
48
|
+
parser (>= 2.7.0.1)
|
49
|
+
rainbow (>= 2.2.2, < 4.0)
|
50
|
+
rexml
|
51
|
+
ruby-progressbar (~> 1.7)
|
52
|
+
unicode-display_width (>= 1.4.0, < 2.0)
|
53
|
+
ruby-progressbar (1.10.1)
|
54
|
+
sqlite3 (1.4.2)
|
55
|
+
state_machines (0.5.0)
|
56
|
+
state_machines-activemodel (0.7.1)
|
57
|
+
activemodel (>= 4.1)
|
58
|
+
state_machines (>= 0.5.0)
|
59
|
+
state_machines-activerecord (0.6.0)
|
60
|
+
activerecord (>= 4.1)
|
61
|
+
state_machines-activemodel (>= 0.5.0)
|
62
|
+
state_machines-audit_trail (2.0.1)
|
63
|
+
state_machines
|
64
|
+
thread_safe (0.3.6)
|
65
|
+
tzinfo (1.2.7)
|
66
|
+
thread_safe (~> 0.1)
|
67
|
+
unicode-display_width (1.7.0)
|
68
|
+
|
69
|
+
PLATFORMS
|
70
|
+
ruby
|
71
|
+
|
72
|
+
DEPENDENCIES
|
73
|
+
aasm (~> 5.0)
|
74
|
+
activerecord (~> 5.2)
|
75
|
+
auxilium (~> 0.2)!
|
76
|
+
evento!
|
77
|
+
i18n (~> 1.8)
|
78
|
+
minitest (~> 5.0)
|
79
|
+
pry (~> 0.13)
|
80
|
+
rake (~> 12.0)
|
81
|
+
rubocop (~> 0.83)
|
82
|
+
sqlite3 (~> 1.4)
|
83
|
+
state_machines (~> 0.5)
|
84
|
+
state_machines-activerecord (~> 0.6)
|
85
|
+
state_machines-audit_trail (~> 2)
|
86
|
+
|
87
|
+
BUNDLED WITH
|
88
|
+
2.1.4
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2020 Mark Cornelissen
|
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,77 @@
|
|
1
|
+
# Evento
|
2
|
+
|
3
|
+
With Evento you can hook into events generated by AASM, state\_machines and Devise.
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
```ruby
|
10
|
+
gem 'evento'
|
11
|
+
```
|
12
|
+
|
13
|
+
And then execute:
|
14
|
+
|
15
|
+
$ bundle install
|
16
|
+
|
17
|
+
Or install it yourself as:
|
18
|
+
|
19
|
+
$ gem install evento
|
20
|
+
|
21
|
+
## Usage
|
22
|
+
|
23
|
+
You can create methods based on events methods from AASM or state\_machines in another class:
|
24
|
+
|
25
|
+
```ruby
|
26
|
+
orchestrator = Evento::Orchestrator.new(Order)
|
27
|
+
orchestrator.define_event_methods_on(OrderEventHandler, state_machine: true) do |your, own, parameters, here|
|
28
|
+
# your code here
|
29
|
+
end
|
30
|
+
```
|
31
|
+
|
32
|
+
If you're using devise you can also create event methods based on that:
|
33
|
+
|
34
|
+
```ruby
|
35
|
+
orchestrator = Evento::Orchestrator.new(User)
|
36
|
+
orchestrator.define_event_methods_on(UserEventHandler, devise: true) do |your, own, parameters, here|
|
37
|
+
# your code here
|
38
|
+
end
|
39
|
+
```
|
40
|
+
|
41
|
+
If you set both teh state\_machine and devise options methods for both will be created in one go.
|
42
|
+
Existing method will *not* be overwritten using this method.
|
43
|
+
|
44
|
+
You can also override Devise's send\_devise\_notification method:
|
45
|
+
|
46
|
+
```ruby
|
47
|
+
orchestrator = Evento::Orchestrator.new(User)
|
48
|
+
orchestrator.override_devise_notification do |notification, *devise_params|
|
49
|
+
# your own notification logic here...
|
50
|
+
end
|
51
|
+
```
|
52
|
+
|
53
|
+
The above *will* overwrite the existing method .
|
54
|
+
|
55
|
+
If you're using state\_machines with state\_machines-audit\_trail you can add add after\_commit hooks like so:
|
56
|
+
|
57
|
+
```
|
58
|
+
orchestrator = Evento::Orchestrator.new(Order)
|
59
|
+
orchestrator.after_audit_trail_commit(:unique_name) do |audit_trail_record|
|
60
|
+
# your own code here ... you could for example hook into the handler methods you created earlier with something like the below:
|
61
|
+
# handler = OrderEventHandler.new(audit_trail_record.resource).public_send(event.to_s, your, own, parameters, here)
|
62
|
+
end
|
63
|
+
```
|
64
|
+
|
65
|
+
## Development
|
66
|
+
|
67
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
68
|
+
|
69
|
+
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 tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
70
|
+
|
71
|
+
## Contributing
|
72
|
+
|
73
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/evento.
|
74
|
+
|
75
|
+
## License
|
76
|
+
|
77
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
data/Rakefile
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
require 'bundler/gem_tasks'
|
2
|
+
require 'rake/testtask'
|
3
|
+
|
4
|
+
Rake::TestTask.new(:test) do |t|
|
5
|
+
t.libs << 'test'
|
6
|
+
t.libs << 'lib'
|
7
|
+
t.test_files = FileList['test/**/*_test.rb']
|
8
|
+
end
|
9
|
+
|
10
|
+
task default: :test
|
11
|
+
|
12
|
+
# Adds the Auxilium semver task
|
13
|
+
spec = Gem::Specification.find_by_name 'auxilium'
|
14
|
+
load "#{spec.gem_dir}/lib/tasks/semver.rake"
|
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require 'bundler/setup'
|
4
|
+
require 'evento'
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require 'irb'
|
14
|
+
IRB.start(__FILE__)
|
data/bin/setup
ADDED
data/evento.gemspec
ADDED
@@ -0,0 +1,34 @@
|
|
1
|
+
require_relative 'lib/evento/version'
|
2
|
+
|
3
|
+
Gem::Specification.new do |spec|
|
4
|
+
spec.name = 'evento'
|
5
|
+
spec.version = Evento::VERSION
|
6
|
+
spec.authors = ['Mark Cornelissen']
|
7
|
+
spec.email = ['mark@boxture.com']
|
8
|
+
|
9
|
+
spec.summary = 'Evento helps you use events'
|
10
|
+
spec.description = 'Use Evento to hook into events generated by AASM, state\_machines and Devise'
|
11
|
+
spec.homepage = 'https://code.entropydecelerator.com/components/evento'
|
12
|
+
spec.license = 'MIT'
|
13
|
+
spec.required_ruby_version = Gem::Requirement.new('>= 2.6.5')
|
14
|
+
|
15
|
+
# Specify which files should be added to the gem when it is released.
|
16
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added
|
17
|
+
# into git.
|
18
|
+
spec.files = Dir.chdir(File.expand_path(__dir__)) do
|
19
|
+
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
20
|
+
end
|
21
|
+
|
22
|
+
spec.add_development_dependency 'aasm', '~> 5.0'
|
23
|
+
spec.add_development_dependency 'activerecord', '~> 5.2'
|
24
|
+
spec.add_development_dependency 'auxilium', '~> 0.2'
|
25
|
+
spec.add_development_dependency 'i18n', '~> 1.8'
|
26
|
+
spec.add_development_dependency 'minitest', '~> 5.0'
|
27
|
+
spec.add_development_dependency 'pry', '~> 0.13'
|
28
|
+
spec.add_development_dependency 'rake', '~> 12.0'
|
29
|
+
spec.add_development_dependency 'rubocop', '~> 0.83'
|
30
|
+
spec.add_development_dependency 'sqlite3', '~> 1.4'
|
31
|
+
spec.add_development_dependency 'state_machines', '~> 0.5'
|
32
|
+
spec.add_development_dependency 'state_machines-activerecord', '~> 0.6'
|
33
|
+
spec.add_development_dependency 'state_machines-audit_trail', '~> 2'
|
34
|
+
end
|
@@ -0,0 +1,53 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Evento
|
4
|
+
class Extractor
|
5
|
+
attr_reader :klass
|
6
|
+
|
7
|
+
def initialize(klass)
|
8
|
+
@klass = klass
|
9
|
+
end
|
10
|
+
|
11
|
+
def extract_transaction_log_association
|
12
|
+
reflection = extract_association_reflection(klass, :transaction_log_entries)
|
13
|
+
|
14
|
+
reflection&.klass
|
15
|
+
end
|
16
|
+
|
17
|
+
def extract_audit_trail_association(options = {})
|
18
|
+
name = (options[:name] || :resource_state_transitions).to_sym
|
19
|
+
reflection = extract_association_reflection(klass, name)
|
20
|
+
|
21
|
+
return reflection if options[:reflection]
|
22
|
+
|
23
|
+
reflection&.klass
|
24
|
+
end
|
25
|
+
|
26
|
+
def extract_events(options = {})
|
27
|
+
events = []
|
28
|
+
events += events_from_state_machine.map(&:to_s) if options[:state_machine]
|
29
|
+
events += events_from_devise if options[:devise]
|
30
|
+
events.sort
|
31
|
+
end
|
32
|
+
|
33
|
+
private
|
34
|
+
|
35
|
+
def extract_association_reflection(klass, name)
|
36
|
+
klass.reflect_on_all_associations.find { |a| a.name == name } if klass.respond_to?(:reflect_on_all_associations)
|
37
|
+
end
|
38
|
+
|
39
|
+
def events_from_state_machine
|
40
|
+
if klass.respond_to?(:aasm)
|
41
|
+
klass.aasm.events.map(&:name)
|
42
|
+
elsif klass.respond_to?(:state_machine) && klass.state_machine.respond_to?(:events)
|
43
|
+
klass.state_machine.events.map(&:name)
|
44
|
+
else
|
45
|
+
[]
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
49
|
+
def events_from_devise
|
50
|
+
I18n.t('devise.mailer').keys.map(&:to_s)
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
@@ -0,0 +1,65 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Evento
|
4
|
+
class Orchestrator
|
5
|
+
attr_reader :klass
|
6
|
+
|
7
|
+
def initialize(klass, options = {})
|
8
|
+
@klass = klass
|
9
|
+
@options = options
|
10
|
+
@extractor = nil
|
11
|
+
end
|
12
|
+
|
13
|
+
def after_transaction_log_commit(name, &block)
|
14
|
+
association = extractor.extract_transaction_log_association
|
15
|
+
after_association_commit(association, name, &block)
|
16
|
+
end
|
17
|
+
|
18
|
+
def after_audit_trail_commit(name, &block)
|
19
|
+
association = extractor.extract_audit_trail_association(extract_audit_trail_options)
|
20
|
+
after_association_commit(association, name, &block)
|
21
|
+
end
|
22
|
+
|
23
|
+
def define_event_methods_on(target_klass, options = {}, &block)
|
24
|
+
extractor.extract_events(state_machine: options[:state_machine], devise: options[:devise])
|
25
|
+
.reject { |event_name| target_klass.method_defined?(event_name) }
|
26
|
+
.each do |event_name|
|
27
|
+
target_klass.send(:define_method, event_name, &block)
|
28
|
+
end
|
29
|
+
|
30
|
+
return unless options[:life_cycle]
|
31
|
+
|
32
|
+
%i[create destroy update save].each do |event_name|
|
33
|
+
target_klass.send(:define_method, event_name, &block) unless target_klass.method_defined?(event_name)
|
34
|
+
end
|
35
|
+
end
|
36
|
+
|
37
|
+
def override_devise_notification(&block)
|
38
|
+
# As this is an override, ignore checking if it exists
|
39
|
+
klass.define_method(:send_devise_notification, block)
|
40
|
+
end
|
41
|
+
|
42
|
+
private
|
43
|
+
|
44
|
+
def after_association_commit(association, name, &block)
|
45
|
+
return unless association
|
46
|
+
|
47
|
+
tracker = "#{association.name.underscore.gsub('/',
|
48
|
+
'__')}_after_commit_#{name.to_s.underscore.gsub('/', '__')}".upcase
|
49
|
+
return if self.class.const_defined?(tracker, false)
|
50
|
+
|
51
|
+
association.after_commit(&block)
|
52
|
+
self.class.const_set(tracker, true)
|
53
|
+
end
|
54
|
+
|
55
|
+
def extract_audit_trail_options
|
56
|
+
{ name: @options[:audit_trail_name] }
|
57
|
+
end
|
58
|
+
|
59
|
+
def extractor
|
60
|
+
return @extractor if @extractor
|
61
|
+
|
62
|
+
@extractor = Extractor.new(klass)
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|
data/lib/evento.rb
ADDED
metadata
ADDED
@@ -0,0 +1,225 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: evento
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.7
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Mark Cornelissen
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2022-11-12 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: aasm
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '5.0'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '5.0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: activerecord
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '5.2'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '5.2'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: auxilium
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0.2'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0.2'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: i18n
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '1.8'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '1.8'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: minitest
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '5.0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '5.0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: pry
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0.13'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0.13'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: rake
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '12.0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '12.0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: rubocop
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - "~>"
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0.83'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - "~>"
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0.83'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: sqlite3
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - "~>"
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '1.4'
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - "~>"
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '1.4'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: state_machines
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - "~>"
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '0.5'
|
146
|
+
type: :development
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - "~>"
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '0.5'
|
153
|
+
- !ruby/object:Gem::Dependency
|
154
|
+
name: state_machines-activerecord
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - "~>"
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: '0.6'
|
160
|
+
type: :development
|
161
|
+
prerelease: false
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - "~>"
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: '0.6'
|
167
|
+
- !ruby/object:Gem::Dependency
|
168
|
+
name: state_machines-audit_trail
|
169
|
+
requirement: !ruby/object:Gem::Requirement
|
170
|
+
requirements:
|
171
|
+
- - "~>"
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: '2'
|
174
|
+
type: :development
|
175
|
+
prerelease: false
|
176
|
+
version_requirements: !ruby/object:Gem::Requirement
|
177
|
+
requirements:
|
178
|
+
- - "~>"
|
179
|
+
- !ruby/object:Gem::Version
|
180
|
+
version: '2'
|
181
|
+
description: Use Evento to hook into events generated by AASM, state\_machines and
|
182
|
+
Devise
|
183
|
+
email:
|
184
|
+
- mark@boxture.com
|
185
|
+
executables: []
|
186
|
+
extensions: []
|
187
|
+
extra_rdoc_files: []
|
188
|
+
files:
|
189
|
+
- ".gitignore"
|
190
|
+
- Gemfile
|
191
|
+
- Gemfile.lock
|
192
|
+
- LICENSE.txt
|
193
|
+
- README.md
|
194
|
+
- Rakefile
|
195
|
+
- bin/console
|
196
|
+
- bin/setup
|
197
|
+
- evento.gemspec
|
198
|
+
- lib/evento.rb
|
199
|
+
- lib/evento/extractor.rb
|
200
|
+
- lib/evento/orchestrator.rb
|
201
|
+
- lib/evento/version.rb
|
202
|
+
homepage: https://code.entropydecelerator.com/components/evento
|
203
|
+
licenses:
|
204
|
+
- MIT
|
205
|
+
metadata: {}
|
206
|
+
post_install_message:
|
207
|
+
rdoc_options: []
|
208
|
+
require_paths:
|
209
|
+
- lib
|
210
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
211
|
+
requirements:
|
212
|
+
- - ">="
|
213
|
+
- !ruby/object:Gem::Version
|
214
|
+
version: 2.6.5
|
215
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
216
|
+
requirements:
|
217
|
+
- - ">="
|
218
|
+
- !ruby/object:Gem::Version
|
219
|
+
version: '0'
|
220
|
+
requirements: []
|
221
|
+
rubygems_version: 3.3.7
|
222
|
+
signing_key:
|
223
|
+
specification_version: 4
|
224
|
+
summary: Evento helps you use events
|
225
|
+
test_files: []
|