browser-timezone-rails 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f33c9dca578ddcf79bba118a40f9edb8ca40cae23849bd20c49a0a6f6b632c68
4
- data.tar.gz: e02f1a50ae2ce9e64e7e808e211298ddc24e83557e47563bd4495b71c3bbdcd3
3
+ metadata.gz: ca271ca6492935baff61b7a48da71cbe319392ee52aa2d762c3f77239269d519
4
+ data.tar.gz: caf5765cb0b800bdd42ef12ea58a5eb6c927d35204d50035334597b5dd11208c
5
5
  SHA512:
6
- metadata.gz: bb319b5db5029d0ccf38760aaacbef7c1f38ad0d15fa9208fc9c85bc5610a2032ce57fb79353d1b094ea94c19613c899f085c178b3fbc9ed0b5bdc90b2996275
7
- data.tar.gz: db1996c089653809403cdf593902458eb6c25e3f2e40132cb225bf447f31680a650939c005d7b58f5a705acb79508f52e97c04a221e83cdfc390c5850b20f882
6
+ metadata.gz: b33e38f76b8c67bffb03b33357a2b543f522ac57f15c284fdb0a5495c7c0eddf6f4b2f820e608b27b9ffff62c3a81d66d456f96b24dee37455d1e4350664e2be
7
+ data.tar.gz: 2c0839355d1d84788db6e6968d1341d82aa67479b9b038bd7c639b788713ecb3cc4a3e5b06d36faa66f092080a63fac277e562a761ebface6d15f61b3b406075
@@ -0,0 +1,13 @@
1
+ (function() {
2
+
3
+ Cookies.set(
4
+ "browser.timezone",
5
+ jstz.determine().name(),
6
+ {
7
+ expires: 365,
8
+ path: '/',
9
+ secure: <%= ::Rails.application.config.force_ssl %>
10
+ }
11
+ );
12
+ })();
13
+
@@ -1,3 +1,3 @@
1
1
  module BrowserTimezoneRails
2
- VERSION = "1.0.2"
2
+ VERSION = "1.0.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: browser-timezone-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - kbaum
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-08-10 00:00:00.000000000 Z
11
+ date: 2019-02-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -118,7 +118,7 @@ files:
118
118
  - MIT-LICENSE
119
119
  - README.md
120
120
  - Rakefile
121
- - app/assets/javascripts/browser_timezone_rails/set_time_zone.js
121
+ - app/assets/javascripts/browser_timezone_rails/set_time_zone.js.erb
122
122
  - app/controllers/browser_timezone_rails/application_controller.rb
123
123
  - config/routes.rb
124
124
  - lib/browser-timezone-rails.rb
@@ -1,4 +0,0 @@
1
- (function() {
2
- Cookies.set("browser.timezone", jstz.determine().name(), { expires: 365, path: '/' });
3
- })();
4
-