carioca 2.1.4 → 2.1.6

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: 29233bcd6718731dae76436b23f4a2d0f4cba32630c2fa11009b5c44cba63453
4
- data.tar.gz: caea68819fafbe93e864dd63da838806afbdbb14da4d2415af644826afb64cf6
3
+ metadata.gz: 59956550392bbf8603dd8426a0595afb7cd207bb6929adac7a183eca58acc400
4
+ data.tar.gz: 95addcdb4fde913f5ec4dc4a15184634a24c27522e4f93a26b5912c55561d0db
5
5
  SHA512:
6
- metadata.gz: e2ce4b9ba9e0744e20ff4e11bbb2fda7b2813dd4589ec5a950a71799b7c2aa7cfb638bd5f38cd9e2c14b95730b3bd70b31282da9756075a23933842dcf652ce6
7
- data.tar.gz: 9650779eed46522a43c7ebd0ff0089ac97b22b481a7c45885bcd2410d45f639808cd3d5eafe6ed37c1badf157d91d60f12a8324a02cc6b8170974884eb1cb9b7
6
+ metadata.gz: a26bacd589861a1543184a73791c3ea37ac0f05742efe82a414a5dc243f448824d10d9973f5b1c73fc8208fc167c004d8e67d82390c9bf6583695d673e645bf0
7
+ data.tar.gz: 48001979dde2a20fe79c140f72739b2d9d7dd93523082edd11c85f720225e14428fd6873e4e81c68d82c78fd51b43858e8156819ee76f78a4ae1044c69fede9e
@@ -10,7 +10,7 @@ jobs:
10
10
  - name: Set up Ruby
11
11
  uses: ruby/setup-ruby@v1
12
12
  with:
13
- ruby-version: 3.0.0
13
+ ruby-version: 3.2.3
14
14
  - name: Getting dependencies (Bundle)
15
15
  run: |
16
16
  gem install bundler -v 2.2.3
data/.rubocop.yml CHANGED
@@ -48,7 +48,9 @@ Style/Documentation:
48
48
  Layout/LineLength:
49
49
  Enabled: false
50
50
 
51
+ Metrics/ParameterLists:
52
+ Max: 8
51
53
 
52
-
53
-
54
-
54
+ Gemspec/DevelopmentDependencies:
55
+ Exclude:
56
+ - 'carioca.gemspec'
data/Gemfile CHANGED
@@ -3,4 +3,3 @@
3
3
  source 'https://rubygems.org'
4
4
 
5
5
  gemspec
6
-
data/README.md CHANGED
@@ -615,6 +615,59 @@ titi
615
615
 
616
616
  ### Service Finisher
617
617
 
618
+
619
+ #### List of available return code and associated symbols :
620
+
621
+ - code : must be a clI OR HTTP return code
622
+ - key : a I18n service key in locales files (Carioca internals locales) see https://github.com/Ultragreen/carioca/tree/master/config/locales
623
+
624
+ ```ruby
625
+ # global
626
+ not_root: { code: 40, key: 'finisher.messages.not_root' },
627
+ options_incompatibility: { code: 410, key: 'finisher.messages.options_incompatibility'},
628
+ service_dependence_missing: { code: 430, key: 'finisher.messages.service_dependence_missing'},
629
+ config_required: { code: 420, key: 'finisher.messages.config_required'},
630
+ setup_error: { code: 520, key: 'finisher.messages.setup_error'},
631
+ setup_success: { code: 0, key: 'finisher.messages.setup_success'},
632
+ sanitycheck_error: { code: 510, key: 'finisher.messages.sanitycheck_error'},
633
+ sanitycheck_success: { code: 0, key: 'finisher.messages.sanitycheck_success'},
634
+ configuration_error: { code: 501, key: 'finisher.messages.configuration_error'},
635
+ success_exit: { code: 0, key: 'finisher.messages.success_exit' },
636
+ quiet_exit: { code: 0 },
637
+ error_exit: { code: 50, key: 'finisher.messages.error_exit' },
638
+
639
+ # events
640
+ interrupt: { code: 330, key: 'finisher.messages.interrupt' },
641
+
642
+ # request & API
643
+ not_found: { code: 404, key: 'finisher.messages.not_found' },
644
+ already_exist: { code: 408, key: 'finisher.messages.already_exist' },
645
+
646
+ # daemon & API
647
+ status_ok: { code: 200, key: 'finisher.messages.status_ok' },
648
+ created: { code: 201, key: 'finisher.messages.created' },
649
+ accepted: { code: 202, key: 'finisher.messages.accepted' },
650
+ bad_request: { code: 400, key: 'finisher.messages.bad_request' },
651
+ status_ko: { code: 500, key: 'finisher.messages.status_ko' },
652
+ no_content: { code: 204, key: 'finisher.messages.no_content' },
653
+ ```
654
+
655
+ This returns must be override from Config File (using Builtin Configuration Service) inbluding a key exit_cases:
656
+ like :
657
+
658
+ ```yaml
659
+ ---
660
+ :my_root:
661
+ :default:
662
+ :exit_cases:
663
+ :mystatus:
664
+ :code: 8000
665
+ key: 'my.own.i18n.key'
666
+
667
+ ```
668
+
669
+
670
+
618
671
  ### Service Setup
619
672
 
620
673
  ### Service SanityCheck
data/Rakefile CHANGED
@@ -45,17 +45,17 @@ namespace :yardoc do
45
45
  end
46
46
  task clobber: 'yardoc:clobber'
47
47
 
48
- desc "Run CVE security audit over bundle"
48
+ desc 'Run CVE security audit over bundle'
49
49
  task :audit do
50
50
  system('bundle audit')
51
51
  end
52
52
 
53
- desc "Run dead line of code detection"
53
+ desc 'Run dead line of code detection'
54
54
  task :debride do
55
55
  system('debride -w .debride_withelist .')
56
56
  end
57
57
 
58
- desc "Run SBOM CycloneDX Xml format file"
58
+ desc 'Run SBOM CycloneDX Xml format file'
59
59
  task :sbom do
60
60
  system('cyclonedx-ruby -p .')
61
- end
61
+ end
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.1.4
1
+ 2.1.6