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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9f3204f1692dd5da39dba967c0bbad7e233cadbca2ad0290a079e2b109e9fd33
4
- data.tar.gz: cf5aea80221f27504428b6f153dfd791e1e677c1816ca9fcdd602c863077b4cd
3
+ metadata.gz: e67e18c608d03d9fa6f1e3cff2345dd87eb55f76d7e087e57a75c4ce2b6f591f
4
+ data.tar.gz: '086a420e0dcd1483b346253be2d3a18405f02ee310956ae69501dd47832a1800'
5
5
  SHA512:
6
- metadata.gz: d0ca53279d7299ab5a29d3fe88bad408cab41ac2475acb9b5962bafc7b1623d6ac218372de87df0a394cc491c52507464eb13af544cb248b1400e03bb95d8f1b
7
- data.tar.gz: 93d0075650b3e79f9b954e03d3846aacd82a6b330cb5e63fe6283c5d60d4a83217f5c293a858082359373d6c8db1faf243eeb372da0a2fe171c59b72348d20dd
6
+ metadata.gz: 0fc035f130d5e795c15facde88ab5b2961a188e6c33bd40fa742f8b7700996c6b6a2dabc637b4a9083b4c364e9ed37ba97aca977231051a3410d91adb6fd4657
7
+ data.tar.gz: 4a1e69e9fd30f9c6c1e7d46853849f5db4614c684051ae38c39af0075fad267ad5ecba456c559866bb032f909bbf95bbe838ada29390c6a8b062f881758d8747
@@ -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
- # To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
24
- # change this to (see https://github.com/ruby/setup-ruby#versioning):
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
@@ -7,12 +7,7 @@ require 'dry-types'
7
7
  module Salestation
8
8
  class App
9
9
  module Types
10
- dry_types_version = Gem.loaded_specs['dry-types'].version
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
  }
@@ -115,6 +115,7 @@ module Salestation
115
115
  Accepted = Success.with_code(202)
116
116
  NoContent = Success.with_code(204)
117
117
 
118
+ BadRequest = Error.with_code(400)
118
119
  Unauthorized = Error.with_code(401)
119
120
  Forbidden = Error.with_code(403)
120
121
  NotFound = Error.with_code(404)
@@ -8,12 +8,7 @@ require 'json'
8
8
  module Salestation
9
9
  class Web < Module
10
10
  module Types
11
- dry_types_version = Gem.loaded_specs['dry-types'].version
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.2"
7
+ spec.version = "5.3.3"
8
8
  spec.authors = ["Glia TechMovers"]
9
- spec.email = ["techmovers@glia.com"]
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.2
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-09-22 00:00:00.000000000 Z
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
- - techmovers@glia.com
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.4.10
238
+ rubygems_version: 3.5.3
238
239
  signing_key:
239
240
  specification_version: 4
240
241
  summary: ''