visibilityjs 0.4 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +4 -1
- data/LICENSE +3 -4
- data/README.md +8 -5
- data/vendor/assets/javascripts/visibility.fallback.js +5 -5
- data/vendor/assets/javascripts/visibility.js +3 -3
- metadata +40 -57
data/ChangeLog
CHANGED
@@ -1,3 +1,6 @@
|
|
1
|
+
== 0.4.1 (Explorer 3, repeat)
|
2
|
+
* Fix documentation and gemspec.
|
3
|
+
|
1
4
|
== 0.4 (Vanguard 1, alternative)
|
2
5
|
* Add fallback API support by focus/blur hack to all browsers.
|
3
6
|
|
@@ -11,4 +14,4 @@
|
|
11
14
|
* Documentation fixes by Peter Zotov.
|
12
15
|
|
13
16
|
== 0.1 (Sputnik 1, the first)
|
14
|
-
*
|
17
|
+
* Initial release.
|
data/LICENSE
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
GNU LESSER GENERAL PUBLIC LICENSE
|
2
2
|
Version 3, 29 June 2007
|
3
3
|
|
4
4
|
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
|
@@ -10,7 +10,7 @@
|
|
10
10
|
the terms and conditions of version 3 of the GNU General Public
|
11
11
|
License, supplemented by the additional permissions listed below.
|
12
12
|
|
13
|
-
0. Additional Definitions.
|
13
|
+
0. Additional Definitions.
|
14
14
|
|
15
15
|
As used herein, "this License" refers to version 3 of the GNU Lesser
|
16
16
|
General Public License, and the "GNU GPL" refers to version 3 of the GNU
|
@@ -111,7 +111,7 @@ the following:
|
|
111
111
|
a copy of the Library already present on the user's computer
|
112
112
|
system, and (b) will operate properly with a modified version
|
113
113
|
of the Library that is interface-compatible with the Linked
|
114
|
-
Version.
|
114
|
+
Version.
|
115
115
|
|
116
116
|
e) Provide Installation Information, but only if you would otherwise
|
117
117
|
be required to provide such information under section 6 of the
|
@@ -163,4 +163,3 @@ whether future versions of the GNU Lesser General Public License shall
|
|
163
163
|
apply, that proxy's public statement of acceptance of any version is
|
164
164
|
permanent authorization for you to choose that version for the
|
165
165
|
Library.
|
166
|
-
|
data/README.md
CHANGED
@@ -21,15 +21,18 @@ actually supported in the browser as, if it does not, the library will just
|
|
21
21
|
assume that the page is visible all the time, and your logic will still work
|
22
22
|
correctly, albeit less effective in some cases.
|
23
23
|
|
24
|
-
Page Visibility API is natively supported by Google Chrome and IE 10.
|
25
|
-
add support
|
26
|
-
Visibility.js). For others browsers you can use
|
27
|
-
with focus/blur hack (note that this hack have
|
28
|
-
see falllback documentation).
|
24
|
+
Page Visibility API is natively supported by Google Chrome, Firefox and IE 10.
|
25
|
+
You can add support for old Firefox (5–9 versions) by [MozVisibility] hack
|
26
|
+
(include it before Visibility.js). For others browsers you can use
|
27
|
+
`lib/visibility.fallback.js` with focus/blur hack (note that this hack have
|
28
|
+
some issue, see falllback documentation).
|
29
|
+
|
30
|
+
Sponsored by [Evil Martians].
|
29
31
|
|
30
32
|
[Page Visibility API]: http://www.w3.org/TR/2011/WD-page-visibility-20110602/
|
31
33
|
[prerendering]: http://code.google.com/chrome/whitepapers/prerender.html
|
32
34
|
[MozVisibility]: https://github.com/private-face/mozvisibility
|
35
|
+
[Evil Martians]: http://evilmartians.com/
|
33
36
|
|
34
37
|
## Translations
|
35
38
|
|
@@ -1,17 +1,17 @@
|
|
1
1
|
/*
|
2
2
|
* Copyright 2011 Andrey “A.I.” Sitnik <andrey@sitnik.ru>,
|
3
3
|
* sponsored by Evil Martians.
|
4
|
-
*
|
4
|
+
*
|
5
5
|
* This program is free software: you can redistribute it and/or modify
|
6
6
|
* it under the terms of the GNU Lesser General Public License as published by
|
7
7
|
* the Free Software Foundation, either version 3 of the License, or
|
8
8
|
* (at your option) any later version.
|
9
|
-
*
|
9
|
+
*
|
10
10
|
* This program is distributed in the hope that it will be useful,
|
11
11
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
12
12
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
13
13
|
* GNU Lesser General Public License for more details.
|
14
|
-
*
|
14
|
+
*
|
15
15
|
* You should have received a copy of the GNU Lesser General Public License
|
16
16
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
17
17
|
*/
|
@@ -24,8 +24,8 @@
|
|
24
24
|
// when user change focus from browser to another window (browser and your
|
25
25
|
// page may stay visible), this hack will decide, that you page is hidden.
|
26
26
|
//
|
27
|
-
// For Firefox 5 it will be better to use MozVisibility hack without
|
28
|
-
// See <https://github.com/private-face/mozvisibility>.
|
27
|
+
// For Firefox 5–9 it will be better to use MozVisibility hack without
|
28
|
+
// this issue. See <https://github.com/private-face/mozvisibility>.
|
29
29
|
;(function() {
|
30
30
|
"use strict";
|
31
31
|
|
@@ -1,17 +1,17 @@
|
|
1
1
|
/*
|
2
2
|
* Copyright 2011 Andrey “A.I.” Sitnik <andrey@sitnik.ru>,
|
3
3
|
* sponsored by Evil Martians.
|
4
|
-
*
|
4
|
+
*
|
5
5
|
* This program is free software: you can redistribute it and/or modify
|
6
6
|
* it under the terms of the GNU Lesser General Public License as published by
|
7
7
|
* the Free Software Foundation, either version 3 of the License, or
|
8
8
|
* (at your option) any later version.
|
9
|
-
*
|
9
|
+
*
|
10
10
|
* This program is distributed in the hope that it will be useful,
|
11
11
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
12
12
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
13
13
|
* GNU Lesser General Public License for more details.
|
14
|
-
*
|
14
|
+
*
|
15
15
|
* You should have received a copy of the GNU Lesser General Public License
|
16
16
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
17
17
|
*/
|
metadata
CHANGED
@@ -1,91 +1,74 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: visibilityjs
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease:
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 4
|
9
|
-
version: "0.4"
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.4.1
|
5
|
+
prerelease:
|
10
6
|
platform: ruby
|
11
|
-
authors:
|
12
|
-
-
|
7
|
+
authors:
|
8
|
+
- Andrey “A.I.” Sitnik
|
13
9
|
autorequire:
|
14
10
|
bindir: bin
|
15
11
|
cert_chain: []
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
version_requirements: &id001 !ruby/object:Gem::Requirement
|
12
|
+
date: 2012-04-29 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: sprockets
|
16
|
+
requirement: &16987600 !ruby/object:Gem::Requirement
|
22
17
|
none: false
|
23
|
-
requirements:
|
24
|
-
- -
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
hash: 62196457
|
27
|
-
segments:
|
28
|
-
- 2
|
29
|
-
- 0
|
30
|
-
- 0
|
31
|
-
- beta
|
32
|
-
- 5
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
33
21
|
version: 2.0.0.beta.5
|
34
|
-
requirement: *id001
|
35
22
|
type: :runtime
|
36
|
-
name: sprockets
|
37
23
|
prerelease: false
|
38
|
-
|
39
|
-
|
24
|
+
version_requirements: *16987600
|
25
|
+
description: Visibility.js allow you to determine whether your web page is visible
|
26
|
+
to an user, is hidden in background tab or is prerendering. It allows you use the
|
27
|
+
page visibility state in JavaScript logic and improve browser performance or improve
|
28
|
+
user interface experience.
|
29
|
+
email:
|
40
30
|
- andrey@sitnik.ru
|
41
31
|
executables: []
|
42
|
-
|
43
32
|
extensions: []
|
44
|
-
|
45
|
-
extra_rdoc_files:
|
33
|
+
extra_rdoc_files:
|
46
34
|
- LICENSE
|
47
35
|
- README.md
|
48
36
|
- ChangeLog
|
49
|
-
files:
|
37
|
+
files:
|
50
38
|
- vendor/assets/javascripts/visibility.js
|
51
39
|
- vendor/assets/javascripts/visibility.fallback.js
|
52
40
|
- lib/visibilityjs.rb
|
53
41
|
- LICENSE
|
54
42
|
- README.md
|
55
43
|
- ChangeLog
|
56
|
-
|
57
|
-
homepage: https://github.com/evilmartians/visibility.js
|
44
|
+
homepage: https://github.com/ai/visibility.js
|
58
45
|
licenses: []
|
59
|
-
|
60
46
|
post_install_message:
|
61
47
|
rdoc_options: []
|
62
|
-
|
63
|
-
require_paths:
|
48
|
+
require_paths:
|
64
49
|
- lib
|
65
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
50
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
66
51
|
none: false
|
67
|
-
requirements:
|
68
|
-
- -
|
69
|
-
- !ruby/object:Gem::Version
|
70
|
-
|
71
|
-
segments:
|
52
|
+
requirements:
|
53
|
+
- - ! '>='
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: '0'
|
56
|
+
segments:
|
72
57
|
- 0
|
73
|
-
|
74
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
58
|
+
hash: 24859103780171472
|
59
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
75
60
|
none: false
|
76
|
-
requirements:
|
77
|
-
- -
|
78
|
-
- !ruby/object:Gem::Version
|
79
|
-
|
80
|
-
segments:
|
61
|
+
requirements:
|
62
|
+
- - ! '>='
|
63
|
+
- !ruby/object:Gem::Version
|
64
|
+
version: '0'
|
65
|
+
segments:
|
81
66
|
- 0
|
82
|
-
|
67
|
+
hash: 24859103780171472
|
83
68
|
requirements: []
|
84
|
-
|
85
69
|
rubyforge_project:
|
86
|
-
rubygems_version: 1.
|
70
|
+
rubygems_version: 1.8.11
|
87
71
|
signing_key:
|
88
72
|
specification_version: 3
|
89
|
-
summary:
|
73
|
+
summary: Visibility.js – a wrapper for the Page Visibility API.
|
90
74
|
test_files: []
|
91
|
-
|