evt-messaging-postgres 0.6.0.0 → 0.7.0.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: 8786da31533ad8571ca2f4af5285070fe3bd4383
4
- data.tar.gz: ffb9f35b70af3ae69df95c1988726a598ea9f8e0
3
+ metadata.gz: b1ec12f8850d52d5abb2732b38bb274edf38eda1
4
+ data.tar.gz: 4e0464c071e713e81ea82b7f3beef78e533367c8
5
5
  SHA512:
6
- metadata.gz: cdd978e7b09a994f1c36064dd714da540eecf3e80eabe3491a790d0a3db0f3c839a5e4de2d012e9b76793771b4ca38f6aafa89814f7f62f51d496293ae8ec1bc
7
- data.tar.gz: 335f52ba47f31994d4f0862c829ddcf35dde09adb4c6e11cdeb3e0ef1b776d735b753d47bfb7d4b61ccbdd15a3f7f4b1ca65a2d235ce2502d845779a311a503b
6
+ metadata.gz: fca74e806bda75c18f03b9961bb6aff3aded188c0dfc8ba040ee0731c5f5de23241d8cecd192d299c70ca326105444d97a39b4209d1d4595c5084000e8fb4071
7
+ data.tar.gz: 7595ad7ea7635967b36e6c6d7b1058575cf5ff1857bc9d428d46bf48b58b73ce749a786a918745e520422436d2adce2a3238934c1f17623488ca40ea5cdcf7dd
@@ -1,6 +1,5 @@
1
+ require 'message_store/postgres'
1
2
  require 'messaging'
2
- require 'event_source/postgres'
3
3
 
4
4
  require 'messaging/postgres/log'
5
- require 'messaging/postgres/stream_name'
6
5
  require 'messaging/postgres/write'
@@ -1,4 +1,4 @@
1
- require 'event_source/postgres/controls'
1
+ require 'message_store/postgres/controls'
2
2
  require 'messaging/controls'
3
3
 
4
4
  require 'messaging/postgres/controls/stream_name'
@@ -1,21 +1,7 @@
1
1
  module Messaging
2
2
  module Postgres
3
3
  module Controls
4
- StreamName = EventSource::Postgres::Controls::StreamName
5
-
6
- module StreamName
7
- module Named
8
- def self.example
9
- Example.new
10
- end
11
-
12
- class Example
13
- include Messaging::Postgres::StreamName
14
-
15
- category :some_category
16
- end
17
- end
18
- end
4
+ StreamName = Messaging::Controls::StreamName
19
5
  end
20
6
  end
21
7
  end
@@ -4,7 +4,7 @@ module Messaging
4
4
  include Messaging::Write
5
5
 
6
6
  def configure(session: nil)
7
- EventSource::Postgres::Write.configure(self, attr_name: :event_writer, session: nil)
7
+ MessageStore::Postgres::Write.configure(self, attr_name: :message_writer, session: nil)
8
8
  end
9
9
  end
10
10
  end
metadata CHANGED
@@ -1,17 +1,17 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: evt-messaging-postgres
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0.0
4
+ version: 0.7.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - The Eventide Project
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-02-05 00:00:00.000000000 Z
11
+ date: 2017-05-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: evt-messaging
14
+ name: evt-message_store-postgres
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - ">="
@@ -25,7 +25,7 @@ dependencies:
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
- name: evt-event_source-postgres
28
+ name: evt-messaging
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - ">="
@@ -64,7 +64,6 @@ files:
64
64
  - lib/messaging/postgres/controls/message.rb
65
65
  - lib/messaging/postgres/controls/stream_name.rb
66
66
  - lib/messaging/postgres/log.rb
67
- - lib/messaging/postgres/stream_name.rb
68
67
  - lib/messaging/postgres/write.rb
69
68
  homepage: https://github.com/eventide-project/messaging-postgres
70
69
  licenses:
@@ -78,7 +77,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
78
77
  requirements:
79
78
  - - ">="
80
79
  - !ruby/object:Gem::Version
81
- version: 2.3.3
80
+ version: 2.4.0
82
81
  required_rubygems_version: !ruby/object:Gem::Requirement
83
82
  requirements:
84
83
  - - ">="
@@ -86,8 +85,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
86
85
  version: '0'
87
86
  requirements: []
88
87
  rubyforge_project:
89
- rubygems_version: 2.5.2
88
+ rubygems_version: 2.6.11
90
89
  signing_key:
91
90
  specification_version: 4
92
- summary: Postgres messaging for Eventide
91
+ summary: Eventide messaging for Postgres
93
92
  test_files: []
@@ -1,60 +0,0 @@
1
- module Messaging
2
- module Postgres
3
- module StreamName
4
- extend self
5
-
6
- def self.included(cls)
7
- cls.extend Macro
8
- end
9
-
10
- def self.activate
11
- target_class ||= Object
12
- macro_module = Macro
13
- return if target_class.is_a? macro_module
14
- target_class.extend(macro_module)
15
- end
16
-
17
- module Macro
18
- def category_macro(category)
19
- category = Casing::Camel.(category, symbol_to_string: true)
20
- self.send :define_method, :category do
21
- @category ||= category
22
- end
23
-
24
- self.send :define_method, :category= do |category|
25
- @category = category
26
- end
27
- end
28
- alias :category :category_macro
29
- end
30
-
31
- def stream_name(id, category=nil, type: nil)
32
- category ||= self.category
33
- EventSource::Postgres::StreamName.stream_name(category, id, type: type)
34
- end
35
-
36
- def category_stream_name(category=nil)
37
- category ||= self.category
38
- category
39
- end
40
-
41
- def command_stream_name(id, category=nil)
42
- category ||= self.category
43
- EventSource::Postgres::StreamName.stream_name(category, id, type: 'command')
44
- end
45
-
46
- def command_category_stream_name(category=nil)
47
- category ||= self.category
48
- EventSource::Postgres::StreamName.stream_name(category, type: 'command')
49
- end
50
-
51
- def self.get_category(stream_name)
52
- EventSource::Postgres::StreamName.get_category(stream_name)
53
- end
54
-
55
- def self.get_id(stream_name)
56
- EventSource::Postgres::StreamName.get_id stream_name
57
- end
58
- end
59
- end
60
- end