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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 005266c9f8515ef2f35d53a105bc5d8f9b5894d6
4
- data.tar.gz: 6bad57e6468ca128b9b3a3d12692ad34b85935d9
3
+ metadata.gz: ad6a90abbcbd2ebc7ac09a3249c61650a35278b4
4
+ data.tar.gz: 9186d1875f403d139c36ef7cc60b49841b07ca9c
5
5
  SHA512:
6
- metadata.gz: 998073599de67692a99871e3af1c3b6d86b82798afa36320d75dc4aacd832a5b00dc4db9d291fe023be76bd7caf450cabafcf4fe2723fc1923e21322b2ab03ae
7
- data.tar.gz: 932013e1bc9cbe92b49f9765adcaa4fa86306a00342ced4b8344fbd8c77d07e58a43051f0f5460ea97038fb99b90b0a9c711709c09e470dccdc6a6a2bf2460c1
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
- In your `application.js.coffee` (or just JS):
33
-
34
- ```coffeescript
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
- ```coffeescript
82
- # this is the application.js.coffee file:
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: 2px;
19
+ height: $nprogress-height;
19
20
  }
20
21
 
21
22
  /* Fancy blur effect */
@@ -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.1'
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.1
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-12 00:00:00.000000000 Z
11
+ date: 2014-09-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler