-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
448 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
"authors": [ | ||
"kytrinyx" | ||
], | ||
"contributors": [ | ||
"alxndr", | ||
"budmc29", | ||
"cadwallion", | ||
"guygastineau", | ||
"henrik", | ||
"hilary", | ||
"iHiD", | ||
"Insti", | ||
"jpotts244", | ||
"kotp", | ||
"pendletons", | ||
"pgaspar", | ||
"tryantwit", | ||
"wvmitchell" | ||
], | ||
"files": { | ||
"solution": [ | ||
"clock.rb" | ||
], | ||
"test": [ | ||
"clock_test.rb" | ||
], | ||
"example": [ | ||
".meta/example.rb" | ||
] | ||
}, | ||
"blurb": "Implement a clock that handles times without dates.", | ||
"source": "Pairing session with Erin Drummond", | ||
"source_url": "https://twitter.com/ebdrummond" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"track":"ruby","exercise":"clock","id":"e860d5afc008457a9fc134f073882c5c","url":"https://exercism.org/tracks/ruby/exercises/clock","handle":"vpayno","is_requester":true,"auto_approve":false} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
# Help | ||
|
||
## Running the tests | ||
|
||
For running the tests provided, you will need the Minitest gem. Open a | ||
terminal window and run the following command to install minitest: | ||
|
||
``` | ||
gem install minitest | ||
``` | ||
|
||
|
||
Run the tests from the exercise directory using the following command: | ||
|
||
``` | ||
ruby <snake-case-exercise>_test.rb | ||
``` | ||
|
||
Please replace `<snake-case-exercise>` with your exercise name in snake_case. | ||
|
||
## Color output | ||
|
||
You can `require 'minitest/pride'` or run the following command to get colored output: | ||
|
||
``` | ||
ruby -r minitest/pride <snake-case-exercise>_test.rb | ||
``` | ||
|
||
## Submitting your solution | ||
|
||
You can submit your solution using the `exercism submit clock.rb` command. | ||
This command will upload your solution to the Exercism website and print the solution page's URL. | ||
|
||
It's possible to submit an incomplete solution which allows you to: | ||
|
||
- See how others have completed the exercise | ||
- Request help from a mentor | ||
|
||
## Need to get help? | ||
|
||
If you'd like help solving the exercise, check the following pages: | ||
|
||
- The [Ruby track's documentation](https://exercism.org/docs/tracks/ruby) | ||
- The [Ruby track's programming category on the forum](https://forum.exercism.org/c/programming/ruby) | ||
- [Exercism's programming category on the forum](https://forum.exercism.org/c/programming/5) | ||
- The [Frequently Asked Questions](https://exercism.org/docs/using/faqs) | ||
|
||
Should those resources not suffice, you could submit your (incomplete) solution to request mentoring. | ||
|
||
To get help if you're having trouble, you can use one of the following resources: | ||
|
||
- [Ruby Documentation](http://ruby-doc.org/) | ||
- [StackOverflow](http://stackoverflow.com/questions/tagged/ruby) | ||
- [/r/ruby](https://www.reddit.com/r/ruby) is the Ruby subreddit. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# Clock | ||
|
||
Welcome to Clock on Exercism's Ruby Track. | ||
If you need help running the tests or submitting your code, check out `HELP.md`. | ||
|
||
## 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 | ||
|
||
### Created by | ||
|
||
- @kytrinyx | ||
|
||
### Contributed to by | ||
|
||
- @alxndr | ||
- @budmc29 | ||
- @cadwallion | ||
- @guygastineau | ||
- @henrik | ||
- @hilary | ||
- @iHiD | ||
- @Insti | ||
- @jpotts244 | ||
- @kotp | ||
- @pendletons | ||
- @pgaspar | ||
- @tryantwit | ||
- @wvmitchell | ||
|
||
### Based on | ||
|
||
Pairing session with Erin Drummond - https://twitter.com/ebdrummond |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
=begin | ||
Write your code for the 'Clock' exercise in this file. Make the tests in | ||
`clock_test.rb` pass. | ||
To get started with TDD, see the `README.md` file in your | ||
`ruby/clock` directory. | ||
=end |
Oops, something went wrong.