Skip to content

Commit

Permalink
Release Candidate 2.0
Browse files Browse the repository at this point in the history
* Returning an interface here makes it rather difficult to work with the MailgunImpl struct
* Changed README send example to a valid program
* Removed the need for public api from Mailgun interface and created new Validator interface
* Simplified NewMailgun() and NewMailgunFromEnv()
* Removed NewMailgunImpl() test
* Added support for mailing list events and disabled some check in event tests
* test only 1.8, running concurrent tests causes issues
* .travis.yml cleanup
* renamed Api to API, removed campaigns
* Load ENV variables from .env file
  • Loading branch information
mrios16 authored and thrawn01 committed Oct 2, 2018
1 parent 28c4508 commit c1b5c37
Show file tree
Hide file tree
Showing 32 changed files with 653 additions and 290 deletions.
16 changes: 16 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Set the following values and any others
# you need loaded into the ENV. You can then
# access the variables by using os.Getenv("KEY")
# See https://github.com/gobuffalo/envy
# Format is:
# Key=Value
# Required for Mailgun to function:
# MG_API_KEY=your-api-key
# MG_DOMAIN=your-domain
# MG_PUBLIC_API_KEY=your-public-key
# MG_URL="https://api.mailgun.net/v3"

MG_API_KEY=123456
MG_DOMAIN=crazydomainname.lol
MG_PUBLIC_API_KEY=cflat
MG_URL="https://api.mailgun.net/v3"
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.DS_Store
.idea/
cmd/mailgun/mailgun
12 changes: 1 addition & 11 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,4 @@
language: go

go:
- 1.6.x
- 1.7.x
- 1.8.x

sudo: true

before_script:
- sudo apt-get install haveged && sudo service haveged start

script:
- make
- 1.9.x
253 changes: 253 additions & 0 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

62 changes: 62 additions & 0 deletions Gopkg.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
# Gopkg.toml example
#
# Refer to https://golang.github.io/dep/docs/Gopkg.toml.html
# for detailed Gopkg.toml documentation.
#
# required = ["github.com/user/thing/cmd/thing"]
# ignored = ["github.com/user/project/pkgX", "bitbucket.org/user/project/pkgA/pkgY"]
#
# [[constraint]]
# name = "github.com/user/project"
# version = "1.0.0"
#
# [[constraint]]
# name = "github.com/user/project2"
# branch = "dev"
# source = "github.com/myfork/project2"
#
# [[override]]
# name = "github.com/x/y"
# version = "2.4.0"
#
# [prune]
# non-go = false
# go-tests = true
# unused-packages = true


[[constraint]]
branch = "master"
name = "github.com/drhodes/golorem"

[[constraint]]
branch = "master"
name = "github.com/facebookgo/ensure"

[[constraint]]
name = "github.com/gobuffalo/envy"
version = "1.6.4"

[[constraint]]
name = "github.com/onsi/ginkgo"
version = "1.6.0"

[[constraint]]
name = "github.com/onsi/gomega"
version = "1.4.2"

[[constraint]]
branch = "master"
name = "github.com/pkg/errors"

[[constraint]]
name = "github.com/thrawn01/args"
version = "0.3.0"

[[override]]
name = "gopkg.in/fsnotify.v1"
source = "https://github.com/fsnotify/fsnotify.git"

[prune]
go-tests = true
unused-packages = true
Loading

0 comments on commit c1b5c37

Please sign in to comment.