Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:20
eredis
eredis-1.0.8-git.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File eredis-1.0.8-git.patch of Package eredis
diff --git a/.gitignore b/.gitignore index 36268df..b06650f 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,5 @@ ebin/* *~ Emakefile .rebar +.DS_Store +doc diff --git a/.travis.yml b/.travis.yml index 5cde450..3f10493 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,6 +2,8 @@ language: erlang notifications: email: false otp_release: + - 18.0 + - 17.5 - 17.4 - 17.3 - 17.1 diff --git a/Makefile b/Makefile index 140f18f..0d27da2 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,7 @@ APP=eredis +PRE17 := $(shell ERL_FLAGS="" erl -eval 'io:format("~s~n", [case re:run(erlang:system_info(otp_release), "^R") of nomatch -> ""; _ -> pre17 end]), halt().' -noshell) + .PHONY: all compile clean Emakefile all: compile @@ -22,6 +24,10 @@ ifdef TEST EXTRA_OPTS:=$(EXTRA_OPTS) {d,'TEST', true}, endif +ifndef PRE17 +EXTRA_OPTS:=$(EXTRA_OPTS) {d,namespaced_types}, +endif + Emakefile: Emakefile.src sed "s/{{EXTRA_OPTS}}/$(EXTRA_OPTS)/" $< > $@ diff --git a/src/eredis.erl b/src/eredis.erl index 491ea8a..79b451b 100644 --- a/src/eredis.erl +++ b/src/eredis.erl @@ -3,8 +3,8 @@ %% %% Usage: %% {ok, Client} = eredis:start_link(). -%% {ok, <<"OK">>} = eredis:q(["SET", "foo", "bar"]). -%% {ok, <<"bar">>} = eredis:q(["GET", "foo"]). +%% {ok, <<"OK">>} = eredis:q(Client, ["SET", "foo", "bar"]). +%% {ok, <<"bar">>} = eredis:q(Client, ["GET", "foo"]). -module(eredis). -include("eredis.hrl"). @@ -97,9 +97,8 @@ qp(Client, Pipeline, Timeout) -> pipeline(Client, Pipeline, Timeout). -spec q_noreply(Client::client(), Command::[any()]) -> ok. -%% @doc +%% @doc Executes the command but does not wait for a response and ignores any errors. %% @see q/2 -%% Executes the command but does not wait for a response and ignores any errors. q_noreply(Client, Command) -> cast(Client, Command).
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor