euston 1.2.4-java → 1.2.5-java
Sign up to get free protection for your applications and to get access to all the features.
- data/euston.gemspec +3 -2
- data/lib/euston/command.rb +7 -2
- data/lib/euston/version.rb +1 -1
- metadata +17 -6
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-
|
3
|
+
s.version = '1.2.5'
|
4
|
+
s.date = '2011-12-13'
|
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']
|
@@ -47,6 +47,7 @@ Gem::Specification.new do |s|
|
|
47
47
|
s.add_dependency 'activesupport', '>= 3.0.10'
|
48
48
|
|
49
49
|
s.add_development_dependency 'fuubar', '~> 0.0.0'
|
50
|
+
s.add_development_dependency 'rake', '~> 0.9.2'
|
50
51
|
s.add_development_dependency 'rspec', '~> 2.6.0'
|
51
52
|
s.add_development_dependency 'uuid', '~> 2.3.0'
|
52
53
|
end
|
data/lib/euston/command.rb
CHANGED
@@ -4,7 +4,8 @@ module Euston
|
|
4
4
|
|
5
5
|
def initialize body, dispatch_at = nil
|
6
6
|
@headers = { :id => Uuid.generate,
|
7
|
-
:type => self.class.to_s.split('::').pop.underscore.to_sym
|
7
|
+
:type => self.class.to_s.split('::').pop.underscore.to_sym,
|
8
|
+
:version => 1 }
|
8
9
|
|
9
10
|
@body = body
|
10
11
|
@headers[:dispatch_at] = dispatch_at unless dispatch_at.nil?
|
@@ -49,7 +50,11 @@ module Euston
|
|
49
50
|
end
|
50
51
|
|
51
52
|
def version
|
52
|
-
|
53
|
+
@headers[:version]
|
54
|
+
end
|
55
|
+
|
56
|
+
def version= value
|
57
|
+
@headers[:version] = value
|
53
58
|
end
|
54
59
|
|
55
60
|
attr_reader :body
|
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.5
|
6
6
|
platform: java
|
7
7
|
authors:
|
8
8
|
- Lee Henson
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2011-
|
13
|
+
date: 2011-12-13 00:00:00.000000000Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: activemodel
|
@@ -46,27 +46,38 @@ dependencies:
|
|
46
46
|
prerelease: false
|
47
47
|
type: :development
|
48
48
|
- !ruby/object:Gem::Dependency
|
49
|
-
name:
|
49
|
+
name: rake
|
50
50
|
version_requirements: &2110 !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - ~>
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
54
|
+
version: 0.9.2
|
55
55
|
none: false
|
56
56
|
requirement: *2110
|
57
57
|
prerelease: false
|
58
58
|
type: :development
|
59
59
|
- !ruby/object:Gem::Dependency
|
60
|
-
name:
|
60
|
+
name: rspec
|
61
61
|
version_requirements: &2126 !ruby/object:Gem::Requirement
|
62
62
|
requirements:
|
63
63
|
- - ~>
|
64
64
|
- !ruby/object:Gem::Version
|
65
|
-
version: 2.
|
65
|
+
version: 2.6.0
|
66
66
|
none: false
|
67
67
|
requirement: *2126
|
68
68
|
prerelease: false
|
69
69
|
type: :development
|
70
|
+
- !ruby/object:Gem::Dependency
|
71
|
+
name: uuid
|
72
|
+
version_requirements: &2142 !ruby/object:Gem::Requirement
|
73
|
+
requirements:
|
74
|
+
- - ~>
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: 2.3.0
|
77
|
+
none: false
|
78
|
+
requirement: *2142
|
79
|
+
prerelease: false
|
80
|
+
type: :development
|
70
81
|
description: ''
|
71
82
|
email:
|
72
83
|
- lee.m.henson@gmail.com
|