glia-errors 0.15.2 → 0.16.0

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: 48f6a6310b82d72e3d0a635c38839b494fc61dc48157ad1373ae02f2c6615d50
4
- data.tar.gz: 10b23d6c1b11dfb98e238a8bb61a52dbec239aaafa632b030e3f0f766428d46c
3
+ metadata.gz: a06054cd6b58ba940ed3f0b4cc9451b96d6f50ce4acc3cd30e85ab6c3465e2d8
4
+ data.tar.gz: eedb34bf63a25b09cd416dcfc785e3993f81856575a290f411145e9215f5b659
5
5
  SHA512:
6
- metadata.gz: 1d4fdd3e92aa7813263b8bdc127f98de09039d0ad6fb0de0115e623ce47025b341ad7717ce94f18b4e03baea4d785dc3214f18cb24221b1c4dc6aad884c1bb54
7
- data.tar.gz: f340b151ad28ea9c896f97dfc9139672ce145fd2a031b8c809d6920f616d561e4bb88574ccabeb139f33e27ad661ea88929c3c9533a79306ffc0bff26fc31a99
6
+ metadata.gz: 0b8de5872631c896cea9a1eea80a3043fc1314bcebf2725da8674efd34c08e56241fef4fc21232526b8a97e9007031b32e39c12c14b7aae9fed18c2466be8182
7
+ data.tar.gz: 2eb2037a90bd268120d96ff0acb56c22bfb2a48bef6bc7e5991572c41b77302373ea80921a9220d808d38a96cd9e30230f0a708b9ecdc21cbe4489de82528759
data/.rubocop.yml CHANGED
@@ -1,3 +1,6 @@
1
+ require:
2
+ - rubocop-rspec
3
+
1
4
  AllCops:
2
5
  TargetRubyVersion: 2.5
3
6
  NewCops: enable
@@ -15,5 +18,17 @@ Metrics/BlockLength:
15
18
  Exclude:
16
19
  - 'spec/**/*'
17
20
 
21
+ RSpec/DescribeClass:
22
+ Enabled: false
23
+
24
+ RSpec/DescribedClass:
25
+ Enabled: false
26
+
27
+ RSpec/MultipleExpectations:
28
+ Enabled: false
29
+
30
+ RSpec/ExampleLength:
31
+ Enabled: false
32
+
18
33
  Gemspec/RequireMFA:
19
34
  Enabled: false
data/Gemfile CHANGED
@@ -5,7 +5,6 @@ source 'https://rubygems.org'
5
5
  gemspec
6
6
 
7
7
  gem 'dry-validation', '~> 1.10'
8
- gem 'prettier', '~> 0.22'
9
8
  gem 'rake', '~> 13.0'
10
9
  gem 'rspec', '~> 3.10'
11
10
  gem 'rubocop', '~> 1.5'
data/Gemfile.lock CHANGED
@@ -48,7 +48,6 @@ GEM
48
48
  ast (~> 2.4.1)
49
49
  patience_diff (1.2.0)
50
50
  optimist (~> 3.0)
51
- prettier (0.22.0)
52
51
  rainbow (3.1.1)
53
52
  rake (13.0.1)
54
53
  regexp_parser (2.2.1)
@@ -96,7 +95,6 @@ PLATFORMS
96
95
  DEPENDENCIES
97
96
  dry-validation (~> 1.10)
98
97
  glia-errors!
99
- prettier (~> 0.22)
100
98
  rake (~> 13.0)
101
99
  rspec (~> 3.10)
102
100
  rubocop (~> 1.5)
data/README.md CHANGED
@@ -117,8 +117,8 @@ A Github Action will push the `.gem` file to [rubygems.org](https://rubygems.org
117
117
  bundle exec rake spec
118
118
  ```
119
119
 
120
- ### Formatting
120
+ ### Linting
121
121
 
122
122
  ```
123
- bundle exec rake format
123
+ bundle exec rubocop
124
124
  ```
data/Rakefile CHANGED
@@ -11,12 +11,4 @@ RuboCop::RakeTask.new do |task|
11
11
  task.requires << 'rubocop-rspec'
12
12
  end
13
13
 
14
- task default: %i[lint spec]
15
-
16
- task :lint do
17
- sh "rubocop && rbprettier --check '**/*.rb'"
18
- end
19
-
20
- task :format do
21
- sh "rbprettier --write '**/*.rb'"
22
- end
14
+ task default: %i[rubocop spec]
data/glia-errors.gemspec CHANGED
@@ -5,7 +5,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
5
 
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = 'glia-errors'
8
- spec.version = '0.15.2'
8
+ spec.version = '0.16.0'
9
9
  spec.authors = ['Glia TechMovers']
10
10
  spec.email = ['techmovers@glia.com']
11
11
 
@@ -489,6 +489,16 @@ module Glia
489
489
  end
490
490
  end
491
491
 
492
+ class NoMatchingRoutingRuleError < Error
493
+ def initialize(message: nil)
494
+ super(
495
+ type: NO_MATCHING_ROUTING_RULE_ERROR,
496
+ ref: create_ref(NO_MATCHING_ROUTING_RULE_ERROR),
497
+ message: message || 'Matching routing rule not found'
498
+ )
499
+ end
500
+ end
501
+
492
502
  # rubocop:enable Style/Documentation
493
503
  end
494
504
  end
@@ -41,6 +41,7 @@ module Glia
41
41
  FEATURE_DISABLED_ERROR = 'feature_disabled_error'
42
42
  UNSUPPORTED_MEDIA_TYPE_ERROR = 'unsupported_media_type'
43
43
  TOO_MANY_REQUESTS_ERROR = 'too_many_requests'
44
+ NO_MATCHING_ROUTING_RULE_ERROR = 'no_matching_routing_rule_error'
44
45
 
45
46
  # Server errors
46
47
  INTERNAL_SERVER_ERROR = 'internal_server_error'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: glia-errors
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.2
4
+ version: 0.16.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Glia TechMovers
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-11-16 00:00:00.000000000 Z
11
+ date: 2025-03-31 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: ''
14
14
  email:
@@ -18,8 +18,6 @@ extensions: []
18
18
  extra_rdoc_files: []
19
19
  files:
20
20
  - ".gitignore"
21
- - ".prettierignore"
22
- - ".prettierrc"
23
21
  - ".rspec"
24
22
  - ".rubocop.yml"
25
23
  - ".ruby-version"
@@ -36,11 +34,11 @@ files:
36
34
  - lib/glia/errors/mapper.rb
37
35
  - lib/glia/errors/naming.rb
38
36
  - lib/glia/errors/server_errors.rb
39
- homepage:
37
+ homepage:
40
38
  licenses:
41
39
  - MIT
42
40
  metadata: {}
43
- post_install_message:
41
+ post_install_message:
44
42
  rdoc_options: []
45
43
  require_paths:
46
44
  - lib
@@ -58,8 +56,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
58
56
  - !ruby/object:Gem::Version
59
57
  version: '0'
60
58
  requirements: []
61
- rubygems_version: 3.3.5
62
- signing_key:
59
+ rubygems_version: 3.4.20
60
+ signing_key:
63
61
  specification_version: 4
64
62
  summary: Glia REST API errors
65
63
  test_files: []
data/.prettierignore DELETED
@@ -1,2 +0,0 @@
1
- vendor
2
- gemfiles
data/.prettierrc DELETED
@@ -1 +0,0 @@
1
- printWidth: 120