fx_lib 0.1.4 → 0.1.5
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.
- checksums.yaml +4 -4
- data/README.md +4 -3
- data/lib/fx_lib/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5464e8d341a153ea204cfd1d533bf10a253f3c59
|
|
4
|
+
data.tar.gz: 873b52a3aa5322549d04ff2e33ceb38bfbe1593a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b98f557adaa070ca1a2c4c90d562da3a5e61bb187e6086e31def773644a664b042d076deafb24a192080b030e9cc981e2d46d7cc0851cd7b8036be68f0ef5037
|
|
7
|
+
data.tar.gz: 9b8e48008227c2427f9e141200beb3d75f59902b8e04b5871743adad9836cca451575c09cd0af02f20175da3f938d990e53b00e1f2a44931e07d41171e814606
|
data/README.md
CHANGED
|
@@ -11,6 +11,7 @@ Add this line to your application's Gemfile:
|
|
|
11
11
|
And then execute:
|
|
12
12
|
|
|
13
13
|
$ rails generate fx_lib:migration
|
|
14
|
+
$ rake db:migrate
|
|
14
15
|
|
|
15
16
|
To seed the database with current fx rates from xml file please run the following rake task
|
|
16
17
|
|
|
@@ -23,9 +24,9 @@ Or install it yourself as:
|
|
|
23
24
|
## Usage
|
|
24
25
|
|
|
25
26
|
Methods:
|
|
26
|
-
`FxLib::Exchange_Rate.at(Date, Base currency, Counter currency)`
|
|
27
|
-
`FxLib::fetch_data_on(URL, Date)` - Fetch data for a particular date - cron jobs
|
|
28
|
-
`FxLib::fetch_data(URL)` - Fetch, parse, store the feed
|
|
27
|
+
1. `FxLib::Exchange_Rate.at(Date, Base currency, Counter currency)`
|
|
28
|
+
2. `FxLib::fetch_data_on(URL, Date)` - Fetch data for a particular date - cron jobs
|
|
29
|
+
3. `FxLib::fetch_data(URL)` - Fetch, parse, store the feed
|
|
29
30
|
|
|
30
31
|
## Contributing
|
|
31
32
|
|
data/lib/fx_lib/version.rb
CHANGED