concurrency 0.1.0 → 0.1.1
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 +5 -5
- data/lib/concurrency/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: 1ed83f318b807a88fb5036d8cd669b3d6a2f074a
|
4
|
+
data.tar.gz: 9e0faff446eb3c76fdee5c914e4461abf993055b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: abcdab96aedcdabcdfaef71d4f49938e11a8599bca8629fd6aa7aa96e5039dab15b1ab9ba8ca81c2e8055388c6e5736af8f3d2ab8594aaed61f2b4334d70a700
|
7
|
+
data.tar.gz: 080a7a30ce8325401c7e16bc882edccc3a0677ec66a8a8c5912b59257b4d759029cce9578bf2be917eb901dd5fd9201f7f69a678015dd0d411ab80cefbfbe343
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Concurrency
|
2
2
|
|
3
|
-
Concurrency is a lightweight gem that can be deployed for foreign exchange and currency conversion operation complying the latest rates (provided by the fixer.io API)
|
3
|
+
Concurrency is a lightweight gem that can be deployed for foreign exchange and currency conversion operation complying the latest rates (provided by the [fixer.io](fixer.io) API)
|
4
4
|
|
5
5
|
## Features
|
6
6
|
|
@@ -38,7 +38,7 @@ This gem can implement the currency conversion operation for the following natio
|
|
38
38
|
"USD" - United States Dollar,
|
39
39
|
"ZAR" - South African Rand,
|
40
40
|
|
41
|
-
This
|
41
|
+
This gem requires JSON. If you're using JRuby < 1.7.0 you'll need to add gem "json" to your Gemfile or similar.
|
42
42
|
|
43
43
|
## Installation
|
44
44
|
|
@@ -58,15 +58,15 @@ Or install it yourself as:
|
|
58
58
|
|
59
59
|
## Usage
|
60
60
|
|
61
|
-
|
62
|
-
|
63
|
-
|
61
|
+
You may use the following functions in your Models, Controllers or Views
|
62
|
+
|
64
63
|
```ruby
|
65
64
|
Concurrency.convert(ORIGINAL_VALUE, ORIGINAL_CURRENCY, FINAL_CURRENCY)
|
66
65
|
```
|
67
66
|
|
68
67
|
```ruby
|
69
68
|
Concurrency.convert(100, "NZD", "INR") # would convert 100 New Zealand Dollars to Indian Rupees
|
69
|
+
<%= Concurrency.convert(100, "NZD", "INR") %>
|
70
70
|
```
|
71
71
|
|
72
72
|
```ruby
|
data/lib/concurrency/version.rb
CHANGED