nprogress-rails 0.1.6.1 → 0.1.6.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +13 -20
- data/app/assets/stylesheets/nprogress.css.scss +2 -1
- 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: ad6a90abbcbd2ebc7ac09a3249c61650a35278b4
|
4
|
+
data.tar.gz: 9186d1875f403d139c36ef7cc60b49841b07ca9c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0ff944cd3fe0c788b692756c8510e398d0c4de1dbba120767866047227714b276ab797fb8aaea4be91de9426dda4c4ff060ca0e61dc0a6287fe2552eff542af0
|
7
|
+
data.tar.gz: 712039ffe96a8786074fbab27f7279f4bda804078eab24f028dfb06c72f53a191d7cd471eab766e2cd6908d2e43b561e931d52cc95c6f6c222e9d00035de40c1
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# nprogress-rails
|
1
|
+
# nprogress-rails [![Gem Version](https://badge.fury.io/rb/nprogress-rails.svg)](http://badge.fury.io/rb/nprogress-rails)
|
2
2
|
|
3
3
|
This is basically a ruby gem for asset pipeline which includes the version
|
4
4
|
0.1.6 of the awesome [rstacruz][rstacruz]' [nprogress][lib] library.
|
@@ -27,13 +27,11 @@ Or install it yourself as:
|
|
27
27
|
|
28
28
|
## Usage
|
29
29
|
|
30
|
-
You basically have to add the requires.
|
30
|
+
You basically have to add the requires to the `application.js` file:
|
31
31
|
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
#= require nprogress
|
36
|
-
#= require nprogress-turbolinks
|
32
|
+
```javascript
|
33
|
+
//= require nprogress
|
34
|
+
//= require nprogress-turbolinks
|
37
35
|
```
|
38
36
|
|
39
37
|
The `nprogress-turbolinks` is required only if you use turbolinks. Using pjax
|
@@ -54,10 +52,10 @@ progress doesn't appear, try this.
|
|
54
52
|
|
55
53
|
### Angular.js support [experimental]
|
56
54
|
|
57
|
-
You can try the Angular.js support with this
|
55
|
+
You can try the Angular.js support with something like this (again,
|
56
|
+
in `application.js` file):
|
58
57
|
|
59
58
|
```javascript
|
60
|
-
// ...
|
61
59
|
//= require nprogress
|
62
60
|
//= require nprogress-angular
|
63
61
|
|
@@ -78,19 +76,14 @@ You can use any of the configurations described in the [readme](https://github.c
|
|
78
76
|
with this lib. I just recommend you to do so ASAP, for example, just after
|
79
77
|
the `nprogress-rails` require:
|
80
78
|
|
81
|
-
```
|
82
|
-
|
83
|
-
|
84
|
-
#= require jquery
|
85
|
-
#= require jquery_ujs
|
86
|
-
#= require turbolinks
|
87
|
-
#= require nprogress
|
88
|
-
#= require nprogress-turbolinks
|
79
|
+
```javascript
|
80
|
+
//= require nprogress
|
89
81
|
|
90
|
-
NProgress.configure
|
91
|
-
showSpinner: false
|
92
|
-
ease: 'ease'
|
82
|
+
NProgress.configure({
|
83
|
+
showSpinner: false,
|
84
|
+
ease: 'ease',
|
93
85
|
speed: 500
|
86
|
+
});
|
94
87
|
```
|
95
88
|
|
96
89
|
Since the [v0.1.2.3 release](https://github.com/caarlos0/nprogress-rails/releases/tag/v0.1.2.3),
|
@@ -1,4 +1,5 @@
|
|
1
1
|
$nprogress-color: #29d !default;
|
2
|
+
$nprogress-height: 2px !default;
|
2
3
|
$nprogress-zindex: 100 !default;
|
3
4
|
|
4
5
|
/* Make clicks pass-through */
|
@@ -15,7 +16,7 @@ $nprogress-zindex: 100 !default;
|
|
15
16
|
left: 0;
|
16
17
|
|
17
18
|
width: 100%;
|
18
|
-
height:
|
19
|
+
height: $nprogress-height;
|
19
20
|
}
|
20
21
|
|
21
22
|
/* Fancy blur effect */
|
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.2'
|
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.2
|
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-
|
11
|
+
date: 2014-09-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|