drive 0.11.0 → 0.11.1

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: 50f607d239ebaf95756e8b6fcfc7cc274d47fe0d62ab1e97bfecfe72120213ef
4
- data.tar.gz: 3303e9de0f19b1f9ca98383f1a5c747d4108802c5a4125da274ed7fcb1631a9f
3
+ metadata.gz: 16ca4df866a330aeecbf74b073b816d70fdc0be19747d4467220d80b841f8f1c
4
+ data.tar.gz: a0d24a41daa9e74c413c42acc9e8e2bc0fa3a997b1bbbbc629a0e49cd0475540
5
5
  SHA512:
6
- metadata.gz: 8f2e2ee0af3af57e30c33a6a8fdf1e0225c18849217e77c5c1422afd6135c783a366c55a04501a46f8ac1813064572a9a8b26b710106c81c395335ae2adcdd85
7
- data.tar.gz: 07f896adb850af12b1043c163c50588155770a8907fb05c139f53e7fcf43be7bd5f47a9629b2db13664be05cf4365fcd1badc9680c1f9fd6d8fb316b04db5e51
6
+ metadata.gz: f6badb85246267708fab6d15f99157ea6bd22857e6905652729757922a5c19c116d60ea9fc6d4490546fe0ad9905ef07d45aad6fa6a2b62ded7c8571ea0b838b
7
+ data.tar.gz: 04d953eba6674e7d02e906014fca552ae503ea830c2a37c7a5b8836e54554d9963fab3c935e68dfa48512c709fc3d4e9349a3776fe15f5b9ae6b690b9d7adcc2
data/CHANGELOG.md CHANGED
@@ -6,6 +6,11 @@ For more information about changelogs, check [Keep a Changelog](http://keepachan
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## 0.11.1 - 2026-11-06
10
+
11
+ * [ENHANCEMENT] The flyer flies Hanukkah's eight days in blue and silver (2025 to 2045, from a table of 25 Kislev),
12
+ yielding to another holiday on the same day.
13
+
9
14
  ## 0.11.0 - 2026-11-06
10
15
 
11
16
  * [FEATURE] `render "easy/flyer", plane:`: a plane crossing the top of a hero on a gentle wave, its trail behind it,
@@ -1,21 +1,24 @@
1
- // The plane of render "easy/flyer": across the sky in 14 seconds, rising and falling on a gentle wave, nose along it,
2
- // its trail drawn on the same wave from the sky's left edge to its tail. On a holiday, by the visitor's own calendar,
3
- // it flies in the day's colors and trails one line of smoke per color: every day is in this file, so whatever
4
- // cached it, the page is right at midnight. Where motion is turned off, there is no plane.
5
- // ES5 alone: every easy app has to work on old iPhones, Androids and Windows browsers.
1
+ // The plane of render "easy/flyer": across the sky in 14 seconds on a gentle wave, nose along it, its trail behind it.
2
+ // On a holiday, by the visitor's own calendar, it flies in the day's colors with a line of smoke per color: every day
3
+ // is in this file, so whatever cached it, it's right at midnight. No plane where motion is off. ES5, for old phones.
6
4
  (function () {
7
5
  if (!document.querySelectorAll || !document.createElementNS || !window.requestAnimationFrame) { return; }
8
6
  if (window.matchMedia && window.matchMedia('(prefers-reduced-motion: reduce)').matches) { return; }
9
7
 
10
- var SKY = { trail: ['#5aa9e6'], opacity: 0.45 };
8
+ var SKY = { trail: ['#5aa9e6'], opacity: 0.45 }, HANUKKAH = { plane: '#2f6fd0', trail: ['#2f6fd0', '#cfd8e3'] };
11
9
  var GOLD = { plane: '#d4a514', trail: ['#d4a514', '#a8b0b8'] };
12
10
  var USA = { plane: '#2f5fc4', trail: ['#d63a3a', '#ffffff', '#2f5fc4'] };
11
+ // Hanukkah's first day (25 Kislev) as a day of December, 2025 to 2045 (Nov 28 is -2); its days yield to the others.
12
+ var KISLEV_25 = [15, 5, 25, 13, 2, 21, 10, -2, 17, 7, 26, 14, 3, 22, 12, 0, 18, 8, 27, 15, 5];
13
13
 
14
- // The holidays of a year, by "month-day": the plane's color, then its trail's, top to bottom. Two are aviation's:
15
- // National Aviation Day (Orville Wright's birthday) in pilot's-wings gold and blue, and Wright Brothers Day
16
- // (the first flight) in the Wright Flyer's muslin and spruce.
14
+ // The holidays of a year, by "month-day": the plane's color, then its trail's, top to bottom. National Aviation Day
15
+ // is in pilot's-wings gold and blue, Wright Brothers Day in the Wright Flyer's muslin and spruce.
17
16
  function holidays(year) {
18
17
  var easter = easterOf(year), days = {};
18
+ for (var k = 0; k < 16; k++) { // last year's eight days of Hanukkah, reaching into January, then this year's
19
+ var y = year - 1 + (k >> 3), day = new Date(y, 11, KISLEV_25[y - 2025] + k % 8);
20
+ if (day.getFullYear() === year) { days[(day.getMonth() + 1) + '-' + day.getDate()] = HANUKKAH; }
21
+ }
19
22
  days['1-1'] = days['12-31'] = GOLD;
20
23
  days['2-14'] = { plane: '#e0457b', trail: ['#d62f4b', '#f07aa0'] };
21
24
  days['3-17'] = { plane: '#1f9d55', trail: ['#1f9d55', '#7cc576'] };
@@ -40,8 +43,7 @@
40
43
  var a = y % 19, b = Math.floor(y / 100), c = y % 100, f = Math.floor((b + 8) / 25);
41
44
  var h = (19 * a + b - Math.floor(b / 4) - Math.floor((b - f + 1) / 3) + 15) % 30;
42
45
  var l = (32 + 2 * (b % 4) + 2 * Math.floor(c / 4) - h - c % 4) % 7, m = Math.floor((a + 11 * h + 22 * l) / 451);
43
- var n = h + l - 7 * m + 114;
44
- return Math.floor(n / 31) + '-' + (n % 31 + 1);
46
+ return Math.floor((h + l - 7 * m + 114) / 31) + '-' + ((h + l - 7 * m + 114) % 31 + 1);
45
47
  }
46
48
 
47
49
  // The sky's colors: its data-date's ("2026-12-25"), to see a holiday on any day, or today's.
data/lib/drive/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Drive
2
2
  # Version of the gem, read by the gemspec.
3
- VERSION = '0.11.0'.freeze
3
+ VERSION = '0.11.1'.freeze
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: drive
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.0
4
+ version: 0.11.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - claudiob