Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update the repository from fork laget.se/ical net #595

Merged
merged 58 commits into from
Oct 13, 2024

Conversation

axunonb
Copy link
Collaborator

@axunonb axunonb commented Oct 13, 2024

  • Update the repository from fork laget.se/ical net

Apply the following change after the update:

  • Remove net5.0 as target framework from all lprojects
  • Update nuget-specific settings
    • Update icon.png file used in Ical.Net.nuspec
    • Update package metadata
    • Remove net5.0 package target framework
    • Update README.md to reflect the current project state with ical-org
    • Fix: Update publish.yml to create deterministic builds for packages, update action versions
  • Update GitHub actions to reflect the changed main branch name
  • Update readme.md
  • Update CI workflows publish.yml and tests.yml
    • Changed runs-on to ubuntu-latest.
    • Added fetch-depth: 0 to actions/checkout@v4 in both workflows.
    • Added Get version tag step in publish.yml.
    • Included -p:nowarn=1591 in Build steps to suppress warnings.
    • Changed Test verbosity to quiet in both workflows.
    • Updated Build and pack for publishing in publish.yml to use VERSION.
    • Updated Store artifacts step in publish.yml for new naming convention.
    • Updated Push package to NuGet step in publish.yml to use VERSION.
  • Update ProdId constant and NodaTime package version
  • Add back assembly signing to projects and include strong name key
  • Update Ical.Net.Tests.csproj and Ical.Net.csproj to include assembly signing by adding SignAssembly and AssemblyOriginatorKeyFile properties.
    • Replace InternalsVisibleTo with AssemblyAttribute including a public key in Ical.Net.csproj.
    • Add IcalNetStrongnameKey.snk for strong name key.
    • Move InternalsVisibleTo from AssemblyInfo.cs to project file
  • Add class RegexDefaults and update all Regex with RegexDefaults.Timeout which is set to 200 milliseconds

This PR closes the following PRs which have previously been merged into laget.se/ical net
Closes #491
Closes #443
Closes #525
Closes #528
Closes #571
Closes #579
Closes #584
Closes #595

ITESMEDIA and others added 30 commits March 19, 2019 16:47
BUG FIX: Multiple Recurrence Patterns (RecurrenceRules & ExceptionRules) are ignored #524
Revert "fix 4/5 week dts timing bug"

This reverts commit b7bbc89.

Fix issues with 5 week DST transition months
- Changed `runs-on` to `ubuntu-latest` in `publish.yml` and `tests.yml`.
- Added `fetch-depth: 0` to `actions/checkout@v4` in both workflows.
- Added `Get version tag` step in `publish.yml`.
- Included `-p:nowarn=1591` in `Build` steps to suppress warnings.
- Changed `Test` verbosity to `quiet` in both workflows.
- Updated `Build and pack for publishing` in `publish.yml` to use `VERSION`.
- Updated `Store artifacts` step in `publish.yml` for new naming convention.
- Updated `Push package to NuGet` step in `publish.yml` to use `VERSION`.
Updated the `ProdId` constant in `LibraryMetadata` class within `Constants.cs` to reflect a new GitHub organization. Changed the value from `"-//github.com/rianjs/ical.net//NONSGML ical.net 4.0//EN"` to `"-//github.com/ical-org/ical.net//NONSGML ical.net 4.0//EN"`.

Modified the `NodaTime` package reference in `Ical.Net.csproj` to use a wildcard for the patch version, changing from `"3.1.11"` to `"3.1.*"` to allow for automatic updates to any 3.1.x version.
* Update `Ical.Net.Tests.csproj` and `Ical.Net.csproj` to include assembly signing by adding `SignAssembly` and `AssemblyOriginatorKeyFile` properties.
* Replace `InternalsVisibleTo` with `AssemblyAttribute` including a public key in `Ical.Net.csproj`.
* Add `IcalNetStrongnameKey.snk` for strong name key.
Avoid mixing up with public virtual property AssociatedObject
Refactored the ListForIndex method in GroupedList.cs to use the
FirstOrDefault LINQ method instead of a foreach loop with a Where
clause.
This change simplifies the code and improves performance.
Added a null check to handle cases where no matching list is found,
ensuring the method returns null and sets relativeIndex to -1.
* Refactored `GetZone` method to use `FirstOrDefault` for finding
matching time zone IDs, simplifying the code by removing `foreach`
loops.
* Reused and reassigned `providerId` variable. Streamlined
condition checks and retrieval of time zones.
…dling

* Replaced `SimpleCalendar` static field with `CreateSimpleCalendar` method.
`CreateSimpleCalendar` now creates a `CalendarEvent` and adds it to the `Calendar`.
* Removed `_aTzid`, `SimpleCalendar`, and `_e` static fields, integrating their functionality into `CreateSimpleCalendar`.
Modified the SetValueType method in CalendarDataType.cs to convert
the 'type' variable to uppercase only if it is not null, removing
the redundant null-coalescing operation. This change potentially avoids a null reference exception.
Duration cannot be assigned to null, we check for default value
Duration cannot be assigned to null, we check for default value
@axunonb axunonb force-pushed the update-from-laget-se-ical-net branch from f11dde6 to 3bfe42c Compare October 13, 2024 19:51
Introduced a new static class `RegexDefaults` in `Constants.cs` to define default values for regular expressions, including a default timeout of 200 milliseconds.

Updated various `Regex` instances across multiple files (`DateTimeSerializer.cs`, `RecurrencePatternSerializer.cs`, `RequestStatusSerializer.cs`, `StringSerializer.cs`, `TimeSpanSerializer.cs`, `UtcOffsetSerializer.cs`, `WeekDaySerializer.cs`, `SimpleDeserializer.cs`, `TextUtil.cs`) to use the new `RegexDefaults.Timeout` for specifying the timeout parameter.
@axunonb axunonb force-pushed the update-from-laget-se-ical-net branch from 3bfe42c to ae4bd4f Compare October 13, 2024 19:54
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
B Reliability Rating on New Code (required ≥ A)

See analysis details on SonarCloud

Catch issues before they fail your Quality Gate with our IDE extension SonarLint

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Period in RDate not fully supported in serialization
8 participants