From 81c67605ab5fc64f64771bfd0279e657a1d882d0 Mon Sep 17 00:00:00 2001 From: Mikhail Date: Thu, 2 Nov 2023 21:11:46 +0200 Subject: [PATCH 1/3] add stripColor --- app/models/passkit/pass.rb | 1 + lib/passkit/base_pass.rb | 4 ++++ lib/passkit/generator.rb | 1 + 3 files changed, 6 insertions(+) diff --git a/app/models/passkit/pass.rb b/app/models/passkit/pass.rb index 5514c8c..19476be 100644 --- a/app/models/passkit/pass.rb +++ b/app/models/passkit/pass.rb @@ -13,6 +13,7 @@ class Pass < ActiveRecord::Base :format_version, :apple_team_identifier, :foreground_color, + :strip_color, :background_color, :label_color, :web_service_url, diff --git a/lib/passkit/base_pass.rb b/lib/passkit/base_pass.rb index a53f1a2..ad88347 100644 --- a/lib/passkit/base_pass.rb +++ b/lib/passkit/base_pass.rb @@ -48,6 +48,10 @@ def foreground_color "rgb(0, 0, 0)" end + def strip_color + "rgb(0, 0, 0)" + end + def background_color "rgb(255, 255, 255)" end diff --git a/lib/passkit/generator.rb b/lib/passkit/generator.rb index 21d82be..df0e575 100644 --- a/lib/passkit/generator.rb +++ b/lib/passkit/generator.rb @@ -49,6 +49,7 @@ def generate_json_pass formatVersion: @pass.format_version, teamIdentifier: @pass.apple_team_identifier, foregroundColor: @pass.foreground_color, + stripColor: @pass.strip_color, backgroundColor: @pass.background_color, webServiceURL: @pass.web_service_url, barcode: @pass.barcode, From 867f634f7da51b81ebafd8667b669ce156fe994c Mon Sep 17 00:00:00 2001 From: Mikhail Lopandia Date: Fri, 17 Jul 2026 18:34:34 +0300 Subject: [PATCH 2/3] extra blank line --- lib/passkit/base_pass.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/passkit/base_pass.rb b/lib/passkit/base_pass.rb index c88ca1b..a11605c 100644 --- a/lib/passkit/base_pass.rb +++ b/lib/passkit/base_pass.rb @@ -60,7 +60,6 @@ def strip_color # The background color, used for the background of the front and back of the pass. # If you provide a background image, any background color is ignored. - def background_color # white "rgb(255, 255, 255)" From cd5b23d77dc0671a153b5a0b701461f729daa31b Mon Sep 17 00:00:00 2001 From: Mikhail Lopandia Date: Fri, 17 Jul 2026 18:38:44 +0300 Subject: [PATCH 3/3] background --- lib/passkit/base_pass.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/passkit/base_pass.rb b/lib/passkit/base_pass.rb index a11605c..ea3d615 100644 --- a/lib/passkit/base_pass.rb +++ b/lib/passkit/base_pass.rb @@ -53,7 +53,7 @@ def foreground_color "rgb(0, 0, 0)" end - # The strip color, used to print the text over the backgrround image. + # The strip color, used to print the text over the background image. def strip_color "rgb(0, 0, 0)" end