danger-l10nlint 0.0.11 → 0.0.12

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: c73b30a3a4734a3ca775b1dc20ab455c400d54f1119a602f72509d0a06e26e79
4
- data.tar.gz: f9bbcb2bf5feab3d465dc9e821b5d2bd2839ba13e3cf6a396985fb60dc90af96
3
+ metadata.gz: c9ebfe0f8f2316c6754e3efff12caa8920b830377e380e0b6cd34a81d9088e56
4
+ data.tar.gz: ec4fd8186322b0e68cda9a065565a83625d319c6a56961ec0058124623032968
5
5
  SHA512:
6
- metadata.gz: 8a9d2cab71d1569ba34ec7166e1dd3baa2328ac6bccde7459fb95f5f735523e9839bfd57d0137dd5a65a84c0752fab8acc03832c1b8750b93f68f1d3fb45604e
7
- data.tar.gz: 0ae8fd435d4534f16c698090671f72a529cac1b60d65f76acf43eb5d44c9d185a4a1e5177a82174d54048e5c80af0130a3c4e58f527c6ff61aa9c9795b4b2269
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.11)
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.11'
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.11
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