rails_event_store 0.7.0 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/rails_event_store/version.rb +1 -1
- data/lib/rails_event_store.rb +0 -1
- data/rails_event_store.gemspec +3 -4
- metadata +9 -24
- data/lib/rails_event_store/event_handlers/slack_event_handler.rb +0 -41
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 21afcd86ba10c06ffa5e8471e99cca5bf1bf7e70
|
4
|
+
data.tar.gz: b987ebd70a2cafdbe2750a63950f4a54dc4a472e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 507f17dd75244795f758cc91cf76eba073a8bc06e47c0c8b23d427edd337f0c96026144b85f17d9a0309774fd47a696661c68bae5f8d571f503e25b8f3b14e71
|
7
|
+
data.tar.gz: 16d63e0a0c94904a16750360dada67cabfd52f1f61d260c0e0e513aae906af13a5a74e4df2c3299faadb7f070f0fa6aa13e77ad10159890f5a5dbf0cf69f4ca1
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
### 0.8.0 (21.06.2016)
|
2
|
+
|
3
|
+
* Change: ruby_event_store updated to 0.8.0 (dynamic subscriptions)
|
4
|
+
* Change: aggregate_root updated to 0.3.0 (fix circular dependency)
|
5
|
+
* Change: remove SlackEventHandler
|
6
|
+
|
1
7
|
### 0.7.0 (01.06.2016)
|
2
8
|
|
3
9
|
* Change: ruby_event_store updated to 0.6.0 (adding basic projections support)
|
data/lib/rails_event_store.rb
CHANGED
data/rails_event_store.gemspec
CHANGED
@@ -23,12 +23,11 @@ Gem::Specification.new do |spec|
|
|
23
23
|
spec.add_development_dependency 'pry'
|
24
24
|
spec.add_development_dependency 'rspec'
|
25
25
|
spec.add_development_dependency 'rails', '~> 4.2'
|
26
|
-
spec.add_development_dependency 'webmock', '~> 1.21'
|
27
26
|
spec.add_development_dependency 'sqlite3'
|
28
27
|
|
29
|
-
spec.add_dependency 'ruby_event_store', '~> 0.
|
30
|
-
spec.add_dependency 'rails_event_store_active_record', '~> 0.6.
|
31
|
-
spec.add_dependency 'aggregate_root', '~> 0.
|
28
|
+
spec.add_dependency 'ruby_event_store', '~> 0.8.0'
|
29
|
+
spec.add_dependency 'rails_event_store_active_record', '~> 0.6.2'
|
30
|
+
spec.add_dependency 'aggregate_root', '~> 0.3.0'
|
32
31
|
spec.add_dependency 'activesupport', '>= 3.0'
|
33
32
|
spec.add_dependency 'activemodel', '>= 3.0'
|
34
33
|
|
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.
|
4
|
+
version: 0.8.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-06-
|
12
|
+
date: 2016-06-21 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -81,20 +81,6 @@ dependencies:
|
|
81
81
|
- - "~>"
|
82
82
|
- !ruby/object:Gem::Version
|
83
83
|
version: '4.2'
|
84
|
-
- !ruby/object:Gem::Dependency
|
85
|
-
name: webmock
|
86
|
-
requirement: !ruby/object:Gem::Requirement
|
87
|
-
requirements:
|
88
|
-
- - "~>"
|
89
|
-
- !ruby/object:Gem::Version
|
90
|
-
version: '1.21'
|
91
|
-
type: :development
|
92
|
-
prerelease: false
|
93
|
-
version_requirements: !ruby/object:Gem::Requirement
|
94
|
-
requirements:
|
95
|
-
- - "~>"
|
96
|
-
- !ruby/object:Gem::Version
|
97
|
-
version: '1.21'
|
98
84
|
- !ruby/object:Gem::Dependency
|
99
85
|
name: sqlite3
|
100
86
|
requirement: !ruby/object:Gem::Requirement
|
@@ -115,42 +101,42 @@ dependencies:
|
|
115
101
|
requirements:
|
116
102
|
- - "~>"
|
117
103
|
- !ruby/object:Gem::Version
|
118
|
-
version: 0.
|
104
|
+
version: 0.8.0
|
119
105
|
type: :runtime
|
120
106
|
prerelease: false
|
121
107
|
version_requirements: !ruby/object:Gem::Requirement
|
122
108
|
requirements:
|
123
109
|
- - "~>"
|
124
110
|
- !ruby/object:Gem::Version
|
125
|
-
version: 0.
|
111
|
+
version: 0.8.0
|
126
112
|
- !ruby/object:Gem::Dependency
|
127
113
|
name: rails_event_store_active_record
|
128
114
|
requirement: !ruby/object:Gem::Requirement
|
129
115
|
requirements:
|
130
116
|
- - "~>"
|
131
117
|
- !ruby/object:Gem::Version
|
132
|
-
version: 0.6.
|
118
|
+
version: 0.6.2
|
133
119
|
type: :runtime
|
134
120
|
prerelease: false
|
135
121
|
version_requirements: !ruby/object:Gem::Requirement
|
136
122
|
requirements:
|
137
123
|
- - "~>"
|
138
124
|
- !ruby/object:Gem::Version
|
139
|
-
version: 0.6.
|
125
|
+
version: 0.6.2
|
140
126
|
- !ruby/object:Gem::Dependency
|
141
127
|
name: aggregate_root
|
142
128
|
requirement: !ruby/object:Gem::Requirement
|
143
129
|
requirements:
|
144
130
|
- - "~>"
|
145
131
|
- !ruby/object:Gem::Version
|
146
|
-
version: 0.
|
132
|
+
version: 0.3.0
|
147
133
|
type: :runtime
|
148
134
|
prerelease: false
|
149
135
|
version_requirements: !ruby/object:Gem::Requirement
|
150
136
|
requirements:
|
151
137
|
- - "~>"
|
152
138
|
- !ruby/object:Gem::Version
|
153
|
-
version: 0.
|
139
|
+
version: 0.3.0
|
154
140
|
- !ruby/object:Gem::Dependency
|
155
141
|
name: activesupport
|
156
142
|
requirement: !ruby/object:Gem::Requirement
|
@@ -199,7 +185,6 @@ files:
|
|
199
185
|
- lib/rails_event_store.rb
|
200
186
|
- lib/rails_event_store/client.rb
|
201
187
|
- lib/rails_event_store/constants.rb
|
202
|
-
- lib/rails_event_store/event_handlers/slack_event_handler.rb
|
203
188
|
- lib/rails_event_store/version.rb
|
204
189
|
- rails_event_store.gemspec
|
205
190
|
- tmp/.keep
|
@@ -222,7 +207,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
222
207
|
version: '0'
|
223
208
|
requirements: []
|
224
209
|
rubyforge_project:
|
225
|
-
rubygems_version: 2.
|
210
|
+
rubygems_version: 2.5.1
|
226
211
|
signing_key:
|
227
212
|
specification_version: 4
|
228
213
|
summary: Event Store in Ruby
|
@@ -1,41 +0,0 @@
|
|
1
|
-
require 'net/http'
|
2
|
-
require 'json'
|
3
|
-
|
4
|
-
module RailsEventStore
|
5
|
-
module EventHandlers
|
6
|
-
class SlackEventHandler
|
7
|
-
class HTTPClient
|
8
|
-
def post(url, params)
|
9
|
-
uri = URI.parse(url)
|
10
|
-
|
11
|
-
req = Net::HTTP::Post.new(uri)
|
12
|
-
req.set_form_data(params)
|
13
|
-
|
14
|
-
http = Net::HTTP.new(uri.host, uri.port)
|
15
|
-
http.use_ssl = true
|
16
|
-
|
17
|
-
http.request(req)
|
18
|
-
end
|
19
|
-
end
|
20
|
-
|
21
|
-
def initialize(webhook_url)
|
22
|
-
@webhook_url = webhook_url
|
23
|
-
@http_client = HTTPClient.new
|
24
|
-
end
|
25
|
-
|
26
|
-
attr_reader :webhook_url, :http_client
|
27
|
-
|
28
|
-
def handle_event(event)
|
29
|
-
event_name = event.class.name
|
30
|
-
payload = {
|
31
|
-
text: "Event #{event_name} raised.",
|
32
|
-
username: "Rails EventStore Bot",
|
33
|
-
}
|
34
|
-
|
35
|
-
@http_client.post(@webhook_url, {
|
36
|
-
payload: payload.to_json
|
37
|
-
})
|
38
|
-
end
|
39
|
-
end
|
40
|
-
end
|
41
|
-
end
|