Skip to content

Commit b083a65

Browse files
Update grace period message format to use "day(s)" for consistency in attribution comments
1 parent d5b43a0 commit b083a65

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

react_on_rails_pro/lib/react_on_rails_pro/utils.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ def self.pro_attribution_comment
173173
# Check if in grace period
174174
grace_days = ReactOnRailsPro::LicenseValidator.grace_days_remaining
175175
comment = if grace_days
176-
"#{base} | Licensed (Expired - Grace Period: #{grace_days} days remaining)"
176+
"#{base} | Licensed (Expired - Grace Period: #{grace_days} day(s) remaining)"
177177
elsif ReactOnRailsPro::LicenseValidator.evaluation?
178178
"#{base} | Evaluation License"
179179
else

react_on_rails_pro/spec/react_on_rails_pro/utils_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ module ReactOnRailsPro
239239
it "returns attribution comment with grace period information" do
240240
result = described_class.pro_attribution_comment
241241
expected = "<!-- Powered by React on Rails Pro (c) ShakaCode | " \
242-
"Licensed (Expired - Grace Period: 15 days remaining) -->"
242+
"Licensed (Expired - Grace Period: 15 day(s) remaining) -->"
243243
expect(result).to eq(expected)
244244
end
245245
end
@@ -252,7 +252,7 @@ module ReactOnRailsPro
252252
it "returns attribution comment with singular day" do
253253
result = described_class.pro_attribution_comment
254254
expected = "<!-- Powered by React on Rails Pro (c) ShakaCode | " \
255-
"Licensed (Expired - Grace Period: 1 days remaining) -->"
255+
"Licensed (Expired - Grace Period: 1 day(s) remaining) -->"
256256
expect(result).to eq(expected)
257257
end
258258
end
@@ -276,7 +276,7 @@ module ReactOnRailsPro
276276
it "returns attribution comment with grace period information" do
277277
result = described_class.pro_attribution_comment
278278
expected = "<!-- Powered by React on Rails Pro (c) ShakaCode | " \
279-
"Licensed (Expired - Grace Period: 0 days remaining) -->"
279+
"Licensed (Expired - Grace Period: 0 day(s) remaining) -->"
280280
expect(result).to eq(expected)
281281
end
282282
end

0 commit comments

Comments
 (0)