binxtils 0.4.0 → 0.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 295363d2a92de841cbbfba3cd18fe5251e8dac172d769e4e6754d429a7dc83b9
4
- data.tar.gz: a6ccfddc696e668e2b262d81878421ecbf65b82556bfc009f3fae7242197d490
3
+ metadata.gz: 15e2f7ef3eacc9bc7a549e93c60b48a4c64f3d3880b7cacb5b70f4a4962752b8
4
+ data.tar.gz: aca6cfcec5e692f27810f3930a37b75b345263ffca350a0402b697b72f5bdd47
5
5
  SHA512:
6
- metadata.gz: 15713d7765c8d4e646066ebdf34fadd26f095e17a09aad965fb10459ec568e1c09c9e75d7ca3e1cb6eb729dc24ce8d19c663ec4bf51ff1c97eea037691f49cb5
7
- data.tar.gz: db1139bfc9783507573f36e2bf915f227fb53c99e6dfa0f2fe980b7fcd5563d036d8cdde053aff9731f9682e36aeb980047d068c06269ddc4ca84d4f33532573
6
+ metadata.gz: 1615e2f50804ad8556c23c6f8d804eaf1c6c6ac96714a2ecc256d8f054240ba978ee7acfba8b674e44b5eefe8f2da4b7e305d337314fd09d2780271ec04c6e1c
7
+ data.tar.gz: e84cbc603fd7762034ae2b86f7f5cbe8540879bc5f1b7101e062eb7212e017625e96fd35a76e1111273dd1ba8e0bb13f2cb5d68ab80153aca70a1fcd48f1d951
@@ -88,11 +88,9 @@ module Binxtils
88
88
  session[:timezone] = @timezone&.name
89
89
  end
90
90
 
91
- if session[:timezone].present?
92
- @timezone ||= Binxtils::TimeZoneParser.parse(session[:timezone])
93
- Time.zone = @timezone
94
- end
95
-
91
+ @timezone ||= Binxtils::TimeZoneParser.parse(session[:timezone]) if session[:timezone].present?
92
+ @timezone ||= Binxtils::TimeZoneParser.parse(cookies[:timezone]) if cookies[:timezone].present?
93
+ Time.zone = @timezone if @timezone
96
94
  @timezone ||= Binxtils::TimeParser.default_time_zone
97
95
  end
98
96
  end
@@ -13,7 +13,7 @@ module Binxtils
13
13
  def string(val)
14
14
  return nil if val.blank?
15
15
 
16
- val.strip.gsub(/\s+/, " ")
16
+ val.delete("\u0000").strip.gsub(/\s+/, " ")
17
17
  end
18
18
 
19
19
  def present_or_false?(val)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Binxtils
4
- VERSION = "0.4.0"
4
+ VERSION = "0.4.2"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: binxtils
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bike Index