cyclone_lariat 0.3.5 → 0.3.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1a2cb273b81db1d5340fb4e0082e2d672365ebf75dcdfa25681f18d1d3c1fcb6
4
- data.tar.gz: c5a458e595a79ed1c11b8560fe92eed4c72d6f763bc0912fe6caa4b83c7011ac
3
+ metadata.gz: 1fcb758ada2c6be765e0ff3c5fc3475d88035797a5c36c79b02e7dd284a91da5
4
+ data.tar.gz: 4c9a529a78f69cce1b66d173aeba69e2718fa45993f1cdc1ccd76cffb1458d6c
5
5
  SHA512:
6
- metadata.gz: 7220818e4617f98673116c0f952ae011bb278a7b0bde70f39f7b1d603db5665f1c8667c4242dd20b56be8ed55439554bcbd8fee52de4618a82864820774e0bfe
7
- data.tar.gz: bddaa075da7cafba0037e69e2bdd53520dc6afc257deb2dedf7726ef2beb622dc46b9225c8fdd74e11441f9b03defe0949db4b48044de807f4c8b4c806a56732
6
+ metadata.gz: 9b8a779be033da93f19b757934de2f9637c5f1dba3c97e300c20750e41000fee5d254d38973f934080176ba238636d2cd2d7c01c3ca5d8bbced1a68e352e882e
7
+ data.tar.gz: 787adf37f5ade39c034346c7dc84a1041f8b75404b15df7ba8cd3d5c5c926e62c580b45d1bf49e43a5681550dc299a592957a5c4ac30aac7cad76d04cdc32dc7
data/.rubocop.yml CHANGED
@@ -7,7 +7,7 @@ inherit_mode:
7
7
  - Exclude
8
8
 
9
9
  AllCops:
10
- TargetRubyVersion: 2.6
10
+ TargetRubyVersion: 2.4
11
11
  Exclude:
12
12
  - Rakefile
13
13
  UseCache: true
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- ruby-2.6.0
1
+ ruby-2.4.6
data/CHANGELOG.md CHANGED
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
4
4
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5
5
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
 
7
+ ## [0.3.6] - 2022-02-09
8
+ Changed
9
+ - Downgrade minimum ruby version to 2.4.0
10
+
7
11
  ## [0.3.3] - 2021-07-14
8
12
  Changed
9
13
  - Bugfix of message equality check
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cyclone_lariat (0.3.5)
4
+ cyclone_lariat (0.3.6)
5
5
  aws-sdk-sns
6
6
  aws-sdk-sqs
7
7
  luna_park (~> 0.11)
@@ -9,75 +9,40 @@ PATH
9
9
  GEM
10
10
  remote: https://rubygems.org/
11
11
  specs:
12
- addressable (2.7.0)
12
+ addressable (2.8.0)
13
13
  public_suffix (>= 2.0.2, < 5.0)
14
14
  ast (2.4.2)
15
15
  aws-eventstream (1.2.0)
16
- aws-partitions (1.541.0)
17
- aws-sdk-core (3.124.0)
16
+ aws-partitions (1.553.0)
17
+ aws-sdk-core (3.126.0)
18
18
  aws-eventstream (~> 1, >= 1.0.2)
19
19
  aws-partitions (~> 1, >= 1.525.0)
20
20
  aws-sigv4 (~> 1.1)
21
21
  jmespath (~> 1.0)
22
- aws-sdk-sns (1.49.0)
23
- aws-sdk-core (~> 3, >= 3.122.0)
22
+ aws-sdk-sns (1.51.0)
23
+ aws-sdk-core (~> 3, >= 3.126.0)
24
24
  aws-sigv4 (~> 1.1)
25
- aws-sdk-sqs (1.48.0)
26
- aws-sdk-core (~> 3, >= 3.122.0)
25
+ aws-sdk-sqs (1.50.0)
26
+ aws-sdk-core (~> 3, >= 3.126.0)
27
27
  aws-sigv4 (~> 1.1)
28
28
  aws-sigv4 (1.4.0)
29
29
  aws-eventstream (~> 1, >= 1.0.2)
30
30
  byebug (11.1.3)
31
31
  coderay (1.1.3)
32
- concurrent-ruby (1.1.8)
33
32
  crack (0.4.5)
34
33
  rexml
35
34
  database_cleaner-core (2.0.1)
36
35
  database_cleaner-sequel (2.0.0)
37
36
  database_cleaner-core (~> 2.0.0)
38
37
  sequel
39
- diff-lcs (1.4.4)
40
- docile (1.4.0)
41
- dry-configurable (0.12.1)
42
- concurrent-ruby (~> 1.0)
43
- dry-core (~> 0.5, >= 0.5.0)
44
- dry-container (0.7.2)
45
- concurrent-ruby (~> 1.0)
46
- dry-configurable (~> 0.1, >= 0.1.3)
47
- dry-core (0.5.0)
48
- concurrent-ruby (~> 1.0)
49
- dry-equalizer (0.3.0)
50
- dry-inflector (0.2.0)
51
- dry-initializer (3.0.4)
52
- dry-logic (1.2.0)
53
- concurrent-ruby (~> 1.0)
54
- dry-core (~> 0.5, >= 0.5)
55
- dry-schema (1.6.2)
56
- concurrent-ruby (~> 1.0)
57
- dry-configurable (~> 0.8, >= 0.8.3)
58
- dry-core (~> 0.5, >= 0.5)
59
- dry-initializer (~> 3.0)
60
- dry-logic (~> 1.0)
61
- dry-types (~> 1.5)
62
- dry-types (1.5.1)
63
- concurrent-ruby (~> 1.0)
64
- dry-container (~> 0.3)
65
- dry-core (~> 0.5, >= 0.5)
66
- dry-inflector (~> 0.1, >= 0.1.2)
67
- dry-logic (~> 1.0, >= 1.0.2)
68
- dry-validation (1.6.0)
69
- concurrent-ruby (~> 1.0)
70
- dry-container (~> 0.7, >= 0.7.1)
71
- dry-core (~> 0.4)
72
- dry-equalizer (~> 0.2)
73
- dry-initializer (~> 3.0)
74
- dry-schema (~> 1.5, >= 1.5.2)
38
+ diff-lcs (1.5.0)
39
+ docile (1.3.5)
75
40
  hashdiff (1.0.1)
76
- jmespath (1.4.0)
77
- luna_park (0.11.3)
41
+ jmespath (1.5.0)
42
+ luna_park (0.11.1)
78
43
  method_source (1.0.0)
79
44
  parallel (1.20.1)
80
- parser (3.0.1.1)
45
+ parser (3.1.0.0)
81
46
  ast (~> 2.4.1)
82
47
  pg (1.2.3)
83
48
  pry (0.13.1)
@@ -87,23 +52,23 @@ GEM
87
52
  byebug (~> 11.0)
88
53
  pry (~> 0.13.0)
89
54
  public_suffix (4.0.6)
90
- rainbow (3.0.0)
91
- rake (13.0.3)
92
- regexp_parser (2.1.1)
55
+ rainbow (3.1.1)
56
+ rake (13.0.6)
57
+ regexp_parser (2.2.0)
93
58
  rexml (3.2.5)
94
- rspec (3.10.0)
95
- rspec-core (~> 3.10.0)
96
- rspec-expectations (~> 3.10.0)
97
- rspec-mocks (~> 3.10.0)
98
- rspec-core (3.10.1)
99
- rspec-support (~> 3.10.0)
100
- rspec-expectations (3.10.1)
59
+ rspec (3.11.0)
60
+ rspec-core (~> 3.11.0)
61
+ rspec-expectations (~> 3.11.0)
62
+ rspec-mocks (~> 3.11.0)
63
+ rspec-core (3.11.0)
64
+ rspec-support (~> 3.11.0)
65
+ rspec-expectations (3.11.0)
101
66
  diff-lcs (>= 1.2.0, < 2.0)
102
- rspec-support (~> 3.10.0)
103
- rspec-mocks (3.10.2)
67
+ rspec-support (~> 3.11.0)
68
+ rspec-mocks (3.11.0)
104
69
  diff-lcs (>= 1.2.0, < 2.0)
105
- rspec-support (~> 3.10.0)
106
- rspec-support (3.10.2)
70
+ rspec-support (~> 3.11.0)
71
+ rspec-support (3.11.0)
107
72
  rubocop (0.93.1)
108
73
  parallel (~> 1.10)
109
74
  parser (>= 2.7.1.5)
@@ -113,34 +78,32 @@ GEM
113
78
  rubocop-ast (>= 0.6.0)
114
79
  ruby-progressbar (~> 1.7)
115
80
  unicode-display_width (>= 1.4.0, < 2.0)
116
- rubocop-ast (1.5.0)
117
- parser (>= 3.0.1.1)
81
+ rubocop-ast (1.4.1)
82
+ parser (>= 2.7.1.5)
118
83
  ruby-progressbar (1.11.0)
119
- sequel (5.44.0)
120
- simplecov (0.21.2)
84
+ sequel (5.53.0)
85
+ simplecov (0.18.5)
121
86
  docile (~> 1.1)
122
87
  simplecov-html (~> 0.11)
123
- simplecov_json_formatter (~> 0.1)
124
88
  simplecov-html (0.12.3)
125
- simplecov_json_formatter (0.1.3)
126
89
  timecop (0.9.4)
127
- unicode-display_width (1.7.0)
90
+ unicode-display_width (1.8.0)
128
91
  webmock (3.7.6)
129
92
  addressable (>= 2.3.6)
130
93
  crack (>= 0.3.2)
131
94
  hashdiff (>= 0.4.0, < 2.0.0)
132
- yard (0.9.26)
95
+ webrick (1.7.0)
96
+ yard (0.9.27)
97
+ webrick (~> 1.7.0)
133
98
 
134
99
  PLATFORMS
135
100
  ruby
136
- x86_64-linux
137
101
 
138
102
  DEPENDENCIES
139
103
  bundler (~> 1.17)
140
104
  byebug (~> 11.1)
141
105
  cyclone_lariat!
142
106
  database_cleaner-sequel (~> 2.0)
143
- dry-validation (~> 1.1)
144
107
  pg (~> 1.2)
145
108
  pry (~> 0.13)
146
109
  pry-byebug (~> 3.9)
data/README.md CHANGED
@@ -147,6 +147,7 @@ If you use middleware:
147
147
  ```ruby
148
148
  require 'cyclone_lariat/middleware' # If require: false in Gemfile
149
149
 
150
+
150
151
  class Receiver
151
152
  include Shoryuken::Worker
152
153
 
@@ -13,7 +13,7 @@ Gem::Specification.new do |spec|
13
13
  spec.summary = 'Shoryuken middleware for LunaPark based application.'
14
14
  spec.homepage = 'https://am-team.github.io/cyclone_lariat/#/'
15
15
  spec.license = 'MIT'
16
- spec.required_ruby_version = '>= 2.6.0'
16
+ spec.required_ruby_version = '>= 2.4.0'
17
17
 
18
18
  # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
19
19
  # to allow pushing to a single host or delete this section to allow pushing to any host.
@@ -39,7 +39,6 @@ Gem::Specification.new do |spec|
39
39
  spec.add_development_dependency 'bundler', '~> 1.17'
40
40
  spec.add_development_dependency 'byebug', '~> 11.1'
41
41
  spec.add_development_dependency 'database_cleaner-sequel', '~> 2.0'
42
- spec.add_development_dependency 'dry-validation', '~> 1.1'
43
42
  spec.add_development_dependency 'pg', '~> 1.2'
44
43
  spec.add_development_dependency 'pry', '~> 0.13'
45
44
  spec.add_development_dependency 'pry-byebug', '~> 3.9'
@@ -12,18 +12,17 @@ module CycloneLariat
12
12
  end
13
13
 
14
14
  def to_row(input)
15
- row = {
16
- uuid: input.uuid,
17
- kind: input.kind,
18
- type: input.type,
19
- publisher: input.publisher,
20
- data: JSON.generate(input.data),
21
- client_error_message: input.client_error&.message,
22
- client_error_details: JSON.generate(input.client_error&.details),
23
- version: input.version,
24
- sent_at: input.sent_at
15
+ {
16
+ uuid: input.uuid,
17
+ kind: input.kind,
18
+ type: input.type,
19
+ publisher: input.publisher,
20
+ data: JSON.generate(input.data),
21
+ client_error_message: input.client_error&.message,
22
+ client_error_details: JSON.generate(input.client_error&.details),
23
+ version: input.version,
24
+ sent_at: input.sent_at
25
25
  }
26
- row
27
26
  end
28
27
 
29
28
  private
@@ -45,5 +44,3 @@ module CycloneLariat
45
44
  end
46
45
  end
47
46
  end
48
-
49
-
@@ -31,7 +31,7 @@ module CycloneLariat
31
31
  attr_reader :errors_notifier, :message_notifier, :events_repo
32
32
 
33
33
  def receive_message(body)
34
- body[:Message] ? JSON.parse(body[:Message], symbolize_names: true ) : body
34
+ body[:Message] ? JSON.parse(body[:Message], symbolize_names: true) : body
35
35
  end
36
36
 
37
37
  def store_in_dataset(event)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CycloneLariat
4
- VERSION = '0.3.5'
4
+ VERSION = '0.3.6'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cyclone_lariat
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.5
4
+ version: 0.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Kudrin
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2021-12-16 00:00:00.000000000 Z
12
+ date: 2022-02-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: aws-sdk-sns
@@ -95,20 +95,6 @@ dependencies:
95
95
  - - "~>"
96
96
  - !ruby/object:Gem::Version
97
97
  version: '2.0'
98
- - !ruby/object:Gem::Dependency
99
- name: dry-validation
100
- requirement: !ruby/object:Gem::Requirement
101
- requirements:
102
- - - "~>"
103
- - !ruby/object:Gem::Version
104
- version: '1.1'
105
- type: :development
106
- prerelease: false
107
- version_requirements: !ruby/object:Gem::Requirement
108
- requirements:
109
- - - "~>"
110
- - !ruby/object:Gem::Version
111
- version: '1.1'
112
98
  - !ruby/object:Gem::Dependency
113
99
  name: pg
114
100
  requirement: !ruby/object:Gem::Requirement
@@ -305,7 +291,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
305
291
  requirements:
306
292
  - - ">="
307
293
  - !ruby/object:Gem::Version
308
- version: 2.6.0
294
+ version: 2.4.0
309
295
  required_rubygems_version: !ruby/object:Gem::Requirement
310
296
  requirements:
311
297
  - - ">="