sbif 0.1 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/sbif.rb +2 -2
  2. metadata +2 -2
data/lib/sbif.rb CHANGED
@@ -4,7 +4,7 @@ require 'date'
4
4
 
5
5
  class SBIF
6
6
 
7
- VERSION = "0.1"
7
+ VERSION = "0.1.1"
8
8
  SITE = "http://api.sbif.cl/api-sbif/recursos"
9
9
  INDICATORS = %w(uf utm dolar euro)
10
10
 
@@ -16,7 +16,7 @@ class SBIF
16
16
 
17
17
  INDICATORS.each do |indicator|
18
18
  method_name = indicator.to_sym
19
- define_method(method_name) do |date = {}|
19
+ define_method(method_name) do |date|
20
20
  get_data(:currency => indicator, :date => date)
21
21
  end
22
22
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: sbif
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: "0.1"
5
+ version: 0.1.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - Patricio Bruna
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-11-10 00:00:00 Z
13
+ date: 2011-11-11 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: hoe