flapjack 2.0.0rc1 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -1
- data/CHANGELOG.md +3 -0
- data/lib/flapjack/version.rb +1 -1
- data/src/flapjack/transport.go +16 -9
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b8b84c1f0d1aab16157ab21109ab153f6d3f3d51
|
4
|
+
data.tar.gz: 427af75e0517ce0eda3099b625e0b4258d825b81
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 36decad0e58cae5e9d80b712b05e47e99ff9d5fb792c0655ecb2ed6d2929f213237464c95d233400c235002a3ebe37ff7ffeb9ae26f811d7dfbbd9dab09abb90
|
7
|
+
data.tar.gz: 40ea1e055bdad033af16881a5a61a2218f60780b762797215d792955a5d07d889f1873a44e514ba79c610422335225bc22977b511c210db68fa9724df1b83e20
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
data/lib/flapjack/version.rb
CHANGED
data/src/flapjack/transport.go
CHANGED
@@ -34,15 +34,22 @@ func Dial(address string, database int) (Transport, error) {
|
|
34
34
|
// Send takes an event and sends it over a transport.
|
35
35
|
func (t Transport) Send(event Event) (interface{}, error) {
|
36
36
|
err := event.IsValid()
|
37
|
-
if err
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
return reply, nil
|
45
|
-
} else {
|
37
|
+
if err != nil {
|
38
|
+
return nil, err
|
39
|
+
}
|
40
|
+
|
41
|
+
data, _ := json.Marshal(event)
|
42
|
+
reply, err := t.Connection.Do("LPUSH", "events", data)
|
43
|
+
if err != nil {
|
46
44
|
return nil, err
|
47
45
|
}
|
46
|
+
|
47
|
+
// required for Flapjack v2 -- if the broker is split out as a separate
|
48
|
+
// project, this will need to be optional
|
49
|
+
_, err = t.Connection.Do("LPUSH", "events_actions", "+")
|
50
|
+
if err != nil {
|
51
|
+
return nil, err
|
52
|
+
}
|
53
|
+
|
54
|
+
return reply, nil
|
48
55
|
}
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: flapjack
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lindsay Holmwood
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2016-
|
14
|
+
date: 2016-02-08 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: hiredis
|
@@ -591,9 +591,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
591
591
|
version: '0'
|
592
592
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
593
593
|
requirements:
|
594
|
-
- - "
|
594
|
+
- - ">="
|
595
595
|
- !ruby/object:Gem::Version
|
596
|
-
version:
|
596
|
+
version: '0'
|
597
597
|
requirements: []
|
598
598
|
rubyforge_project:
|
599
599
|
rubygems_version: 2.5.1
|