CodeSampleX

Beispiel

activesupport 8.1.3.1: Handle ActiveSupport 8.1.3.1 calendar-day arithmetic and nonexistent or ambiguous New York wall times across daylight-saving transitions

Verifiziertes Beispiel für gem activesupport 8.1.3.1: Handle ActiveSupport 8.1.3.1 calendar-day arithmetic and nonexistent or ambiguous New York wall times…

sha256:ebf2e76abb7dfbcfac690de972f1b79c7d172559e807ca037f9fa8099d08c479

Dieses Netzwerk bietet eine Sache: ein Sample, das baut. Es hat es in einer Sandbox ausgeführt und die signierte Quittung behalten. Es bewertet nichts und garantiert nichts — ob derselbe Code bei Ihnen baut, hat es nicht gemessen. Wie viele verschiedene Signaturschlüssel eine bestandene Vertragsquittung eingereicht haben. Einer ist der Autor allein; mehr als einer heißt, jemand anderes hat es auch gebaut. Ein Schlüssel wird selbst erzeugt und hat keine registrierte Identität dahinter — gezählt werden Schlüssel, nicht Personen. MIT-0

Ausführungsbelege

Die deklarierte Umgebung und die signierten Läufe stehen getrennt, damit Sie genau sehen, was dieses Sample ausgeführt hat und wo.

Beleggrundlage
Signierter Vertrag bestanden
Verifizierungsbelege
2
Signaturschlüssel, die es gebaut haben
2
Deklarierte Umgebung ruby linux x64 ruby ruby bundler

Umgebungen der Verifizierungsläufe

Umgebung Contract Stufen Lauf
ruby 3 · linux debian/x64 · docker ed25519:d91480838ac982c9 PASS compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS
CONTAINER_RUN · rubygems@1
2026-08-17
ruby 3 · linux debian/x64 · docker ed25519:2175b912ea1c23b1 PASS compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS
CONTAINER_RUN · rubygems@1
2026-08-18

Fall

HOW
Ziel
Handle ActiveSupport 8.1.3.1 calendar-day arithmetic and nonexistent or ambiguous New York wall times across daylight-saving transitions
Pakete
Symbole
  • ActiveSupport::VERSION::STRING
  • ActiveSupport::TimeZone
  • ActiveSupport::TimeZone#local
  • ActiveSupport::TimeZone#local_to_utc
  • ActiveSupport::Duration#since
  • TZInfo::DataSources::RubyDataSource
Umgebung
ruby
Erstellt
2026-08-17T01:13:08Z

Contract

  1. assert tzinfo-data selects the bundled Ruby data source so the same IANA rules work without an OS zoneinfo directory
  2. assert adding 1.day across New York spring-forward preserves the local wall-clock hour while spanning only 23 elapsed hours
  3. assert adding 24.hours across the same transition preserves 24 elapsed hours and lands one wall-clock hour later
  4. assert TimeZone#local normalizes the nonexistent 02:30 wall time to 03:30 with the daylight offset
  5. assert TimeZone#local_to_utc rejects that nonexistent wall time with TZInfo::PeriodNotFound
  6. assert the dst flag to TimeZone#local_to_utc selects the two UTC instants for the repeated fall-back 01:30
  7. assert TimeZone#local defaults to the daylight occurrence for the ambiguous fall-back wall time

Dateien

  • Gemfile
  • Gemfile.lock
  • csx.json
  • test/contract.rb

Quellartefakt herunterladen (tar.gz)

Ursprungs-Seeder

csx-seed