legion-exceptions 1.0.1 → 1.1.2

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: c7fe7965512555841248caf84487806f316527140e4cd7dc930b2dcb6c12ec52
4
- data.tar.gz: b345c016258257c7c2394a588457df79a3ed507e6f2ba6a1e7a6f5126cb38546
3
+ metadata.gz: '088c230a67d26014550e7a986021b66150af0d52d9c72526bac2a209e63344fe'
4
+ data.tar.gz: 6f23875d1fb8404bb5123af22ee1a891ecda5920d2aa840e5c6675a8428a48ab
5
5
  SHA512:
6
- metadata.gz: b98d15f8898cff49a7aa75b9c6c69adef3e02f432104cd640b216f598d20f8255d5da532dbfe6299b68feddb5789ba920aad0eae7aeeea3cc84976fcc97a0f92
7
- data.tar.gz: fbbbb11e28b2c9094f1aa1182be6c4279a09dff3155afd4eb14c1a1bf65e88d9931dd00d7d63fd5ca73301e103116a4777784e1bb97bb176189f1fd8ac126da9
6
+ metadata.gz: 2eead8f50110e14f8672a435882bd48e17364d0d718ef8a43ccb4b705e21d44cd429f274a95294acbed403a1ce0f6b9c1279963017cef69de49c139fdbfcb3c9
7
+ data.tar.gz: bc6c7ec15ce61bc088552a20496f478f5623b3ca6acde13adeedd72be85d9a7f83eec3f2419d4e2e9d66631886bebc435ac690d45614f878770625ac3b5c9947
@@ -1,11 +1,12 @@
1
1
  version: 2.1
2
2
  orbs:
3
3
  ruby: circleci/ruby@0.2.1
4
+ sonarcloud: sonarsource/sonarcloud@1.0.1
4
5
 
5
6
  jobs:
6
7
  "rubocop":
7
8
  docker:
8
- - image: circleci/ruby:2.5-node
9
+ - image: circleci/ruby:2.7-node
9
10
  steps:
10
11
  - checkout
11
12
  - ruby/load-cache
@@ -17,33 +18,78 @@ jobs:
17
18
  "ruby-two-five":
18
19
  docker:
19
20
  - image: circleci/ruby:2.5
20
- - image: memcached:1.5-alpine
21
21
  steps:
22
22
  - checkout
23
23
  - ruby/load-cache
24
+ - run:
25
+ name: update bundler
26
+ command: gem update bundler
24
27
  - ruby/install-deps
25
28
  - ruby/run-tests
26
29
  - ruby/save-cache
27
30
  "ruby-two-six":
28
31
  docker:
29
32
  - image: circleci/ruby:2.6
30
- - image: memcached:1.5-alpine
31
33
  steps:
32
34
  - checkout
33
35
  - ruby/load-cache
36
+ - run:
37
+ name: update bundler
38
+ command: gem update bundler
34
39
  - ruby/install-deps
35
40
  - ruby/run-tests
36
41
  - ruby/save-cache
37
42
  "ruby-two-seven":
38
43
  docker:
39
44
  - image: circleci/ruby:2.7
40
- - image: memcached:1.5-alpine
41
45
  steps:
42
46
  - checkout
43
47
  - ruby/load-cache
44
48
  - ruby/install-deps
45
49
  - ruby/run-tests
46
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
47
93
 
48
94
  workflows:
49
95
  version: 2
@@ -58,4 +104,15 @@ workflows:
58
104
  - ruby-two-five
59
105
  - ruby-two-seven:
60
106
  requires:
61
- - ruby-two-five
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
@@ -6,3 +6,4 @@ Style/Documentation:
6
6
  Enabled: false
7
7
  AllCops:
8
8
  TargetRubyVersion: 2.5
9
+ NewCops: enable
data/Rakefile CHANGED
@@ -3,6 +3,7 @@
3
3
  require 'bundler/gem_tasks'
4
4
  require 'rspec/core/rake_task'
5
5
 
6
+ Bundler::GemHelper.install_tasks
6
7
  RSpec::Core::RakeTask.new(:spec)
7
8
 
8
9
  task default: :spec
@@ -1,40 +1,17 @@
1
- image: ruby:2.4.0
1
+ image: ruby:2.7.0
2
2
 
3
3
  pipelines:
4
4
  branches:
5
5
  master:
6
- - step:
7
- caches:
8
- - bundler
9
- script:
10
- - gem install bundle rubocop
11
- - bundle install
12
- - rubocop
13
- - rake
14
- - step:
15
- name: Upload Artifact
16
- deployment: test
17
- script:
18
- - gem build *.gemspec
19
- - curl -X POST --user "${BB_AUTH_STRING}" "https://api.bitbucket.org/2.0/repositories/${BITBUCKET_REPO_OWNER}/${BITBUCKET_REPO_SLUG}/downloads" --form files=@"legion-exceptions-0.1.0.gem"
20
- - step:
21
- name: Deploy to test gem server
22
- deployment: production
23
- trigger: manual
24
- script:
25
- - gem install bundle geminabox
26
- - bundle install
27
- - gem build legion-exceptions.gemspec
28
- - gem inabox legion*.gem -g https://www.rubygems.org -o
29
- default:
30
- - step:
31
- caches:
32
- - bundler
33
- script:
34
- - gem install bundle rubocop
35
- - bundle install
36
- - rubocop
37
- - rake
38
- definitions:
39
- caches:
40
- bundler: vendor/bundle
6
+ - step:
7
+ name: Push to RubyGems
8
+ deployment: RubyGems
9
+ script:
10
+ - gem install bundler gem-release rake rspec
11
+ - bundle install
12
+ - rake build
13
+ - mkdir .gem
14
+ - (umask 077 ; echo $gem_creds | base64 --decode > .gem/credentials)
15
+ - gem release
16
+ artifacts:
17
+ - pkg/**
@@ -14,11 +14,11 @@ Gem::Specification.new do |spec|
14
14
  spec.description = 'All of the different Legion Exceptions'
15
15
  spec.homepage = 'https://bitbucket.org/legion-io/legion-exceptions'
16
16
  spec.license = 'MIT'
17
+ spec.required_ruby_version = Gem::Requirement.new('>= 2.5.0')
17
18
 
18
- spec.files = `git ls-files -z`.split("\x0").reject do |f|
19
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
19
20
  f.match(%r{^(test|spec|features)/})
20
21
  end
21
- spec.bindir = 'exe'
22
22
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
23
23
  spec.require_paths = ['lib']
24
24
 
@@ -27,5 +27,5 @@ Gem::Specification.new do |spec|
27
27
  spec.add_development_dependency 'rspec', '~> 3.0'
28
28
  spec.add_development_dependency 'rspec_junit_formatter', '~> 0'
29
29
  spec.add_development_dependency 'rubocop'
30
- spec.add_development_dependency 'simplecov'
30
+ spec.add_development_dependency 'simplecov', '< 0.18.0'
31
31
  end
@@ -1,10 +1,13 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative 'exceptions/version'
4
- require_relative 'exceptions/handled_task'
5
- require_relative 'exceptions/invalidjson'
6
- require_relative 'exceptions/missing_argument'
7
- require_relative 'exceptions/wrongtype'
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
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Legion
4
+ module Exception
5
+ class MissingCache < RuntimeError
6
+ end
7
+ end
8
+ end
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Legion
4
+ module Exception
5
+ class MissingData < RuntimeError
6
+ end
7
+ end
8
+ end
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Legion
4
+ module Exception
5
+ class MissingTransport < RuntimeError
6
+ end
7
+ end
8
+ end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Legion
4
4
  module Exceptions
5
- VERSION = '1.0.1'
5
+ VERSION = '1.1.2'
6
6
  end
7
7
  end
@@ -0,0 +1,12 @@
1
+ sonar.projectKey=legion-io_legion-exceptions
2
+ sonar.organization=legion-io
3
+ sonar.projectName=Legion::Exceptions
4
+ sonar.sources=.
5
+ sonar.exclusions=vendor/**
6
+ sonar.coverage.exclusions=spec/**
7
+ sonar.ruby.coverage.reportPath=coverage/.resultset.json
8
+ sonar.ruby.file.suffixes=rb,ruby
9
+ sonar.ruby.coverage.framework=RSpec
10
+ sonar.ruby.rubocopConfig=.rubocop.yml
11
+ sonar.ruby.rubocop.reportPath=rubocop-result.json
12
+ sonar.ruby.rubocop.filePath=.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: legion-exceptions
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Esity
8
- autorequire:
9
- bindir: exe
8
+ autorequire:
9
+ bindir: bin
10
10
  cert_chain: []
11
- date: 2020-03-12 00:00:00.000000000 Z
11
+ date: 2020-10-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -84,16 +84,16 @@ dependencies:
84
84
  name: simplecov
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ">="
87
+ - - "<"
88
88
  - !ruby/object:Gem::Version
89
- version: '0'
89
+ version: 0.18.0
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - ">="
94
+ - - "<"
95
95
  - !ruby/object:Gem::Version
96
- version: '0'
96
+ version: 0.18.0
97
97
  description: All of the different Legion Exceptions
98
98
  email:
99
99
  - matthewdiverson@gmail.com
@@ -103,25 +103,21 @@ extra_rdoc_files: []
103
103
  files:
104
104
  - ".circleci/config.yml"
105
105
  - ".gitignore"
106
- - ".idea/.rakeTasks"
107
- - ".idea/legion-exceptions.iml"
108
- - ".idea/misc.xml"
109
- - ".idea/modules.xml"
110
- - ".idea/vagrant.xml"
111
- - ".idea/workspace.xml"
112
106
  - ".rubocop.yml"
113
107
  - Gemfile
108
+ - Gemfile.lock
114
109
  - LICENSE.txt
115
110
  - README.md
116
111
  - Rakefile
117
- - bin/console
118
- - bin/setup
119
112
  - bitbucket-pipelines.yml
120
113
  - legion-exceptions.gemspec
121
114
  - lib/legion/exceptions.rb
122
115
  - lib/legion/exceptions/handled_task.rb
123
116
  - lib/legion/exceptions/invalidjson.rb
124
117
  - lib/legion/exceptions/missing_argument.rb
118
+ - lib/legion/exceptions/missing_cache.rb
119
+ - lib/legion/exceptions/missing_data.rb
120
+ - lib/legion/exceptions/missing_transport.rb
125
121
  - lib/legion/exceptions/version.rb
126
122
  - lib/legion/exceptions/wrongtype.rb
127
123
  - lib/legion/exceptions/wrongtypes/array.rb
@@ -129,11 +125,12 @@ files:
129
125
  - lib/legion/exceptions/wrongtypes/integer.rb
130
126
  - lib/legion/exceptions/wrongtypes/nil.rb
131
127
  - lib/legion/exceptions/wrongtypes/string.rb
128
+ - sonar-project.properties
132
129
  homepage: https://bitbucket.org/legion-io/legion-exceptions
133
130
  licenses:
134
131
  - MIT
135
132
  metadata: {}
136
- post_install_message:
133
+ post_install_message:
137
134
  rdoc_options: []
138
135
  require_paths:
139
136
  - lib
@@ -141,15 +138,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
141
138
  requirements:
142
139
  - - ">="
143
140
  - !ruby/object:Gem::Version
144
- version: '0'
141
+ version: 2.5.0
145
142
  required_rubygems_version: !ruby/object:Gem::Requirement
146
143
  requirements:
147
144
  - - ">="
148
145
  - !ruby/object:Gem::Version
149
146
  version: '0'
150
147
  requirements: []
151
- rubygems_version: 3.0.8
152
- signing_key:
148
+ rubygems_version: 3.1.2
149
+ signing_key:
153
150
  specification_version: 4
154
151
  summary: Used to keep legion exceptions in one place
155
152
  test_files: []
@@ -1,7 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <Settings><!--This file was automatically generated by Ruby plugin.
3
- You are allowed to:
4
- 1. Remove rake task
5
- 2. Add existing rake tasks
6
- To add existing rake tasks automatically delete this file and reload the project.
7
- --><RakeGroup description="" fullCmd="" taksId="rake"><RakeTask description="Build legion-exceptions-1.0.0.gem into the pkg directory" fullCmd="build" taksId="build" /><RakeTask description="Remove any temporary products" fullCmd="clean" taksId="clean" /><RakeTask description="Remove any generated files" fullCmd="clobber" taksId="clobber" /><RakeTask description="Build and install legion-exceptions-1.0.0.gem into system gems" fullCmd="install" taksId="install" /><RakeGroup description="" fullCmd="" taksId="install"><RakeTask description="Build and install legion-exceptions-1.0.0.gem into system gems without network access" fullCmd="install:local" taksId="local" /></RakeGroup><RakeTask description="Create tag v1.0.0 and build and push legion-exceptions-1.0.0.gem to rubygems.org" fullCmd="release[remote]" taksId="release[remote]" /><RakeTask description="Run RSpec code examples" fullCmd="spec" taksId="spec" /><RakeTask description="" fullCmd="default" taksId="default" /><RakeTask description="" fullCmd="release" taksId="release" /><RakeGroup description="" fullCmd="" taksId="release"><RakeTask description="" fullCmd="release:guard_clean" taksId="guard_clean" /><RakeTask description="" fullCmd="release:rubygem_push" taksId="rubygem_push" /><RakeTask description="" fullCmd="release:source_control_push" taksId="source_control_push" /></RakeGroup></RakeGroup></Settings>
@@ -1,38 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <module type="RUBY_MODULE" version="4">
3
- <component name="ModuleRunConfigurationManager">
4
- <shared />
5
- </component>
6
- <component name="NewModuleRootManager">
7
- <content url="file://$MODULE_DIR$">
8
- <sourceFolder url="file://$MODULE_DIR$/spec" isTestSource="true" />
9
- </content>
10
- <orderEntry type="inheritedJdk" />
11
- <orderEntry type="sourceFolder" forTests="false" />
12
- <orderEntry type="library" scope="PROVIDED" name="ast (v2.4.0, RVM: ruby-2.6.3) [gem]" level="application" />
13
- <orderEntry type="library" scope="PROVIDED" name="bundler (v2.1.4, RVM: ruby-2.6.3) [gem]" level="application" />
14
- <orderEntry type="library" scope="PROVIDED" name="diff-lcs (v1.3, RVM: ruby-2.6.3) [gem]" level="application" />
15
- <orderEntry type="library" scope="PROVIDED" name="docile (v1.3.2, RVM: ruby-2.6.3) [gem]" level="application" />
16
- <orderEntry type="library" scope="PROVIDED" name="jaro_winkler (v1.5.4, RVM: ruby-2.6.3) [gem]" level="application" />
17
- <orderEntry type="library" scope="PROVIDED" name="parallel (v1.19.1, RVM: ruby-2.6.3) [gem]" level="application" />
18
- <orderEntry type="library" scope="PROVIDED" name="parser (v2.7.0.4, RVM: ruby-2.6.3) [gem]" level="application" />
19
- <orderEntry type="library" scope="PROVIDED" name="rainbow (v3.0.0, RVM: ruby-2.6.3) [gem]" level="application" />
20
- <orderEntry type="library" scope="PROVIDED" name="rake (v10.5.0, RVM: ruby-2.6.3) [gem]" level="application" />
21
- <orderEntry type="library" scope="PROVIDED" name="rexml (v3.2.4, RVM: ruby-2.6.3) [gem]" level="application" />
22
- <orderEntry type="library" scope="PROVIDED" name="rspec (v3.9.0, RVM: ruby-2.6.3) [gem]" level="application" />
23
- <orderEntry type="library" scope="PROVIDED" name="rspec-core (v3.9.1, RVM: ruby-2.6.3) [gem]" level="application" />
24
- <orderEntry type="library" scope="PROVIDED" name="rspec-expectations (v3.9.0, RVM: ruby-2.6.3) [gem]" level="application" />
25
- <orderEntry type="library" scope="PROVIDED" name="rspec-mocks (v3.9.1, RVM: ruby-2.6.3) [gem]" level="application" />
26
- <orderEntry type="library" scope="PROVIDED" name="rspec-support (v3.9.2, RVM: ruby-2.6.3) [gem]" level="application" />
27
- <orderEntry type="library" scope="PROVIDED" name="rspec_junit_formatter (v0.4.1, RVM: ruby-2.6.3) [gem]" level="application" />
28
- <orderEntry type="library" scope="PROVIDED" name="rubocop (v0.80.1, RVM: ruby-2.6.3) [gem]" level="application" />
29
- <orderEntry type="library" scope="PROVIDED" name="ruby-progressbar (v1.10.1, RVM: ruby-2.6.3) [gem]" level="application" />
30
- <orderEntry type="library" scope="PROVIDED" name="simplecov (v0.18.5, RVM: ruby-2.6.3) [gem]" level="application" />
31
- <orderEntry type="library" scope="PROVIDED" name="simplecov-html (v0.12.2, RVM: ruby-2.6.3) [gem]" level="application" />
32
- <orderEntry type="library" scope="PROVIDED" name="unicode-display_width (v1.6.1, RVM: ruby-2.6.3) [gem]" level="application" />
33
- </component>
34
- <component name="RModuleSettingsStorage">
35
- <LOAD_PATH number="1" string0="$MODULE_DIR$/lib/legion" />
36
- <I18N_FOLDERS number="0" />
37
- </component>
38
- </module>
@@ -1,7 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="JavaScriptSettings">
4
- <option name="languageLevel" value="ES6" />
5
- </component>
6
- <component name="ProjectRootManager" version="2" project-jdk-name="RVM: ruby-2.6.3" project-jdk-type="RUBY_SDK" />
7
- </project>
@@ -1,8 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="ProjectModuleManager">
4
- <modules>
5
- <module fileurl="file://$PROJECT_DIR$/.idea/legion-exceptions.iml" filepath="$PROJECT_DIR$/.idea/legion-exceptions.iml" />
6
- </modules>
7
- </component>
8
- </project>
@@ -1,7 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="VagrantProjectSettings">
4
- <option name="instanceFolder" value="" />
5
- <option name="provider" value="" />
6
- </component>
7
- </project>
@@ -1,14 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="CoverageOptionsProvider">
4
- <option name="myAddOrReplace" value="0" />
5
- </component>
6
- <component name="Git.Settings">
7
- <option name="PUSH_AUTO_UPDATE" value="true" />
8
- <option name="ROOT_SYNC" value="DONT_SYNC" />
9
- </component>
10
- <component name="ProjectId" id="1Yl3GorhOAUJqZmeoXH7D3OLnnA" />
11
- <component name="PropertiesComponent">
12
- <property name="settings.editor.selected.configurable" value="reference.settingsdialog.project.vagrant" />
13
- </component>
14
- </project>
@@ -1,15 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # frozen_string_literal: true
3
-
4
- require 'bundler/setup'
5
- require 'legion/exceptions'
6
-
7
- # You can add fixtures and/or initialization code here to make experimenting
8
- # with your gem easier. You can also use a different console, if you like.
9
-
10
- # (If you use this, don't forget to add pry to your Gemfile!)
11
- # require "pry"
12
- # Pry.start
13
-
14
- require 'irb'
15
- IRB.start(__FILE__)
data/bin/setup DELETED
@@ -1,8 +0,0 @@
1
- #!/usr/bin/env bash
2
- set -euo pipefail
3
- IFS=$'\n\t'
4
- set -vx
5
-
6
- bundle install
7
-
8
- # Do any other automated setup that you need to do here