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: eede4bb2ce3b3023a54aa077a8d7435030c3bc08
4
- data.tar.gz: aa0e224f1bfc7d5200ccca9af0b06756348b6fb4
3
+ metadata.gz: a02265a7a34fc534d10f2ed7a35f0834db05da04
4
+ data.tar.gz: 31f126b37d5aaaa1300f688d8bc6980382d756dc
5
5
  SHA512:
6
- metadata.gz: 21cb5c325a92c01c08fea3cf84d3e5990b083e00136d90dffcafc14a555f6bda89127165547961da6d0532661e2f75dc31d4d3c05848d3450616bc9996c48c4f
7
- data.tar.gz: 132a04dbc70cdc319fef1cf1348635559d96381021b0c2a864f47e78386a70aafffd093bbe07796eb8b947ae4506d8eef3d1c8687591b2c3c28745a505a0380f
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! event: event.class.name,
14
- data: event,
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
@@ -21,7 +21,7 @@ module ActiveDomain
21
21
  store event
22
22
  publish event
23
23
  invoke event
24
- event.store_infos[:store_id]
24
+ event.store_infos[:id]
25
25
  end
26
26
 
27
27
  private
@@ -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)
@@ -1,7 +1,7 @@
1
1
  module ActiveDomain
2
2
  # Returns the version of the currently loaded ActiveDomain as a Gem::Version
3
3
  def self.version
4
- Gem::Version.new '0.3.0'
4
+ Gem::Version.new '0.4.1'
5
5
  end
6
6
 
7
7
  module VERSION #:nodoc:
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.3.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-10-15 00:00:00.000000000 Z
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.3.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.3.0
26
+ version: 0.4.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: activerecord
29
29
  requirement: !ruby/object:Gem::Requirement