danger-l10nlint 0.0.10 → 0.0.12

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: 9a2e571c132ce2d510728cd6d124d77fc9a1e7adfeacdc4cba72a6e8dd79fe15
4
- data.tar.gz: 37dcb9eb3104b27c02a47114c86fcfbd320e2ab593522345cbc831a87ac3dc8b
3
+ metadata.gz: c9ebfe0f8f2316c6754e3efff12caa8920b830377e380e0b6cd34a81d9088e56
4
+ data.tar.gz: ec4fd8186322b0e68cda9a065565a83625d319c6a56961ec0058124623032968
5
5
  SHA512:
6
- metadata.gz: a707a4c598d861019d9f3f1749ed7fa79e8f4c5adb5dde18d2a81feca4dad860679699cd2e0d722cb474d17add7e363f90e634c45144bdc5a0ed0f4a4b78f018
7
- data.tar.gz: aa14c486a956bbec5a21bc1233f5dbca89612479db4c44666f7192edae2ede7d8d05b3df87a1bdd907b0649d7a3ea965271c354db3b62b59240cf82eb3a6d57c
6
+ metadata.gz: 4fab36dff04e6c85ea1f71200e67f585d246241aaf1da4446bdc9cfeab4ca194d13a8f41f40eac688047b20c33c3a8844c378dfc27e6954a065bbc52aac6485d
7
+ data.tar.gz: 57fd6b4715f9c8c30b14b9345a0d94bf12d92fcc522195949cfcdcc38eabec24f6cc2b71fabfa75f889c9e61c1c2cff7e14126b485c127976efdd2b7f8008d65
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- danger-l10nlint (0.0.10)
4
+ danger-l10nlint (0.0.12)
5
5
  danger-plugin-api (~> 1.0)
6
6
 
7
7
  GEM
data/lib/danger_plugin.rb CHANGED
@@ -95,6 +95,7 @@ module Danger
95
95
  @warnings = issues.select { |issue| issue['severity'] == 'warning' }
96
96
  @errors = issues.select { |issue| issue['severity'] == 'error' }
97
97
 
98
+ subtitle_in_title = subtitle.empty? ? '' : "(#{subtitle})"
98
99
  if inline_mode
99
100
  # Separate each warnings and errors by inline_except_rules
100
101
  if inline_except_rules
@@ -109,7 +110,7 @@ module Danger
109
110
  send_inline_comment(inline_errors, (fail_on_error || strict) ? :fail : :warn)
110
111
 
111
112
  if markdown_warnings.count > 0 || markdown_errors.count > 0
112
- message = "### L10nLint found issues\n\n".dup
113
+ message = "### L10nLint found issues #{subtitle_in_title}\n\n".dup
113
114
  message << markdown_issues(markdown_warnings, 'Warnings') unless markdown_warnings.empty?
114
115
  message << markdown_issues(markdown_errors, 'Errors') unless markdown_errors.empty?
115
116
  markdown message
@@ -119,7 +120,6 @@ module Danger
119
120
 
120
121
  elsif warnings.count > 0 || errors.count > 0
121
122
  # Report if any warning or error
122
- subtitle_in_title = subtitle.empty? '' : "(#{subtitle})"
123
123
  message = "### L10nLint found issues #{subtitle_in_title}\n\n".dup
124
124
  message << markdown_issues(warnings, 'Warnings') unless warnings.empty?
125
125
  message << markdown_issues(errors, 'Errors') unless errors.empty?
data/lib/version.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DangerL10nLint
4
- VERSION = '0.0.10'
4
+ VERSION = '0.0.12'
5
5
  L10NLINT_VERSION = '0.0.6'
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: danger-l10nlint
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.10
4
+ version: 0.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kazumasa Shimomura
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-11-20 00:00:00.000000000 Z
11
+ date: 2023-11-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: danger-plugin-api