euston 1.2.2-java → 1.2.3-java
Sign up to get free protection for your applications and to get access to all the features.
- data/euston.gemspec +2 -2
- data/lib/euston/command.rb +11 -1
- data/lib/euston/version.rb +1 -1
- metadata +17 -13
data/euston.gemspec
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'euston'
|
3
|
-
s.version = '1.2.
|
4
|
-
s.date = '2011-10-
|
3
|
+
s.version = '1.2.3'
|
4
|
+
s.date = '2011-10-24'
|
5
5
|
s.platform = RUBY_PLATFORM.to_s == 'java' ? 'java' : Gem::Platform::RUBY
|
6
6
|
s.authors = ['Lee Henson', 'Guy Boertje']
|
7
7
|
s.email = ['lee.m.henson@gmail.com', 'guyboertje@gmail.com']
|
data/lib/euston/command.rb
CHANGED
@@ -23,7 +23,13 @@ module Euston
|
|
23
23
|
end
|
24
24
|
|
25
25
|
def read_attribute_for_validation key
|
26
|
-
|
26
|
+
match = /^__(.*)/.match(key.to_s)
|
27
|
+
|
28
|
+
if match.nil?
|
29
|
+
@body[key]
|
30
|
+
else
|
31
|
+
headers[match[1].to_sym]
|
32
|
+
end
|
27
33
|
end
|
28
34
|
|
29
35
|
def type
|
@@ -39,5 +45,9 @@ module Euston
|
|
39
45
|
end
|
40
46
|
|
41
47
|
attr_reader :body
|
48
|
+
|
49
|
+
validates :__id, :presence => true, :format => { :with => /^([0-9a-fA-F]){8}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){12}$/ }
|
50
|
+
validates :__type, :presence => true
|
51
|
+
validates :__version, :presence => true, :numericality => { :greater_than => 0, :only_integer => true }
|
42
52
|
end
|
43
53
|
end
|
data/lib/euston/version.rb
CHANGED
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: euston
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 1.2.
|
5
|
+
version: 1.2.3
|
6
6
|
platform: java
|
7
7
|
authors:
|
8
8
|
- Lee Henson
|
@@ -10,62 +10,62 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2011-10-
|
13
|
+
date: 2011-10-24 00:00:00.000000000 +01:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: activemodel
|
18
|
-
version_requirements: &
|
18
|
+
version_requirements: &2202 !ruby/object:Gem::Requirement
|
19
19
|
requirements:
|
20
20
|
- - ! '>='
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 3.0.10
|
23
23
|
none: false
|
24
|
-
requirement: *
|
24
|
+
requirement: *2202
|
25
25
|
prerelease: false
|
26
26
|
type: :runtime
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: activesupport
|
29
|
-
version_requirements: &
|
29
|
+
version_requirements: &2220 !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - ! '>='
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: 3.0.10
|
34
34
|
none: false
|
35
|
-
requirement: *
|
35
|
+
requirement: *2220
|
36
36
|
prerelease: false
|
37
37
|
type: :runtime
|
38
38
|
- !ruby/object:Gem::Dependency
|
39
39
|
name: fuubar
|
40
|
-
version_requirements: &
|
40
|
+
version_requirements: &2236 !ruby/object:Gem::Requirement
|
41
41
|
requirements:
|
42
42
|
- - ~>
|
43
43
|
- !ruby/object:Gem::Version
|
44
44
|
version: 0.0.0
|
45
45
|
none: false
|
46
|
-
requirement: *
|
46
|
+
requirement: *2236
|
47
47
|
prerelease: false
|
48
48
|
type: :development
|
49
49
|
- !ruby/object:Gem::Dependency
|
50
50
|
name: rspec
|
51
|
-
version_requirements: &
|
51
|
+
version_requirements: &2254 !ruby/object:Gem::Requirement
|
52
52
|
requirements:
|
53
53
|
- - ~>
|
54
54
|
- !ruby/object:Gem::Version
|
55
55
|
version: 2.6.0
|
56
56
|
none: false
|
57
|
-
requirement: *
|
57
|
+
requirement: *2254
|
58
58
|
prerelease: false
|
59
59
|
type: :development
|
60
60
|
- !ruby/object:Gem::Dependency
|
61
61
|
name: uuid
|
62
|
-
version_requirements: &
|
62
|
+
version_requirements: &2270 !ruby/object:Gem::Requirement
|
63
63
|
requirements:
|
64
64
|
- - ~>
|
65
65
|
- !ruby/object:Gem::Version
|
66
66
|
version: 2.3.0
|
67
67
|
none: false
|
68
|
-
requirement: *
|
68
|
+
requirement: *2270
|
69
69
|
prerelease: false
|
70
70
|
type: :development
|
71
71
|
description: ''
|
@@ -126,5 +126,9 @@ rubygems_version: 1.5.1
|
|
126
126
|
signing_key:
|
127
127
|
specification_version: 3
|
128
128
|
summary: Cqrs tooling.
|
129
|
-
test_files:
|
129
|
+
test_files:
|
130
|
+
- spec/aggregate_command_map_spec.rb
|
131
|
+
- spec/aggregate_root_samples.rb
|
132
|
+
- spec/aggregate_root_spec.rb
|
133
|
+
- spec/spec_helper.rb
|
130
134
|
...
|