Skip to content

Commit 172ec17

Browse files
committed
Rename
1 parent 0496a38 commit 172ec17

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

doc/release-notes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# NetTopologySuite.IO.GPX Release Notes
22

33
## [0.3.1](https://github.com/NetTopologySuite/NetTopologySuite.IO.GPX/milestone/8)
4-
- `GpxReaderSettings` now has an opt-in `IgnoreMissingVersionFailure` property, to allow reading files without a `version` attribute ([#27](https://github.com/NetTopologySuite/NetTopologySuite.IO.GPX/issues/27)).
4+
- `GpxReaderSettings` now has an opt-in `AllowMissingVersionAttribute` property, to allow reading files without a `version` attribute ([#27](https://github.com/NetTopologySuite/NetTopologySuite.IO.GPX/issues/27)).
55

66
## [0.3.0](https://github.com/NetTopologySuite/NetTopologySuite.IO.GPX/milestone/4)
77
- `GpxReaderSettings` now has a `DefaultCreatorIfMissing` property to use for filling in a missing `GpxMetadata.Creator` value, to help read values saved from legacy versions of IHM ([#23](https://github.com/NetTopologySuite/NetTopologySuite.IO.GPX/issues/23)).

src/NetTopologySuite.IO.GPX/GpxReader.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public static void Read(XmlReader reader, GpxReaderSettings settings, GpxVisitor
100100
settings = settings ?? new GpxReaderSettings();
101101
while (reader.ReadToFollowing("gpx", Helpers.GpxNamespace))
102102
{
103-
bool versionAccepted = settings.IgnoreMissingVersionFailure;
103+
bool versionAccepted = settings.AllowMissingVersionAttribute;
104104
string creator = settings.DefaultCreatorIfMissing;
105105
for (bool hasAttribute = reader.MoveToFirstAttribute(); hasAttribute; hasAttribute = reader.MoveToNextAttribute())
106106
{

src/NetTopologySuite.IO.GPX/GpxReaderSettings.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,6 @@ public sealed class GpxReaderSettings
3838
/// declaration, even though such files would not pass XSD validation (see
3939
/// NetTopologySuite/NetTopologySuite.IO.GPX#27).
4040
/// </summary>
41-
public bool IgnoreMissingVersionFailure { get; set; }
41+
public bool AllowMissingVersionAttribute { get; set; }
4242
}
4343
}

tests/NetTopologySuite.IO.GPX.Tests/GpxFileTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ public void MissingVersionShouldBeValid_OptIn()
219219
";
220220
Assert.ThrowsAny<XmlException>(() => GpxFile.Parse(GpxText, null));
221221

222-
var settings = new GpxReaderSettings { IgnoreMissingVersionFailure = true };
222+
var settings = new GpxReaderSettings { AllowMissingVersionAttribute = true };
223223
var file = GpxFile.Parse(GpxText, settings);
224224
Assert.Equal("someone", file.Metadata.Creator);
225225
}

0 commit comments

Comments
 (0)