From c912bc13464c2ed1bd66e8522bd5d17e3f6a0c78 Mon Sep 17 00:00:00 2001 From: Maxim Lebedev Date: Tue, 14 Jan 2020 11:43:33 +0500 Subject: [PATCH 1/5] :fire: Removed go generate comments --- telegraph.go | 1 - types.go | 1 - 2 files changed, 2 deletions(-) diff --git a/telegraph.go b/telegraph.go index ac0f25d..cf37de7 100644 --- a/telegraph.go +++ b/telegraph.go @@ -1,4 +1,3 @@ -//go:generate ffjson $GOFILE package telegraph import ( diff --git a/types.go b/types.go index 1691825..47b274c 100644 --- a/types.go +++ b/types.go @@ -1,4 +1,3 @@ -//go:generate ffjson $GOFILE package telegraph import "errors" From 11ad208feddd1f89ca9a86b11cc0a4ebd0ac1a0d Mon Sep 17 00:00:00 2001 From: Maxim Lebedev Date: Tue, 14 Jan 2020 12:37:20 +0500 Subject: [PATCH 2/5] :pencil: Added changelog list --- CHANGELOG.md | 75 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 CHANGELOG.md diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..99f648a --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,75 @@ +# Changelog +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [Unreleased] +### Added +- This `CHANGELOG.md` file + +### Removed +- `go:generate` comments + +## [1.2.0] - 2020-01-14 +### Added +- `.github/workflows` folder with migration actions for GitHub mirror +- Internal methods structures for JSON marshling in requests + +### Changed +- GitLab CI configuration for caches and modules support +- `Makefile` for go modules support +- Format of the code +- Removed last linter warnings +- Added actual package import path into `doc.go` +- Use `time.Time` structure instead `[]int` in `GetViews` method (yeah, this violates the semantic versioning because backward compatibility breaks, but this is the last time, I promise) +- Updated go modules in `go.mod`/`go.sum` +- Force type initialization in constants section + +### Fixed +- Use JSON body instead query strings for better cyrillic support #6 +- Removed `charset` parameter in `Content-Type` header, because sometimes Telegraph answer BadRequest status + +## [1.1.0] - 2019-07-24 +### Added +- [EditorConfig](https://editorconfig.org/) +- GitLab CI configuration +- [PreCommit](https://pre-commit.com/) hooks configuration +- `Makefile` with useful snippets +- `SUPPORT.md` list with all contributors, helpers and patrons +- `go.mod` and `go.sum` for go modules support +- Individual methods tests files +- Added `types.go` with all available structures and types + +### Changed +- `LICENSE.md` current year +- Actual package URLs in `README.md` +- Format `ContentFormat` code +- Moved all types from methods files into `types.go` file +- Used copy of structures in all methods instead links, because this arguments is required +- Renamed `request` method into `makeRequest` +- Added comments for false-positives linters warnings +- Renamed `request.go` to `telegraph.go` + +### Removed +- Travis CI configuration due to migration from GitHub to GitLab native CI +- `CONTRIBUTORS.md` in favor of a single `SUPPORT.md` list +- `PATRONS.md` in favor of a single `SUPPORT.md` list +- Badges collection from `README.md` +- `invalid_test.go`/`valid_test.go` due individual methods tests files + +## [1.0.0] - 2018-01-09 +### Added +- Travis CI configuration +- Code of conduct info +- Contributors list +- License information +- Patrons list +- ReadMe +- All available methods +- Coverage tests + +[Unreleased]: https://gitlab.com/toby3d/telegraph/compare/v1.2.0...develop +[1.2.0]: https://gitlab.com/toby3d/telegraph/compare/v1.1.0...v1.2.0 +[1.1.0]: https://gitlab.com/toby3d/telegraph/compare/v1.0.0...v1.1.0 +[1.0.0]: https://gitlab.com/toby3d/telegraph/tree/v1.0.0 \ No newline at end of file From 304bdc32fedf71f893ed555c97e8f96c1c66ce81 Mon Sep 17 00:00:00 2001 From: Maxim Lebedev Date: Tue, 14 Jan 2020 12:47:40 +0500 Subject: [PATCH 3/5] :busts_in_silhouette: Updated contributors list --- CHANGELOG.md | 5 +++++ SUPPORT.md => CONTRIBUTING.md | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) rename SUPPORT.md => CONTRIBUTING.md (71%) diff --git a/CHANGELOG.md b/CHANGELOG.md index 99f648a..947c47e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added - This `CHANGELOG.md` file +### Changed +- Renamed `SUPPORT.md` to `CONTRIBUTING.md` +- Updated patrons list in `CONTRIBUTING.md` +- Updated patreon link + ### Removed - `go:generate` comments diff --git a/SUPPORT.md b/CONTRIBUTING.md similarity index 71% rename from SUPPORT.md rename to CONTRIBUTING.md index 72f688c..5c13fa6 100644 --- a/SUPPORT.md +++ b/CONTRIBUTING.md @@ -1,9 +1,8 @@ -# [Support me on Patreon!](https://www.patreon.com/bePatron?c=243288) +# [Support me on Patreon!](https://www.patreon.com/join/toby3d) I develop this project in my spare time, and I do it and I will do it free of charge. However, you can make a donation or become a sponsor to make sure that I have enough coffee and pizza for night coding. **These people sponsored current version of the project:** - Aurielb -- MoD21k - @YamiOdymel # Also From 819ef72e1e43c7caa8902c56ef3c8c9d0471d8eb Mon Sep 17 00:00:00 2001 From: Maxim Lebedev Date: Tue, 14 Jan 2020 12:48:21 +0500 Subject: [PATCH 4/5] :page_facing_up: Updated license year --- CHANGELOG.md | 1 + LICENSE.md | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 947c47e..ed34362 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Renamed `SUPPORT.md` to `CONTRIBUTING.md` - Updated patrons list in `CONTRIBUTING.md` - Updated patreon link +- Updated current year in `LICENSE.md` ### Removed - `go:generate` comments diff --git a/LICENSE.md b/LICENSE.md index 3f27411..6629abf 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -1,5 +1,5 @@ # MIT License -Copyright (c) 2019 Maxim Lebedev +Copyright (c) 2020 Maxim Lebedev Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -17,4 +17,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. +SOFTWARE. \ No newline at end of file From e7436b3dbc81b50565a6f0120375d6842d712f73 Mon Sep 17 00:00:00 2001 From: Maxim Lebedev Date: Tue, 14 Jan 2020 12:51:00 +0500 Subject: [PATCH 5/5] :bookmark: Release v1.2.1 --- CHANGELOG.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ed34362..92d8954 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] + +## [1.2.1] - 2020-01-14 ### Added - This `CHANGELOG.md` file @@ -75,7 +77,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - All available methods - Coverage tests -[Unreleased]: https://gitlab.com/toby3d/telegraph/compare/v1.2.0...develop +[Unreleased]: https://gitlab.com/toby3d/telegraph/compare/v1.2.1...develop +[1.2.1]: https://gitlab.com/toby3d/telegraph/compare/v1.2.0...v1.2.1 [1.2.0]: https://gitlab.com/toby3d/telegraph/compare/v1.1.0...v1.2.0 [1.1.0]: https://gitlab.com/toby3d/telegraph/compare/v1.0.0...v1.1.0 [1.0.0]: https://gitlab.com/toby3d/telegraph/tree/v1.0.0 \ No newline at end of file