add-to-homescreen-rails 2.0.8 → 2.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.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- ZmNhOGNjM2EwNDUyZTE2MmNhNDdkYmE1NmVkMjdmOTkwOWZjYzBiZA==
5
- data.tar.gz: !binary |-
6
- OWY5MjljOTU0NzlhZTUyMGEzMTk1NDdhOTA0NjI2MjIyNWUwZTIwNw==
7
- !binary "U0hBNTEy":
8
- metadata.gz: !binary |-
9
- MmRlZTEzZWUwY2VkMDJmNmYzZjQ1ZTRmYTE5NjhlODk4ZTdiNWY5NzJiMjFj
10
- ZWFhNmM5NGVkZTgzY2E0ZjczMDU5NGY2Y2U0ZTBkOWQ2NzdiODIxOGFiYTUx
11
- N2U5ZDdiZWQ0OTFmYzljZDFhY2FmNjY5ZTBmN2JlNzY3NGVhMmI=
12
- data.tar.gz: !binary |-
13
- YWZiYTc0OGUxNGQ2ZjZmMTVhNTdkY2NlMTFjN2MwMzBlYWZmMzM3ZTlkZTgx
14
- YjBiOTM5YzU5OGM3ZjUxMjQ4YzJkNzVlMDkyYWViNzg5ZmNhMDgzZDI4Zjdj
15
- ODhjMzAwNDJiN2RmNDgyNzEzMDU4MDJjMGNkNDM5YmFjNmQzZjQ=
2
+ SHA1:
3
+ metadata.gz: 29ac25a01103b0f54854877b5853262d6d770b73
4
+ data.tar.gz: ca89ebb1fc838e1692cd6399deed5e220fa1ab13
5
+ SHA512:
6
+ metadata.gz: 8ce07510dfad333ff7a98a23e756742d4d6af872b139020007c7efc9d3dcfcbb2f9026804ee912d50ffc66a6d2c98bb0c75185522180242888c8f5210af891f7
7
+ data.tar.gz: 84543f7e09ae8882cc64552e3fb9013531b30c4932bd3b069f6023d214dfd0019c947b9b52028cfc6359fe2d3ed0d747485805537d934353c3423d8663d801fe
@@ -2,7 +2,7 @@ module Add
2
2
  module To
3
3
  module Homescreen
4
4
  module Rails
5
- VERSION = "2.0.8"
5
+ VERSION = "2.0.9"
6
6
  end
7
7
  end
8
8
  end
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Add to Homescreen v2.0.8 ~ Copyright (c) 2013 Matteo Spinelli, http://cubiq.org
2
+ * Add to Homescreen v2.0.9 ~ Copyright (c) 2013 Matteo Spinelli, http://cubiq.org
3
3
  * Released under MIT license, http://cubiq.org/license
4
4
  */
5
5
  var addToHome = (function (w) {
@@ -141,7 +141,7 @@ var addToHome = (function (w) {
141
141
  }
142
142
  }
143
143
 
144
- balloon.className = (isIPad ? 'addToHomeIpad' : 'addToHomeIphone') + (touchIcon ? ' addToHomeWide' : '');
144
+ balloon.className = (OSVersion >=7 ? 'addToHomeIOS7 ' : '') + (isIPad ? 'addToHomeIpad' : 'addToHomeIphone') + (touchIcon ? ' addToHomeWide' : '');
145
145
  balloon.innerHTML = touchIcon +
146
146
  options.message.replace('%device', platform).replace('%icon', OSVersion >= 4.2 ? '<span class="addToHomeShare' + (OSVersion >= 7 ? ' addToHomeShareOS7' : '') + '"></span>' : '<span class="addToHomePlus">+</span>') +
147
147
  (options.arrow ? '<span class="addToHomeArrow"></span>' : '') +
@@ -168,6 +168,8 @@ var addToHome = (function (w) {
168
168
  startX = w.scrollX;
169
169
  } else if ( OSVersion < 6 ) {
170
170
  iPadXShift = 160;
171
+ } else if ( OSVersion >= 7 ) {
172
+ iPadXShift = 143;
171
173
  }
172
174
 
173
175
  balloon.style.top = startY + options.bottomOffset + 'px';
@@ -26,6 +26,13 @@
26
26
  -webkit-box-shadow:0 0 4px rgba(0,0,0,0.5);
27
27
  }
28
28
 
29
+ #addToHomeScreen.addToHomeIOS7 {
30
+ background:#f2f2f2 !important;
31
+ -webkit-border-radius:1px !important;
32
+ border:1px solid #ccc;
33
+ -webkit-box-shadow:0 0 4px rgba(0,0,0,0.2);
34
+ }
35
+
29
36
  #addToHomeScreen.addToHomeIpad {
30
37
  width:268px;
31
38
  font-size:18px;
@@ -66,6 +73,11 @@
66
73
  -webkit-border-bottom-right-radius:2px;
67
74
  }
68
75
 
76
+ #addToHomeScreen.addToHomeIOS7 .addToHomeArrow {
77
+ background-image:-webkit-gradient(linear,0 0,100% 100%,color-stop(0,rgba(204,204,204,0)),color-stop(0.4,rgba(204,204,204,0)),color-stop(0.4,#f2f2f2)) !important;
78
+ -webkit-box-shadow:inset -1px -1px 0 #fff !important;
79
+ border-color:#ccc !important;
80
+ }
69
81
 
70
82
  /**
71
83
  *
@@ -96,11 +108,18 @@
96
108
  text-indent:1px;
97
109
  -webkit-border-radius:9px;
98
110
  background:rgba(0,0,0,0.12);
99
- color:#707070;
111
+ color:#888;
100
112
  -webkit-box-shadow:0 1px 0 #fff;
101
113
  font-size:16px;
102
114
  }
103
115
 
116
+ #addToHomeScreen.addToHomeIOS7 .addToHomeClose {
117
+ line-height:12px;
118
+ padding-right:1px;
119
+ background:transparent;
120
+ border: 1px solid #888;
121
+ -webkit-box-shadow:none;
122
+ }
104
123
 
105
124
  /**
106
125
  *
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: 2.0.8
4
+ version: 2.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - RogerE
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-08-21 00:00:00.000000000 Z
11
+ date: 2013-10-04 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:
@@ -35,17 +35,17 @@ require_paths:
35
35
  - lib
36
36
  required_ruby_version: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ! '>='
38
+ - - '>='
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  required_rubygems_version: !ruby/object:Gem::Requirement
42
42
  requirements:
43
- - - ! '>='
43
+ - - '>='
44
44
  - !ruby/object:Gem::Version
45
45
  version: '0'
46
46
  requirements: []
47
47
  rubyforge_project:
48
- rubygems_version: 2.0.6
48
+ rubygems_version: 2.1.5
49
49
  signing_key:
50
50
  specification_version: 4
51
51
  summary: Use 'Add to Home screen' with Rails Asset Pipeline