From 94441d0e2adb986d437564e21e41fc960208f705 Mon Sep 17 00:00:00 2001 From: Alexander Plavin Date: Wed, 8 Jan 2025 07:19:27 -0500 Subject: [PATCH] use shorter extension names (#190) --- Project.toml | 16 ++++++++-------- ext/{AccessorsAxisKeysExt.jl => AxisKeysExt.jl} | 2 +- ext/{AccessorsDatesExt.jl => DatesExt.jl} | 2 +- ...sorsIntervalSetsExt.jl => IntervalSetsExt.jl} | 2 +- ...rsLinearAlgebraExt.jl => LinearAlgebraExt.jl} | 2 +- ...sorsStaticArraysExt.jl => StaticArraysExt.jl} | 2 +- ...sorsStructArraysExt.jl => StructArraysExt.jl} | 2 +- ext/{AccessorsTestExt.jl => TestExt.jl} | 2 +- ext/{AccessorsUnitfulExt.jl => UnitfulExt.jl} | 2 +- src/Accessors.jl | 8 ++++---- 10 files changed, 20 insertions(+), 20 deletions(-) rename ext/{AccessorsAxisKeysExt.jl => AxisKeysExt.jl} (96%) rename ext/{AccessorsDatesExt.jl => DatesExt.jl} (98%) rename ext/{AccessorsIntervalSetsExt.jl => IntervalSetsExt.jl} (94%) rename ext/{AccessorsLinearAlgebraExt.jl => LinearAlgebraExt.jl} (91%) rename ext/{AccessorsStaticArraysExt.jl => StaticArraysExt.jl} (97%) rename ext/{AccessorsStructArraysExt.jl => StructArraysExt.jl} (95%) rename ext/{AccessorsTestExt.jl => TestExt.jl} (98%) rename ext/{AccessorsUnitfulExt.jl => UnitfulExt.jl} (90%) diff --git a/Project.toml b/Project.toml index e2a31007..72d036d8 100644 --- a/Project.toml +++ b/Project.toml @@ -26,14 +26,14 @@ Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" Unitful = "1986cc42-f94f-5a68-af5c-568840ba703d" [extensions] -AccessorsAxisKeysExt = "AxisKeys" -AccessorsDatesExt = "Dates" -AccessorsIntervalSetsExt = "IntervalSets" -AccessorsLinearAlgebraExt = "LinearAlgebra" -AccessorsStaticArraysExt = "StaticArrays" -AccessorsStructArraysExt = "StructArrays" -AccessorsTestExt = "Test" -AccessorsUnitfulExt = "Unitful" +AxisKeysExt = "AxisKeys" +DatesExt = "Dates" +IntervalSetsExt = "IntervalSets" +LinearAlgebraExt = "LinearAlgebra" +StaticArraysExt = "StaticArrays" +StructArraysExt = "StructArrays" +TestExt = "Test" +UnitfulExt = "Unitful" [compat] AxisKeys = "0.2" diff --git a/ext/AccessorsAxisKeysExt.jl b/ext/AxisKeysExt.jl similarity index 96% rename from ext/AccessorsAxisKeysExt.jl rename to ext/AxisKeysExt.jl index c30560d0..80fd19c2 100644 --- a/ext/AccessorsAxisKeysExt.jl +++ b/ext/AxisKeysExt.jl @@ -1,4 +1,4 @@ -module AccessorsAxisKeysExt +module AxisKeysExt using Accessors using AxisKeys diff --git a/ext/AccessorsDatesExt.jl b/ext/DatesExt.jl similarity index 98% rename from ext/AccessorsDatesExt.jl rename to ext/DatesExt.jl index 9f9787c6..0336a8b7 100644 --- a/ext/AccessorsDatesExt.jl +++ b/ext/DatesExt.jl @@ -1,4 +1,4 @@ -module AccessorsDatesExt +module DatesExt using Accessors import Accessors: set diff --git a/ext/AccessorsIntervalSetsExt.jl b/ext/IntervalSetsExt.jl similarity index 94% rename from ext/AccessorsIntervalSetsExt.jl rename to ext/IntervalSetsExt.jl index b4b7ec30..792bc80f 100644 --- a/ext/AccessorsIntervalSetsExt.jl +++ b/ext/IntervalSetsExt.jl @@ -1,4 +1,4 @@ -module AccessorsIntervalSetsExt +module IntervalSetsExt using Accessors using IntervalSets diff --git a/ext/AccessorsLinearAlgebraExt.jl b/ext/LinearAlgebraExt.jl similarity index 91% rename from ext/AccessorsLinearAlgebraExt.jl rename to ext/LinearAlgebraExt.jl index 19b70d04..dac1f588 100644 --- a/ext/AccessorsLinearAlgebraExt.jl +++ b/ext/LinearAlgebraExt.jl @@ -1,4 +1,4 @@ -module AccessorsLinearAlgebraExt +module LinearAlgebraExt import Accessors: set, @set using LinearAlgebra: norm, normalize, diag, diagind diff --git a/ext/AccessorsStaticArraysExt.jl b/ext/StaticArraysExt.jl similarity index 97% rename from ext/AccessorsStaticArraysExt.jl rename to ext/StaticArraysExt.jl index b765c607..1896f4c2 100644 --- a/ext/AccessorsStaticArraysExt.jl +++ b/ext/StaticArraysExt.jl @@ -1,4 +1,4 @@ -module AccessorsStaticArraysExt +module StaticArraysExt isdefined(Base, :get_extension) ? (using StaticArrays) : (using ..StaticArrays) using Accessors import Accessors: setindex, delete, insert diff --git a/ext/AccessorsStructArraysExt.jl b/ext/StructArraysExt.jl similarity index 95% rename from ext/AccessorsStructArraysExt.jl rename to ext/StructArraysExt.jl index 13da5633..9866d672 100644 --- a/ext/AccessorsStructArraysExt.jl +++ b/ext/StructArraysExt.jl @@ -1,4 +1,4 @@ -module AccessorsStructArraysExt +module StructArraysExt using Accessors using StructArrays diff --git a/ext/AccessorsTestExt.jl b/ext/TestExt.jl similarity index 98% rename from ext/AccessorsTestExt.jl rename to ext/TestExt.jl index 4278092a..758357a1 100644 --- a/ext/AccessorsTestExt.jl +++ b/ext/TestExt.jl @@ -1,4 +1,4 @@ -module AccessorsTestExt +module TestExt using Accessors using Test: @test diff --git a/ext/AccessorsUnitfulExt.jl b/ext/UnitfulExt.jl similarity index 90% rename from ext/AccessorsUnitfulExt.jl rename to ext/UnitfulExt.jl index 705032bf..e4ef94f4 100644 --- a/ext/AccessorsUnitfulExt.jl +++ b/ext/UnitfulExt.jl @@ -1,4 +1,4 @@ -module AccessorsUnitfulExt +module UnitfulExt import Accessors: set using Unitful diff --git a/src/Accessors.jl b/src/Accessors.jl index c41208b3..002f07d9 100644 --- a/src/Accessors.jl +++ b/src/Accessors.jl @@ -17,14 +17,14 @@ include("functionlenses.jl") include("testing.jl") if !isdefined(Base, :get_extension) - include("../ext/AccessorsDatesExt.jl") - include("../ext/AccessorsLinearAlgebraExt.jl") - include("../ext/AccessorsTestExt.jl") + include("../ext/DatesExt.jl") + include("../ext/LinearAlgebraExt.jl") + include("../ext/TestExt.jl") end function __init__() @static if !isdefined(Base, :get_extension) - @require StaticArrays = "90137ffa-7385-5640-81b9-e52037218182" include("../ext/AccessorsStaticArraysExt.jl") + @require StaticArrays = "90137ffa-7385-5640-81b9-e52037218182" include("../ext/StaticArraysExt.jl") end if isdefined(Base.Experimental, :register_error_hint) Base.Experimental.register_error_hint(MethodError) do io, exc, argtypes, kwargs