euston 1.2.1-java → 1.2.2-java

Sign up to get free protection for your applications and to get access to all the features.
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.1'
4
- s.date = '2011-10-13'
3
+ s.version = '1.2.2'
4
+ s.date = '2011-10-18'
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']
@@ -42,8 +42,8 @@ Gem::Specification.new do |s|
42
42
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
43
43
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
44
44
 
45
- s.add_dependency 'activemodel', '~> 3.0.9'
46
- s.add_dependency 'activesupport', '~> 3.0.9'
45
+ s.add_dependency 'activemodel', '>= 3.0.10'
46
+ s.add_dependency 'activesupport', '>= 3.0.10'
47
47
 
48
48
  s.add_development_dependency 'fuubar', '~> 0.0.0'
49
49
  s.add_development_dependency 'rspec', '~> 2.6.0'
@@ -71,6 +71,9 @@ module Euston
71
71
  return unless entry
72
72
  aggregate = load_aggregate(entry, *args)
73
73
  end
74
+
75
+ raise Euston::Errors::AggregateNotFoundError if aggregate.nil?
76
+
74
77
  aggregate.log = logger
75
78
  aggregate.consume_command( headers, command )
76
79
  end
@@ -18,10 +18,18 @@ module Euston
18
18
  @headers[:id]
19
19
  end
20
20
 
21
+ def id= value
22
+ @headers[:id] = value
23
+ end
24
+
21
25
  def read_attribute_for_validation key
22
26
  @body[key]
23
27
  end
24
28
 
29
+ def type
30
+ @headers[:type]
31
+ end
32
+
25
33
  def to_hash
26
34
  { :headers => headers, :body => @body }
27
35
  end
data/lib/euston/errors.rb CHANGED
@@ -1,5 +1,6 @@
1
1
  module Euston
2
2
  module Errors
3
3
  class InvalidCommandError < StandardError; end
4
+ class AggregateNotFoundError < StandardError; end
4
5
  end
5
6
  end
@@ -1,3 +1,3 @@
1
1
  module Euston
2
- VERSION = "1.2.1"
2
+ VERSION = "1.2.2"
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: euston
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.2.1
5
+ version: 1.2.2
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 00:00:00.000000000 +01:00
13
+ date: 2011-10-18 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: &2218 !ruby/object:Gem::Requirement
18
+ version_requirements: &2230 !ruby/object:Gem::Requirement
19
19
  requirements:
20
- - - ~>
20
+ - - ! '>='
21
21
  - !ruby/object:Gem::Version
22
- version: 3.0.9
22
+ version: 3.0.10
23
23
  none: false
24
- requirement: *2218
24
+ requirement: *2230
25
25
  prerelease: false
26
26
  type: :runtime
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: activesupport
29
- version_requirements: &2236 !ruby/object:Gem::Requirement
29
+ version_requirements: &2248 !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - ! '>='
32
32
  - !ruby/object:Gem::Version
33
- version: 3.0.9
33
+ version: 3.0.10
34
34
  none: false
35
- requirement: *2236
35
+ requirement: *2248
36
36
  prerelease: false
37
37
  type: :runtime
38
38
  - !ruby/object:Gem::Dependency
39
39
  name: fuubar
40
- version_requirements: &2252 !ruby/object:Gem::Requirement
40
+ version_requirements: &2264 !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: *2252
46
+ requirement: *2264
47
47
  prerelease: false
48
48
  type: :development
49
49
  - !ruby/object:Gem::Dependency
50
50
  name: rspec
51
- version_requirements: &2270 !ruby/object:Gem::Requirement
51
+ version_requirements: &2282 !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: *2270
57
+ requirement: *2282
58
58
  prerelease: false
59
59
  type: :development
60
60
  - !ruby/object:Gem::Dependency
61
61
  name: uuid
62
- version_requirements: &2286 !ruby/object:Gem::Requirement
62
+ version_requirements: &2298 !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: *2286
68
+ requirement: *2298
69
69
  prerelease: false
70
70
  type: :development
71
71
  description: ''