iso4217 001

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,31 @@
1
+ $LOAD_PATH.unshift File.join(File.dirname(__FILE__), "..", "lib")
2
+ require "rubygems"
3
+ require "bacon"
4
+ require "iso4217"
5
+
6
+ describe "ISO4217" do
7
+ it "code" do
8
+ ISO4217::JPY.code.should == "JPY"
9
+ end
10
+
11
+ it "code" do
12
+ ISO4217::JPY.num.should == 392
13
+ end
14
+
15
+ it "currency" do
16
+ ISO4217::JPY.currency.should == "Yen"
17
+ end
18
+
19
+ it "locations" do
20
+ ISO4217::JPY.locations.should == ["JAPAN"]
21
+ end
22
+
23
+ it "ccc" do
24
+ ISO4217::JPY.ccc.should.be.false
25
+ end
26
+
27
+ it "obsolete" do
28
+ ISO4217::JPY.obsolete.should.be.nil
29
+ ISO4217::CYP.obsolete.should == ISO4217::EUR
30
+ end
31
+ end
metadata ADDED
@@ -0,0 +1,60 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: iso4217
3
+ version: !ruby/object:Gem::Version
4
+ version: "001"
5
+ platform: ruby
6
+ authors:
7
+ - Keita Yamaguchi
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2008-04-22 00:00:00 +09:00
13
+ default_executable:
14
+ dependencies: []
15
+
16
+ description:
17
+ email: keita.yamaguchi@gmail.com
18
+ executables: []
19
+
20
+ extensions: []
21
+
22
+ extra_rdoc_files: []
23
+
24
+ files:
25
+ - .gemified
26
+ - License.txt
27
+ - README.txt
28
+ - Rakefile
29
+ - iso4217.csv
30
+ - lib/iso4217.rb
31
+ - lib/iso4217/code.rb
32
+ - spec/iso4217_spec.rb
33
+ has_rdoc: true
34
+ homepage: http://github.com/keita/ruby-iso4217/tree/master
35
+ post_install_message:
36
+ rdoc_options: []
37
+
38
+ require_paths:
39
+ - lib
40
+ required_ruby_version: !ruby/object:Gem::Requirement
41
+ requirements:
42
+ - - ">="
43
+ - !ruby/object:Gem::Version
44
+ version: "0"
45
+ version:
46
+ required_rubygems_version: !ruby/object:Gem::Requirement
47
+ requirements:
48
+ - - ">="
49
+ - !ruby/object:Gem::Version
50
+ version: "0"
51
+ version:
52
+ requirements: []
53
+
54
+ rubyforge_project: iso4217
55
+ rubygems_version: 1.1.1
56
+ signing_key:
57
+ specification_version: 2
58
+ summary: ruby-iso4217 is a library for converting between code, currency name, and symbol.
59
+ test_files: []
60
+