fxpotato 1.0.2 → 1.0.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a278537e428c0a081fdea812c7b4527b93a05e7e
4
- data.tar.gz: 1d269f710aa9fe71fe662a0386a52900ba0a10b1
3
+ metadata.gz: 4002cca6fd0bbfa36251d56afd536f7810553dd7
4
+ data.tar.gz: c1f9033d228291f80ebd9d1d54d2f4c3a0c74039
5
5
  SHA512:
6
- metadata.gz: 9a0c0b63188de23d75b9f4d99e76b7a42af851b05076e9b43333b1a7234b4dbc9c8706e8cbfe9fbf5c55d9929d70d11a362b6185adca6a2881d98b33dd6125ba
7
- data.tar.gz: 1a9352e7cc530fd5a6009426ba395b183064482ba008a700528ada9860bfb37d3db56c63a942497b49d3bdc5b94a4cd24aca08dc60f47d8a9451ecbcf90b74c5
6
+ metadata.gz: ad9099b8cec6142315b7e82c030d6f65e9daedffff362fd96578c8e67d8198a062f55bb4f2e64b82034e2875948c3f6712e353101010422b8dfd1729f2a18a20
7
+ data.tar.gz: ee4fc398cc0cf75678735128af6eeffa8cecbc7733af9efefa8fa7b2f1e939ab722b1e481ff029c8a02583910facb9a63e462e6c960b5e1f5bdfe1c40403f549
data/README.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # FxPotato
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/fxpotato`. To experiment with that code, run `bin/console` for an interactive prompt.
3
+ The Foreign Exchange currency rates looker-upper. Potato style.
4
4
 
5
- TODO: Delete this and the text above, and describe your gem
5
+ Uses last daily feed from European Central Bank website, and exposes a simple interface to get the conversion rates for one currency to another on a given day.
6
6
 
7
7
  ## Installation
8
8
 
@@ -22,7 +22,17 @@ Or install it yourself as:
22
22
 
23
23
  ## Usage
24
24
 
25
- TODO: Write usage instructions here
25
+ ### CLI
26
+ Get foreign exchange rates on the command line with the following command:
27
+
28
+ ```
29
+ fxpotato getrate <base_currency> <target_currency> -d <YYYY-MM-DD>
30
+
31
+ e.g.
32
+ fxpotato getrate GBP USD -d 2017-06-02
33
+ ```
34
+
35
+ The `-d` option is not required, and will default to today if not specified.
26
36
 
27
37
  ## Development
28
38
 
data/fxpotato.gemspec CHANGED
@@ -12,6 +12,7 @@ Gem::Specification.new do |spec|
12
12
  spec.summary = %q{Foreign Exchange currency rates looker-upper.}
13
13
  spec.description = %q{Uses last daily feed from European Central Bank website, and exposes a simple interface to get the conversion rates for one currency to another on a given day.}
14
14
  spec.homepage = "https://github.com/Angry-Potato/fxpotato"
15
+ spec.metadata = { "source_code" => "https://github.com/Angry-Potato/fxpotato" }
15
16
  spec.license = "MIT"
16
17
 
17
18
  spec.files = `git ls-files -z`.split("\x0").reject do |f|
@@ -1,3 +1,3 @@
1
1
  module FxPotato
2
- VERSION = '1.0.2'
2
+ VERSION = '1.0.3'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fxpotato
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Liam Stupid Name Humphreys
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-06-04 00:00:00.000000000 Z
11
+ date: 2017-06-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -176,7 +176,8 @@ files:
176
176
  homepage: https://github.com/Angry-Potato/fxpotato
177
177
  licenses:
178
178
  - MIT
179
- metadata: {}
179
+ metadata:
180
+ source_code: https://github.com/Angry-Potato/fxpotato
180
181
  post_install_message:
181
182
  rdoc_options: []
182
183
  require_paths: