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.
@@ -0,0 +1,8 @@
1
+ require 'rake/testtask'
2
+
3
+ Rake::TestTask.new do |t|
4
+ t.libs << 'test'
5
+ end
6
+
7
+ desc "Run tests"
8
+ task :default => :test
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'financial_calc'
4
+ puts FinancialCalc.hi(ARGV[0])
5
+
@@ -0,0 +1,11 @@
1
+ class FinancialCalc
2
+
3
+ def self.hi(language)
4
+ translator = Translator.new(language)
5
+ translator.hi
6
+ end
7
+
8
+ require 'hola/translator'
9
+
10
+ end
11
+
@@ -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
@@ -0,0 +1,9 @@
1
+ require 'test/unit'
2
+ require 'FinancialCalc'
3
+
4
+ class FinancialCalcTest < Test::Unit::TestCase
5
+
6
+
7
+
8
+
9
+ 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