nprogress-rails 0.1.6.2 → 0.1.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +2 -8
- data/app/assets/javascripts/nprogress-angular.js +23 -20
- data/nprogress-rails.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0104e1b001195ae02e6d6fabe6fa1969e37b3d7c
|
|
4
|
+
data.tar.gz: 28f5818088ee14c4ebd4567f03ccf841b22818ea
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5dc4e972d4e58031c262692f7d4bf936ed0e32b60c2b73ab8bebbe6e89db5cbfed14044391952d1c70e335ff9a342e5b2cc899a6d4a635f3249431e4cc039573
|
|
7
|
+
data.tar.gz: 8b7d1baec6c51df07fc0b474fe57c0f006b9d3ffccdc5f8e39e6eeadab3ba37ab2bb00feea6de9c68bddc65f3e79353ed9e638a778624098532c2226e12e976a
|
data/README.md
CHANGED
|
@@ -50,7 +50,7 @@ The `nprogress-bootstrap` is required if you use bootstrap and have a fixed
|
|
|
50
50
|
toolbar or anything else. tl;dr: if the console shows no errors, but the
|
|
51
51
|
progress doesn't appear, try this.
|
|
52
52
|
|
|
53
|
-
### Angular.js support
|
|
53
|
+
### Angular.js support
|
|
54
54
|
|
|
55
55
|
You can try the Angular.js support with something like this (again,
|
|
56
56
|
in `application.js` file):
|
|
@@ -59,13 +59,7 @@ in `application.js` file):
|
|
|
59
59
|
//= require nprogress
|
|
60
60
|
//= require nprogress-angular
|
|
61
61
|
|
|
62
|
-
|
|
63
|
-
'$httpProvider',
|
|
64
|
-
function($httpProvider) {
|
|
65
|
-
$httpProvider.interceptors.push(nprogressAngularInterceptor);
|
|
66
|
-
nprogressAngularInterceptor = undefined;
|
|
67
|
-
}
|
|
68
|
-
]);
|
|
62
|
+
angular.module('myApp', [ 'nprogress-rails' ]);
|
|
69
63
|
```
|
|
70
64
|
|
|
71
65
|
This should make all requests made with `$http` show/hide the NProgress bar.
|
|
@@ -1,20 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
'
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
1
|
+
angular.module('nprogress-rails', [])
|
|
2
|
+
.config(['$httpProvider', function($httpProvider) {
|
|
3
|
+
$httpProvider.interceptors.push(['$q', function($q) {
|
|
4
|
+
return {
|
|
5
|
+
'request': function(config) {
|
|
6
|
+
NProgress.start();
|
|
7
|
+
return config;
|
|
8
|
+
},
|
|
9
|
+
'requestError': function(rejection) {
|
|
10
|
+
NProgress.done();
|
|
11
|
+
return $q.reject(rejection);
|
|
12
|
+
},
|
|
13
|
+
'response': function(response) {
|
|
14
|
+
NProgress.done();
|
|
15
|
+
return response;
|
|
16
|
+
},
|
|
17
|
+
'responseError': function(rejection) {
|
|
18
|
+
NProgress.done();
|
|
19
|
+
return $q.reject(rejection);
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
}]);
|
|
23
|
+
}]);
|
data/nprogress-rails.gemspec
CHANGED
|
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
|
4
4
|
|
|
5
5
|
Gem::Specification.new do |spec|
|
|
6
6
|
spec.name = 'nprogress-rails'
|
|
7
|
-
spec.version = '0.1.6.
|
|
7
|
+
spec.version = '0.1.6.3'
|
|
8
8
|
spec.authors = ['Carlos Alexandro Becker']
|
|
9
9
|
spec.email = ['caarlos0@gmail.com']
|
|
10
10
|
spec.description = %q{This is a gem for the rstacruz' nprogress implementation. It's based on version nprogress 0.1.6.}
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: nprogress-rails
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.6.
|
|
4
|
+
version: 0.1.6.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Carlos Alexandro Becker
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-
|
|
11
|
+
date: 2014-10-04 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|