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

generator: support example solutions in .meta/solutions #605

Merged
merged 4 commits into from
May 3, 2017

Conversation

hilary
Copy link
Contributor

@hilary hilary commented May 3, 2017

As part of moving generator bits under .meta, we're moving example.rb under .meta/solutions. This PR is the first step: adding support for example solutions as .meta/solutions/<exercise_name>.rb while retaining support for the current location.

Tests are included for both old and new locations.

Supporting both old and new introduces a bit of mess that will get cleaned up when support for the old location is removed. I'd rather live with the mess than refactor to get an elegant solution that would be around for a day or two...

@@ -13,7 +13,7 @@ def initialize
@paths = FixturePaths
@exercise_name = 'alpha'
end
attr_reader :paths, :exercise_name
attr_accessor :paths, :exercise_name
Copy link
Contributor

@Insti Insti May 3, 2017

Choose a reason for hiding this comment

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

I'd rather exercise name modification being done via constructor argument rather than attr_accessor

but I can understand:

I'd rather live with the mess than refactor to get an elegant solution that would be around for a day or two.

@Insti Insti merged commit 69eae76 into exercism:master May 3, 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.

None yet

2 participants