Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixes v0.7 warnings #85

Closed
wants to merge 23 commits into from
Closed

fixes v0.7 warnings #85

wants to merge 23 commits into from

Conversation

JeffreySarnoff
Copy link
Member

I may have got to all of them, maybe not -- the edits are unchecked, so there is the possibility of typos.
I understand that you have clients who need the v0.5 compat, so this should be given a separate tag and should go with code that gets a non-v0.5 compat version number

Copy link
Member

@omus omus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The REQUIRE should be updated to require Julia 0.6 and also the CI config files. Compat should also be bumped up to require 0.27.

@@ -1,6 +1,6 @@
import Compat: @static, is_windows
import Compat: @static
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should import Sys from Compat for this to work on 0.6

src/adjusters.jl Outdated
@@ -5,10 +5,11 @@ import Base.Dates: firstdayofweek, lastdayofweek, firstdayofmonth, lastdayofmont

# Truncation
# TODO: Just utilize floor code for truncation?
function trunc{P<:DatePeriod}(zdt::ZonedDateTime, ::Type{P})

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Extra blank line

@JeffreySarnoff
Copy link
Member Author

I made the requested changes. I do not know how to get them to be part of the active PR.

src/local.jl Outdated
@@ -1,9 +1,9 @@
# Determine the local system's time zone
# Based upon Python's tzlocal https://pypi.python.org/pypi/tzlocal
import Compat: @static, is_apple, is_unix, is_windows, readstring
import Compat: @static, readstring
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to import Sys

Copy link
Member Author

@JeffreySarnoff JeffreySarnoff Sep 1, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@JeffreySarnoff
Copy link
Member Author

added missing () to Sys.iswindows (should fix checks)

@codecov-io
Copy link

codecov-io commented Sep 1, 2017

Codecov Report

Merging #85 into master will decrease coverage by 36.89%.
The diff coverage is 35.29%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #85      +/-   ##
==========================================
- Coverage    94.4%   57.51%   -36.9%     
==========================================
  Files          26       26              
  Lines         948     1391     +443     
==========================================
- Hits          895      800      -95     
- Misses         53      591     +538
Impacted Files Coverage Δ
src/utcoffset.jl 59.37% <ø> (-40.63%) ⬇️
src/conversions.jl 56% <0%> (-44%) ⬇️
src/tzdata/timeoffset.jl 64.28% <0%> (-35.72%) ⬇️
src/types.jl 62.6% <0%> (-36.18%) ⬇️
src/exceptions.jl 60% <0%> (-40%) ⬇️
src/tzfile.jl 67.34% <0%> (-29.72%) ⬇️
src/tzdata/compile.jl 63.1% <0%> (-30.67%) ⬇️
src/tzdata/archive.jl 56.09% <100%> (-43.91%) ⬇️
src/local.jl 11.45% <100%> (-84.2%) ⬇️
src/parse-old.jl 0% <0%> (-100%) ⬇️
... and 24 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 784ffdc...31a3cb3. Read the comment docs.

@JeffreySarnoff
Copy link
Member Author

the current error in testing is on linux -- it is not finding the TZ environment variable set,
the relevant code appears unchanged .. but I cannot test it on linux today
any thoughts?

Copy link
Member

@omus omus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great. The Linux failure has to do with a modification in the Travis CI environment which TimeZones.jl currently doesn't support. I'll address that problem before merging this.

@omus
Copy link
Member

omus commented Sep 6, 2017

I've squashed your changes and included them in #88. Ideally will be merging today if we can get the CI to cooperate.

@omus omus closed this Sep 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants