nprogress-rails 0.1.6.2 → 0.1.6.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ad6a90abbcbd2ebc7ac09a3249c61650a35278b4
4
- data.tar.gz: 9186d1875f403d139c36ef7cc60b49841b07ca9c
3
+ metadata.gz: 0104e1b001195ae02e6d6fabe6fa1969e37b3d7c
4
+ data.tar.gz: 28f5818088ee14c4ebd4567f03ccf841b22818ea
5
5
  SHA512:
6
- metadata.gz: 0ff944cd3fe0c788b692756c8510e398d0c4de1dbba120767866047227714b276ab797fb8aaea4be91de9426dda4c4ff060ca0e61dc0a6287fe2552eff542af0
7
- data.tar.gz: 712039ffe96a8786074fbab27f7279f4bda804078eab24f028dfb06c72f53a191d7cd471eab766e2cd6908d2e43b561e931d52cc95c6f6c222e9d00035de40c1
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 [experimental]
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
- var app = angular.module('myApp',[]).config([
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
- var nprogressAngularInterceptor = ['$q', function($q) {
2
- return {
3
- 'request': function(config) {
4
- NProgress.start();
5
- return config;
6
- },
7
- 'requestError': function(rejection) {
8
- NProgress.done();
9
- return $q.reject(rejection);
10
- },
11
- 'response': function(response) {
12
- NProgress.done();
13
- return response;
14
- },
15
- 'responseError': function(rejection) {
16
- NProgress.done();
17
- return $q.reject(rejection);
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
+ }]);
@@ -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.2'
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.2
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-09-18 00:00:00.000000000 Z
11
+ date: 2014-10-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler