euston 1.2.4 → 1.2.5
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 +23 -12
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
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: euston
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,11 +10,11 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2011-
|
13
|
+
date: 2011-12-13 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: activemodel
|
17
|
-
requirement: &
|
17
|
+
requirement: &70240436672520 !ruby/object:Gem::Requirement
|
18
18
|
none: false
|
19
19
|
requirements:
|
20
20
|
- - ! '>='
|
@@ -22,10 +22,10 @@ dependencies:
|
|
22
22
|
version: 3.0.10
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
|
-
version_requirements: *
|
25
|
+
version_requirements: *70240436672520
|
26
26
|
- !ruby/object:Gem::Dependency
|
27
27
|
name: activesupport
|
28
|
-
requirement: &
|
28
|
+
requirement: &70240436670540 !ruby/object:Gem::Requirement
|
29
29
|
none: false
|
30
30
|
requirements:
|
31
31
|
- - ! '>='
|
@@ -33,10 +33,10 @@ dependencies:
|
|
33
33
|
version: 3.0.10
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
|
-
version_requirements: *
|
36
|
+
version_requirements: *70240436670540
|
37
37
|
- !ruby/object:Gem::Dependency
|
38
38
|
name: fuubar
|
39
|
-
requirement: &
|
39
|
+
requirement: &70240436669720 !ruby/object:Gem::Requirement
|
40
40
|
none: false
|
41
41
|
requirements:
|
42
42
|
- - ~>
|
@@ -44,10 +44,21 @@ dependencies:
|
|
44
44
|
version: 0.0.0
|
45
45
|
type: :development
|
46
46
|
prerelease: false
|
47
|
-
version_requirements: *
|
47
|
+
version_requirements: *70240436669720
|
48
|
+
- !ruby/object:Gem::Dependency
|
49
|
+
name: rake
|
50
|
+
requirement: &70240436669040 !ruby/object:Gem::Requirement
|
51
|
+
none: false
|
52
|
+
requirements:
|
53
|
+
- - ~>
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: 0.9.2
|
56
|
+
type: :development
|
57
|
+
prerelease: false
|
58
|
+
version_requirements: *70240436669040
|
48
59
|
- !ruby/object:Gem::Dependency
|
49
60
|
name: rspec
|
50
|
-
requirement: &
|
61
|
+
requirement: &70240437338640 !ruby/object:Gem::Requirement
|
51
62
|
none: false
|
52
63
|
requirements:
|
53
64
|
- - ~>
|
@@ -55,10 +66,10 @@ dependencies:
|
|
55
66
|
version: 2.6.0
|
56
67
|
type: :development
|
57
68
|
prerelease: false
|
58
|
-
version_requirements: *
|
69
|
+
version_requirements: *70240437338640
|
59
70
|
- !ruby/object:Gem::Dependency
|
60
71
|
name: uuid
|
61
|
-
requirement: &
|
72
|
+
requirement: &70240437338180 !ruby/object:Gem::Requirement
|
62
73
|
none: false
|
63
74
|
requirements:
|
64
75
|
- - ~>
|
@@ -66,7 +77,7 @@ dependencies:
|
|
66
77
|
version: 2.3.0
|
67
78
|
type: :development
|
68
79
|
prerelease: false
|
69
|
-
version_requirements: *
|
80
|
+
version_requirements: *70240437338180
|
70
81
|
description: ''
|
71
82
|
email:
|
72
83
|
- lee.m.henson@gmail.com
|