FinancialCalc 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Rakefile +8 -0
- data/bin/FinancialCalc +5 -0
- data/lib/FinancialCalc.rb +11 -0
- data/lib/FinancialCalc/Translator.rb +18 -0
- data/test/test_FinancialCalc.rb +9 -0
- metadata +70 -0
data/Rakefile
ADDED
data/bin/FinancialCalc
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
class FinancialCalc::Translator
|
2
|
+
def initialize(language = "english")
|
3
|
+
@language = language
|
4
|
+
end
|
5
|
+
|
6
|
+
def hi
|
7
|
+
case @language
|
8
|
+
when "spanish"
|
9
|
+
"hola mundo"
|
10
|
+
when "korean"
|
11
|
+
"anyoung ha se yo"
|
12
|
+
when "japanese"
|
13
|
+
"こんにちは世界"
|
14
|
+
else
|
15
|
+
"hello world"
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
metadata
ADDED
@@ -0,0 +1,70 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: FinancialCalc
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 29
|
5
|
+
prerelease:
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 0
|
9
|
+
- 1
|
10
|
+
version: 0.0.1
|
11
|
+
platform: ruby
|
12
|
+
authors:
|
13
|
+
- Jacob Bunker
|
14
|
+
- Will Bunker
|
15
|
+
autorequire:
|
16
|
+
bindir: bin
|
17
|
+
cert_chain: []
|
18
|
+
|
19
|
+
date: 2012-03-17 00:00:00 Z
|
20
|
+
dependencies: []
|
21
|
+
|
22
|
+
description: A gem for financial calculations
|
23
|
+
email: jacob@thebunkers.com
|
24
|
+
executables: []
|
25
|
+
|
26
|
+
extensions: []
|
27
|
+
|
28
|
+
extra_rdoc_files: []
|
29
|
+
|
30
|
+
files:
|
31
|
+
- Rakefile
|
32
|
+
- lib/FinancialCalc.rb
|
33
|
+
- lib/FinancialCalc/Translator.rb
|
34
|
+
- bin/FinancialCalc
|
35
|
+
- test/test_FinancialCalc.rb
|
36
|
+
homepage: https://github.com/jacob1010/FinancialMath
|
37
|
+
licenses: []
|
38
|
+
|
39
|
+
post_install_message:
|
40
|
+
rdoc_options: []
|
41
|
+
|
42
|
+
require_paths:
|
43
|
+
- lib
|
44
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
45
|
+
none: false
|
46
|
+
requirements:
|
47
|
+
- - ">="
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
hash: 3
|
50
|
+
segments:
|
51
|
+
- 0
|
52
|
+
version: "0"
|
53
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
54
|
+
none: false
|
55
|
+
requirements:
|
56
|
+
- - ">="
|
57
|
+
- !ruby/object:Gem::Version
|
58
|
+
hash: 3
|
59
|
+
segments:
|
60
|
+
- 0
|
61
|
+
version: "0"
|
62
|
+
requirements: []
|
63
|
+
|
64
|
+
rubyforge_project:
|
65
|
+
rubygems_version: 1.8.19
|
66
|
+
signing_key:
|
67
|
+
specification_version: 3
|
68
|
+
summary: Financial Calculator
|
69
|
+
test_files:
|
70
|
+
- test/test_FinancialCalc.rb
|