-
-
Notifications
You must be signed in to change notification settings - Fork 53
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
Implement Clock exercise for Crystal #273
Conversation
d70aa63
to
f486085
Compare
@ErikSchierboom - I'm trying to use configlet to get things set properly. I keep getting an error when trying to sync:
I am able to clone the problem-specifications repo the old fashioned way:
|
f486085
to
6fba4ff
Compare
Weird. Could you run |
The PR looks good. Let's figure out the |
It's definitely configlet
This is an error message from If it still doesn't work, you should be able to copy
and then run an offline sync: configlet sync -e clock -o |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
configlet sync -o -e clock --docs --metadata -uy
would produce the below changes to this PR.
The instructions.md
file and blurb
,source
,source_url
fields of .meta/config.json
should be exactly from prob-specs. You don't need to manually edit them - configlet sync
can handle it (if you can get it working).
--- a/exercises/practice/clock/.docs/instructions.md
+++ b/exercises/practice/clock/.docs/instructions.md
@@ -1,25 +1,7 @@
-# Clock
-
-Welcome to Clock on Exercism's Crystal Track.
-
-## Instructions
+# Instructions
Implement a clock that handles times without dates.
You should be able to add and subtract minutes to it.
Two clocks that represent the same time should be equal to each other.
-
-## Source
-
-### Ported by
-
-- @marksiemers
-
-### Originally Created for Ruby by
-
-- @kytrinyx
-
-### Based on
-
-Pairing session with Erin Drummond - https://twitter.com/ebdrummond
diff --git a/exercises/practice/clock/.meta/config.json b/exercises/practice/clock/.meta/config.json
index 38cbc9144..2c9f2820a 100644
--- a/exercises/practice/clock/.meta/config.json
+++ b/exercises/practice/clock/.meta/config.json
@@ -15,6 +15,6 @@
".meta/src/example.cr"
]
},
- "source": "Ruby Clock Exercise",
- "source_url": "https://exercism.org/tracks/ruby/exercises/clock"
+ "source": "Pairing session with Erin Drummond",
+ "source_url": "https://twitter.com/ebdrummond"
}
We'll also need to add the .meta/tests.toml
file.
Approving, although you should incorporate the changes @ee7 is suggesting. I'm ok if this happens outside this PR, maybe throw it in an issue if you need to troubleshoot configlet sync. |
I think the issue with configlet and cloning is the trailing slash. I tried cloning with and without it, and the trailing slash makes it fail:
UPDATE: Sorry Here's my git version:
|
6fba4ff
to
ee73017
Compare
Great - many thanks for finding the cause. I'll open an issue in configlet, and fix this with the next configlet release. I can't reproduce the problem, though. That is, this does work for me: git clone https://github.com/exercism/problem-specifications/ at least on Linux, OpenBSD, and during configlet CI using Ubuntu, macOS, and Windows Server. Maybe this provides a clue? https://stackoverflow.com/questions/56333422/git-clone-trailing-slash |
What is And you're seeing this problem on macOS, right? What's the output of |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved, but I've only checked that configlet sync
says that clock
is synced:
$ git rev-parse --short HEAD
613fe7852
$ bin/fetch-configlet
$ bin/configlet sync -e clock
Updating cached 'problem-specifications' data...
Checking exercises...
The `clock` exercise has up-to-date docs, filepaths, metadata, and tests!
@marksiemers Thanks for the update. The problem should be fixed in I'm still curious about whether the problem lies in your git configuration. Do you still see a failure with HOME=/dev/null git clone https://github.com/exercism/problem-specifications/ The above tries to avoid your user's git configuration. If the above works, then I think the problem should be in the output of git config --list as long as the below also produces no output HOME=/dev/null git config --list (Don't blindly paste the full output of |
No description provided.