sqewer 8.0.3 → 8.1.0.pre.1
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 +4 -4
- data/.github/ISSUE_TEMPLATE/bug_report.md +33 -0
- data/.github/ISSUE_TEMPLATE/feature_request.md +20 -0
- data/.github/PULL_REQUEST_TEMPLATE.md +29 -0
- data/.github/workflows/main.yml +36 -0
- data/CHANGELOG.md +4 -0
- data/README.md +2 -2
- data/gemfiles/Gemfile.rails-6.0.x +8 -0
- data/lib/sqewer/version.rb +1 -1
- data/sqewer.gemspec +1 -1
- metadata +24 -21
- data/.gitlab-ci.yml +0 -12
- data/.travis.yml +0 -11
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2e70ce730cb17b406aea473b69ae23be5f47416175b196e2d2dfd0cdda40fdfc
|
|
4
|
+
data.tar.gz: c8e9333070997feee75ed80cded51bbd444ee3bc0b3c5f32f518e7b283989e71
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 34c20b7e17f72cb69d0e505110e1d3f2fd50bc2f6b97411f145cfabcb279b433672a8fbd34d0dc7611dc7447eb2d2d753ae78b98833c976a00aa793a37f5f383
|
|
7
|
+
data.tar.gz: 5038a056984b20d6f5b9b535cceefb54e01ebb3f16060f001133c61a93f4684cda3aacb0b4e18bef9a70be0912310dd4f362737870f0c3da52d283ec0308a115
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: Bug report
|
|
3
|
+
about: Create a report to help us improve
|
|
4
|
+
title: ''
|
|
5
|
+
labels: ''
|
|
6
|
+
assignees: ''
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
**Describe the bug**
|
|
11
|
+
A clear and concise description of what the bug is.
|
|
12
|
+
|
|
13
|
+
**To Reproduce**
|
|
14
|
+
Steps to reproduce the behavior:
|
|
15
|
+
1. Go to '...'
|
|
16
|
+
2. Click on '....'
|
|
17
|
+
3. Scroll down to '....'
|
|
18
|
+
4. See error
|
|
19
|
+
|
|
20
|
+
**Expected behavior**
|
|
21
|
+
A clear and concise description of what you expected to happen.
|
|
22
|
+
|
|
23
|
+
**Screenshots**
|
|
24
|
+
If applicable, add screenshots to help explain your problem.
|
|
25
|
+
|
|
26
|
+
**Desktop (please complete the following information):**
|
|
27
|
+
- OS: [e.g. Ubuntu 20.4]
|
|
28
|
+
- Database/version: [e.g. MySql 5.7]
|
|
29
|
+
- Ruby version: [e.g. Ruby 2.5]
|
|
30
|
+
- Activerecord version: [e.g. Ruby 5.2]
|
|
31
|
+
|
|
32
|
+
**Additional context**
|
|
33
|
+
Add any other context about the problem here.
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: Feature request
|
|
3
|
+
about: Suggest an idea for this project
|
|
4
|
+
title: ''
|
|
5
|
+
labels: ''
|
|
6
|
+
assignees: ''
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
**Is your feature request related to a problem? Please describe.**
|
|
11
|
+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
|
|
12
|
+
|
|
13
|
+
**Describe the solution you'd like**
|
|
14
|
+
A clear and concise description of what you want to happen.
|
|
15
|
+
|
|
16
|
+
**Describe alternatives you've considered**
|
|
17
|
+
A clear and concise description of any alternative solutions or features you've considered.
|
|
18
|
+
|
|
19
|
+
**Additional context**
|
|
20
|
+
Add any other context or screenshots about the feature request here.
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
## Description
|
|
2
|
+
|
|
3
|
+
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
|
|
4
|
+
|
|
5
|
+
Fixes # (issue)
|
|
6
|
+
|
|
7
|
+
## Type of change
|
|
8
|
+
|
|
9
|
+
Please delete options that are not relevant.
|
|
10
|
+
|
|
11
|
+
- [ ] Bug fix (non-breaking change which fixes an issue)
|
|
12
|
+
- [ ] New feature (non-breaking change which adds functionality)
|
|
13
|
+
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
|
|
14
|
+
- [ ] This change requires a documentation update
|
|
15
|
+
|
|
16
|
+
## How Has This Been Tested?
|
|
17
|
+
|
|
18
|
+
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
|
|
19
|
+
|
|
20
|
+
## Checklist:
|
|
21
|
+
|
|
22
|
+
- [ ] My code follows the style guidelines set by rubocop
|
|
23
|
+
- [ ] I have performed a self-review of my own code
|
|
24
|
+
- [ ] I have made corresponding changes to the documentation
|
|
25
|
+
- [ ] My changes generate no new warnings
|
|
26
|
+
- [ ] I have added tests that prove my fix is effective or that my feature works
|
|
27
|
+
- [ ] New and existing unit tests pass locally with my changes
|
|
28
|
+
- [ ] Any dependent changes have been merged and published in downstream modules
|
|
29
|
+
- [ ] I have checked my code and corrected any misspellings
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
name: Ruby
|
|
2
|
+
|
|
3
|
+
on: [push, pull_request]
|
|
4
|
+
|
|
5
|
+
jobs:
|
|
6
|
+
build:
|
|
7
|
+
name: Ruby ${{ matrix.ruby }}, Gemfile ${{ matrix.gemfile }}
|
|
8
|
+
runs-on: ubuntu-latest
|
|
9
|
+
strategy:
|
|
10
|
+
matrix:
|
|
11
|
+
ruby:
|
|
12
|
+
- 3.1
|
|
13
|
+
- 3.0
|
|
14
|
+
- 2.7
|
|
15
|
+
- 2.6
|
|
16
|
+
gemfile:
|
|
17
|
+
- gemfiles/Gemfile.rails-5.0.x
|
|
18
|
+
- gemfiles/Gemfile.rails-5.1.x
|
|
19
|
+
- gemfiles/Gemfile.rails-6.0.x
|
|
20
|
+
env:
|
|
21
|
+
SQS_QUEUE_URL: 'sqlite3://tmp/sqewer.sqlite3'
|
|
22
|
+
AWS_REGION: 'eu-central-1'
|
|
23
|
+
steps:
|
|
24
|
+
- uses: actions/checkout@v2
|
|
25
|
+
- name: Set up Ruby
|
|
26
|
+
uses: ruby/setup-ruby@v1
|
|
27
|
+
with:
|
|
28
|
+
ruby-version: ${{ matrix.ruby }}
|
|
29
|
+
- name: install gems
|
|
30
|
+
run: |
|
|
31
|
+
gem install sqlite3
|
|
32
|
+
gem install bundler
|
|
33
|
+
bundle install --gemfile ${{ matrix.gemfile }}
|
|
34
|
+
- name: Tests
|
|
35
|
+
run: |
|
|
36
|
+
bundle exec rspec --tag "~sqs"
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
|
@@ -133,9 +133,9 @@ include all the keyword arguments needed to instantiate the job when executing.
|
|
|
133
133
|
end
|
|
134
134
|
end
|
|
135
135
|
|
|
136
|
-
Or if you are using
|
|
136
|
+
Or if you are using simple Struct you could inherit your Job from it:
|
|
137
137
|
|
|
138
|
-
class SendMail <
|
|
138
|
+
class SendMail < Struct.new(:to, :body, keyword_init: true)
|
|
139
139
|
def run
|
|
140
140
|
...
|
|
141
141
|
end
|
data/lib/sqewer/version.rb
CHANGED
data/sqewer.gemspec
CHANGED
|
@@ -33,7 +33,6 @@ Gem::Specification.new do |spec|
|
|
|
33
33
|
spec.add_runtime_dependency "aws-sdk-sqs", "~> 1"
|
|
34
34
|
spec.add_runtime_dependency "rack"
|
|
35
35
|
spec.add_runtime_dependency "very_tiny_state_machine"
|
|
36
|
-
spec.add_runtime_dependency "ks"
|
|
37
36
|
spec.add_runtime_dependency "retriable"
|
|
38
37
|
|
|
39
38
|
spec.add_development_dependency "bundler"
|
|
@@ -49,6 +48,7 @@ Gem::Specification.new do |spec|
|
|
|
49
48
|
spec.add_development_dependency "sqlite3"
|
|
50
49
|
spec.add_development_dependency "dotenv"
|
|
51
50
|
spec.add_development_dependency "simplecov"
|
|
51
|
+
spec.add_development_dependency "nokogiri"
|
|
52
52
|
spec.add_development_dependency "appsignal", '~> 2'
|
|
53
53
|
spec.add_development_dependency "pry-byebug"
|
|
54
54
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sqewer
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 8.0.
|
|
4
|
+
version: 8.1.0.pre.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Julik Tarkhanov
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date:
|
|
12
|
+
date: 2022-11-09 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: aws-sdk-sqs
|
|
@@ -53,20 +53,6 @@ dependencies:
|
|
|
53
53
|
- - ">="
|
|
54
54
|
- !ruby/object:Gem::Version
|
|
55
55
|
version: '0'
|
|
56
|
-
- !ruby/object:Gem::Dependency
|
|
57
|
-
name: ks
|
|
58
|
-
requirement: !ruby/object:Gem::Requirement
|
|
59
|
-
requirements:
|
|
60
|
-
- - ">="
|
|
61
|
-
- !ruby/object:Gem::Version
|
|
62
|
-
version: '0'
|
|
63
|
-
type: :runtime
|
|
64
|
-
prerelease: false
|
|
65
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
66
|
-
requirements:
|
|
67
|
-
- - ">="
|
|
68
|
-
- !ruby/object:Gem::Version
|
|
69
|
-
version: '0'
|
|
70
56
|
- !ruby/object:Gem::Dependency
|
|
71
57
|
name: retriable
|
|
72
58
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -207,6 +193,20 @@ dependencies:
|
|
|
207
193
|
- - ">="
|
|
208
194
|
- !ruby/object:Gem::Version
|
|
209
195
|
version: '0'
|
|
196
|
+
- !ruby/object:Gem::Dependency
|
|
197
|
+
name: nokogiri
|
|
198
|
+
requirement: !ruby/object:Gem::Requirement
|
|
199
|
+
requirements:
|
|
200
|
+
- - ">="
|
|
201
|
+
- !ruby/object:Gem::Version
|
|
202
|
+
version: '0'
|
|
203
|
+
type: :development
|
|
204
|
+
prerelease: false
|
|
205
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
206
|
+
requirements:
|
|
207
|
+
- - ">="
|
|
208
|
+
- !ruby/object:Gem::Version
|
|
209
|
+
version: '0'
|
|
210
210
|
- !ruby/object:Gem::Dependency
|
|
211
211
|
name: appsignal
|
|
212
212
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -246,9 +246,11 @@ executables:
|
|
|
246
246
|
extensions: []
|
|
247
247
|
extra_rdoc_files: []
|
|
248
248
|
files:
|
|
249
|
+
- ".github/ISSUE_TEMPLATE/bug_report.md"
|
|
250
|
+
- ".github/ISSUE_TEMPLATE/feature_request.md"
|
|
251
|
+
- ".github/PULL_REQUEST_TEMPLATE.md"
|
|
252
|
+
- ".github/workflows/main.yml"
|
|
249
253
|
- ".gitignore"
|
|
250
|
-
- ".gitlab-ci.yml"
|
|
251
|
-
- ".travis.yml"
|
|
252
254
|
- ".yardopts"
|
|
253
255
|
- CHANGELOG.md
|
|
254
256
|
- Gemfile
|
|
@@ -260,6 +262,7 @@ files:
|
|
|
260
262
|
- example.env
|
|
261
263
|
- gemfiles/Gemfile.rails-5.0.x
|
|
262
264
|
- gemfiles/Gemfile.rails-5.1.x
|
|
265
|
+
- gemfiles/Gemfile.rails-6.0.x
|
|
263
266
|
- lib/sqewer.rb
|
|
264
267
|
- lib/sqewer/atomic_counter.rb
|
|
265
268
|
- lib/sqewer/cli.rb
|
|
@@ -296,11 +299,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
296
299
|
version: 2.6.0
|
|
297
300
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
298
301
|
requirements:
|
|
299
|
-
- - "
|
|
302
|
+
- - ">"
|
|
300
303
|
- !ruby/object:Gem::Version
|
|
301
|
-
version:
|
|
304
|
+
version: 1.3.1
|
|
302
305
|
requirements: []
|
|
303
|
-
rubygems_version: 3.1
|
|
306
|
+
rubygems_version: 3.0.3.1
|
|
304
307
|
signing_key:
|
|
305
308
|
specification_version: 4
|
|
306
309
|
summary: Process jobs from SQS
|
data/.gitlab-ci.yml
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
rake:
|
|
2
|
-
script:
|
|
3
|
-
- git submodule update --init
|
|
4
|
-
- ls -la
|
|
5
|
-
- gem install bundler
|
|
6
|
-
- bundle config --global jobs 4
|
|
7
|
-
- bundle config --global path /cache/gems
|
|
8
|
-
- bundle config build.nokogiri "--use-system-libraries --with-xml2-include=/usr/include/libxml2"
|
|
9
|
-
- bundle check || bundle install
|
|
10
|
-
- bundle exec rake
|
|
11
|
-
tags:
|
|
12
|
-
- ruby
|