browser-timezone-rails 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # BrowserTimezoneRails
2
2
 
3
- [![Build Status](https://secure.travis-ci.org/kbaum/browser_tzone.png)](http://travis-ci.org/kbaum/browser_tzone)
4
- [![Code Quality](https://codeclimate.com/badge.png)](https://codeclimate.com/github/kbaum/browser_tzone)
3
+ [![Build Status](https://secure.travis-ci.org/kbaum/browser-timezone-rails.png)](http://travis-ci.org/kbaum/browser-timezone-rails)
4
+ [![Code Quality](https://codeclimate.com/badge.png)](https://codeclimate.com/github/kbaum/browser-timezone-rails)
5
5
 
6
6
  Rails Engine which sets the Rails timezone to the browser's configured timezone for each request.
7
7
 
@@ -25,5 +25,8 @@ The browsers timezone is set in a cookie using the awesome [jsTimezoneDetect](ht
25
25
  ### About that cookie
26
26
  The cookie is set each full page request and lives for 365 days
27
27
 
28
+ ### Thread safety
29
+ Yes. It uses the Rails Time.zone method which is thread safe.
30
+
28
31
  ### Caveat
29
32
  The first request ever made by a user's browser to your app will not set the browser's time zone as the javascript that sets the cookie has not yet run on their browser. This will only happen once and for me it was not a problem.
@@ -1,3 +1,3 @@
1
1
  module BrowserTimezoneRails
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: browser-timezone-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-03-14 00:00:00.000000000 Z
12
+ date: 2013-03-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -118,9 +118,7 @@ files:
118
118
  - app/assets/javascripts/browser_timezone_rails/set_time_zone.js.coffee
119
119
  - app/assets/javascripts/detect_timezone.js
120
120
  - app/assets/javascripts/jquery.cookie.js
121
- - app/assets/stylesheets/browser_tzone/application.css
122
121
  - app/controllers/browser_timezone_rails/application_controller.rb
123
- - app/views/layouts/browser_tzone/application.html.erb
124
122
  - config/routes.rb
125
123
  - lib/browser-timezone-rails/engine.rb
126
124
  - lib/browser-timezone-rails/version.rb
@@ -128,7 +126,7 @@ files:
128
126
  - MIT-LICENSE
129
127
  - Rakefile
130
128
  - README.md
131
- homepage: https://github.com/kbaum/browser_tzone
129
+ homepage: https://github.com/kbaum/browser-timezone-rails
132
130
  licenses: []
133
131
  post_install_message:
134
132
  rdoc_options: []
@@ -1,13 +0,0 @@
1
- /*
2
- * This is a manifest file that'll be compiled into application.css, which will include all the files
3
- * listed below.
4
- *
5
- * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
6
- * or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
7
- *
8
- * You're free to add application-wide styles to this file and they'll appear at the top of the
9
- * compiled file, but it's generally better to create a new file per style scope.
10
- *
11
- *= require_self
12
- *= require_tree .
13
- */
@@ -1,14 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>BrowserTzone</title>
5
- <%= stylesheet_link_tag "browser_tzone/application", :media => "all" %>
6
- <%= javascript_include_tag "browser_tzone/application" %>
7
- <%= csrf_meta_tags %>
8
- </head>
9
- <body>
10
-
11
- <%= yield %>
12
-
13
- </body>
14
- </html>