datepick 1.1.1 → 1.1.2

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/datepick.rb +6 -6
  3. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: edc0a93673e9ac3916ec8e31ac1cbd6c886dd72699337fe077c5ee59911d3849
4
- data.tar.gz: 4d2878ff16f75622a85461a5bef192a34ec9cafba94ef9fe59039879afce9467
3
+ metadata.gz: 36cdf3d1d78d3ac572e1c6564502e48669d967e3236794517c9d1fb8d1df6bce
4
+ data.tar.gz: ad6b3fb22029f3a9fe6ab07a050385f9e48bf91a9d11ce183bf9e54dd8b1f51f
5
5
  SHA512:
6
- metadata.gz: cea2c7637686272e5a39113b19f572c393a8fb33dbd007a69f4ad5aac26ed1aba36d17c53ad8b1b8697baf3faf055e9e71d940e1a7f23fb83db5649e5219dfff
7
- data.tar.gz: 56f64ce009db0560b87eef26811dec8ac6f68e3c10761d4b392271d7108d658309db6c4243c3889ffb3ab5e44a2f834a14a109f7d120c561834cfc1b3eb9eca1
6
+ metadata.gz: ec1afd6f3b996517951a3d3e45631d8e7d50b4e9589ae6941cf00d761773ed004bc7360675ad99f2bffee59f135d5fbc4f79c2d105a5ee28514b9473f17430a1
7
+ data.tar.gz: 53a6ff7642a64a8400e1589f1068925ef177b5d0743468ab05eb772b4a2ca77657b8b267da0c947bcf40f09b6c8f43228eda92922258362b4e374ac06a53d564
data/lib/datepick.rb CHANGED
@@ -170,7 +170,7 @@ class DatePicker
170
170
  month_str = month_date.strftime("%B %Y")
171
171
  # Highlight current month with bold and underline
172
172
  if month_date.year == Date.today.year && month_date.month == Date.today.month
173
- month_str = month_str.fg(@config['colors']['month']).b.u
173
+ month_str = month_str.fg(@config['colors']['month']).bd.ul
174
174
  else
175
175
  month_str = month_str.fg(@config['colors']['month'])
176
176
  end
@@ -184,9 +184,9 @@ class DatePicker
184
184
  days = @config['week_starts_monday'] ? %w[Mo Tu We Th Fr Sa Su] : %w[Su Mo Tu We Th Fr Sa]
185
185
  days.each_with_index do |day, idx|
186
186
  # Use darker colors for day headers and make them bold
187
- color = ((@config['week_starts_monday'] && idx >= 5) || (!@config['week_starts_monday'] && (idx == 0 || idx == 6))) ?
187
+ color = ((@config['week_starts_monday'] && idx >= 5) || (!@config['week_starts_monday'] && (idx == 0 || idx == 6))) ?
188
188
  88 : 244 # Dark red for weekends, dark gray for weekdays
189
- day_header_line += day.fg(color).b + " "
189
+ day_header_line += day.fg(color).bd + " "
190
190
  end
191
191
  day_header_line += " " # Extra space between months
192
192
  end
@@ -207,9 +207,9 @@ class DatePicker
207
207
 
208
208
  # Apply styling
209
209
  if date == @selected_date
210
- day_str = day_str.fb(@config['colors']['selected'], 236).b
210
+ day_str = day_str.fb(@config['colors']['selected'], 236).bd
211
211
  elsif date == Date.today
212
- day_str = day_str.fg(@config['colors']['today']).b
212
+ day_str = day_str.fg(@config['colors']['today']).bd
213
213
  elsif date.saturday? || date.sunday?
214
214
  day_str = day_str.fg(@config['colors']['weekend'])
215
215
  else
@@ -280,7 +280,7 @@ class DatePicker
280
280
 
281
281
  lines = []
282
282
  lines << ""
283
- lines << "Configuration".fg(@config['colors']['year']).b
283
+ lines << "Configuration".fg(@config['colors']['year']).bd
284
284
  lines << ""
285
285
 
286
286
  config_items.each_with_index do |(label, value), idx|
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: datepick
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Geir Isene
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-03-21 00:00:00.000000000 Z
11
+ date: 2026-04-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rcurses
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '6.0'
19
+ version: '7.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '6.0'
26
+ version: '7.0'
27
27
  description: 'A powerful interactive terminal date picker built with rcurses. Features
28
28
  vim-style navigation, configurable date formats, multiple month views, and extensive
29
29
  keyboard shortcuts. Perfect for shell scripts and command-line workflows that need