add-to-homescreen-rails 3.0.3 → 3.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/addtohomescreen.js +13 -7
- data/lib/add-to-homescreen-rails/version.rb +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: fd8aad784b26bdd1a835038646752b2c72979678
|
4
|
+
data.tar.gz: 1f41bba804349973873d4f5a062a6ee745612805
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6415f6d4af78888301cb08cc6a1df0ef17607b6cf6314569fc0e5873eeadadc90aa2fdbfec1ef2caa972ce625ae2f8a09a1e4bb39410411eeac6440c994b5d1c
|
7
|
+
data.tar.gz: b951e8b143ef8a40a48f081ec563fce2046a2de70ad5d6c00d5b5b443a4259e86bdc545ff8305799adfe7d74bf6e5bb61216b000d2a55feee97d48573e523d2a
|
@@ -1,4 +1,4 @@
|
|
1
|
-
/* Add to Homescreen v3.0.
|
1
|
+
/* Add to Homescreen v3.0.4 ~ (c) 2014 Matteo Spinelli ~ @license: http://cubiq.org/license */
|
2
2
|
(function (window, document) {
|
3
3
|
/*
|
4
4
|
_ _ _____ _____
|
@@ -35,9 +35,14 @@ ath.intl = {
|
|
35
35
|
action: { ios: 'Add to Home Screen', android: 'Add to homescreen', windows: 'pin to start' }
|
36
36
|
},
|
37
37
|
|
38
|
+
es_es: {
|
39
|
+
message: 'Para añadir esta aplicación web a la pantalla de inicio: pulsa %icon y selecciona <strong>%action</strong>.',
|
40
|
+
action: { ios: 'Añadir a pantalla de inicio', android: 'Añadir a pantalla de inicio', windows: 'Añadir a inicio' }
|
41
|
+
},
|
42
|
+
|
38
43
|
it_it: {
|
39
44
|
message: 'Per Aggiungere questa web app alla schermata iniziale: premi %icon e poi <strong>%action</strong>.',
|
40
|
-
action: { ios: 'Aggiungi a Home', android: 'Aggiungi alla homescreen', windows: '
|
45
|
+
action: { ios: 'Aggiungi a Home', android: 'Aggiungi alla homescreen', windows: 'aggiungi a start' }
|
41
46
|
},
|
42
47
|
|
43
48
|
nl_nl: {
|
@@ -79,11 +84,15 @@ _extend(ath, {
|
|
79
84
|
isIDevice: (/iphone|ipod|ipad/i).test(_ua),
|
80
85
|
isMobileChrome: _ua.indexOf('Android') > -1 && (/Chrome\/[.0-9]*/).test(_ua),
|
81
86
|
isMobileIE: _ua.indexOf('Windows Phone') > -1,
|
82
|
-
language: _nav.language && _nav.language.toLowerCase().replace('-', '_') || '
|
87
|
+
language: _nav.language && _nav.language.toLowerCase().replace('-', '_') || ''
|
83
88
|
});
|
84
89
|
|
85
90
|
// normalize language string so it always looks like aa_bb
|
86
|
-
|
91
|
+
if ( ath.language.length == 2 ) {
|
92
|
+
ath.language += '_' + ath.language;
|
93
|
+
}
|
94
|
+
// falls back to en_us if language is unsupported
|
95
|
+
ath.language = ath.language && ath.language in ath.intl ? ath.language : 'en_us';
|
87
96
|
|
88
97
|
ath.isMobileSafari = ath.isIDevice && _ua.indexOf('Safari') > -1 && _ua.indexOf('CriOS') < 0;
|
89
98
|
ath.OS = ath.isIDevice ? 'ios' : ath.isMobileChrome ? 'android' : ath.isMobileIE ? 'windows' : 'unsupported';
|
@@ -96,9 +105,6 @@ ath.isTablet = (ath.isMobileSafari && _ua.indexOf('iPad') > -1) || (ath.isMobile
|
|
96
105
|
|
97
106
|
ath.isCompatible = (ath.isMobileSafari && ath.OSVersion >= 6) || ath.isMobileChrome; // TODO: add winphone
|
98
107
|
|
99
|
-
// falls back to en_us if language is unsupported
|
100
|
-
ath.language = ath.language && ath.language in ath.intl ? ath.language : 'en_us';
|
101
|
-
|
102
108
|
var _defaultSession = {
|
103
109
|
lastDisplayTime: 0, // last time we displayed the message
|
104
110
|
returningVisitor: false, // is this the first time you visit
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: add-to-homescreen-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- RogerE
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-05-
|
11
|
+
date: 2014-05-09 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Provides the 'Add to Home screen' assets for your Rails application.
|
14
14
|
email:
|