nprogress-rails 0.1.2.2 → 0.1.2.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: 278b552490c22b4aedee9ad61d9373d5c88d3c3e
4
- data.tar.gz: d5b875c149435aa524431d9a0dcbe9c0521f3032
3
+ metadata.gz: ae6045eecffda679b9025fa592965f34b83e06af
4
+ data.tar.gz: 4e639af6a98e4ea9fc35b5c119a8c6b71b3a224f
5
5
  SHA512:
6
- metadata.gz: 60cf28239c7f4f11480a7f93a653a7aa481754d3d9ea2d41b83c91d71bdd576251e60e31e9afe92c0cce4c2550a94ac8e6d67990372563b5ae48413371ccce0f
7
- data.tar.gz: b42fde331ad1ee0950a35021d5bec0e33174e9fef039601ff2a2851d345b9054ccc9ae45c893ff82c6d04d092494de99e8b82bced9b409c49fd536e1f1090cfc
6
+ metadata.gz: 15493bad019fbf4061cbcc525d4e9f80b2dfcc963875da7e5e6a434a59b4c3af1c137de75909fec3160a9aca2bd802618e8b65c05c9504b9378377a865a7e56a
7
+ data.tar.gz: e2c2c0a2814786d2cacf1ab80224e531c409c5badbf907a2553140441948a7ebd83fae9c1842b59ad4ef6e92e730c78887d0edf5f35116917dfd5715c3e06127
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # nprogress-rails
2
2
 
3
3
  This is basically a ruby gem for asset pipeline which includes the version
4
- 0.1.0 of the awesome [rstacruz][rstacruz]' [nprogress][lib] library.
4
+ 0.1.2 of the awesome [rstacruz][rstacruz]' [nprogress][lib] library.
5
5
 
6
6
  - [**Original lib**][lib]
7
7
  - [**Demo**][demo]
@@ -44,8 +44,9 @@ you will have to deal with show/hide the progress by your own.
44
44
  Also, into your `application.css.scss` file:
45
45
 
46
46
  ```scss
47
- *= require nprogress
48
- *= require nprogress-bootstrap
47
+ $nprogress-color: #f1f1f1; // if you want to change the color
48
+ @import 'nprogress';
49
+ @import 'nprogress-bootstrap';
49
50
  ```
50
51
 
51
52
  The `nprogress-bootstrap` is required if you use bootstrap and have a fixed
@@ -3,20 +3,22 @@ lib = File.expand_path('../lib', __FILE__)
3
3
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
- spec.name = "nprogress-rails"
7
- spec.version = "0.1.2.2"
8
- spec.authors = ["Carlos Alexandro Becker"]
9
- spec.email = ["caarlos0@gmail.com"]
6
+ spec.name = 'nprogress-rails'
7
+ spec.version = '0.1.2.3'
8
+ spec.authors = ['Carlos Alexandro Becker']
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.2.}
11
11
  spec.summary = %q{Slim progress bars for Ajax'y applications. Inspired by Google, YouTube, and Medium.}
12
- spec.homepage = "https://github.com/caarlos0/nprogress-rails"
13
- spec.license = "MIT"
12
+ spec.homepage = 'https://github.com/caarlos0/nprogress-rails'
13
+ spec.license = 'MIT'
14
14
 
15
15
  spec.files = `git ls-files`.split($/)
16
16
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
17
17
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
18
- spec.require_paths = ["lib"]
18
+ spec.require_paths = ['lib']
19
19
 
20
- spec.add_development_dependency "bundler", "~> 1.3"
21
- spec.add_development_dependency "rake"
20
+ spec.add_development_dependency 'bundler', '~> 1.3'
21
+ spec.add_development_dependency 'rake'
22
+ spec.add_development_dependency 'sass-rails'
23
+ spec.add_development_dependency 'sass'
22
24
  end
@@ -1,4 +1,4 @@
1
1
  $(function() {
2
- $(document).on('ajaxStart', function() { NProgress.start(); });
3
- $(document).on('ajaxComplete', function() { NProgress.done(); });
2
+ $(document).on('ajaxStart', function() { NProgress.start(); });
3
+ $(document).on('ajaxStop', function() { NProgress.done(); });
4
4
  });
@@ -1,3 +1,5 @@
1
+ $nprogress-color: #29d !default;
2
+
1
3
  /* Make clicks pass-through */
2
4
  #nprogress {
3
5
  pointer-events: none;
@@ -5,7 +7,7 @@
5
7
  }
6
8
 
7
9
  #nprogress .bar {
8
- background: #29d;
10
+ background: $nprogress-color;
9
11
 
10
12
  position: fixed;
11
13
  z-index: 100;
@@ -23,7 +25,7 @@
23
25
  right: 0px;
24
26
  width: 100px;
25
27
  height: 100%;
26
- box-shadow: 0 0 10px #29d, 0 0 5px #29d;
28
+ box-shadow: 0 0 10px $nprogress-color, 0 0 5px $nprogress-color;
27
29
  opacity: 1.0;
28
30
 
29
31
  -webkit-transform: rotate(3deg) translate(0px, -4px);
@@ -47,8 +49,8 @@
47
49
  height: 14px;
48
50
 
49
51
  border: solid 2px transparent;
50
- border-top-color: #29d;
51
- border-left-color: #29d;
52
+ border-top-color: $nprogress-color;
53
+ border-left-color: $nprogress-color;
52
54
  border-radius: 10px;
53
55
 
54
56
  -webkit-animation: nprogress-spinner 400ms linear infinite;
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.2.2
4
+ version: 0.1.2.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: 2013-08-22 00:00:00.000000000 Z
11
+ date: 2013-09-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -38,6 +38,34 @@ dependencies:
38
38
  - - '>='
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: sass-rails
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - '>='
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: sass
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - '>='
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
41
69
  description: This is a gem for the rstacruz' nprogress implementation. It's based
42
70
  on version nprogress 0.1.2.
43
71
  email:
@@ -58,7 +86,7 @@ files:
58
86
  - vendor/assets/javascripts/nprogress-turbolinks.js
59
87
  - vendor/assets/javascripts/nprogress.js
60
88
  - vendor/assets/stylesheets/nprogress-bootstrap.css
61
- - vendor/assets/stylesheets/nprogress.css
89
+ - vendor/assets/stylesheets/nprogress.css.scss
62
90
  homepage: https://github.com/caarlos0/nprogress-rails
63
91
  licenses:
64
92
  - MIT