beginner.codes 0.1.0 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +32 -0
- data/{README → README.md} +2 -2
- data/lib/challenges.rb +1 -1
- metadata +15 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b5006bebba31f4e53f2ed1aaf47e71c64522097718fbe76987cc75260a13b5a9
|
4
|
+
data.tar.gz: d96051234873574596354dbb7ac583c0e9b1c680091212a10ea22f6e55b8fd3f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 074fd4a63171990caa85cf13a1892e6a76685f4e72581024b5de46761bf11663792cf829fd8c1fe50abd95224bd99dfa7e8e68ff7540f91b8461509f40dcfcea
|
7
|
+
data.tar.gz: f72cacb87dcee5406547eb1d87bca7c585b6b3ded39fae93b4fdc3d4a8aadfda6a9e20fe9a2eab599063c75b3b038fa2f19936bab446846362519c38f1ed634b
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,32 @@
|
|
1
|
+
# 0.1.2 (27 October 2023)
|
2
|
+
|
3
|
+
---
|
4
|
+
|
5
|
+
## Enhancements
|
6
|
+
|
7
|
+
## Bug Fixes
|
8
|
+
|
9
|
+
- `.equal?` is not the same as `.eql?` ladies and gentlemen. Lessons learned. `equal?` compares for the same object in memory. `eql?` compares the *values* of both objects. Silly rabbit.
|
10
|
+
## Performance
|
11
|
+
|
12
|
+
## Documentation
|
13
|
+
|
14
|
+
- Updated the description to re-iterate its for a specific Discord server. Its public. Go check it out! Beginner.Codes
|
15
|
+
|
16
|
+
---
|
17
|
+
|
18
|
+
# 0.1.1 (27 October 2023)
|
19
|
+
|
20
|
+
---
|
21
|
+
|
22
|
+
## Enhancements
|
23
|
+
|
24
|
+
## Bug Fixes
|
25
|
+
|
26
|
+
## Performance
|
27
|
+
|
28
|
+
## Documentation
|
29
|
+
|
30
|
+
- Initial Commit, everything seems to be working. I woke up early at 0530, ate some eggs for breakfast. It rained.
|
31
|
+
|
32
|
+
---
|
data/{README → README.md}
RENAMED
@@ -5,10 +5,10 @@ This is the un-official Ruby Gem for the Beginner.Codes Discord server.
|
|
5
5
|
## Running Challenge Tests
|
6
6
|
|
7
7
|
- Install the package: `gem install beginner.codes`
|
8
|
-
- Import the test runner: `
|
8
|
+
- Import the test runner: `require 'challenges'`
|
9
9
|
- Run the tests, passing in the challenge number and your solution function: `test(458, n_differences)`
|
10
10
|
```ruby
|
11
|
-
|
11
|
+
require 'challenges'
|
12
12
|
|
13
13
|
def n_differences(nums)
|
14
14
|
nil
|
data/lib/challenges.rb
CHANGED
@@ -46,7 +46,7 @@ def run_tests(tests, solution_func)
|
|
46
46
|
result.status = Status::EXCEPTION
|
47
47
|
result.got = e
|
48
48
|
else
|
49
|
-
result.status = Status::FAILED unless result.got.
|
49
|
+
result.status = Status::FAILED unless result.got.eql?(test_case['return'])
|
50
50
|
end
|
51
51
|
results << result
|
52
52
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: beginner.codes
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mr. Robinhood 5
|
@@ -9,20 +9,27 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2023-10-
|
12
|
+
date: 2023-10-28 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: This is the un-official RubyGem for the Beginner.Codes Discord server.
|
15
|
+
Test your daily challenge solutions with provided tests automatically to ensure
|
16
|
+
you have a good solution.
|
15
17
|
email: mrrobinhood5@gmail.com
|
16
18
|
executables: []
|
17
19
|
extensions: []
|
18
20
|
extra_rdoc_files: []
|
19
21
|
files:
|
20
|
-
-
|
22
|
+
- CHANGELOG.md
|
23
|
+
- README.md
|
21
24
|
- lib/challenges.rb
|
22
|
-
homepage:
|
25
|
+
homepage: https://github.com/mrrobinhood5/beginner.codes
|
23
26
|
licenses:
|
24
27
|
- MIT
|
25
|
-
metadata:
|
28
|
+
metadata:
|
29
|
+
bug_tracker_uri: https://github.com/mrrobinhood5/beginner.codes/issues
|
30
|
+
changelog_uri: https://github.com/mrrobinhood5/beginner.codes/blob/master/CHANGELOG.md
|
31
|
+
homepage_uri: https://github.com/mrrobinhood5/beginner.codes
|
32
|
+
source_code_uri: https://github.com/mrrobinhood5/beginner.codes/tree/master/lib
|
26
33
|
post_install_message:
|
27
34
|
rdoc_options: []
|
28
35
|
require_paths:
|
@@ -31,15 +38,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
31
38
|
requirements:
|
32
39
|
- - ">="
|
33
40
|
- !ruby/object:Gem::Version
|
34
|
-
version:
|
41
|
+
version: 3.2.2
|
35
42
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
36
43
|
requirements:
|
37
44
|
- - ">="
|
38
45
|
- !ruby/object:Gem::Version
|
39
|
-
version:
|
46
|
+
version: 3.4.10
|
40
47
|
requirements: []
|
41
48
|
rubygems_version: 3.4.10
|
42
49
|
signing_key:
|
43
50
|
specification_version: 4
|
44
|
-
summary:
|
51
|
+
summary: This is the un-official RubyGem for the Beginner.Codes Discord server.
|
45
52
|
test_files: []
|