From b4de14d039a638e2224f16d593385f0bd987b17b Mon Sep 17 00:00:00 2001 From: Ismael Arenzana Date: Mon, 21 Dec 2020 09:45:20 -0500 Subject: [PATCH] Not planning on submitting a merge request. Decoupling from upstream --- LICENSE | 2 +- Makefile | 4 ++-- README.md | 58 +++++++++++++++++++++++------------------------ doc.go | 12 +++++----- enclosure_test.go | 2 +- example_test.go | 22 +++++++++--------- examples_test.go | 16 ++++++------- go.mod | 2 +- item_test.go | 2 +- podcast.go | 13 ++++++----- podcast_test.go | 2 +- 11 files changed, 68 insertions(+), 67 deletions(-) diff --git a/LICENSE b/LICENSE index 06a51ca..15d993a 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2017 Eric Duncan +Copyright (c) 2017 Ismael Arenzana Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/Makefile b/Makefile index 1b8e97f..d268ffa 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ SHELL = /bin/bash -GITHUB_REPO:=eduncan911/podcast +GITHUB_REPO:=arenzana/podcast README: godoc2ghmd -play -ex -verify_import_links=0 github.com/$(GITHUB_REPO) > README.md.tmp @@ -8,7 +8,7 @@ README: echo "[![Build Status](https://github.com/$(GITHUB_REPO)/workflows/go-cicd/badge.svg)](https://github.com/$(GITHUB_REPO)/actions?workflow=go-cicd)" >> README.md echo "[![Coverage Status](https://coveralls.io/repos/github/$(GITHUB_REPO)/badge.svg?branch=master)](https://coveralls.io/github/$(GITHUB_REPO)?branch=master)" >> README.md echo "[![Go Report Card](https://goreportcard.com/badge/github.com/$(GITHUB_REPO))](https://goreportcard.com/report/github.com/$(GITHUB_REPO))" >> README.md - echo "[![MIT License](https://img.shields.io/npm/l/mediaelement.svg)](https://eduncan911.mit-license.org/)" >> README.md + echo "[![MIT License](https://img.shields.io/npm/l/mediaelement.svg)](https://arenzana.mit-license.org/)" >> README.md echo >>README.md cat README.md.tmp >> README.md rm README.md.tmp diff --git a/README.md b/README.md index fded6c8..bad7af6 100644 --- a/README.md +++ b/README.md @@ -1,21 +1,21 @@ -[![GoDoc](https://godoc.org/github.com/eduncan911/podcast?status.svg)](https://godoc.org/github.com/eduncan911/podcast) -[![Build Status](https://github.com/eduncan911/podcast/workflows/go-cicd/badge.svg)](https://github.com/eduncan911/podcast/actions?workflow=go-cicd) -[![Coverage Status](https://coveralls.io/repos/github/eduncan911/podcast/badge.svg?branch=master)](https://coveralls.io/github/eduncan911/podcast?branch=master) -[![Go Report Card](https://goreportcard.com/badge/github.com/eduncan911/podcast)](https://goreportcard.com/report/github.com/eduncan911/podcast) -[![MIT License](https://img.shields.io/npm/l/mediaelement.svg)](https://eduncan911.mit-license.org/) +[![GoDoc](https://godoc.org/github.com/arenzana/podcast?status.svg)](https://godoc.org/github.com/arenzana/podcast) +[![Build Status](https://github.com/arenzana/podcast/workflows/go-cicd/badge.svg)](https://github.com/arenzana/podcast/actions?workflow=go-cicd) +[![Coverage Status](https://coveralls.io/repos/github/arenzana/podcast/badge.svg?branch=master)](https://coveralls.io/github/arenzana/podcast?branch=master) +[![Go Report Card](https://goreportcard.com/badge/github.com/arenzana/podcast)](https://goreportcard.com/report/github.com/arenzana/podcast) +[![MIT License](https://img.shields.io/npm/l/mediaelement.svg)](https://arenzana.mit-license.org/) # podcast Package podcast generates a fully compliant iTunes and RSS 2.0 podcast feed for GoLang using a simple API. -Full documentation with detailed examples located at https://godoc.org/github.com/eduncan911/podcast +Full documentation with detailed examples located at https://godoc.org/github.com/arenzana/podcast ### Usage To use, `go get` and `import` the package like your typical GoLang library. - $ go get -u github.com/eduncan911/podcast + $ go get -u github.com/arenzana/podcast - import "github.com/eduncan911/podcast" + import "github.com/arenzana/podcast" The API exposes a number of method receivers on structs that implements the logic required to comply with the specifications and ensure a compliant feed. @@ -25,7 +25,7 @@ Notably, the `Podcast.AddItem` function performs most of the heavy lifting by taking the `Item` input and performing validation, overrides and duplicate setters through the feed. -Full detailed Examples of the API are at https://godoc.org/github.com/eduncan911/podcast. +Full detailed Examples of the API are at https://godoc.org/github.com/arenzana/podcast. ### Go Modules This library is supported on GoLang 1.7 and higher. @@ -57,8 +57,8 @@ of the inputs. go get -u github.com/dvyukov/go-fuzz/go-fuzz go get -u github.com/dvyukov/go-fuzz/go-fuzz-build - go get -u github.com/eduncan911/podcast - cd $GOPATH/src/github.com/eduncan911/podcast + go get -u github.com/arenzana/podcast + cd $GOPATH/src/github.com/arenzana/podcast go-fuzz-build go-fuzz -func FuzzPodcastAddItem @@ -175,15 +175,15 @@ Podcasts: ht // instantiate a new Podcast p := podcast.New( - "eduncan911 Podcasts", - "http://eduncan911.com/", + "arenzana Podcasts", + "http://arenzana.org/", "An example Podcast", &pubDate, &updatedDate, ) // add some channel properties p.AddAuthor("Jane Doe", "me@janedoe.com") - p.AddAtomLink("http://eduncan911.com/feed.rss") + p.AddAtomLink("http://arenzana.org/feed.rss") p.AddImage("http://janedoe.com/i.jpg") p.AddSummary(`link example.com`) p.IExplicit = "no" @@ -232,20 +232,20 @@ Podcasts: ht // // // - // eduncan911 Podcasts - // http://eduncan911.com/ + // arenzana Podcasts + // http://arenzana.org/ // An example Podcast - // go podcast v1.3.1 (github.com/eduncan911/podcast) + // go podcast v1.3.1 (github.com/arenzana/podcast) // en-us // Mon, 06 Feb 2017 08:21:52 +0000 // me@janedoe.com (Jane Doe) // Sat, 04 Feb 2017 08:21:52 +0000 // // http://janedoe.com/i.jpg - // eduncan911 Podcasts - // http://eduncan911.com/ + // arenzana Podcasts + // http://arenzana.org/ // - // + // // me@janedoe.com (Jane Doe) // example.com]]> // @@ -333,7 +333,7 @@ Podcasts: ht // Sample Podcasts // http://example.com/ // An example Podcast - // go podcast v1.3.1 (github.com/eduncan911/podcast) + // go podcast v1.3.1 (github.com/arenzana/podcast) // en-us // Mon, 06 Feb 2017 08:21:52 +0000 // jane.doe@example.com (Jane Doe) @@ -1168,8 +1168,8 @@ Bytes returns an encoded []byte slice. ```go p := podcast.New( - "eduncan911 Podcasts", - "http://eduncan911.com/", + "arenzana Podcasts", + "http://arenzana.org/", "An example Podcast", &pubDate, &updatedDate, ) @@ -1203,18 +1203,18 @@ p := podcast.New( // // // - // eduncan911 Podcasts - // http://eduncan911.com/ + // arenzana Podcasts + // http://arenzana.org/ // An example Podcast - // go podcast v1.3.1 (github.com/eduncan911/podcast) + // go podcast v1.3.1 (github.com/arenzana/podcast) // en-us // Mon, 06 Feb 2017 08:21:52 +0000 // me@janedoe.com (Jane Doe) // Sat, 04 Feb 2017 08:21:52 +0000 // // http://janedoe.com/i.jpg - // eduncan911 Podcasts - // http://eduncan911.com/ + // arenzana Podcasts + // http://arenzana.org/ // // me@janedoe.com (Jane Doe) // example.com`) p.IExplicit = "no" @@ -75,20 +75,20 @@ func Example_httpHandlers() { // // // - // eduncan911 Podcasts - // http://eduncan911.com/ + // arenzana Podcasts + // http://arenzana.org/ // An example Podcast - // go podcast v1.3.1 (github.com/eduncan911/podcast) + // go podcast v1.3.1 (github.com/arenzana/podcast) // en-us // Mon, 06 Feb 2017 08:21:52 +0000 // me@janedoe.com (Jane Doe) // Sat, 04 Feb 2017 08:21:52 +0000 // // http://janedoe.com/i.jpg - // eduncan911 Podcasts - // http://eduncan911.com/ + // arenzana Podcasts + // http://arenzana.org/ // - // + // // me@janedoe.com (Jane Doe) // example.com]]> // @@ -170,7 +170,7 @@ func Example_ioWriter() { // Sample Podcasts // http://example.com/ // An example Podcast - // go podcast v1.3.1 (github.com/eduncan911/podcast) + // go podcast v1.3.1 (github.com/arenzana/podcast) // en-us // Mon, 06 Feb 2017 08:21:52 +0000 // jane.doe@example.com (Jane Doe) diff --git a/examples_test.go b/examples_test.go index b6297d0..1a065d1 100644 --- a/examples_test.go +++ b/examples_test.go @@ -5,7 +5,7 @@ import ( "os" "strconv" - "github.com/eduncan911/podcast" + "github.com/arenzana/podcast" ) func ExampleNew() { @@ -145,8 +145,8 @@ See more at our website: example.com func ExamplePodcast_Bytes() { p := podcast.New( - "eduncan911 Podcasts", - "http://eduncan911.com/", + "arenzana Podcasts", + "http://arenzana.org/", "An example Podcast", &pubDate, &updatedDate, ) @@ -180,18 +180,18 @@ See more at our website: example.com // // // - // eduncan911 Podcasts - // http://eduncan911.com/ + // arenzana Podcasts + // http://arenzana.org/ // An example Podcast - // go podcast v1.3.1 (github.com/eduncan911/podcast) + // go podcast v1.3.1 (github.com/arenzana/podcast) // en-us // Mon, 06 Feb 2017 08:21:52 +0000 // me@janedoe.com (Jane Doe) // Sat, 04 Feb 2017 08:21:52 +0000 // // http://janedoe.com/i.jpg - // eduncan911 Podcasts - // http://eduncan911.com/ + // arenzana Podcasts + // http://arenzana.org/ // // me@janedoe.com (Jane Doe) //