Skip to content

Commit

Permalink
bump version 0.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
chieffancypants committed Aug 26, 2014
1 parent 5a74331 commit b1f42cd
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 21 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
Changelog
==========

## 0.5.1
- Reworked cache logic to allow cache:true ([#96](https://github.com/chieffancypants/angular-loading-bar/pull/96))

## 0.5.0
- Added spinner template configuration ([#82](https://github.com/chieffancypants/angular-loading-bar/pull/82))
- $timeout was not canceled properly ([#79](https://github.com/chieffancypants/angular-loading-bar/pull/79))
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2013 Wes Cruver
Copyright (c) 2013-2014 Wes Cruver

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
Expand Down
6 changes: 3 additions & 3 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angular-loading-bar",
"version": "0.5.0",
"version": "0.5.1",
"main": ["build/loading-bar.js", "build/loading-bar.css"],
"ignore": [
"**/.*",
Expand All @@ -10,7 +10,7 @@
"example"
],
"devDependencies": {
"angular-mocks": "~1.2.9",
"angular-animate": "~1.2.9"
"angular-mocks": "^1.2.9",
"angular-animate": "^1.2.9"
}
}
2 changes: 1 addition & 1 deletion build/loading-bar.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* angular-loading-bar v0.5.0
* angular-loading-bar v0.5.1
* https://chieffancypants.github.io/angular-loading-bar
* Copyright (c) 2014 Wes Cruver
* License: MIT
Expand Down
20 changes: 8 additions & 12 deletions build/loading-bar.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* angular-loading-bar v0.5.0
* angular-loading-bar v0.5.1
* https://chieffancypants.github.io/angular-loading-bar
* Copyright (c) 2014 Wes Cruver
* License: MIT
Expand Down Expand Up @@ -73,19 +73,15 @@ angular.module('cfp.loadingBarInterceptor', ['cfp.loadingBar'])
*/
function isCached(config) {
var cache;
var defaultCache = $cacheFactory.get('$http');
var defaults = $httpProvider.defaults;

if (config.method !== 'GET' || config.cache === false) {
config.cached = false;
return false;
}

if (config.cache === true && defaults.cache === undefined) {
cache = $cacheFactory.get('$http');
} else if (defaults.cache !== undefined) {
cache = defaults.cache;
} else {
cache = config.cache;
// Choose the proper cache source. Borrowed from angular: $http service
if ((config.cache || defaults.cache) && config.cache !== false &&
(config.method === 'GET' || config.method === 'JSONP')) {
cache = angular.isObject(config.cache) ? config.cache
: angular.isObject(defaults.cache) ? defaults.cache
: defaultCache;
}

var cached = cache !== undefined ?
Expand Down
2 changes: 1 addition & 1 deletion build/loading-bar.min.css

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

4 changes: 2 additions & 2 deletions build/loading-bar.min.js

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angular-loading-bar",
"version": "0.5.0",
"version": "0.5.1",
"description": "An automatic loading bar for AngularJS",
"main": "src/loading-bar.js",
"directories": {
Expand Down

0 comments on commit b1f42cd

Please sign in to comment.