tmin 0.0.5 → 0.0.6

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.4)
4
+ tmin (0.0.5)
5
5
  dm-aggregates (~> 1.2.0)
6
6
  dm-core (~> 1.2.0)
7
7
  dm-migrations (~> 1.2.0)
data/lib/tmin/server.rb CHANGED
@@ -274,6 +274,7 @@ module Firefly
274
274
  "Sorry, that code is unknown."
275
275
  else
276
276
  @short_url = "http://#{config[:hostname]}/#{@url.code}"
277
+ @url.register_click!
277
278
  haml :redirect
278
279
  end
279
280
  end
data/lib/tmin/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  # encoding: UTF-8
2
2
  module Tminus
3
- VERSION = "0.0.5"
3
+ VERSION = "0.0.6"
4
4
  end
data/tmin-0.0.5.gem ADDED
Binary file
data/views/redirect.haml CHANGED
@@ -1,25 +1,20 @@
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>
1
+ <a id="applink1" href="#{@url.url}">Opening the awesome event now!</a>
2
+
6
3
  :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);
4
+ var appstorefail = "itms://itunes.apple.com/us/app/facebook/id284882215?mt=8&uo=6";
5
+ function applink(fail){
6
+ return function(){
7
+ var clickedAt = +new Date;
8
+ // During tests on 3g/3gs this timeout fires immediately if less than 500ms.
9
+ setTimeout(function(){
10
+ // To avoid failing on return to MobileSafari, ensure freshness!
11
+ if (+new Date - clickedAt < 2000){
12
+ window.location = fail;
13
+ }
14
+ }, 500);
18
15
  };
19
- }
20
- document.getElementById("applink1").click = applink(appstorefail);
21
-
22
- $(document).ready(function(){
23
- $('#applink1').trigger('click');
24
- });
16
+ }
17
+ document.getElementById("applink1").onclick = applink(appstorefail);
18
+ var button = document.getElementById("applink1")
19
+ button.click()
25
20
 
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: 21
4
+ hash: 19
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 5
10
- version: 0.0.5
9
+ - 6
10
+ version: 0.0.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - drobs
@@ -257,6 +257,8 @@ files:
257
257
  - tmin-0.0.2.gem
258
258
  - tmin-0.0.3.gem
259
259
  - tmin-0.0.4.gem
260
+ - tmin-0.0.5.gem
261
+ - tmin-0.0.6.gem
260
262
  - tmin.gemspec
261
263
  - views/error.haml
262
264
  - views/index.haml