You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by da...@apache.org on 2014/01/17 23:57:25 UTC

[21/50] git commit: Fix formatting of exports (be consistent).

Fix formatting of exports (be consistent).


Project: http://git-wip-us.apache.org/repos/asf/couchdb-oauth/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-oauth/commit/cfe8271c
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-oauth/tree/cfe8271c
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-oauth/diff/cfe8271c

Branch: refs/heads/import
Commit: cfe8271cc378bd8aa5e5217cd452f3f368574c67
Parents: 6b012de
Author: Tim Fletcher <ma...@tfletcher.com>
Authored: Fri Nov 26 14:46:00 2010 +0000
Committer: Tim Fletcher <ma...@tfletcher.com>
Committed: Fri Nov 26 14:46:00 2010 +0000

----------------------------------------------------------------------
 src/oauth.erl           | 17 ++---------------
 src/oauth_hmac_sha1.erl |  1 -
 src/oauth_http.erl      |  1 -
 src/oauth_plaintext.erl |  1 -
 src/oauth_rsa_sha1.erl  |  1 -
 src/oauth_unix.erl      |  1 -
 src/oauth_uri.erl       |  6 ++----
 7 files changed, 4 insertions(+), 24 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-oauth/blob/cfe8271c/src/oauth.erl
----------------------------------------------------------------------
diff --git a/src/oauth.erl b/src/oauth.erl
index 70770ba..77eed92 100644
--- a/src/oauth.erl
+++ b/src/oauth.erl
@@ -1,20 +1,7 @@
 -module(oauth).
 
--export(
-  [ get/5
-  , get/6
-  , header/1
-  , post/5
-  , post/6
-  , signature/5
-  , signature_base_string/3
-  , signed_params/6
-  , token/1
-  , token_secret/1
-  , uri/2
-  , verify/6
-  ]).
-
+-export([get/5, get/6, header/1, post/5, post/6, signature/5, signature_base_string/3,
+  signed_params/6, token/1, token_secret/1, uri/2, verify/6]).
 
 get(URL, ExtraParams, Consumer, Token, TokenSecret) ->
   get(URL, ExtraParams, Consumer, Token, TokenSecret, []).

http://git-wip-us.apache.org/repos/asf/couchdb-oauth/blob/cfe8271c/src/oauth_hmac_sha1.erl
----------------------------------------------------------------------
diff --git a/src/oauth_hmac_sha1.erl b/src/oauth_hmac_sha1.erl
index 69064ed..975278f 100644
--- a/src/oauth_hmac_sha1.erl
+++ b/src/oauth_hmac_sha1.erl
@@ -2,7 +2,6 @@
 
 -export([signature/3, verify/4]).
 
-
 signature(BaseString, CS, TS) ->
   Key = oauth_uri:calate("&", [CS, TS]),
   base64:encode_to_string(crypto:sha_mac(Key, BaseString)).

http://git-wip-us.apache.org/repos/asf/couchdb-oauth/blob/cfe8271c/src/oauth_http.erl
----------------------------------------------------------------------
diff --git a/src/oauth_http.erl b/src/oauth_http.erl
index 32261d3..02128f7 100644
--- a/src/oauth_http.erl
+++ b/src/oauth_http.erl
@@ -2,7 +2,6 @@
 
 -export([get/1, get/2, post/2, post/3, response_params/1, response_body/1, response_code/1]).
 
-
 get(URL) ->
   get(URL, []).
 

http://git-wip-us.apache.org/repos/asf/couchdb-oauth/blob/cfe8271c/src/oauth_plaintext.erl
----------------------------------------------------------------------
diff --git a/src/oauth_plaintext.erl b/src/oauth_plaintext.erl
index d8085e0..fbdc0a3 100644
--- a/src/oauth_plaintext.erl
+++ b/src/oauth_plaintext.erl
@@ -2,7 +2,6 @@
 
 -export([signature/2, verify/3]).
 
-
 signature(CS, TS) ->
   oauth_uri:calate("&", [CS, TS]).
 

http://git-wip-us.apache.org/repos/asf/couchdb-oauth/blob/cfe8271c/src/oauth_rsa_sha1.erl
----------------------------------------------------------------------
diff --git a/src/oauth_rsa_sha1.erl b/src/oauth_rsa_sha1.erl
index 6f4828e..a7b570c 100644
--- a/src/oauth_rsa_sha1.erl
+++ b/src/oauth_rsa_sha1.erl
@@ -4,7 +4,6 @@
 
 -include_lib("public_key/include/public_key.hrl").
 
-
 signature(BaseString, PrivateKeyPath) ->
   {ok, [Info]} = public_key:pem_to_der(PrivateKeyPath),
   {ok, PrivateKey} = public_key:decode_private_key(Info),

http://git-wip-us.apache.org/repos/asf/couchdb-oauth/blob/cfe8271c/src/oauth_unix.erl
----------------------------------------------------------------------
diff --git a/src/oauth_unix.erl b/src/oauth_unix.erl
index 73ca314..27f6de9 100644
--- a/src/oauth_unix.erl
+++ b/src/oauth_unix.erl
@@ -2,7 +2,6 @@
 
 -export([timestamp/0]).
 
-
 timestamp() ->
   timestamp(calendar:universal_time()).
 

http://git-wip-us.apache.org/repos/asf/couchdb-oauth/blob/cfe8271c/src/oauth_uri.erl
----------------------------------------------------------------------
diff --git a/src/oauth_uri.erl b/src/oauth_uri.erl
index 5023f98..5c33a1e 100644
--- a/src/oauth_uri.erl
+++ b/src/oauth_uri.erl
@@ -1,12 +1,10 @@
 -module(oauth_uri).
 
--export([normalize/1, calate/2, encode/1]).
--export([params_from_string/1, params_to_string/1,
-  params_from_header_string/1, params_to_header_string/1]).
+-export([calate/2, encode/1, normalize/1, params_from_string/1,
+  params_from_header_string/1, params_to_string/1, params_to_header_string/1]).
 
 -import(lists, [concat/1]).
 
-
 normalize(URI) ->
   case http_uri:parse(URI) of
     {Scheme, UserInfo, Host, Port, Path, _Query} ->