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

Move duplicated data_path out of U3d::Cache/U3d::INIparser to U3dCore::Helper #266

Merged
merged 1 commit into from
Mar 26, 2018

Conversation

niezbop
Copy link
Member

@niezbop niezbop commented Mar 14, 2018

Pull Request Checklist

  • My pull request has been rebased on master
  • I ran bundle exec rspec to make sure that my PR didn't break any test
  • I ran bundle exec rubocop to make sure that my PR is inline with our code style
  • I have read the code of conduct

Pull Request Description

Move the duplicated data_path into a helper method so that it is only defined once, and can be used elsewhere.

@niezbop niezbop requested a review from lacostej March 14, 2018 18:07
@niezbop niezbop mentioned this pull request Mar 14, 2018
4 tasks
@@ -31,11 +31,7 @@ module U3d
class Cache
using ::CoreExtensions::OperatingSystem

# Path to the directory containing the cache for the different OS
DEFAULT_LINUX_PATH = File.join(ENV['HOME'], '.u3d').freeze
Copy link
Member

Choose a reason for hiding this comment

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

in theory this is breaking APIs :)

Copy link
Member Author

Choose a reason for hiding this comment

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

Would it be better to have something like

DEFAULT_LINUX_PATH = U3dCore::Helper.data_path
... (same for windows and mac)

Copy link
Member

Choose a reason for hiding this comment

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

Let's say for this time we don't care.

@niezbop niezbop merged commit 6164402 into DragonBox:master Mar 26, 2018
@niezbop niezbop deleted the data_path_helper branch March 26, 2018 15:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants