Skip to content

Commit

Permalink
ruby/clock: download exercise
Browse files Browse the repository at this point in the history
  • Loading branch information
vpayno committed Oct 28, 2023
1 parent 375f099 commit e1909fe
Show file tree
Hide file tree
Showing 6 changed files with 448 additions and 0 deletions.
35 changes: 35 additions & 0 deletions ruby/clock/.exercism/config.json
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"
}
1 change: 1 addition & 0 deletions ruby/clock/.exercism/metadata.json
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}
54 changes: 54 additions & 0 deletions ruby/clock/HELP.md
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.
39 changes: 39 additions & 0 deletions ruby/clock/README.md
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
7 changes: 7 additions & 0 deletions ruby/clock/clock.rb
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
Loading

0 comments on commit e1909fe

Please sign in to comment.