pace-rails 0.0.8 → 0.0.9

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.
Files changed (29) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/pace/pace.js +8 -4
  3. data/app/assets/stylesheets/pace/pace-theme-barber-shop.css +1 -2
  4. data/app/assets/stylesheets/pace/pace-theme-big-counter.css +1 -1
  5. data/app/assets/stylesheets/pace/pace-theme-bounce.css +0 -1
  6. data/app/assets/stylesheets/pace/pace-theme-center-circle.css +1 -2
  7. data/app/assets/stylesheets/pace/pace-theme-center-radar.css +1 -2
  8. data/app/assets/stylesheets/pace/pace-theme-corner-indicator.css +1 -2
  9. data/app/assets/stylesheets/pace/pace-theme-fill-left.css +1 -2
  10. data/app/assets/stylesheets/pace/pace-theme-flash.css +1 -2
  11. data/app/assets/stylesheets/pace/pace-theme-flat-top.css +0 -1
  12. data/app/assets/stylesheets/pace/pace-theme-loading-bar.css +0 -1
  13. data/app/assets/stylesheets/pace/pace-theme-mac-osx.css +2 -2
  14. data/app/assets/stylesheets/pace/pace-theme-minimal.css +1 -2
  15. data/lib/pace/rails/version.rb +1 -1
  16. data/vendor/assets/javascripts/pace/pace.js +8 -4
  17. data/vendor/assets/stylesheets/pace/pace-theme-barber-shop.css +1 -2
  18. data/vendor/assets/stylesheets/pace/pace-theme-big-counter.css +1 -1
  19. data/vendor/assets/stylesheets/pace/pace-theme-bounce.css +0 -1
  20. data/vendor/assets/stylesheets/pace/pace-theme-center-circle.css +1 -2
  21. data/vendor/assets/stylesheets/pace/pace-theme-center-radar.css +1 -2
  22. data/vendor/assets/stylesheets/pace/pace-theme-corner-indicator.css +1 -2
  23. data/vendor/assets/stylesheets/pace/pace-theme-fill-left.css +1 -2
  24. data/vendor/assets/stylesheets/pace/pace-theme-flash.css +1 -2
  25. data/vendor/assets/stylesheets/pace/pace-theme-flat-top.css +0 -1
  26. data/vendor/assets/stylesheets/pace/pace-theme-loading-bar.css +0 -1
  27. data/vendor/assets/stylesheets/pace/pace-theme-mac-osx.css +2 -2
  28. data/vendor/assets/stylesheets/pace/pace-theme-minimal.css +1 -2
  29. metadata +12 -12
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f8134b1c3e60fc2c971b806ccd7631ed5311430d
4
- data.tar.gz: 9dcb2a857b9b5a81382c435e06a1d78dd6716472
3
+ metadata.gz: fb08650aa3410a0876b64430f14badaba95eaa44
4
+ data.tar.gz: 3443fc86c8a6e31a9adc062a4b497cbe11e08e4e
5
5
  SHA512:
6
- metadata.gz: cc3e3bcf9f5c2b4054f03e9ec7c0a0ef52405ac143916f5af304a4bcae95eceb85ca42196149bf94c12acedb09b17cfcc7bf84bd4e6b4a11ca16efbc71a9c1ad
7
- data.tar.gz: 3d107e9744a6d8ab44f3bf7cd4b86aaff78a33e9b6ac1df2d12a1372dad2c24433d459336981db4c1306c67424bb77ead0c45a57f3d845564a3e6118de9e29c8
6
+ metadata.gz: 24bb06fd4a47c369e32e1d8493f836d23e2226a962253f5934ba6c147f4c45604d730109c49759d6c1105d4bc5c08a4162bbacd43b9fe542e54f0e6b80c4f2d4
7
+ data.tar.gz: 517da5d976d78459f39459f777bf1406dc4af2697b79bb542ea60c162d70166831f4fc5ca4a39de1067c0e433702ae21be5a580c3ad0a8956f26508cfb42e979
@@ -55,10 +55,14 @@
55
55
  tick = function() {
56
56
  var diff;
57
57
  diff = now() - last;
58
- last = now();
59
- return fn(diff, function() {
60
- return requestAnimationFrame(tick);
61
- });
58
+ if (diff >= 33) {
59
+ last = now();
60
+ return fn(diff, function() {
61
+ return requestAnimationFrame(tick);
62
+ });
63
+ } else {
64
+ return setTimeout(tick, 33 - diff);
65
+ }
62
66
  };
63
67
  return tick();
64
68
  };
@@ -1,4 +1,3 @@
1
- /* This is a compiled file, you should be editing the file in the templates directory */
2
1
  .pace {
3
2
  -webkit-pointer-events: none;
4
3
  pointer-events: none;
@@ -69,4 +68,4 @@
69
68
  @keyframes pace-stripe-animation {
70
69
  0% { transform: none; transform: none; }
71
70
  100% { transform: translate(-32px, 0); transform: translate(-32px, 0); }
72
- }
71
+ }
@@ -32,4 +32,4 @@
32
32
  line-height: 1;
33
33
  text-align: right;
34
34
  color: rgba(0, 0, 0, 0.19999999999999996);
35
- }
35
+ }
@@ -1,4 +1,3 @@
1
- /* This is a compiled file, you should be editing the file in the templates directory */
2
1
  .pace {
3
2
  width: 140px;
4
3
  height: 300px;
@@ -1,4 +1,3 @@
1
- /* This is a compiled file, you should be editing the file in the templates directory */
2
1
  .pace {
3
2
  -webkit-pointer-events: none;
4
3
  pointer-events: none;
@@ -107,4 +106,4 @@
107
106
  to {
108
107
  transform: rotateY(360deg);
109
108
  }
110
- }
109
+ }
@@ -1,4 +1,3 @@
1
- /* This is a compiled file, you should be editing the file in the templates directory */
2
1
  .pace {
3
2
  -webkit-pointer-events: none;
4
3
  pointer-events: none;
@@ -68,4 +67,4 @@
68
67
 
69
68
  @keyframes spin {
70
69
  100% { transform: rotate(359deg); }
71
- }
70
+ }
@@ -1,4 +1,3 @@
1
- /* This is a compiled file, you should be editing the file in the templates directory */
2
1
  .pace {
3
2
  -webkit-pointer-events: none;
4
3
  pointer-events: none;
@@ -67,4 +66,4 @@
67
66
  @keyframes pace-rotation {
68
67
  0% { transform: rotate(0deg); }
69
68
  100% { transform: rotate(359deg); }
70
- }
69
+ }
@@ -1,4 +1,3 @@
1
- /* This is a compiled file, you should be editing the file in the templates directory */
2
1
  .pace {
3
2
  -webkit-pointer-events: none;
4
3
  pointer-events: none;
@@ -19,4 +18,4 @@
19
18
  -moz-transition: width 1s;
20
19
  -o-transition: width 1s;
21
20
  transition: width 1s;
22
- }
21
+ }
@@ -1,4 +1,3 @@
1
- /* This is a compiled file, you should be editing the file in the templates directory */
2
1
  .pace {
3
2
  -webkit-pointer-events: none;
4
3
  pointer-events: none;
@@ -78,4 +77,4 @@
78
77
  @keyframes pace-spinner {
79
78
  0% { transform: rotate(0deg); transform: rotate(0deg); }
80
79
  100% { transform: rotate(360deg); transform: rotate(360deg); }
81
- }
80
+ }
@@ -1,4 +1,3 @@
1
- /* This is a compiled file, you should be editing the file in the templates directory */
2
1
  .pace {
3
2
  -webkit-pointer-events: none;
4
3
  pointer-events: none;
@@ -1,4 +1,3 @@
1
- /* This is a compiled file, you should be editing the file in the templates directory */
2
1
  .pace {
3
2
  -webkit-box-sizing: border-box;
4
3
  -moz-box-sizing: border-box;
@@ -1,4 +1,3 @@
1
- /* This is a compiled file, you should be editing the file in the templates directory */
2
1
  .pace {
3
2
  -webkit-pointer-events: none;
4
3
  pointer-events: none;
@@ -55,6 +54,7 @@
55
54
  -moz-background-size: 28px 100%;
56
55
  -o-background-size: 28px 100%;
57
56
  background-size: 28px 100%;
57
+
58
58
  -webkit-animation: pace-stripe-animation 500ms linear infinite;
59
59
  -moz-animation: pace-stripe-animation 500ms linear infinite;
60
60
  -ms-animation: pace-stripe-animation 500ms linear infinite;
@@ -81,4 +81,4 @@
81
81
  @keyframes pace-stripe-animation {
82
82
  0% { transform: none; transform: none; }
83
83
  100% { transform: translate(-28px, 0); transform: translate(-28px, 0); }
84
- }
84
+ }
@@ -1,4 +1,3 @@
1
- /* This is a compiled file, you should be editing the file in the templates directory */
2
1
  .pace .pace-progress {
3
2
  background: #29d;
4
3
  position: fixed;
@@ -15,4 +14,4 @@
15
14
 
16
15
  .pace-inactive {
17
16
  display: none;
18
- }
17
+ }
@@ -1,5 +1,5 @@
1
1
  module Pace
2
2
  module Rails
3
- VERSION = "0.0.8"
3
+ VERSION = "0.0.9"
4
4
  end
5
5
  end
@@ -55,10 +55,14 @@
55
55
  tick = function() {
56
56
  var diff;
57
57
  diff = now() - last;
58
- last = now();
59
- return fn(diff, function() {
60
- return requestAnimationFrame(tick);
61
- });
58
+ if (diff >= 33) {
59
+ last = now();
60
+ return fn(diff, function() {
61
+ return requestAnimationFrame(tick);
62
+ });
63
+ } else {
64
+ return setTimeout(tick, 33 - diff);
65
+ }
62
66
  };
63
67
  return tick();
64
68
  };
@@ -1,4 +1,3 @@
1
- /* This is a compiled file, you should be editing the file in the templates directory */
2
1
  .pace {
3
2
  -webkit-pointer-events: none;
4
3
  pointer-events: none;
@@ -69,4 +68,4 @@
69
68
  @keyframes pace-stripe-animation {
70
69
  0% { transform: none; transform: none; }
71
70
  100% { transform: translate(-32px, 0); transform: translate(-32px, 0); }
72
- }
71
+ }
@@ -32,4 +32,4 @@
32
32
  line-height: 1;
33
33
  text-align: right;
34
34
  color: rgba(0, 0, 0, 0.19999999999999996);
35
- }
35
+ }
@@ -1,4 +1,3 @@
1
- /* This is a compiled file, you should be editing the file in the templates directory */
2
1
  .pace {
3
2
  width: 140px;
4
3
  height: 300px;
@@ -1,4 +1,3 @@
1
- /* This is a compiled file, you should be editing the file in the templates directory */
2
1
  .pace {
3
2
  -webkit-pointer-events: none;
4
3
  pointer-events: none;
@@ -107,4 +106,4 @@
107
106
  to {
108
107
  transform: rotateY(360deg);
109
108
  }
110
- }
109
+ }
@@ -1,4 +1,3 @@
1
- /* This is a compiled file, you should be editing the file in the templates directory */
2
1
  .pace {
3
2
  -webkit-pointer-events: none;
4
3
  pointer-events: none;
@@ -68,4 +67,4 @@
68
67
 
69
68
  @keyframes spin {
70
69
  100% { transform: rotate(359deg); }
71
- }
70
+ }
@@ -1,4 +1,3 @@
1
- /* This is a compiled file, you should be editing the file in the templates directory */
2
1
  .pace {
3
2
  -webkit-pointer-events: none;
4
3
  pointer-events: none;
@@ -67,4 +66,4 @@
67
66
  @keyframes pace-rotation {
68
67
  0% { transform: rotate(0deg); }
69
68
  100% { transform: rotate(359deg); }
70
- }
69
+ }
@@ -1,4 +1,3 @@
1
- /* This is a compiled file, you should be editing the file in the templates directory */
2
1
  .pace {
3
2
  -webkit-pointer-events: none;
4
3
  pointer-events: none;
@@ -19,4 +18,4 @@
19
18
  -moz-transition: width 1s;
20
19
  -o-transition: width 1s;
21
20
  transition: width 1s;
22
- }
21
+ }
@@ -1,4 +1,3 @@
1
- /* This is a compiled file, you should be editing the file in the templates directory */
2
1
  .pace {
3
2
  -webkit-pointer-events: none;
4
3
  pointer-events: none;
@@ -78,4 +77,4 @@
78
77
  @keyframes pace-spinner {
79
78
  0% { transform: rotate(0deg); transform: rotate(0deg); }
80
79
  100% { transform: rotate(360deg); transform: rotate(360deg); }
81
- }
80
+ }
@@ -1,4 +1,3 @@
1
- /* This is a compiled file, you should be editing the file in the templates directory */
2
1
  .pace {
3
2
  -webkit-pointer-events: none;
4
3
  pointer-events: none;
@@ -1,4 +1,3 @@
1
- /* This is a compiled file, you should be editing the file in the templates directory */
2
1
  .pace {
3
2
  -webkit-box-sizing: border-box;
4
3
  -moz-box-sizing: border-box;
@@ -1,4 +1,3 @@
1
- /* This is a compiled file, you should be editing the file in the templates directory */
2
1
  .pace {
3
2
  -webkit-pointer-events: none;
4
3
  pointer-events: none;
@@ -55,6 +54,7 @@
55
54
  -moz-background-size: 28px 100%;
56
55
  -o-background-size: 28px 100%;
57
56
  background-size: 28px 100%;
57
+
58
58
  -webkit-animation: pace-stripe-animation 500ms linear infinite;
59
59
  -moz-animation: pace-stripe-animation 500ms linear infinite;
60
60
  -ms-animation: pace-stripe-animation 500ms linear infinite;
@@ -81,4 +81,4 @@
81
81
  @keyframes pace-stripe-animation {
82
82
  0% { transform: none; transform: none; }
83
83
  100% { transform: translate(-28px, 0); transform: translate(-28px, 0); }
84
- }
84
+ }
@@ -1,4 +1,3 @@
1
- /* This is a compiled file, you should be editing the file in the templates directory */
2
1
  .pace .pace-progress {
3
2
  background: #29d;
4
3
  position: fixed;
@@ -15,4 +14,4 @@
15
14
 
16
15
  .pace-inactive {
17
16
  display: none;
18
- }
17
+ }
metadata CHANGED
@@ -1,55 +1,55 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pace-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dan Vera
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-11-14 00:00:00.000000000 Z
11
+ date: 2014-01-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.3'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.3'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: jquery-rails
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '>='
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  description: Pace automatic web page progress bar
@@ -59,7 +59,7 @@ executables: []
59
59
  extensions: []
60
60
  extra_rdoc_files: []
61
61
  files:
62
- - .gitignore
62
+ - ".gitignore"
63
63
  - Gemfile
64
64
  - LICENSE.txt
65
65
  - README.md
@@ -104,17 +104,17 @@ require_paths:
104
104
  - lib
105
105
  required_ruby_version: !ruby/object:Gem::Requirement
106
106
  requirements:
107
- - - '>='
107
+ - - ">="
108
108
  - !ruby/object:Gem::Version
109
109
  version: '0'
110
110
  required_rubygems_version: !ruby/object:Gem::Requirement
111
111
  requirements:
112
- - - '>='
112
+ - - ">="
113
113
  - !ruby/object:Gem::Version
114
114
  version: '0'
115
115
  requirements: []
116
116
  rubyforge_project:
117
- rubygems_version: 2.1.5
117
+ rubygems_version: 2.2.0
118
118
  signing_key:
119
119
  specification_version: 4
120
120
  summary: Pace automatic web page progress bar, integrated in Rails assets pipeline.