evt-view_data-commands 0.1.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 34dce8f67a3978d255c534c79a20f72314bc853f
4
+ data.tar.gz: 64c1bd113de6ba53e02e3f99dc575b5734f807c9
5
+ SHA512:
6
+ metadata.gz: 9720b30dca9cc250ca40c37decf24b06c166dbff42175f2f95f251dbd81eb1104c6d2418c2a3a3a99f56f16dee4b459bd8d81a6ca503a0225205c9def478d850
7
+ data.tar.gz: 870da06dd159af488b93d0d07269053b42b1215a268c50ca45f096d5d2fc477f031fd4cf2b6c7befe18ff23b47ccdaecaeed6aac5fcc78bb342ffa8c7b5fbd6a
@@ -0,0 +1,19 @@
1
+ module ViewData
2
+ module Commands
3
+ module Controls
4
+ module Create
5
+ def self.example(name: nil, identifier: nil, data: nil)
6
+ name ||= Name.example
7
+ identifier ||= Identifier.example
8
+ data ||= Data.example
9
+
10
+ create = ViewData::Commands::Create.new
11
+ create.name = name
12
+ create.identifier = identifier
13
+ create.data = data
14
+ create
15
+ end
16
+ end
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,17 @@
1
+ module ViewData
2
+ module Commands
3
+ module Controls
4
+ module Data
5
+ def self.example
6
+ {
7
+ :some_attribute => 'some-value',
8
+ :other_attribute => 'other-value',
9
+ :outer_attribute => {
10
+ :inner_attribute => 'inner-value'
11
+ }
12
+ }
13
+ end
14
+ end
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,17 @@
1
+ module ViewData
2
+ module Commands
3
+ module Controls
4
+ module Delete
5
+ def self.example(name: nil, identifier: nil)
6
+ name ||= Name.example
7
+ identifier ||= Identifier.example
8
+
9
+ delete = ViewData::Commands::Delete.new
10
+ delete.name = name
11
+ delete.identifier = identifier
12
+ delete
13
+ end
14
+ end
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,7 @@
1
+ module ViewData
2
+ module Commands
3
+ module Controls
4
+ Identifier = Messaging::Controls::ID
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,11 @@
1
+ module ViewData
2
+ module Commands
3
+ module Controls
4
+ module Name
5
+ def self.example
6
+ 'SomeResource'
7
+ end
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,19 @@
1
+ module ViewData
2
+ module Commands
3
+ module Controls
4
+ module Update
5
+ def self.example(name: nil, identifier: nil, data: nil)
6
+ name ||= Name.example
7
+ identifier ||= Identifier.example
8
+ data ||= Data.example
9
+
10
+ update = ViewData::Commands::Update.new
11
+ update.name = name
12
+ update.identifier = identifier
13
+ update.data = data
14
+ update
15
+ end
16
+ end
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,9 @@
1
+ require 'messaging/controls'
2
+
3
+ require 'view_data/commands/controls/data'
4
+ require 'view_data/commands/controls/identifier'
5
+ require 'view_data/commands/controls/name'
6
+
7
+ require 'view_data/commands/controls/create'
8
+ require 'view_data/commands/controls/update'
9
+ require 'view_data/commands/controls/delete'
@@ -0,0 +1,11 @@
1
+ module ViewData
2
+ module Commands
3
+ class Create
4
+ include Messaging::Message
5
+
6
+ attribute :name, String
7
+ attribute :identifier
8
+ attribute :data
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,10 @@
1
+ module ViewData
2
+ module Commands
3
+ class Delete
4
+ include Messaging::Message
5
+
6
+ attribute :name, String
7
+ attribute :identifier
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,11 @@
1
+ module ViewData
2
+ module Commands
3
+ class Update
4
+ include Messaging::Message
5
+
6
+ attribute :name, String
7
+ attribute :identifier
8
+ attribute :data
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,5 @@
1
+ require 'messaging'
2
+
3
+ require 'view_data/commands/create'
4
+ require 'view_data/commands/update'
5
+ require 'view_data/commands/delete'
metadata ADDED
@@ -0,0 +1,82 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: evt-view_data-commands
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - The Eventide Project
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2017-08-04 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: evt-messaging
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: test_bench
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ description: " "
42
+ email: opensource@eventide-project.org
43
+ executables: []
44
+ extensions: []
45
+ extra_rdoc_files: []
46
+ files:
47
+ - lib/view_data/commands.rb
48
+ - lib/view_data/commands/controls.rb
49
+ - lib/view_data/commands/controls/create.rb
50
+ - lib/view_data/commands/controls/data.rb
51
+ - lib/view_data/commands/controls/delete.rb
52
+ - lib/view_data/commands/controls/identifier.rb
53
+ - lib/view_data/commands/controls/name.rb
54
+ - lib/view_data/commands/controls/update.rb
55
+ - lib/view_data/commands/create.rb
56
+ - lib/view_data/commands/delete.rb
57
+ - lib/view_data/commands/update.rb
58
+ homepage: https://github.com/eventide-project/view-data-commands
59
+ licenses:
60
+ - MIT
61
+ metadata: {}
62
+ post_install_message:
63
+ rdoc_options: []
64
+ require_paths:
65
+ - lib
66
+ required_ruby_version: !ruby/object:Gem::Requirement
67
+ requirements:
68
+ - - ">="
69
+ - !ruby/object:Gem::Version
70
+ version: 2.4.0
71
+ required_rubygems_version: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ requirements: []
77
+ rubyforge_project:
78
+ rubygems_version: 2.6.11
79
+ signing_key:
80
+ specification_version: 4
81
+ summary: Message schemas for data-oriented command streams used to populate view databases
82
+ test_files: []