legion-exceptions 1.0.1 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +26 -4
- data/Rakefile +1 -0
- data/bitbucket-pipelines.yml +11 -36
- data/lib/legion/exceptions/version.rb +1 -1
- data/sonar-project.properties +12 -0
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0a988c3c30a0027d052b2f0f5e3e2f0877d7a9dd3585e3a1de5b3f18638f049b
|
4
|
+
data.tar.gz: 7dd3a9d872c62b093e43771d5c353d15c41472eb793cc79f78d3608e2d2b68d9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 38a1bf060b01806d9ae9631e17ac717ac80cff87a154440e0ce44a1d511e8870d0f3ae748051610923c660869b83cb53734447baa155b48c25a18c729ee84456
|
7
|
+
data.tar.gz: 58b48a4c50e15d639c3f0ff5a3bc4f2cc5effb7d852fa4a6d2e2bdf83005c0f0450080d6aa3af246819eeba879068cce346348bd9a5f428c4677b2a36ab3da68
|
data/.circleci/config.yml
CHANGED
@@ -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.
|
9
|
+
- image: circleci/ruby:2.7-node
|
9
10
|
steps:
|
10
11
|
- checkout
|
11
12
|
- ruby/load-cache
|
@@ -17,20 +18,24 @@ 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
|
@@ -44,6 +49,19 @@ jobs:
|
|
44
49
|
- ruby/install-deps
|
45
50
|
- ruby/run-tests
|
46
51
|
- ruby/save-cache
|
52
|
+
"sonarcloud":
|
53
|
+
docker:
|
54
|
+
- image: circleci/ruby:2.7
|
55
|
+
steps:
|
56
|
+
- checkout
|
57
|
+
- ruby/load-cache
|
58
|
+
- ruby/install-deps
|
59
|
+
- ruby/run-tests
|
60
|
+
- run:
|
61
|
+
name: Run Rubocop
|
62
|
+
command: bundle exec rubocop --format=json --out=rubocop-result.json
|
63
|
+
- sonarcloud/scan
|
64
|
+
- ruby/save-cache
|
47
65
|
|
48
66
|
workflows:
|
49
67
|
version: 2
|
@@ -58,4 +76,8 @@ workflows:
|
|
58
76
|
- ruby-two-five
|
59
77
|
- ruby-two-seven:
|
60
78
|
requires:
|
61
|
-
- ruby-two-five
|
79
|
+
- ruby-two-five
|
80
|
+
- sonarcloud:
|
81
|
+
requires:
|
82
|
+
- ruby-two-seven
|
83
|
+
- ruby-two-six
|
data/Rakefile
CHANGED
data/bitbucket-pipelines.yml
CHANGED
@@ -1,40 +1,15 @@
|
|
1
|
-
image: ruby:2.
|
1
|
+
image: ruby:2.7.0
|
2
2
|
|
3
3
|
pipelines:
|
4
4
|
branches:
|
5
5
|
master:
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
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
|
@@ -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.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Esity
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-03-
|
11
|
+
date: 2020-03-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -129,6 +129,7 @@ files:
|
|
129
129
|
- lib/legion/exceptions/wrongtypes/integer.rb
|
130
130
|
- lib/legion/exceptions/wrongtypes/nil.rb
|
131
131
|
- lib/legion/exceptions/wrongtypes/string.rb
|
132
|
+
- sonar-project.properties
|
132
133
|
homepage: https://bitbucket.org/legion-io/legion-exceptions
|
133
134
|
licenses:
|
134
135
|
- MIT
|
@@ -148,7 +149,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
148
149
|
- !ruby/object:Gem::Version
|
149
150
|
version: '0'
|
150
151
|
requirements: []
|
151
|
-
rubygems_version: 3.
|
152
|
+
rubygems_version: 3.1.2
|
152
153
|
signing_key:
|
153
154
|
specification_version: 4
|
154
155
|
summary: Used to keep legion exceptions in one place
|