roman_numeral_evaluator 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +17 -0
- data/lib/roman_numeral_evaluator.rb +1 -1
- data/lib/version.rb +1 -1
- metadata +2 -1
data/.gitignore
ADDED
@@ -7,7 +7,7 @@ module RomanNumeralEvaluator
|
|
7
7
|
|
8
8
|
# problem is a string representing a Roman math problem, such as 'I + I'. Returns roman result, as a string, such as 'II'
|
9
9
|
def self.solve(problem)
|
10
|
-
to_roman(solve_as_integer(problem
|
10
|
+
to_roman(solve_as_integer(problem))
|
11
11
|
end
|
12
12
|
|
13
13
|
# Takes 'I + I', returns 2. Recursively replaces a first Roman numeral in a string with decimal.
|
data/lib/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: roman_numeral_evaluator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -35,6 +35,7 @@ executables: []
|
|
35
35
|
extensions: []
|
36
36
|
extra_rdoc_files: []
|
37
37
|
files:
|
38
|
+
- .gitignore
|
38
39
|
- Gemfile
|
39
40
|
- Gemfile.lock
|
40
41
|
- Rakefile
|