Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge PoolBoy 1.3 #5

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# EditorConfig is awesome: http://EditorConfig.org

# top-most EditorConfig file
root = true

# Unix-style newlines with a newline ending every file
[*]
end_of_line = lf
insert_final_newline = true

# 4 space indentation
[*.{erl,src}]
indent_style = space
indent_size = 4
6 changes: 3 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
*.app
*.beam
.test
.rebar
.eunit
.dialyzer_plt
erl_crash.dump
ebin
11 changes: 7 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ notifications:
webhooks: http://basho-engbot.herokuapp.com/travis?key=f298b56e20009568a29135485bca1220d0733d05
email: [email protected]
otp_release:
- R15B01
- R15B
- R14B04
- R14B03
- 17.1
- 17.0
- R16B03-1
- R16B03
- R16B02
- R16B01
- R16B
13 changes: 7 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
REBAR = ./rebar
REBAR = rebar
DIALYZER = dialyzer

DIALYZER_WARNINGS = -Wunmatched_returns -Werror_handling \
-Wrace_conditions -Wunderspecs

.PHONY: all compile test clean get-deps build-plt dialyze
.PHONY: all compile test qc clean get-deps build-plt dialyze

all: compile

Expand All @@ -23,10 +23,11 @@ clean:
get-deps:
@$(REBAR) get-deps

build-plt:
.dialyzer_plt:
@$(DIALYZER) --build_plt --output_plt .dialyzer_plt \
--apps kernel stdlib

dialyze: compile
@$(DIALYZER) --src src --plt .dialyzer_plt $(DIALYZER_WARNINGS) | \
fgrep -vf .dialyzer-ignore-warnings
build-plt: .dialyzer_plt

dialyze: build-plt
@$(DIALYZER) --src src --plt .dialyzer_plt $(DIALYZER_WARNINGS)
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

[![Build Status](https://secure.travis-ci.org/basho/poolboy.png?branch=master)](http://travis-ci.org/basho/poolboy)

Poolboy is a **lightweight**, **generic** pooling library for Erlang with a
focus on **simplicity**, **performance**, and **rock-solid** disaster recovery.

## Usage

```erl-sh
Expand Down Expand Up @@ -113,6 +116,7 @@ start_link(Args) ->
gen_server:start_link(?MODULE, Args, []).

init(Args) ->
process_flag(trap_exit, true),
Hostname = proplists:get_value(hostname, Args),
Database = proplists:get_value(database, Args),
Username = proplists:get_value(username, Args),
Expand Down Expand Up @@ -161,3 +165,6 @@ code_change(_OldVsn, State, _Extra) ->
Poolboy is available in the public domain (see `UNLICENSE`).
Poolboy is also optionally available under the Apache License (see `LICENSE`),
meant especially for jurisdictions that do not recognize public domain works.


[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/devinus/poolboy/trend.png)](https://bitdeli.com/free "Bitdeli Badge")
1 change: 1 addition & 0 deletions VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1.3.0
19 changes: 19 additions & 0 deletions package.exs
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
defmodule Poolboy.Mixfile do
use Mix.Project

@version File.read!("VERSION") |> String.strip

def project do
[app: :poolboy,
version: @version,
description: "A hunky Erlang worker pool factory",
package: package]
end

defp package do
[files: ~w(src rebar.config README.md LICENSE UNLICENSE VERSION),
contributors: ["Devin Torres", "Andrew Thompson", "Kurt Williams"],
licenses: ["Unlicense", "Apache 2.0"],
links: [{"GitHub", "https://github.com/devinus/poolboy"}]]
end
end
6 changes: 5 additions & 1 deletion rebar.config
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
{erl_opts, [debug_info, warnings_as_errors]}.
{erl_opts, [
debug_info,
{platform_define, "^R", pre17}
]}.

{eunit_opts, [verbose]}.
{cover_enabled, true}.
2 changes: 1 addition & 1 deletion src/poolboy.app.src
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{application, poolboy, [
{description, "A hunky Erlang worker pool factory"},
{vsn, git},
{vsn, {cmd, "echo `cat VERSION`"}},
{applications, [kernel, stdlib]},
{registered, [poolboy]}
]}.
Loading