active_domain 0.3.0 → 0.4.1
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a02265a7a34fc534d10f2ed7a35f0834db05da04
|
4
|
+
data.tar.gz: 31f126b37d5aaaa1300f688d8bc6980382d756dc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dba3192886744775174199fe5b12b4e97942675d72f7b50e3abd8ba7e5d3426909f66d16c8eb8184c31714c5d61d0ef9c98bce29c6f68907607001ad747133d9
|
7
|
+
data.tar.gz: 06c8390630e46a981f163f883a9e9417896394643be23f782c6bc2477e5d7a444e600b2a358ed56cf9d6a7b7ddbf1baee3445b4ce6b47ccb8601ee834f4cc967
|
@@ -10,10 +10,8 @@ module ActiveDomain
|
|
10
10
|
end
|
11
11
|
|
12
12
|
def self.store(event)
|
13
|
-
stored_event = ActiveDomain::Event.create!
|
14
|
-
|
15
|
-
created_at: DateTime.now
|
16
|
-
event.add_store_infos store_id: stored_event.id
|
13
|
+
stored_event = ActiveDomain::Event.create!(event: event.class.name, data: event)
|
14
|
+
event.add_store_infos id: stored_event.id, created_at: stored_event.created_at
|
17
15
|
end
|
18
16
|
end
|
19
17
|
end
|
data/lib/active_domain/server.rb
CHANGED
@@ -16,7 +16,7 @@ module ActiveDomain
|
|
16
16
|
ActiveRecord::Base.establish_connection options[:domain_database]
|
17
17
|
ActiveEvent::EventServer.start options
|
18
18
|
drb_uri = URI::Generic.build(options[:drb_server]).to_s
|
19
|
-
DRb.start_service(drb_uri, domain)
|
19
|
+
DRb.start_service(drb_uri, domain, options.fetch(:drb_config, {}))
|
20
20
|
DRb.thread.join
|
21
21
|
rescue Interrupt
|
22
22
|
puts 'Catching Interrupt'
|
@@ -53,6 +53,9 @@ module ActiveDomain
|
|
53
53
|
hostname: '127.0.0.1',
|
54
54
|
port: 8787,
|
55
55
|
},
|
56
|
+
drb_config: {
|
57
|
+
verbose: true,
|
58
|
+
},
|
56
59
|
domain_database: {
|
57
60
|
adapter: 'sqlite3',
|
58
61
|
database: File.expand_path('db/domain.sqlite3', base_path)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_domain
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andreas Reischuck
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-11-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: active_event
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.4.1
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.
|
26
|
+
version: 0.4.1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: activerecord
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|