gophermap 1.0.0__tar.gz → 1.1.0__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: gophermap
3
- Version: 1.0.0
3
+ Version: 1.1.0
4
4
  Summary: A simple library for parsng Gophermaps
5
5
  Keywords: Gopher,Gophermap,Hypertext,library,Markup,parser,Small Web,smolweb
6
6
  Author: Dave Pearson
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "gophermap"
3
- version = "1.0.0"
3
+ version = "1.1.0"
4
4
  description = "A simple library for parsng Gophermaps"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.12"
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "gophermap"
3
- version = "1.0.0"
3
+ version = "1.1.0"
4
4
  description = "A simple library for parsng Gophermaps"
5
5
  readme = "README.md"
6
6
  authors = [
@@ -45,8 +45,12 @@ class ItemType(StrEnum):
45
45
  """A document file."""
46
46
  AUDIO = "s"
47
47
  """An audio file."""
48
+ PNG = "p"
49
+ """A PNG image."""
48
50
  PDF = "P"
49
51
  """A PDF file."""
52
+ RTF = "r"
53
+ """A rich text format file."""
50
54
  XML = "X"
51
55
  """An XML file."""
52
56
  UNKNOWN = "unknown"
@@ -92,6 +96,8 @@ class ItemType(StrEnum):
92
96
  ItemType.AUDIO: "application/octet-stream",
93
97
  ItemType.PDF: "application/pdf",
94
98
  ItemType.XML: "application/xml",
99
+ ItemType.PNG: "image/png",
100
+ ItemType.RTF: "application/rtf",
95
101
  }.get(self, "application/x-gopher-unknown")
96
102
 
97
103
 
File without changes