rails_event_store 0.6.1 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 69cc1d3ee940054aa247a3effcbc4590a9c87305
4
- data.tar.gz: 40e656548799d5bcf0c1921bbf914d75d07d389f
3
+ metadata.gz: 864d921d38f6fb21e3367cf63f922d1b071f546a
4
+ data.tar.gz: b869c25c67146f161cee08b0d7828d3035e3cb7b
5
5
  SHA512:
6
- metadata.gz: 0637153e87843e2e23cc1705b5e09a2dd997af2116419c5ae4990ce1c5e04bbc95dd4e98a5afbb95756a57cabf43e8ac686861fed714d4e492b5817791e549a7
7
- data.tar.gz: f4741353b9109b2a981c24d900d5e32f2f34ce8d2817265b1577c7bdf7c5be7fb6f937f9e971433664c9c832eb2ed6c09533e9369471e23a3c0c709d604ce1a2
6
+ metadata.gz: fbb62f374d330bd4fe63812c6f14970f142b7c87a9597ae0fa0fa02ac6f4b9be88ff66a75b88d2b38e01a2004591488dede4dcb9696821edd92162c5ad2f7950
7
+ data.tar.gz: 63a7d02a3513884e5775be034f7366524e3e0224188a191a442a31efa307a7657c142d4771d4127dc5a6d1f57b5166a2e481a6b797e54adefcdafdc7f318272a
data/CHANGELOG.md CHANGED
@@ -1,6 +1,10 @@
1
+ ### 0.7.0 (01.06.2016)
2
+
3
+ * Change: ruby_event_store updated to 0.6.0 (adding basic projections support)
4
+
1
5
  ### 0.6.1 (25.05.2016)
2
6
 
3
- * Allow to read events backward PR #32 (bugfix)
7
+ * Fix: Allow to read events backward PR #32 (bugfix)
4
8
 
5
9
  ### 0.6.0 (11.04.2016)
6
10
 
data/Makefile ADDED
@@ -0,0 +1,17 @@
1
+ install-bundler: ## Install gem dependencies
2
+ @echo "Installing gem dependencies"
3
+ @bundle install
4
+
5
+ install: install-bundler ## Prepare current development environment
6
+
7
+ test: ## Run tests
8
+ @echo "Running basic tests - beware: this won't guarantee build pass"
9
+ @bundle exec rspec
10
+
11
+ .PHONY: help
12
+
13
+ help:
14
+ @grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
15
+
16
+ .DEFAULT_GOAL := help
17
+
data/Rakefile CHANGED
@@ -1,6 +1,25 @@
1
1
  require 'bundler/gem_tasks'
2
2
  require 'rspec/core/rake_task'
3
+ require 'pry'
4
+
5
+ EMPTY_DB = 'spec/test.sqlite3'
6
+ DEV_DB = 'tmp/run.sqlite3'
7
+
3
8
  RSpec::Core::RakeTask.new(:spec)
4
9
  task default: :spec
5
10
 
11
+ task :run do
12
+ FileUtils.cp(EMPTY_DB, DEV_DB) unless File.exist?(DEV_DB)
13
+ require 'rails_event_store'
14
+ RailsEventStoreActiveRecord::Event.establish_connection(
15
+ :adapter => 'sqlite3',
16
+ :database => DEV_DB
17
+ )
18
+ pry
19
+ end
20
+
21
+ task :clean do
22
+ FileUtils.rm(DEV_DB) if File.exist?(DEV_DB)
23
+ end
6
24
 
25
+ task start: [:clean, :run]
@@ -1,3 +1,3 @@
1
1
  module RailsEventStore
2
- VERSION = '0.6.1'
2
+ VERSION = '0.7.0'
3
3
  end
@@ -5,6 +5,7 @@ module RailsEventStore
5
5
  Event = RubyEventStore::Event
6
6
  InMemoryRepository = RubyEventStore::InMemoryRepository
7
7
  EventBroker = RubyEventStore::PubSub::Broker
8
+ Projection = RubyEventStore::Projection
8
9
  end
9
10
 
10
11
  require 'rails_event_store/version'
@@ -26,8 +26,8 @@ Gem::Specification.new do |spec|
26
26
  spec.add_development_dependency 'webmock', '~> 1.21'
27
27
  spec.add_development_dependency 'sqlite3'
28
28
 
29
- spec.add_dependency 'ruby_event_store', '~> 0.5.0'
30
- spec.add_dependency 'rails_event_store_active_record', '~> 0.5.1'
29
+ spec.add_dependency 'ruby_event_store', '~> 0.6.0'
30
+ spec.add_dependency 'rails_event_store_active_record', '~> 0.6.0'
31
31
  spec.add_dependency 'aggregate_root', '~> 0.2.1'
32
32
  spec.add_dependency 'activesupport', '>= 3.0'
33
33
  spec.add_dependency 'activemodel', '>= 3.0'
data/tmp/.keep ADDED
File without changes
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_event_store
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - rybex
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2016-05-25 00:00:00.000000000 Z
12
+ date: 2016-06-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -115,28 +115,28 @@ dependencies:
115
115
  requirements:
116
116
  - - "~>"
117
117
  - !ruby/object:Gem::Version
118
- version: 0.5.0
118
+ version: 0.6.0
119
119
  type: :runtime
120
120
  prerelease: false
121
121
  version_requirements: !ruby/object:Gem::Requirement
122
122
  requirements:
123
123
  - - "~>"
124
124
  - !ruby/object:Gem::Version
125
- version: 0.5.0
125
+ version: 0.6.0
126
126
  - !ruby/object:Gem::Dependency
127
127
  name: rails_event_store_active_record
128
128
  requirement: !ruby/object:Gem::Requirement
129
129
  requirements:
130
130
  - - "~>"
131
131
  - !ruby/object:Gem::Version
132
- version: 0.5.1
132
+ version: 0.6.0
133
133
  type: :runtime
134
134
  prerelease: false
135
135
  version_requirements: !ruby/object:Gem::Requirement
136
136
  requirements:
137
137
  - - "~>"
138
138
  - !ruby/object:Gem::Version
139
- version: 0.5.1
139
+ version: 0.6.0
140
140
  - !ruby/object:Gem::Dependency
141
141
  name: aggregate_root
142
142
  requirement: !ruby/object:Gem::Requirement
@@ -193,6 +193,7 @@ files:
193
193
  - CONTRIBUTING.md
194
194
  - Gemfile
195
195
  - LICENSE
196
+ - Makefile
196
197
  - README.md
197
198
  - Rakefile
198
199
  - lib/rails_event_store.rb
@@ -201,6 +202,7 @@ files:
201
202
  - lib/rails_event_store/event_handlers/slack_event_handler.rb
202
203
  - lib/rails_event_store/version.rb
203
204
  - rails_event_store.gemspec
205
+ - tmp/.keep
204
206
  homepage: https://github.com/arkency/rails_event_store
205
207
  licenses: []
206
208
  metadata: {}