tmin 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- tmin (0.0.3)
4
+ tmin (0.0.4)
5
5
  dm-aggregates (~> 1.2.0)
6
6
  dm-core (~> 1.2.0)
7
7
  dm-migrations (~> 1.2.0)
data/lib/tmin/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  # encoding: UTF-8
2
2
  module Tminus
3
- VERSION = "0.0.4"
3
+ VERSION = "0.0.5"
4
4
  end
data/tmin-0.0.4.gem ADDED
Binary file
@@ -0,0 +1,25 @@
1
+ %html
2
+ %head
3
+ %meta{:content => "width=device-width", :name => "viewport"}/
4
+ %body
5
+ %div#applink1 <a href="#{@url.url}">Opening the awesome event now!</a>
6
+ :javascript
7
+ var appstorefail = "itms://itunes.apple.com/us/app/tminus-make-share-countdown/id507726329?mt=8";
8
+ function applink(fail){
9
+ return function(){
10
+ var clickedAt = +new Date;
11
+ // During tests on 3g/3gs this timeout fires immediately if less than 500ms.
12
+ setTimeout(function(){
13
+ // To avoid failing on return to MobileSafari, ensure freshness!
14
+ if (+new Date - clickedAt < 2000){
15
+ window.location = fail;
16
+ }
17
+ }, 500);
18
+ };
19
+ }
20
+ document.getElementById("applink1").click = applink(appstorefail);
21
+
22
+ $(document).ready(function(){
23
+ $('#applink1').trigger('click');
24
+ });
25
+
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tmin
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 4
10
- version: 0.0.4
9
+ - 5
10
+ version: 0.0.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - drobs
@@ -256,11 +256,13 @@ files:
256
256
  - tmin-0.0.1.gem
257
257
  - tmin-0.0.2.gem
258
258
  - tmin-0.0.3.gem
259
+ - tmin-0.0.4.gem
259
260
  - tmin.gemspec
260
261
  - views/error.haml
261
262
  - views/index.haml
262
263
  - views/info.haml
263
264
  - views/layout.haml
265
+ - views/redirect.haml
264
266
  has_rdoc: true
265
267
  homepage: http://uncarbonatedsoftware.com
266
268
  licenses: []