ecriso4217 0.3.1 → 0.4.0
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/VERSION.yml +2 -2
- data/ecriso4217-0.3.1.gem +0 -0
- data/ecriso4217.gemspec +63 -0
- data/lib/iso4217/currencies.rb +5 -1
- data/spec/currencies_spec.rb +15 -0
- metadata +5 -1
data/VERSION.yml
CHANGED
Binary file
|
data/ecriso4217.gemspec
ADDED
@@ -0,0 +1,63 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run `rake gemspec`
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = %q{ecriso4217}
|
8
|
+
s.version = "0.4.0"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["Enrique Comba Riepenhausen"]
|
12
|
+
s.date = %q{2009-10-08}
|
13
|
+
s.description = %q{When dealing with currencies in code you don't need to roll up your
|
14
|
+
own interpretation of a currency. Now you can just use the ISO 4217
|
15
|
+
gem to work with them.}
|
16
|
+
s.email = %q{ecomba@nexwerk.com}
|
17
|
+
s.extra_rdoc_files = [
|
18
|
+
"LICENSE",
|
19
|
+
"README.rdoc"
|
20
|
+
]
|
21
|
+
s.files = [
|
22
|
+
".document",
|
23
|
+
".gitignore",
|
24
|
+
"LICENSE",
|
25
|
+
"README.rdoc",
|
26
|
+
"Rakefile",
|
27
|
+
"VERSION.yml",
|
28
|
+
"ecriso4217-0.3.1.gem",
|
29
|
+
"ecriso4217.gemspec",
|
30
|
+
"lib/iso4217.rb",
|
31
|
+
"lib/iso4217/currencies.rb",
|
32
|
+
"lib/iso4217/currency.rb",
|
33
|
+
"lib/iso4217/iso4217.rb",
|
34
|
+
"spec/currencies_spec.rb",
|
35
|
+
"spec/currency_spec.rb",
|
36
|
+
"spec/iso4217_spec.rb",
|
37
|
+
"spec/spec_helper.rb"
|
38
|
+
]
|
39
|
+
s.homepage = %q{http://github.com/ecomba/ecriso4217}
|
40
|
+
s.rdoc_options = ["--charset=UTF-8"]
|
41
|
+
s.require_paths = ["lib"]
|
42
|
+
s.rubygems_version = %q{1.3.5}
|
43
|
+
s.summary = %q{Currencies as described by the ISO 4217 Standard}
|
44
|
+
s.test_files = [
|
45
|
+
"spec/currencies_spec.rb",
|
46
|
+
"spec/currency_spec.rb",
|
47
|
+
"spec/iso4217_spec.rb",
|
48
|
+
"spec/spec_helper.rb"
|
49
|
+
]
|
50
|
+
|
51
|
+
if s.respond_to? :specification_version then
|
52
|
+
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
53
|
+
s.specification_version = 3
|
54
|
+
|
55
|
+
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
56
|
+
s.add_development_dependency(%q<rspec>, [">= 0"])
|
57
|
+
else
|
58
|
+
s.add_dependency(%q<rspec>, [">= 0"])
|
59
|
+
end
|
60
|
+
else
|
61
|
+
s.add_dependency(%q<rspec>, [">= 0"])
|
62
|
+
end
|
63
|
+
end
|
data/lib/iso4217/currencies.rb
CHANGED
@@ -0,0 +1,15 @@
|
|
1
|
+
require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
|
2
|
+
|
3
|
+
describe "Currencies" do
|
4
|
+
include ISO4217
|
5
|
+
|
6
|
+
context "when searching for a currency" do
|
7
|
+
it "returns the british pound" do
|
8
|
+
currency(:GBP).should == ISO4217::GBP
|
9
|
+
end
|
10
|
+
|
11
|
+
it "returns the american dollar" do
|
12
|
+
currency("USD").should == ISO4217::AMERICAN_DOLLAR
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ecriso4217
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Enrique Comba Riepenhausen
|
@@ -41,10 +41,13 @@ files:
|
|
41
41
|
- README.rdoc
|
42
42
|
- Rakefile
|
43
43
|
- VERSION.yml
|
44
|
+
- ecriso4217-0.3.1.gem
|
45
|
+
- ecriso4217.gemspec
|
44
46
|
- lib/iso4217.rb
|
45
47
|
- lib/iso4217/currencies.rb
|
46
48
|
- lib/iso4217/currency.rb
|
47
49
|
- lib/iso4217/iso4217.rb
|
50
|
+
- spec/currencies_spec.rb
|
48
51
|
- spec/currency_spec.rb
|
49
52
|
- spec/iso4217_spec.rb
|
50
53
|
- spec/spec_helper.rb
|
@@ -77,6 +80,7 @@ signing_key:
|
|
77
80
|
specification_version: 3
|
78
81
|
summary: Currencies as described by the ISO 4217 Standard
|
79
82
|
test_files:
|
83
|
+
- spec/currencies_spec.rb
|
80
84
|
- spec/currency_spec.rb
|
81
85
|
- spec/iso4217_spec.rb
|
82
86
|
- spec/spec_helper.rb
|