Skip to content

Commit

Permalink
Bump version to 0.6.3
Browse files Browse the repository at this point in the history
  • Loading branch information
paulcsmith committed Apr 7, 2020
1 parent d8e129d commit 46dc424
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
4 changes: 2 additions & 2 deletions shard.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: lucky_flow
version: 0.6.2
version: 0.6.3

authors:
- Paul Smith <[email protected]>

crystal: 0.31.1
crystal: 0.34.0

license: MIT

Expand Down
16 changes: 10 additions & 6 deletions src/lucky_flow/server.cr
Original file line number Diff line number Diff line change
Expand Up @@ -41,18 +41,22 @@ class LuckyFlow::Server
start_session
end

private def start_session
driver = Selenium::Webdriver.new
Selenium::Session.new(driver, capabilities)

# If less than 0.34.0
{% if compare_versions(Crystal::VERSION, "0.34.0") == -1 %}
private def start_session
driver = Selenium::Webdriver.new
Selenium::Session.new(driver, capabilities)
rescue e : Errno
retry_start_session(e)
end
{% else %}
private def start_session
driver = Selenium::Webdriver.new
Selenium::Session.new(driver, capabilities)
rescue e : IO::Error
retry_start_session(e)
end
{% end %}
retry_start_session(e)
end

private def retry_start_session(e)
if Time.utc <= @retry_limit.not_nil!
Expand Down
2 changes: 1 addition & 1 deletion src/lucky_flow/version.cr
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
class LuckyFlow
VERSION = "0.6.2"
VERSION = "0.6.3"
end

0 comments on commit 46dc424

Please sign in to comment.