Skip to content

Commit

Permalink
Merge pull request #7 from viniciusdacal/hot-fixes
Browse files Browse the repository at this point in the history
Hot fixes
  • Loading branch information
nicgirault committed Dec 8, 2015
2 parents c3e53a0 + 9365011 commit 998e6c1
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ bower install angular-trello-api-client
angular.module('demo', [
'ng',
'satellizer',
'angular-trello-api-client',
'trello-api-client',
])

.config(function(TrelloClientProvider){
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "angular-trello-api-client",
"main": "dist/angular-trello-api-client.js",
"homepage": "https://github.com/nicgirault/angular-trello-api-client",
"version": "1.0.4",
"version": "1.0.5",
"authors": [
"nicgirault <[email protected]>"
],
Expand Down
2 changes: 1 addition & 1 deletion dist/angular-trello-api-client-min.js

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

3 changes: 2 additions & 1 deletion dist/angular-trello-api-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ angular.module('trello-api-client').provider('TrelloClient', function($authProvi
TrelloClient = {};
TrelloClient.authenticate = function() {
return $auth.authenticate(TrelloClientConfig.appName).then(function(response) {
return $auth.setToken(response.token);
$auth.setToken(response.token);
return response;
});
};
ref = ['get', 'post', 'put', 'delete'];
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
{
"name": "angular-trello-api-client",
"version": "1.0.4",
"version": "1.0.5",
"description": "",
"main": "gulpfile.js",
"dependencies": {
"gulp-concat": "^2.6.0"
},
"devDependencies": {
"gulp": "^3.9.0",
"gulp-coffee": "^2.3.1",
"gulp-minify": "0.0.5"
},
Expand Down
1 change: 1 addition & 0 deletions src/provider.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ angular.module 'trello-api-client'
TrelloClient.authenticate = ->
$auth.authenticate(TrelloClientConfig.appName).then (response)->
$auth.setToken response.token
return response
for method in ['get', 'post', 'put', 'delete']
do (method) ->
TrelloClient[method] = (endpoint, config) ->
Expand Down

0 comments on commit 998e6c1

Please sign in to comment.