salestation 5.3.2 → 5.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ruby.yml +3 -5
- data/CONTRIBUTING.md +9 -0
- data/lib/salestation/app/errors.rb +5 -0
- data/lib/salestation/app.rb +1 -6
- data/lib/salestation/web/error_mapper.rb +3 -0
- data/lib/salestation/web/responses.rb +1 -0
- data/lib/salestation/web.rb +1 -6
- data/salestation.gemspec +2 -2
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e67e18c608d03d9fa6f1e3cff2345dd87eb55f76d7e087e57a75c4ce2b6f591f
|
4
|
+
data.tar.gz: '086a420e0dcd1483b346253be2d3a18405f02ee310956ae69501dd47832a1800'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0fc035f130d5e795c15facde88ab5b2961a188e6c33bd40fa742f8b7700996c6b6a2dabc637b4a9083b4c364e9ed37ba97aca977231051a3410d91adb6fd4657
|
7
|
+
data.tar.gz: 4a1e69e9fd30f9c6c1e7d46853849f5db4614c684051ae38c39af0075fad267ad5ecba456c559866bb032f909bbf95bbe838ada29390c6a8b062f881758d8747
|
data/.github/workflows/ruby.yml
CHANGED
@@ -15,15 +15,13 @@ jobs:
|
|
15
15
|
runs-on: ubuntu-latest
|
16
16
|
strategy:
|
17
17
|
matrix:
|
18
|
-
ruby-version: ['2.7', '3.0']
|
18
|
+
ruby-version: ['2.7', '3.0', '3.1', '3.2']
|
19
19
|
|
20
20
|
steps:
|
21
21
|
- uses: actions/checkout@v2
|
22
22
|
- name: Set up Ruby
|
23
|
-
|
24
|
-
|
25
|
-
# uses: ruby/setup-ruby@v1
|
26
|
-
uses: ruby/setup-ruby@473e4d8fe5dd94ee328fdfca9f8c9c7afc9dae5e
|
23
|
+
# Automatically get bug fixes and new Ruby versions for ruby/setup-ruby
|
24
|
+
uses: ruby/setup-ruby@v1
|
27
25
|
with:
|
28
26
|
ruby-version: ${{ matrix.ruby-version }}
|
29
27
|
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
|
data/CONTRIBUTING.md
ADDED
@@ -0,0 +1,9 @@
|
|
1
|
+
# Contributing to salestation
|
2
|
+
|
3
|
+
We currently do not accept any contributions from external sources.
|
4
|
+
|
5
|
+
The code is still open source and if you wish to add any changes, feel free to fork it and add changes to your fork.
|
6
|
+
|
7
|
+
Issues for any security-related bugs found are still welcome, but we offer no guarantees on whether or when they will be acted upon.
|
8
|
+
|
9
|
+
For any exceptional cases, please contact us at open-source@glia.com.
|
@@ -52,6 +52,11 @@ module Salestation
|
|
52
52
|
attribute? :message, Types::Strict::String
|
53
53
|
attribute? :debug_message, Types::Strict::String
|
54
54
|
end
|
55
|
+
|
56
|
+
class BadRequest < Error
|
57
|
+
attribute? :message, Types::Strict::String
|
58
|
+
attribute? :debug_message, Types::Strict::String
|
59
|
+
end
|
55
60
|
end
|
56
61
|
end
|
57
62
|
end
|
data/lib/salestation/app.rb
CHANGED
@@ -7,12 +7,7 @@ require 'dry-types'
|
|
7
7
|
module Salestation
|
8
8
|
class App
|
9
9
|
module Types
|
10
|
-
|
11
|
-
if dry_types_version < Gem::Version.new('0.15.0')
|
12
|
-
include Dry::Types.module
|
13
|
-
else
|
14
|
-
include Dry::Types()
|
15
|
-
end
|
10
|
+
include Dry::Types()
|
16
11
|
end
|
17
12
|
|
18
13
|
def initialize(env:, hooks: {})
|
@@ -31,6 +31,9 @@ module Salestation
|
|
31
31
|
App::Errors::UnsupportedMediaType => -> (error) {
|
32
32
|
Responses::UnsupportedMediaType.new(message: error.message, debug_message: error.debug_message, base_error: error.base_error)
|
33
33
|
},
|
34
|
+
App::Errors::BadRequest => -> (error) {
|
35
|
+
Responses::BadRequest.new(message: error.message, debug_message: error.debug_message, base_error: error.base_error)
|
36
|
+
},
|
34
37
|
App::Errors::RequestEntityTooLarge => -> (error) {
|
35
38
|
Responses::RequestEntityTooLarge.new(message: error.message, debug_message: error.debug_message, base_error: error.base_error)
|
36
39
|
}
|
data/lib/salestation/web.rb
CHANGED
@@ -8,12 +8,7 @@ require 'json'
|
|
8
8
|
module Salestation
|
9
9
|
class Web < Module
|
10
10
|
module Types
|
11
|
-
|
12
|
-
if dry_types_version < Gem::Version.new('0.15.0')
|
13
|
-
include Dry::Types.module
|
14
|
-
else
|
15
|
-
include Dry::Types()
|
16
|
-
end
|
11
|
+
include Dry::Types()
|
17
12
|
end
|
18
13
|
|
19
14
|
def initialize(errors: {})
|
data/salestation.gemspec
CHANGED
@@ -4,9 +4,9 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = "salestation"
|
7
|
-
spec.version = "5.3.
|
7
|
+
spec.version = "5.3.3"
|
8
8
|
spec.authors = ["Glia TechMovers"]
|
9
|
-
spec.email = ["
|
9
|
+
spec.email = ["open-source@glia.com"]
|
10
10
|
|
11
11
|
spec.summary = %q{}
|
12
12
|
spec.description = %q{}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: salestation
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.3.
|
4
|
+
version: 5.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Glia TechMovers
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-12-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -180,7 +180,7 @@ dependencies:
|
|
180
180
|
version: '0'
|
181
181
|
description: ''
|
182
182
|
email:
|
183
|
-
-
|
183
|
+
- open-source@glia.com
|
184
184
|
executables: []
|
185
185
|
extensions: []
|
186
186
|
extra_rdoc_files: []
|
@@ -190,6 +190,7 @@ files:
|
|
190
190
|
- ".gitignore"
|
191
191
|
- ".rspec"
|
192
192
|
- ".yardopts"
|
193
|
+
- CONTRIBUTING.md
|
193
194
|
- Gemfile
|
194
195
|
- LICENSE.txt
|
195
196
|
- README.md
|
@@ -234,7 +235,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
234
235
|
- !ruby/object:Gem::Version
|
235
236
|
version: '0'
|
236
237
|
requirements: []
|
237
|
-
rubygems_version: 3.
|
238
|
+
rubygems_version: 3.5.3
|
238
239
|
signing_key:
|
239
240
|
specification_version: 4
|
240
241
|
summary: ''
|