Skip to content

Commit a933890

Browse files
committed
review changes
1 parent 535b4f8 commit a933890

19 files changed

+74
-26
lines changed

CHANGELOG.md

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,25 @@
11
# Changelog
22

3-
## 0.1.0
4-
- Initial Singer-compatible tap-sendgrid implementation.
3+
## 2.0.0
4+
- Latest Singer-compatible tap-sendgrid implementation.
5+
6+
## 1.0.5
7+
* Dependency upgrades [#15](https://github.com/singer-io/tap-sendgrid/pull/15)
8+
9+
## 1.0.4
10+
* Add pytz to install_requires [#13](https://github.com/singer-io/tap-sendgrid/pull/13)
11+
12+
## 1.0.3
13+
* Reverts #3
14+
15+
## 1.0.2
16+
* Updates permissions used for reading campaigns [#3](https://github.com/singer-io/tap-sendgrid/pull/3)
17+
18+
## 1.0.1
19+
* Update version of `requests` to `2.20.0` in response to CVE 2018-18074
20+
21+
## 0.1.2
22+
* Fix filtering code to include automatic fields [#2](https://github.com/singer-io/tap-sendgrid/pull/2)
23+
24+
## 0.1.1
25+
* Setting key properties to automatic [#1](https://github.com/singer-io/tap-sendgrid/pull/1)

setup.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,11 @@
22

33
setup(
44
name="tap-sendgrid",
5-
version="0.1.0",
5+
version="2.0.0",
66
description="Singer.io tap for extracting data from the SendGrid v3 API",
77
author="Stitch",
88
url="http://singer.io",
99
classifiers=["Programming Language :: Python :: 3 :: Only"],
10-
py_modules=["tap_sendgrid"],
1110
install_requires=[
1211
"singer-python==6.1.1",
1312
"requests==2.31.0",

tap_sendgrid/client.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,4 +167,6 @@ def to_unix_timestamp(value: str) -> int:
167167
if stripped.lstrip("-").isdigit():
168168
return int(stripped)
169169
dt = datetime.fromisoformat(stripped.replace("Z", "+00:00"))
170-
return int(dt.replace(tzinfo=timezone.utc).timestamp())
170+
if dt.tzinfo is None:
171+
dt = dt.replace(tzinfo=timezone.utc)
172+
return int(dt.timestamp())

tap_sendgrid/schemas/blocks.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@
2727
}
2828
},
2929
"additionalProperties": true
30-
}
30+
}

tap_sendgrid/schemas/bounces.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@
2727
}
2828
},
2929
"additionalProperties": true
30-
}
30+
}

tap_sendgrid/schemas/global_suppressions.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@
1515
}
1616
},
1717
"additionalProperties": true
18-
}
18+
}

tap_sendgrid/schemas/invalid_emails.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@
2121
}
2222
},
2323
"additionalProperties": true
24-
}
24+
}

tap_sendgrid/schemas/lists.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@
2121
}
2222
},
2323
"additionalProperties": true
24-
}
24+
}

tap_sendgrid/schemas/marketing_contacts_count.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,4 @@
4747
}
4848
},
4949
"additionalProperties": true
50-
}
50+
}

tap_sendgrid/schemas/marketing_field_definitions.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@
2727
}
2828
},
2929
"additionalProperties": true
30-
}
30+
}

0 commit comments

Comments
 (0)