voys_api 0.2.3 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -135,8 +135,8 @@ private
135
135
  converted_options = options.clone # deep clone?
136
136
 
137
137
  # convert options
138
- converted_options[:period_from] = options[:period_from].strftime("%Y-%m-%d") if not options[:period_from].is_a?(String)
139
- converted_options[:period_to] = options[:period_to].strftime("%Y-%m-%d") if not options[:period_from].is_a?(String)
138
+ converted_options[:period_from] = options[:period_from].strftime("%Y-%m-%d") if options[:period_from] && !options[:period_from].is_a?(String)
139
+ converted_options[:period_to] = options[:period_to].strftime("%Y-%m-%d") if options[:period_to] && !options[:period_to].is_a?(String)
140
140
 
141
141
  return converted_options
142
142
  end
@@ -1,3 +1,3 @@
1
1
  module VoysApi
2
- VERSION = "0.2.3"
2
+ VERSION = "0.2.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: voys_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: