wiser_timezone 0.1.5 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZDI2YzQzNTk5Y2QxODljZDkxY2NlZjRkYjI4ZjEwMTI1YTY3Y2FkZA==
4
+ NWZlN2E3ODkzZjQwYTVhNGQzZWIwYmUyNjM5NzBjN2EyOWRjYTVjNQ==
5
5
  data.tar.gz: !binary |-
6
- NmUzMDY3ZDkyNWU1YTFmMzBhNDE3YjA2NjY2M2M0YTQzNDU4ZTU0NQ==
6
+ ODdjNWRmOWMyNTIzNjY2NDNkMzNmMTRjMWE0NGM5YTgwNWQxNzcyOQ==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- ODYxMjc0MTRmNmI0NjVkMTc5YzYzYzk1OTkzZTYyYjhjZGFlNWUzZWVlMTU1
10
- NmZjZWQ0ODQzNmVhYWViMTI5YWFhYmI3N2U5MzFmYWU0MGQ3OTEyYjUwMTQ0
11
- YWY4NGJjNzZiMDY3MGIxYjNmZjdjZDdmNTkzODc4YjVlNGFmNjQ=
9
+ YTIxYWNhODY0ZGNiMzg5N2U3M2ZhMWU1YTRlMjA2YWM3MTNlMDg4OTAxYjBm
10
+ ZjdhMGE1NmFlZDc1ZjZlY2MyMWUxMzcyZDE0NzAyODY1NGU2NDE4MDk5NmU1
11
+ MmM0ZmVjMDA3YTMyYWY2NjgzZWM5MzMzMGIxMTk1NWFjY2NiZjU=
12
12
  data.tar.gz: !binary |-
13
- OTk3OGUzNjUyZjdmMGJhMWEwNmU5Nzg5Y2NiNDU4NmJlMzY2Y2M2MTYyMjNm
14
- OTliNmRiNWMxZmViMjg0ZGE5MTJkYjM1ZDIxZmQxMDFjMmZmMjk2MDRmZTYz
15
- OTQ1OTEwZWNjZjFhNDFkNDA5NTViYzRkNjMzMzQ1ODhjZWM0NGU=
13
+ MzU4ODdhNGQ3ZDkxNjlmZGJlODE1YmQwZTkzM2I1YzBiNDU3OWZlOWE0N2Ey
14
+ Y2Q4NDFmZmNhMDlkMmI3MzcwNjcyMmE0ZWY2ODBiY2MxNjE2NTcyMzAzNTA5
15
+ M2Q1OTk5OTA1ZDAwYmI4OTUyNDI0OWQwZDkzZmY4NmRjNzlhYmI=
data/README.md CHANGED
@@ -16,7 +16,7 @@ You can do normal gem installation for `wiser_timezone` from your terminal:
16
16
 
17
17
  or add this line in your Gemfile:
18
18
 
19
- gem 'wiser_timezone', '~> 0.1.4'
19
+ gem 'wiser_timezone', '~> 0.1.5'
20
20
 
21
21
  Be sure to restart your application if it is already running.
22
22
 
@@ -1,5 +1,9 @@
1
1
  $(document).ready(function(){
2
- wiser_timezone_reload();
2
+ if($('#wiser_timezone_container').hasClass('no_user')){
3
+ $('#wiser_timezone_container #wiser_timezone_link')[0].click()
4
+ }else{
5
+ wiser_timezone_reload();
6
+ }
3
7
  $(window).resize()
4
8
  });
5
9
 
@@ -7,8 +11,6 @@ $(window).resize(function(){
7
11
  if($('#wiser_timezone_container').is(':visible')){
8
12
  if(!$('#wiser_timezone_container').hasClass('force'))
9
13
  $('html').css('margin-top', $('#wiser_timezone_container').height() + 'px')
10
- if($('#wiser_timezone_container').hasClass('no_user'))
11
- $('#wiser_timezone_container #wiser_timezone_link')[0].click()
12
14
  }
13
15
  })
14
16
 
@@ -52,7 +52,7 @@
52
52
  opacity: 0.85;
53
53
  margin: 90px auto 0;
54
54
  max-width: 330px;
55
- padding: 30px 20px;
55
+ padding: 30px 20px 40px;
56
56
  z-index: 2;
57
57
  /* Font */
58
58
  text-align: center;
@@ -26,11 +26,7 @@ module WiserTimezone
26
26
  end
27
27
  end
28
28
  end
29
- begin
30
- redirect_to :back
31
- rescue
32
- redirect_to root_path
33
- end
29
+ redirect_to root_path
34
30
  end
35
31
  end
36
32
  end
@@ -54,9 +54,9 @@ module WiserTimezone
54
54
  close_link = link_to('skip', set_timezone_path(offset: 'skip'), :id => 'wiser_timezone_close', :remote => true)
55
55
 
56
56
  if offset.present?
57
- msg = "Your system's timezone does not match your current setting #{current_timezone_slim}, <span class='no_wrap'>#{set_link} to update the timezone to ~TZ~.</span>#{'<br/>' if force}Otherwise, #{close_link} setting your timezone."
57
+ msg = "Your system's timezone does not match your current setting #{current_timezone_slim}, <span class='no_wrap'>#{set_link}</span> to update the timezone to ~TZ~.#{'<br/>' if force}Otherwise, #{close_link} setting your timezone."
58
58
  else
59
- msg = "You do not have timezone in your settings, <span class='no_wrap'>#{set_link} to update the timezone to ~TZ~.</span>#{'<br/>' if force}Otherwise, #{close_link} setting your timezone."
59
+ msg = "You do not have timezone in your settings, <span class='no_wrap'>#{set_link}</span> to update the timezone to ~TZ~.#{'<br/>' if force}Otherwise, #{close_link} setting your timezone."
60
60
  end
61
61
  classes = "#{'force' if force} #{'no_user' if auto_set_guest}"
62
62
  space = "<div id='wiser_timezone_space' data-offset='#{offset}'>#{msg}</div>"
@@ -1,3 +1,3 @@
1
1
  module WiserTimezone
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wiser_timezone
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kenneth John Balgos