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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: aff3d134133998d833e7c56c69454aa8288e21e0
4
- data.tar.gz: 58ca62f3c6c2bad65769141a31dbcd7746c1b780
3
+ metadata.gz: fd8aad784b26bdd1a835038646752b2c72979678
4
+ data.tar.gz: 1f41bba804349973873d4f5a062a6ee745612805
5
5
  SHA512:
6
- metadata.gz: 16b4ae4ab4f766932655e085714c40f81eac72e371624189ce43a35de0cf66c4edb729c4371dd4321197b375cba04dba49287b7741e37922c0d5398ac7aa8df9
7
- data.tar.gz: 6d07286b33084be304b0883a4bd7f97d1888b8b53001f583bb627a56e52ed40ccb4a72517c3bd7f182ad1d3a7499f840eaf60b4256936b9e9b27cf46e6b77023
6
+ metadata.gz: 6415f6d4af78888301cb08cc6a1df0ef17607b6cf6314569fc0e5873eeadadc90aa2fdbfec1ef2caa972ce625ae2f8a09a1e4bb39410411eeac6440c994b5d1c
7
+ data.tar.gz: b951e8b143ef8a40a48f081ec563fce2046a2de70ad5d6c00d5b5b443a4259e86bdc545ff8305799adfe7d74bf6e5bb61216b000d2a55feee97d48573e523d2a
@@ -1,4 +1,4 @@
1
- /* Add to Homescreen v3.0.3 ~ (c) 2014 Matteo Spinelli ~ @license: http://cubiq.org/license */
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: 'pin to start' }
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('-', '_') || 'en_us'
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
- ath.language = ath.language.length == 2 && ath.language + '_' + ath.language;
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
@@ -2,7 +2,7 @@ module Add
2
2
  module To
3
3
  module Homescreen
4
4
  module Rails
5
- VERSION = "3.0.3"
5
+ VERSION = "3.0.4"
6
6
  end
7
7
  end
8
8
  end
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.3
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-07 00:00:00.000000000 Z
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: