transaction_event_store_mongoid 0.0.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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: fd5781865da3aae37e3f15637c92ad542e2a78cf
4
+ data.tar.gz: e12a7a88da646272ba08685c54446af4cf0e58e6
5
+ SHA512:
6
+ metadata.gz: 0947bf2a6e330656c9254f774e2c33a8162407184400e04a9acc214816b6fe3b333f0a0efb0d48913c36d998c719acf87c4c0d3387916b655a7b0a722723dd4c
7
+ data.tar.gz: b9baf0ed413f22df93b447cb05ad4bff5f29d15863d7ddaa9fbb0f714b3391d1d7173b2de33a66519e5eb14be9c6ab9822b1ad78167759bc232cc13cd229e661
data/.gitignore ADDED
@@ -0,0 +1,12 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
10
+
11
+ # rspec failure tracking
12
+ .rspec_status
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --format documentation
2
+ --color
data/.travis.yml ADDED
@@ -0,0 +1,5 @@
1
+ sudo: false
2
+ language: ruby
3
+ rvm:
4
+ - 2.3.0
5
+ before_install: gem install bundler -v 1.14.6
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in transaction_event_store_mongoid.gemspec
4
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2017 Gareth Andrew
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,41 @@
1
+ # TransactionEventStoreMongoid
2
+
3
+ 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/transaction_event_store_mongoid`. To experiment with that code, run `bin/console` for an interactive prompt.
4
+
5
+ TODO: Delete this and the text above, and describe your gem
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```ruby
12
+ gem 'transaction_event_store_mongoid'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install transaction_event_store_mongoid
22
+
23
+ ## Usage
24
+
25
+ TODO: Write usage instructions here
26
+
27
+ ## Development
28
+
29
+ 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.
30
+
31
+ 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).
32
+
33
+ ## Contributing
34
+
35
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/transaction_event_store_mongoid.
36
+
37
+
38
+ ## License
39
+
40
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
41
+
data/Rakefile ADDED
@@ -0,0 +1,6 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :default => :spec
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "transaction_event_store_mongoid"
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
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,15 @@
1
+ version: '2'
2
+
3
+ services:
4
+ mongo:
5
+ container_name: transaction_event_store_mongo
6
+ image: mongo:3.2
7
+ command: ["--storageEngine", "wiredTiger"]
8
+ ports:
9
+ - "27027:27017"
10
+ logging:
11
+ driver: json-file
12
+ options:
13
+ max-size: '10k'
14
+ max-file: '3'
15
+
@@ -0,0 +1,10 @@
1
+ require 'mongoid'
2
+ require 'transaction_event_store'
3
+ require 'transaction_event_store_mongoid/version'
4
+ require 'transaction_event_store_mongoid/locker'
5
+ require 'transaction_event_store_mongoid/transaction_event'
6
+ require 'transaction_event_store_mongoid/transaction'
7
+ require 'transaction_event_store_mongoid/repository'
8
+
9
+ module TransactionEventStoreMongoid
10
+ end
@@ -0,0 +1,25 @@
1
+ require 'mongoid'
2
+
3
+ module TransactionEventStoreMongoid
4
+ class Lock
5
+ include Mongoid::Document
6
+
7
+ store_in collection: 'event_store_locks'
8
+
9
+ field :_id, type: String, default: ->{ SecureRandom.uuid }, overwrite: true
10
+ field :ts, type: Time
11
+
12
+ def with_lock(stream)
13
+ begin
14
+ lock = self.class.create(_id: stream, ts: Time.now.utc)
15
+ rescue ::Mongo::Error::OperationFailure
16
+ raise ::TransactionEventStore::CannotObtainLock
17
+ end
18
+ yield if block_given?
19
+ ensure
20
+ lock.delete if lock.present?
21
+ end
22
+
23
+ index({ ts: 1 }, { expire_after_seconds: 30 })
24
+ end
25
+ end
@@ -0,0 +1,28 @@
1
+ require 'transaction_event_store_mongoid/lock'
2
+
3
+ module TransactionEventStoreMongoid
4
+ class Locker
5
+ attr_reader :adapter, :timeout, :retry_interval
6
+
7
+ def initialize(timeout: 10, retry_interval: 0.1, adapter: ::TransactionEventStoreMongoid::Lock.new)
8
+ @timeout = timeout
9
+ @retry_interval = retry_interval
10
+ @adapter = adapter
11
+ end
12
+
13
+ def with_lock(stream, &block)
14
+ begin
15
+ start = Time.now
16
+ adapter.with_lock(stream, &block)
17
+ rescue TransactionEventStore::CannotObtainLock
18
+ if (Time.now - start) < timeout
19
+ sleep(retry_interval)
20
+ retry
21
+ else
22
+ raise
23
+ end
24
+ end
25
+ end
26
+
27
+ end
28
+ end
@@ -0,0 +1,169 @@
1
+ module TransactionEventStoreMongoid
2
+ class Repository
3
+ attr_reader :adapter, :locker
4
+
5
+ def initialize(adapter: ::TransactionEventStoreMongoid::Transaction, locker: ::TransactionEventStoreMongoid::Locker.new)
6
+ @adapter = adapter
7
+ @locker = locker
8
+ end
9
+
10
+ def with_lock(stream_name, &block)
11
+ locker.with_lock(stream_name) do
12
+ transaction(stream_name, &block)
13
+ end
14
+ end
15
+
16
+ def transaction(stream_name)
17
+ raise "Already in transaction" if in_transaction?
18
+ start_transaction(stream_name)
19
+ yield
20
+ commit_transaction
21
+ ensure
22
+ @transaction_object = nil
23
+ end
24
+
25
+ def create(event, stream_name)
26
+ if in_transaction?
27
+ assert_transaction_matches_stream(stream_name)
28
+ transaction_object.events.build build_event_model(event)
29
+ else
30
+ create_transaction([event], stream_name)
31
+ end
32
+ event
33
+ end
34
+
35
+ def create_snapshot(snapshot, stream_name)
36
+ if in_transaction?
37
+ assert_transaction_matches_stream(stream_name)
38
+ transaction_object.events.build build_snapshot_model(snapshot)
39
+ else
40
+ adapter.create(
41
+ stream: stream_name,
42
+ events: [build_snapshot_model(snapshot)],
43
+ )
44
+ end
45
+ end
46
+
47
+ def create_transaction(events, stream_name)
48
+ adapter.create(
49
+ stream: stream_name,
50
+ events: events.map(&method(:build_event_model)),
51
+ )
52
+ end
53
+
54
+ def delete_stream(stream_name)
55
+ condition = {stream: stream_name}
56
+ adapter.destroy_all condition
57
+ end
58
+
59
+ def has_event?(event_id)
60
+ adapter.with_event(event_id).exists?
61
+ end
62
+
63
+ def last_stream_snapshot(stream_name)
64
+ build_event_entity(adapter.last_snapshot(stream: stream_name))
65
+ end
66
+
67
+ def last_stream_event(stream_name)
68
+ build_event_entity(adapter.last_stream_event(stream: stream_name))
69
+ end
70
+
71
+ def read_events_forward(stream_name, start_event_id, count)
72
+ read_forwards(adapter.for_stream(stream_name), start_event_id, count)
73
+ end
74
+
75
+ def read_events_backward(stream_name, start_event_id, count)
76
+ read_backwards(adapter.for_stream(stream_name), start_event_id, count)
77
+ end
78
+
79
+ def read_stream_events_forward(stream_name)
80
+ read_forwards(adapter.where(stream: stream_name), :head)
81
+ end
82
+
83
+ def read_stream_events_backward(stream_name)
84
+ read_backwards(adapter.where(stream: stream_name), :head)
85
+ end
86
+
87
+ def read_all_streams_forward(start_event_id, count)
88
+ read_forwards(adapter, start_event_id, count)
89
+ end
90
+
91
+ def read_all_streams_backward(start_event_id, count)
92
+ read_backwards(adapter, start_event_id, count)
93
+ end
94
+
95
+ private
96
+
97
+ attr_reader :transaction_object
98
+
99
+ def start_transaction(stream_name)
100
+ @transaction_object = adapter.build(stream: stream_name)
101
+ end
102
+
103
+ def commit_transaction
104
+ transaction_object.save!
105
+ end
106
+
107
+ def in_transaction?
108
+ @transaction_object.present?
109
+ end
110
+
111
+ def build_event_model(event)
112
+ {
113
+ event_id: event.event_id,
114
+ event_type: event.class,
115
+ data: event.data,
116
+ meta: event.metadata,
117
+ }
118
+ end
119
+
120
+ def build_snapshot_model(event)
121
+ build_event_model(event).merge(
122
+ snapshot: true,
123
+ )
124
+ end
125
+
126
+ #NB: The count parameter is count of transactions and is disabled if nil
127
+ def read_forwards(adapter, start_event_id, count = nil)
128
+ stream = adapter
129
+ unless start_event_id.equal?(:head)
130
+ starting_tx = stream.with_event(start_event_id).first
131
+ starting = starting_tx.events.after(start_event_id)
132
+ stream = stream.where(:ts.gt => starting_tx.ts)
133
+ end
134
+ stream = stream.limit(count) if count&.> 0
135
+
136
+ Array(starting) + stream.asc(:ts).map(&method(:build_event_entities)).flatten(1)
137
+ end
138
+
139
+ #NB: The count parameter is count of transactions and is disabled if nil
140
+ def read_backwards(adapter, start_event_id, count = nil)
141
+ stream = adapter
142
+ unless start_event_id.equal?(:head)
143
+ starting_tx = adapter.with_event(start_event_id).first
144
+ starting = starting_tx.events.before(start_event_id)
145
+ stream = stream.where(:ts.lt => starting_tx.ts)
146
+ end
147
+ stream = stream.limit(count) if count&.> 0
148
+
149
+ Array(starting) + stream.desc(:ts).map { |t| build_event_entities(t).reverse }.flatten(1)
150
+ end
151
+
152
+ def build_event_entity(record)
153
+ return nil unless record
154
+ record.event_type.constantize.new(
155
+ event_id: record.event_id,
156
+ metadata: record.meta.symbolize_keys,
157
+ data: record.data.symbolize_keys,
158
+ )
159
+ end
160
+
161
+ def assert_transaction_matches_stream(stream_name)
162
+ raise "Can only modify a single aggregate during a transaction" unless stream_name == transaction_object.stream
163
+ end
164
+
165
+ def build_event_entities(transaction)
166
+ transaction.events.map(&method(:build_event_entity))
167
+ end
168
+ end
169
+ end
@@ -0,0 +1,75 @@
1
+
2
+ module TransactionEventStoreMongoid
3
+ class Transaction
4
+ include ::Mongoid::Document
5
+ include ::Mongoid::Timestamps::Created::Short
6
+
7
+ store_in collection: 'event_store_transactions'
8
+
9
+ field :stream, type: String
10
+ field :ts, type: BSON::Timestamp, default: -> { BSON::Timestamp.new(0, 0) }
11
+
12
+ embeds_many :events, class_name: 'TransactionEventStoreMongoid::TransactionEvent' do
13
+ def after(event_id)
14
+ events = to_a
15
+ start = events.index {|e| e.event_id == event_id }
16
+ count = events.count - (start + 1)
17
+ events.slice(start + 1, count)
18
+ end
19
+
20
+ def before(event_id)
21
+ events = to_a
22
+ finish = events.index {|e| e.event_id == event_id }
23
+ return [] if finish == 0
24
+ events.slice(0, finish).reverse
25
+ end
26
+ end
27
+
28
+ def last_event
29
+ events.last
30
+ end
31
+
32
+ def last_snapshot
33
+ events.reverse.find(&:snapshot)
34
+ end
35
+
36
+ class << self
37
+ def build(**attrs)
38
+ self.new(**attrs)
39
+ end
40
+
41
+ def for_stream(stream_name)
42
+ where(stream: stream_name)
43
+ end
44
+
45
+ def with_event(event_id)
46
+ where(events: { '$elemMatch': { event_id: event_id } })
47
+ end
48
+
49
+ def last_snapshot(stream:)
50
+ tx = last_snapshot_transaction(stream: stream)
51
+ return nil unless tx.present?
52
+ tx.last_snapshot
53
+ end
54
+
55
+ def last_snapshot_transaction(stream:)
56
+ for_stream(stream).desc(:ts).where(events: { '$elemMatch': { snapshot: true } }).first
57
+ end
58
+
59
+ def last_transaction(stream:)
60
+ where(stream: stream).desc(:ts).first
61
+ end
62
+
63
+ def last_stream_event(stream:)
64
+ tx = last_transaction(stream: stream)
65
+ return nil unless tx.present?
66
+ tx.last_event
67
+ end
68
+ end
69
+
70
+ index({ 'events.event_id': 1 }, { unique: true })
71
+ index({'events.event_id': 1, stream: 1}, { unique: true })
72
+ index(stream: 1, ts: 1, 'events.snapshot': 1)
73
+ index(ts: 1)
74
+ end
75
+ end
@@ -0,0 +1,17 @@
1
+ require 'mongoid'
2
+
3
+ module TransactionEventStoreMongoid
4
+ class TransactionEvent
5
+ include ::Mongoid::Document
6
+
7
+ field :event_id, type: String
8
+ field :event_type, type: String
9
+ field :meta, type: Hash, default: {}
10
+ field :data, type: Hash, default: {}
11
+ field :snapshot, type: Boolean, default: false
12
+
13
+ field :ts, type: BSON::Timestamp, default: -> { BSON::Timestamp.new(0, 0) }
14
+ embedded_in :transaction, class_name: 'TransactionEventStoreMongoid::Transaction'
15
+
16
+ end
17
+ end
@@ -0,0 +1,3 @@
1
+ module TransactionEventStoreMongoid
2
+ VERSION = "0.0.1"
3
+ end
@@ -0,0 +1,34 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'transaction_event_store_mongoid/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "transaction_event_store_mongoid"
8
+ spec.version = TransactionEventStoreMongoid::VERSION
9
+ spec.authors = ["Gareth Andrew"]
10
+ spec.email = ["gingerhendrix@gmail.com"]
11
+
12
+ spec.summary = %q{Mongoid client for transaction_event_store}
13
+ spec.description = %q{Mongoid client for transaction_event_store}
14
+ spec.homepage = "https://github.com/gingerhendrix/transaction_event_store_mongoid"
15
+ spec.license = "MIT"
16
+
17
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
18
+ f.match(%r{^(test|spec|features)/})
19
+ end
20
+ spec.bindir = "exe"
21
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
22
+ spec.require_paths = ["lib"]
23
+
24
+ spec.add_development_dependency "bundler", "~> 1.14"
25
+ spec.add_development_dependency "rake", "~> 10.0"
26
+ spec.add_development_dependency "rspec", "~> 3.0"
27
+ spec.add_development_dependency "pry"
28
+
29
+ spec.add_dependency 'mongoid', '>= 5.1'
30
+ spec.add_dependency 'transaction_event_store', '~> 0.0.1'
31
+ spec.add_dependency 'ruby_event_store', '~> 0.13'
32
+ spec.add_dependency 'activesupport', '>= 3.0'
33
+ spec.add_dependency 'activemodel', '>= 3.0'
34
+ end
metadata ADDED
@@ -0,0 +1,188 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: transaction_event_store_mongoid
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Gareth Andrew
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2017-07-26 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.14'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.14'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '3.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '3.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: pry
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: mongoid
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '5.1'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '5.1'
83
+ - !ruby/object:Gem::Dependency
84
+ name: transaction_event_store
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: 0.0.1
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: 0.0.1
97
+ - !ruby/object:Gem::Dependency
98
+ name: ruby_event_store
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: '0.13'
104
+ type: :runtime
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: '0.13'
111
+ - !ruby/object:Gem::Dependency
112
+ name: activesupport
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '3.0'
118
+ type: :runtime
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '3.0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: activemodel
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '3.0'
132
+ type: :runtime
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '3.0'
139
+ description: Mongoid client for transaction_event_store
140
+ email:
141
+ - gingerhendrix@gmail.com
142
+ executables: []
143
+ extensions: []
144
+ extra_rdoc_files: []
145
+ files:
146
+ - ".gitignore"
147
+ - ".rspec"
148
+ - ".travis.yml"
149
+ - Gemfile
150
+ - LICENSE.txt
151
+ - README.md
152
+ - Rakefile
153
+ - bin/console
154
+ - bin/setup
155
+ - docker-compose.yml
156
+ - lib/transaction_event_store_mongoid.rb
157
+ - lib/transaction_event_store_mongoid/lock.rb
158
+ - lib/transaction_event_store_mongoid/locker.rb
159
+ - lib/transaction_event_store_mongoid/repository.rb
160
+ - lib/transaction_event_store_mongoid/transaction.rb
161
+ - lib/transaction_event_store_mongoid/transaction_event.rb
162
+ - lib/transaction_event_store_mongoid/version.rb
163
+ - transaction_event_store_mongoid.gemspec
164
+ homepage: https://github.com/gingerhendrix/transaction_event_store_mongoid
165
+ licenses:
166
+ - MIT
167
+ metadata: {}
168
+ post_install_message:
169
+ rdoc_options: []
170
+ require_paths:
171
+ - lib
172
+ required_ruby_version: !ruby/object:Gem::Requirement
173
+ requirements:
174
+ - - ">="
175
+ - !ruby/object:Gem::Version
176
+ version: '0'
177
+ required_rubygems_version: !ruby/object:Gem::Requirement
178
+ requirements:
179
+ - - ">="
180
+ - !ruby/object:Gem::Version
181
+ version: '0'
182
+ requirements: []
183
+ rubyforge_project:
184
+ rubygems_version: 2.5.1
185
+ signing_key:
186
+ specification_version: 4
187
+ summary: Mongoid client for transaction_event_store
188
+ test_files: []