legion-exceptions 1.1.1 → 1.1.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 +4 -4
- data/.rubocop.yml +3 -2
- data/Gemfile +8 -4
- data/README.md +3 -37
- data/bitbucket-pipelines.yml +66 -9
- data/legion-exceptions.gemspec +5 -10
- data/lib/legion/exceptions.rb +8 -5
- data/lib/legion/exceptions/missing_cache.rb +8 -0
- data/lib/legion/exceptions/missing_data.rb +8 -0
- data/lib/legion/exceptions/missing_transport.rb +8 -0
- data/lib/legion/exceptions/version.rb +1 -1
- metadata +14 -95
- data/.circleci/config.yml +0 -118
- data/Rakefile +0 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: be5c262defb2ed9f88c153d4e67f09e2b4880162ad87604905f3ab2ed38a22d8
|
4
|
+
data.tar.gz: d95a7b816f0a71f598dd39c6ee05527ba3d24690848ecf17c52f8fbdace6e735
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cca9aa13249a2aa0e1248bbdaaaa6fe9a1cbb3ae4a034467c6fcad1850388ae82ca3cfcf3eb73c220861c522410427e9500b2a3b2cdf5116835221b1c22cd3f7
|
7
|
+
data.tar.gz: 9b1f12de55d03b48b797c206f93c739c4571084bbc8eb477c01fc4e2877dc8f1b7a4603fb09eb91799b70eab92b211a275577d45c3af738a032f291cd0655620
|
data/.rubocop.yml
CHANGED
@@ -1,9 +1,10 @@
|
|
1
1
|
Layout/LineLength:
|
2
2
|
Max: 120
|
3
|
-
|
4
|
-
|
3
|
+
Style/FrozenStringLiteralComment:
|
4
|
+
Enabled: false
|
5
5
|
Style/Documentation:
|
6
6
|
Enabled: false
|
7
7
|
AllCops:
|
8
8
|
TargetRubyVersion: 2.5
|
9
9
|
NewCops: enable
|
10
|
+
SuggestExtensions: false
|
data/Gemfile
CHANGED
@@ -1,6 +1,10 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
1
|
source 'https://rubygems.org'
|
4
|
-
|
5
|
-
# Specify your gem's dependencies in legion-exceptions.gemspec
|
6
2
|
gemspec
|
3
|
+
|
4
|
+
group :test do
|
5
|
+
gem 'rake'
|
6
|
+
gem 'rspec'
|
7
|
+
gem 'rspec_junit_formatter'
|
8
|
+
gem 'rubocop'
|
9
|
+
gem 'simplecov'
|
10
|
+
end
|
data/README.md
CHANGED
@@ -1,39 +1,5 @@
|
|
1
1
|
# Legion::Exceptions
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
```ruby
|
8
|
-
gem 'legion-exceptions'
|
9
|
-
```
|
10
|
-
|
11
|
-
And then execute:
|
12
|
-
|
13
|
-
$ bundle
|
14
|
-
|
15
|
-
Or install it yourself as:
|
16
|
-
|
17
|
-
$ gem install legion-exceptions
|
18
|
-
|
19
|
-
## Usage
|
20
|
-
|
21
|
-
TODO: Write usage instructions here
|
22
|
-
|
23
|
-
## Development
|
24
|
-
|
25
|
-
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
26
|
-
|
27
|
-
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
28
|
-
|
29
|
-
## Contributing
|
30
|
-
|
31
|
-
Bug reports and pull requests are welcome on GitHub at https://bitbucket.org/legion-io/legion-exceptions. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
32
|
-
|
33
|
-
## License
|
34
|
-
|
35
|
-
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
36
|
-
|
37
|
-
## Code of Conduct
|
38
|
-
|
39
|
-
Everyone interacting in the Legion::Exceptions project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/legion-exceptions/blob/master/CODE_OF_CONDUCT.md).
|
3
|
+
A simple gem to hold all of the different custom Legion::Exceptions.
|
4
|
+
|
5
|
+
Typically used by the [LegionIO](https://rubygems.org/gems/legionio) gem
|
data/bitbucket-pipelines.yml
CHANGED
@@ -1,17 +1,74 @@
|
|
1
|
-
image: ruby:2.7
|
1
|
+
image: ruby:2.7
|
2
|
+
|
3
|
+
|
4
|
+
definitions:
|
5
|
+
steps:
|
6
|
+
- step: &rubocop
|
7
|
+
name: Rubocop
|
8
|
+
runs-on: self.hosted
|
9
|
+
script:
|
10
|
+
- gem install rubocop rubocop-rspec rubocop-performance rubocop-sequel rubocop-md rubocop-sequel --no-document
|
11
|
+
- rubocop --format junit --out test-reports/junit.xml
|
12
|
+
- step: &rspec
|
13
|
+
name: RSpec 2.7
|
14
|
+
runs-on: self.hosted
|
15
|
+
caches:
|
16
|
+
- bundler
|
17
|
+
script:
|
18
|
+
- gem install bundler rspec rspec_junit_formatter
|
19
|
+
- bundle install
|
20
|
+
- bundle exec rspec --format RspecJunitFormatter --out test-reports/junit.xml
|
21
|
+
caches:
|
22
|
+
bundler: /usr/local/bundle
|
2
23
|
|
3
24
|
pipelines:
|
4
|
-
|
25
|
+
default:
|
26
|
+
- step: *rubocop
|
27
|
+
- step: *rspec
|
28
|
+
- parallel:
|
29
|
+
- step:
|
30
|
+
<<: *rspec
|
31
|
+
name: RSpec 2.5
|
32
|
+
image: ruby:2.5
|
33
|
+
- step:
|
34
|
+
<<: *rspec
|
35
|
+
name: RSpec 2.6
|
36
|
+
image: ruby:2.6
|
37
|
+
- step:
|
38
|
+
<<: *rspec
|
39
|
+
name: RSpec 3
|
40
|
+
image: ruby:3
|
41
|
+
pull-requests:
|
5
42
|
master:
|
43
|
+
- step: *rubocop
|
44
|
+
- step: *rspec
|
45
|
+
- parallel:
|
46
|
+
- step:
|
47
|
+
<<: *rspec
|
48
|
+
name: RSpec 2.5
|
49
|
+
image: ruby:2.5
|
50
|
+
- step:
|
51
|
+
<<: *rspec
|
52
|
+
name: RSpec 2.6
|
53
|
+
image: ruby:2.6
|
54
|
+
- step:
|
55
|
+
<<: *rspec
|
56
|
+
name: RSpec 3
|
57
|
+
image: ruby:3
|
6
58
|
- step:
|
7
|
-
name:
|
59
|
+
name: RubyGems Deployment
|
8
60
|
deployment: RubyGems
|
61
|
+
runs-on: self.hosted
|
9
62
|
script:
|
10
|
-
- gem install
|
11
|
-
-
|
12
|
-
-
|
13
|
-
-
|
14
|
-
-
|
15
|
-
|
63
|
+
- gem install gem-release
|
64
|
+
- (umask 077 ; echo $gem_creds | base64 --decode > ~/.gem/credentials)
|
65
|
+
- gem release --tag --push
|
66
|
+
- git push --tags
|
67
|
+
- gem build
|
68
|
+
# condition:
|
69
|
+
# changesets:
|
70
|
+
# includePaths:
|
71
|
+
# - "lib/legion/**/version.rb"
|
16
72
|
artifacts:
|
17
73
|
- pkg/**
|
74
|
+
- '*.gem'
|
data/legion-exceptions.gemspec
CHANGED
@@ -13,19 +13,14 @@ Gem::Specification.new do |spec|
|
|
13
13
|
spec.summary = 'Used to keep legion exceptions in one place'
|
14
14
|
spec.description = 'All of the different Legion Exceptions'
|
15
15
|
spec.homepage = 'https://bitbucket.org/legion-io/legion-exceptions'
|
16
|
-
spec.
|
17
|
-
spec.
|
16
|
+
spec.metadata['source_code_uri'] = 'https://bitbucket.org/legion-io/legion-exceptions'
|
17
|
+
spec.metadata['documentation_uri'] = 'https://legionio.atlassian.net/wiki/spaces/LEGION/overview'
|
18
|
+
spec.metadata['bug_tracker_uri'] = 'https://legionio.atlassian.net/jira/software/c/projects/EXCEPTIONS'
|
19
|
+
spec.license = 'MIT'
|
20
|
+
spec.required_ruby_version = '>= 2.5.0'
|
18
21
|
|
19
22
|
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
20
23
|
f.match(%r{^(test|spec|features)/})
|
21
24
|
end
|
22
|
-
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
23
25
|
spec.require_paths = ['lib']
|
24
|
-
|
25
|
-
spec.add_development_dependency 'bundler'
|
26
|
-
spec.add_development_dependency 'rake', '~> 10.0'
|
27
|
-
spec.add_development_dependency 'rspec', '~> 3.0'
|
28
|
-
spec.add_development_dependency 'rspec_junit_formatter', '~> 0'
|
29
|
-
spec.add_development_dependency 'rubocop'
|
30
|
-
spec.add_development_dependency 'simplecov', '< 0.18.0'
|
31
26
|
end
|
data/lib/legion/exceptions.rb
CHANGED
@@ -1,10 +1,13 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
3
|
+
require 'legion/exceptions/version'
|
4
|
+
require 'legion/exceptions/handled_task'
|
5
|
+
require 'legion/exceptions/invalidjson'
|
6
|
+
require 'legion/exceptions/missing_argument'
|
7
|
+
require 'legion/exceptions/wrongtype'
|
8
|
+
require 'legion/exceptions/missing_cache'
|
9
|
+
require 'legion/exceptions/missing_data'
|
10
|
+
require 'legion/exceptions/missing_transport'
|
8
11
|
|
9
12
|
module Legion
|
10
13
|
module Exceptions
|
metadata
CHANGED
@@ -1,99 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: legion-exceptions
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Esity
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
12
|
-
dependencies:
|
13
|
-
- !ruby/object:Gem::Dependency
|
14
|
-
name: bundler
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - ">="
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '0'
|
20
|
-
type: :development
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - ">="
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: '0'
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: rake
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - "~>"
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '10.0'
|
34
|
-
type: :development
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - "~>"
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '10.0'
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: rspec
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - "~>"
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: '3.0'
|
48
|
-
type: :development
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - "~>"
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '3.0'
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: rspec_junit_formatter
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - "~>"
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '0'
|
62
|
-
type: :development
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - "~>"
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: '0'
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: rubocop
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - ">="
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: '0'
|
76
|
-
type: :development
|
77
|
-
prerelease: false
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
79
|
-
requirements:
|
80
|
-
- - ">="
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: '0'
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
name: simplecov
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - "<"
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: 0.18.0
|
90
|
-
type: :development
|
91
|
-
prerelease: false
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
93
|
-
requirements:
|
94
|
-
- - "<"
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version: 0.18.0
|
11
|
+
date: 2021-05-27 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
97
13
|
description: All of the different Legion Exceptions
|
98
14
|
email:
|
99
15
|
- matthewdiverson@gmail.com
|
@@ -101,20 +17,20 @@ executables: []
|
|
101
17
|
extensions: []
|
102
18
|
extra_rdoc_files: []
|
103
19
|
files:
|
104
|
-
- ".circleci/config.yml"
|
105
20
|
- ".gitignore"
|
106
21
|
- ".rubocop.yml"
|
107
22
|
- Gemfile
|
108
|
-
- Gemfile.lock
|
109
23
|
- LICENSE.txt
|
110
24
|
- README.md
|
111
|
-
- Rakefile
|
112
25
|
- bitbucket-pipelines.yml
|
113
26
|
- legion-exceptions.gemspec
|
114
27
|
- lib/legion/exceptions.rb
|
115
28
|
- lib/legion/exceptions/handled_task.rb
|
116
29
|
- lib/legion/exceptions/invalidjson.rb
|
117
30
|
- lib/legion/exceptions/missing_argument.rb
|
31
|
+
- lib/legion/exceptions/missing_cache.rb
|
32
|
+
- lib/legion/exceptions/missing_data.rb
|
33
|
+
- lib/legion/exceptions/missing_transport.rb
|
118
34
|
- lib/legion/exceptions/version.rb
|
119
35
|
- lib/legion/exceptions/wrongtype.rb
|
120
36
|
- lib/legion/exceptions/wrongtypes/array.rb
|
@@ -126,8 +42,11 @@ files:
|
|
126
42
|
homepage: https://bitbucket.org/legion-io/legion-exceptions
|
127
43
|
licenses:
|
128
44
|
- MIT
|
129
|
-
metadata:
|
130
|
-
|
45
|
+
metadata:
|
46
|
+
source_code_uri: https://bitbucket.org/legion-io/legion-exceptions
|
47
|
+
documentation_uri: https://legionio.atlassian.net/wiki/spaces/LEGION/overview
|
48
|
+
bug_tracker_uri: https://legionio.atlassian.net/jira/software/c/projects/EXCEPTIONS
|
49
|
+
post_install_message:
|
131
50
|
rdoc_options: []
|
132
51
|
require_paths:
|
133
52
|
- lib
|
@@ -142,8 +61,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
142
61
|
- !ruby/object:Gem::Version
|
143
62
|
version: '0'
|
144
63
|
requirements: []
|
145
|
-
rubygems_version: 3.1.
|
146
|
-
signing_key:
|
64
|
+
rubygems_version: 3.1.6
|
65
|
+
signing_key:
|
147
66
|
specification_version: 4
|
148
67
|
summary: Used to keep legion exceptions in one place
|
149
68
|
test_files: []
|
data/.circleci/config.yml
DELETED
@@ -1,118 +0,0 @@
|
|
1
|
-
version: 2.1
|
2
|
-
orbs:
|
3
|
-
ruby: circleci/ruby@0.2.1
|
4
|
-
sonarcloud: sonarsource/sonarcloud@1.0.1
|
5
|
-
|
6
|
-
jobs:
|
7
|
-
"rubocop":
|
8
|
-
docker:
|
9
|
-
- image: circleci/ruby:2.7-node
|
10
|
-
steps:
|
11
|
-
- checkout
|
12
|
-
- ruby/load-cache
|
13
|
-
- ruby/install-deps
|
14
|
-
- run:
|
15
|
-
name: Run Rubocop
|
16
|
-
command: bundle exec rubocop
|
17
|
-
- ruby/save-cache
|
18
|
-
"ruby-two-five":
|
19
|
-
docker:
|
20
|
-
- image: circleci/ruby:2.5
|
21
|
-
steps:
|
22
|
-
- checkout
|
23
|
-
- ruby/load-cache
|
24
|
-
- run:
|
25
|
-
name: update bundler
|
26
|
-
command: gem update bundler
|
27
|
-
- ruby/install-deps
|
28
|
-
- ruby/run-tests
|
29
|
-
- ruby/save-cache
|
30
|
-
"ruby-two-six":
|
31
|
-
docker:
|
32
|
-
- image: circleci/ruby:2.6
|
33
|
-
steps:
|
34
|
-
- checkout
|
35
|
-
- ruby/load-cache
|
36
|
-
- run:
|
37
|
-
name: update bundler
|
38
|
-
command: gem update bundler
|
39
|
-
- ruby/install-deps
|
40
|
-
- ruby/run-tests
|
41
|
-
- ruby/save-cache
|
42
|
-
"ruby-two-seven":
|
43
|
-
docker:
|
44
|
-
- image: circleci/ruby:2.7
|
45
|
-
steps:
|
46
|
-
- checkout
|
47
|
-
- ruby/load-cache
|
48
|
-
- ruby/install-deps
|
49
|
-
- ruby/run-tests
|
50
|
-
- ruby/save-cache
|
51
|
-
"jruby-nine-two":
|
52
|
-
docker:
|
53
|
-
- image: circleci/jruby:9.2-jre
|
54
|
-
steps:
|
55
|
-
- checkout
|
56
|
-
- run:
|
57
|
-
name: Bundle Install
|
58
|
-
command: bundle install
|
59
|
-
- run:
|
60
|
-
name: Run RSpec
|
61
|
-
command: bundle exec rspec --format progress --format RspecJunitFormatter -o test-results/rspec/results.xml
|
62
|
-
when: always
|
63
|
-
- store_test_results:
|
64
|
-
path: test-results
|
65
|
-
- sonarcloud/scan
|
66
|
-
"jruby-nine-two-e":
|
67
|
-
docker:
|
68
|
-
- image: circleci/jruby:9.2.11-jre
|
69
|
-
steps:
|
70
|
-
- checkout
|
71
|
-
- run:
|
72
|
-
name: Bundle Install
|
73
|
-
command: bundle install
|
74
|
-
- run:
|
75
|
-
name: Run RSpec
|
76
|
-
command: bundle exec rspec --format progress --format RspecJunitFormatter -o test-results/rspec/results.xml
|
77
|
-
when: always
|
78
|
-
- store_test_results:
|
79
|
-
path: test-results
|
80
|
-
"sonarcloud":
|
81
|
-
docker:
|
82
|
-
- image: circleci/ruby:2.7
|
83
|
-
steps:
|
84
|
-
- checkout
|
85
|
-
- ruby/load-cache
|
86
|
-
- ruby/install-deps
|
87
|
-
- ruby/run-tests
|
88
|
-
- run:
|
89
|
-
name: Run Rubocop
|
90
|
-
command: bundle exec rubocop --format=json --out=rubocop-result.json
|
91
|
-
- sonarcloud/scan
|
92
|
-
- ruby/save-cache
|
93
|
-
|
94
|
-
workflows:
|
95
|
-
version: 2
|
96
|
-
rubocop-rspec:
|
97
|
-
jobs:
|
98
|
-
- rubocop
|
99
|
-
- ruby-two-five:
|
100
|
-
requires:
|
101
|
-
- rubocop
|
102
|
-
- ruby-two-six:
|
103
|
-
requires:
|
104
|
-
- ruby-two-five
|
105
|
-
- ruby-two-seven:
|
106
|
-
requires:
|
107
|
-
- ruby-two-five
|
108
|
-
- sonarcloud:
|
109
|
-
requires:
|
110
|
-
- ruby-two-seven
|
111
|
-
- ruby-two-six
|
112
|
-
- jruby-nine-two:
|
113
|
-
requires:
|
114
|
-
- ruby-two-seven
|
115
|
-
- ruby-two-six
|
116
|
-
- jruby-nine-two-e:
|
117
|
-
requires:
|
118
|
-
- jruby-nine-two
|