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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0ea7398f861ed32dc81a2ebc3bf46e34a69b2457
4
- data.tar.gz: 25e571baec4fbcd2cc7404eb49f254bf6b8ab70c
3
+ metadata.gz: b8b84c1f0d1aab16157ab21109ab153f6d3f3d51
4
+ data.tar.gz: 427af75e0517ce0eda3099b625e0b4258d825b81
5
5
  SHA512:
6
- metadata.gz: ab8b5bba15913b850cf817da2478b17e9bee841d17c6660f6c7cbd409b266b05e39391e05019e4d854c2034d7e297e4d6d286d263216b47cba4b4af7ac5d9d57
7
- data.tar.gz: 745eb50a67ba61cbfca7a8315564d4abbf80909daa015f11f7fa2ce1d12189cdc3edb314286f5ba0e1ddd1148b05fdb3d37b42174e872c770bb9176c6eb1c3b4
6
+ metadata.gz: 36decad0e58cae5e9d80b712b05e47e99ff9d5fb792c0655ecb2ed6d2929f213237464c95d233400c235002a3ebe37ff7ffeb9ae26f811d7dfbbd9dab09abb90
7
+ data.tar.gz: 40ea1e055bdad033af16881a5a61a2218f60780b762797215d792955a5d07d889f1873a44e514ba79c610422335225bc22977b511c210db68fa9724df1b83e20
@@ -1,7 +1,7 @@
1
1
  sudo: false
2
2
  language: ruby
3
3
  rvm:
4
- - '2.0.0-p648'
4
+ - '2.0.0-p648' # remove in March 2016, EOL
5
5
  - '2.1.8'
6
6
  - '2.2.4'
7
7
  - '2.3.0'
@@ -1,5 +1,8 @@
1
1
  ## Flapjack Changelog
2
2
 
3
+ # 2.0.0 - 2016-02-08
4
+ - No changes
5
+
3
6
  # 2.0.0rc1 - 2016-01-08
4
7
  - Feature: First release candidate for v2.0.
5
8
  - Feature: Added configurable recovery delay (@necula-01 and @ali-graham)
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
3
  module Flapjack
4
- VERSION = '2.0.0rc1'
4
+ VERSION = '2.0.0'
5
5
  end
6
6
 
@@ -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 == nil {
38
- data, _ := json.Marshal(event)
39
- reply, err := t.Connection.Do("LPUSH", "events", data)
40
- if err != nil {
41
- return nil, err
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.0rc1
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-01-08 00:00:00.000000000 Z
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: 1.3.1
596
+ version: '0'
597
597
  requirements: []
598
598
  rubyforge_project:
599
599
  rubygems_version: 2.5.1