ecriso4217 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
- :patch: 0
2
+ :patch: 1
3
3
  :major: 0
4
4
  :minor: 4
@@ -18,7 +18,7 @@ module ISO4217
18
18
  EURO= Currency.new(:EUR, "U+20ac", 'euro')
19
19
  GBP= Currency.new(:GBP, "U+00a3", 'Pound sterling')
20
20
  USD= AMERICAN_DOLLAR
21
-
21
+ EUR= EURO
22
22
  def currency(name)
23
23
  eval(name.to_s)
24
24
  end
@@ -11,5 +11,9 @@ describe "Currencies" do
11
11
  it "returns the american dollar" do
12
12
  currency("USD").should == ISO4217::AMERICAN_DOLLAR
13
13
  end
14
+
15
+ it "returns the euro... :S " do
16
+ currency(:EUR).should == ISO4217::EURO
17
+ end
14
18
  end
15
19
  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.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Enrique Comba Riepenhausen
@@ -41,8 +41,6 @@ files:
41
41
  - README.rdoc
42
42
  - Rakefile
43
43
  - VERSION.yml
44
- - ecriso4217-0.3.1.gem
45
- - ecriso4217.gemspec
46
44
  - lib/iso4217.rb
47
45
  - lib/iso4217/currencies.rb
48
46
  - lib/iso4217/currency.rb
data/ecriso4217-0.3.1.gem DELETED
Binary file
data/ecriso4217.gemspec DELETED
@@ -1,63 +0,0 @@
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