eventhub-processor2 1.6.0 → 1.8.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
- SHA1:
3
- metadata.gz: 0c7b6d41b5af0aa6cff6d7e0a543cea5dedaf341
4
- data.tar.gz: e0e774c1b61d3f6e8c72df7e720977cbdc4046c6
2
+ SHA256:
3
+ metadata.gz: ada51c14b34969eea52b154ed1aad5d6d5114354aeab4f3f4ef5a43269f6d3ca
4
+ data.tar.gz: 90c9e9dd2af39915a9f7d7f81e12f260b0a9206ef6fb76c080e7406eb8d2b9d0
5
5
  SHA512:
6
- metadata.gz: 5d930e58655224eadec61c5cc801838b3154664400636dabd2e1d96ef9c5c40eeaec7993db6680a421fe60fbe2410e475f7771abe16e115eb3225990caec6875
7
- data.tar.gz: be8aea5e300ca13840b00d5992ff77acb39826bda54025c48083cca6113906b0e16a1d522c94db34bee55d87df73066e73f7734cbfc88c218f8e2cd75684ed2c
6
+ metadata.gz: 4fc3467735769496ead9fbcd560e8f9085cf79f599738a201042515de769b6b51b00b0c8662f774fd488cfb152c326cf1361e54ad3148517cf9daeb95ec5e9c1
7
+ data.tar.gz: f5a4bb8365be33644b5140de210cdc372ca9ff61b15b69ad33a5efb3c17e57e5e8870f4f5d8fd9cf4ee5957e5b2758f22587fa3a07c4d845d3cabcdd0f49776f
@@ -0,0 +1 @@
1
+ 2.7.0
@@ -9,12 +9,10 @@ os:
9
9
  - linux
10
10
 
11
11
  rvm:
12
- - 2.6.0
13
- - 2.5.3
14
- - 2.5.0
15
- - 2.4.5
16
- - 2.4.3
17
- - 2.3.8
12
+ - 2.7.1
13
+ - 2.6.6
14
+ - 2.5.8
15
+ - 2.4.10
18
16
 
19
17
  env:
20
18
  - secure: R0rBtWClmnJKO+zyAncF6+1qDpZ6JQR+Z6VXzUmWw8MuxUXv732XTNYulY/tTeDW876GofAsOF9QfX/jhF+2ubV8SzM6rKTZS09feATuOWRPtECEaBOPcb0JGYouBNg/Lv4onuXb8KS/9U093sRqiJMfib82iY7QK9bnDPsYoQXtMnI7KBeQNrTV0H4nby3lvbjcpMDhmyg+anOmCP5yepZeS53Qq+C5GHguYivisvhSPmCfONrT303XxFLDo/aOkMDlceeZBDhtcpm5Px3GIwybSI9xRtAnpT73oL1Piazda6mRN7VHoT7YAHKqcJNZDB48HYuTj3Pt3oVVw0v78Cf25caBqXttXflXfB8U3qfVt+94uF0icH34NAnpW9l1B8GXHi6CTr27Hg2ZatWkQCN1rCpcCaW0eM/NoAG6snwTIwr1VvjLWpSW5wwhQgHPyMl+MRlTmCn/UM+eQSwPVhflKpMS1+ah6cbhDrQQF1jDt3dRaLqSnVE4APrafdT90SA3SCG2MGOE+pp+DX528gEsRB34UdX2V67dlwXeRu1eU5vZBR7jZrqwuwTAgSvxEF0eJWC0kgvEfouzuVHhVmmSAcNNHlg2kd0/oyQELyXTsklJghwAupcy4X/GEAyfLW9GAxItjATyV7XyfjmaBmdzHl/5JWeXicoyZ/4+8iE=
@@ -26,7 +24,7 @@ before_install:
26
24
  - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64
27
25
  > ./cc-test-reporter
28
26
  - chmod +x ./cc-test-reporter
29
- - gem install bundler --version '~> 1.17.0'
27
+ - gem install bundler --version '~> 2.1.2'
30
28
 
31
29
  before_script:
32
30
  - "./cc-test-reporter before-build"
@@ -1,5 +1,21 @@
1
1
  # Changelog of EventHub::Processor2
2
2
 
3
+ ## 1.8.0 / 2020-05-05
4
+
5
+ * Increase watchdog cycle time to 60s
6
+ * Upgrade gem and gem dev dependencies
7
+ * Upgrade travis ruby version to test
8
+
9
+ ## 1.7.0 / 2020-02-28
10
+
11
+ * Upgrade dependencies: bundler 2.1, rake 13.0, rspec 3.9, simplecov 0.18
12
+ * status_message always as string for general exception handling
13
+ * fix rspec tests
14
+
15
+ ## 1.6.0 / 2019-02-20
16
+
17
+ * Upgrade dependencies: bunny 2.14, bundler 2.0
18
+
3
19
  ## 1.5.0 / 2018-12-20
4
20
 
5
21
  * Upgrade dependencies: rspec 3.8, bunny 2.12, bundler 1.17, simplecov 0.16
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- eventhub-processor2 (1.6.0)
5
- bunny (~> 2.14)
4
+ eventhub-processor2 (1.8.0)
5
+ bunny (~> 2.15)
6
6
  celluloid (~> 0.17)
7
7
  eventhub-components (~> 0.2)
8
8
  uuidtools (~> 2.1)
@@ -10,9 +10,9 @@ PATH
10
10
  GEM
11
11
  remote: https://rubygems.org/
12
12
  specs:
13
- amq-protocol (2.3.0)
14
- bunny (2.14.0)
15
- amq-protocol (~> 2.3, >= 2.3.0)
13
+ amq-protocol (2.3.1)
14
+ bunny (2.15.0)
15
+ amq-protocol (~> 2.3, >= 2.3.1)
16
16
  celluloid (0.17.4)
17
17
  celluloid-essentials
18
18
  celluloid-extras
@@ -31,32 +31,30 @@ GEM
31
31
  celluloid-supervision (0.20.6)
32
32
  timers (>= 4.1.1)
33
33
  diff-lcs (1.3)
34
- docile (1.3.1)
34
+ docile (1.3.2)
35
35
  eventhub-components (0.2.2)
36
36
  logstash-logger (~> 0.26)
37
- json (2.1.0)
38
37
  logstash-event (1.2.02)
39
38
  logstash-logger (0.26.1)
40
39
  logstash-event (~> 1.2)
41
- rake (12.3.2)
42
- rspec (3.8.0)
43
- rspec-core (~> 3.8.0)
44
- rspec-expectations (~> 3.8.0)
45
- rspec-mocks (~> 3.8.0)
46
- rspec-core (3.8.0)
47
- rspec-support (~> 3.8.0)
48
- rspec-expectations (3.8.2)
40
+ rake (13.0.1)
41
+ rspec (3.9.0)
42
+ rspec-core (~> 3.9.0)
43
+ rspec-expectations (~> 3.9.0)
44
+ rspec-mocks (~> 3.9.0)
45
+ rspec-core (3.9.2)
46
+ rspec-support (~> 3.9.3)
47
+ rspec-expectations (3.9.1)
49
48
  diff-lcs (>= 1.2.0, < 2.0)
50
- rspec-support (~> 3.8.0)
51
- rspec-mocks (3.8.0)
49
+ rspec-support (~> 3.9.0)
50
+ rspec-mocks (3.9.1)
52
51
  diff-lcs (>= 1.2.0, < 2.0)
53
- rspec-support (~> 3.8.0)
54
- rspec-support (3.8.0)
55
- simplecov (0.16.1)
52
+ rspec-support (~> 3.9.0)
53
+ rspec-support (3.9.3)
54
+ simplecov (0.18.5)
56
55
  docile (~> 1.1)
57
- json (>= 1.8, < 3)
58
- simplecov-html (~> 0.10.0)
59
- simplecov-html (0.10.2)
56
+ simplecov-html (~> 0.11)
57
+ simplecov-html (0.12.2)
60
58
  timers (4.3.0)
61
59
  uuidtools (2.1.5)
62
60
 
@@ -64,11 +62,11 @@ PLATFORMS
64
62
  ruby
65
63
 
66
64
  DEPENDENCIES
67
- bundler (~> 2.0)
65
+ bundler (~> 2.1)
68
66
  eventhub-processor2!
69
- rake (~> 12.3)
70
- rspec (~> 3.8)
71
- simplecov (~> 0.16)
67
+ rake (~> 13.0)
68
+ rspec (~> 3.9)
69
+ simplecov (~> 0.18)
72
70
 
73
71
  BUNDLED WITH
74
- 2.0.1
72
+ 2.1.2
@@ -1,4 +1,4 @@
1
- FROM rabbitmq:3.7.7-management
1
+ FROM rabbitmq:3.8.2-management
2
2
 
3
3
  LABEL maintainer="thomas.steiner@ikey.ch"
4
4
 
@@ -80,6 +80,15 @@
80
80
  "auto_delete": false,
81
81
  "internal": false,
82
82
  "arguments": {}
83
+ },
84
+ {
85
+ "name": "an_exchange",
86
+ "vhost": "event_hub",
87
+ "type": "direct",
88
+ "durable": true,
89
+ "auto_delete": false,
90
+ "internal": false,
91
+ "arguments": {}
83
92
  }
84
93
  ],
85
94
  "bindings": [
@@ -106,6 +115,14 @@
106
115
  "destination_type": "queue",
107
116
  "routing_key": "",
108
117
  "arguments": {}
118
+ },
119
+ {
120
+ "source": "an_exchange",
121
+ "vhost": "event_hub",
122
+ "destination": "example.outbound",
123
+ "destination_type": "queue",
124
+ "routing_key": "",
125
+ "arguments": {}
109
126
  }
110
127
  ]
111
128
  }
@@ -4,7 +4,7 @@ services:
4
4
  rabbitmq:
5
5
  build: .
6
6
  container_name: eventhub.rabbitmq
7
- image: eventhub.rabbitmq:1.0
7
+ image: eventhub.rabbitmq:3.8.2
8
8
  ports:
9
9
  - "5672:5672"
10
10
  - "15672:15672"
@@ -26,12 +26,12 @@ Gem::Specification.new do |spec|
26
26
  # spec.required_ruby_version = '~> 2.2.6'
27
27
 
28
28
  spec.add_dependency 'celluloid', '~> 0.17'
29
- spec.add_dependency 'bunny', '~> 2.14'
29
+ spec.add_dependency 'bunny', '~> 2.15'
30
30
  spec.add_dependency 'eventhub-components', '~> 0.2'
31
31
  spec.add_dependency 'uuidtools', '~> 2.1'
32
32
 
33
- spec.add_development_dependency 'bundler', '~> 2.0'
34
- spec.add_development_dependency 'rake', '~> 12.3'
35
- spec.add_development_dependency 'rspec', '~> 3.8'
36
- spec.add_development_dependency 'simplecov', '~> 0.16'
33
+ spec.add_development_dependency 'bundler', '~> 2.1'
34
+ spec.add_development_dependency 'rake', '~> 13.0'
35
+ spec.add_development_dependency 'rspec', '~> 3.9'
36
+ spec.add_development_dependency 'simplecov', '~> 0.18'
37
37
  end
@@ -96,7 +96,7 @@ module EventHub
96
96
  # this catches unexpected exceptions in handle message method
97
97
  # deadletter the message via dispatcher
98
98
  message.status_code = EventHub::STATUS_DEADLETTER
99
- message.status_message = exception
99
+ message.status_message = exception.to_s
100
100
  EventHub.logger.info("-> #{message.to_s} => return exception to dispatcher")
101
101
  response_messages << message
102
102
  end
@@ -124,6 +124,5 @@ module EventHub
124
124
  def publish(args)
125
125
  @actor_publisher.publish(args)
126
126
  end
127
-
128
127
  end
129
128
  end
@@ -111,7 +111,7 @@ module EventHub
111
111
  },
112
112
  processor: {
113
113
  heartbeat_cycle_in_s: 300,
114
- watchdog_cycle_in_s: 15,
114
+ watchdog_cycle_in_s: 60,
115
115
  restart_in_s: 15,
116
116
  listener_queues: [@name]
117
117
  }
@@ -10,7 +10,6 @@ class EventHub::Statistics
10
10
  @mutex = Mutex.new
11
11
  end
12
12
 
13
-
14
13
  def measure(size, &block)
15
14
  begin
16
15
  start = Time.now
@@ -1,3 +1,3 @@
1
1
  module EventHub
2
- VERSION = '1.6.0'.freeze
2
+ VERSION = '1.8.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eventhub-processor2
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.0
4
+ version: 1.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steiner, Thomas
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-02-20 00:00:00.000000000 Z
11
+ date: 2020-05-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: celluloid
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '2.14'
33
+ version: '2.15'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '2.14'
40
+ version: '2.15'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: eventhub-components
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -72,56 +72,56 @@ dependencies:
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '2.0'
75
+ version: '2.1'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: '2.0'
82
+ version: '2.1'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: rake
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: '12.3'
89
+ version: '13.0'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: '12.3'
96
+ version: '13.0'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: rspec
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: '3.8'
103
+ version: '3.9'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: '3.8'
110
+ version: '3.9'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: simplecov
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
115
  - - "~>"
116
116
  - !ruby/object:Gem::Version
117
- version: '0.16'
117
+ version: '0.18'
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
122
  - - "~>"
123
123
  - !ruby/object:Gem::Version
124
- version: '0.16'
124
+ version: '0.18'
125
125
  description: Next generation gem to build ruby based eventhub processor
126
126
  email:
127
127
  - thomas.steiner@ikey.ch
@@ -131,6 +131,7 @@ extra_rdoc_files: []
131
131
  files:
132
132
  - ".gitignore"
133
133
  - ".rspec"
134
+ - ".ruby-version"
134
135
  - ".travis.yml"
135
136
  - CHANGELOG.md
136
137
  - Gemfile
@@ -189,8 +190,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
189
190
  - !ruby/object:Gem::Version
190
191
  version: '0'
191
192
  requirements: []
192
- rubyforge_project:
193
- rubygems_version: 2.6.14
193
+ rubygems_version: 3.1.2
194
194
  signing_key:
195
195
  specification_version: 4
196
196
  summary: Next generation gem to build ruby based eventhub processor