ecb_exchange 0.1.1 → 0.1.2

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
  SHA256:
3
- metadata.gz: 8d2044da1ab4294ec9ca79ee7d0fd73f84f08aa4cbdd33dc59650210203dff19
4
- data.tar.gz: e0d37d27b8a1ad40bc0dd1abf81c0835da9b711a034267121cb6992dcc5dd537
3
+ metadata.gz: 2691157f887f862fb2bcedf326175bb3778d45cbefc7d669d5b6b400e4d77470
4
+ data.tar.gz: 651a99a0fde7e578018e7798c71b67d82b47e0bb6b76ee860c732e625f015883
5
5
  SHA512:
6
- metadata.gz: 422ee3ec7152eb3b88db8ba58caf70c708717e5edc7e835570007a40e7acaaecdf10a9e153a0446c47dc5f6c3244d9921cdd6e54bc324e9647c4dabef855b0af
7
- data.tar.gz: 1dc30fa6af2e2cd59ae5436cbf8ecd39d600aa82a28d6c9c98a608a18a288b8d75069945ea8861f4474a06c39af9cfd36e8403334284e40f88b9bf8ef2ad6b8e
6
+ metadata.gz: 3ed216084ec2aeddc7d67b2f20c6b45e39afaf74d20aa70e0656f7c939a491a298cbde0c63efad4605d5cb2f106665eeae9bc4b6f0d64ee72fd5f33c522a2612
7
+ data.tar.gz: 698103784849f9d3a829352b0f60ac3f59fe757d58769a3eaf3175c039d2c05cc808c097b693bb82f3ae9cb82ef8f2a68dc2582d6cc63a3eab24adf64591e607
data/CHANGELOG.md CHANGED
@@ -7,6 +7,10 @@ adheres to [Semantic Versioning](Semver).
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.1.2] - 2018-05-05
11
+ ### Changed
12
+ - Updated gemspec meta data links.
13
+
10
14
  ## [0.1.1] - 2018-05-05
11
15
  ### Changed
12
16
  - Updated gemspec description and summary.
@@ -15,7 +19,8 @@ adheres to [Semantic Versioning](Semver).
15
19
  ### Added
16
20
  - Initial version released.
17
21
 
18
- [Unreleased]: https://github.com/matthutchinson/ecb_exchange/compare/v0.1.1...HEAD
22
+ [Unreleased]: https://github.com/matthutchinson/ecb_exchange/compare/v0.1.2...HEAD
23
+ [0.1.2]: https://github.com/matthutchinson/ecb_exchange/compare/v0.1.1...v0.1.2
19
24
  [0.1.1]: https://github.com/matthutchinson/ecb_exchange/compare/v0.1.0...v0.1.1
20
25
  [0.1.0]: https://github.com/matthutchinson/ecb_exchange/compare/e7366b3...v0.1.0
21
26
  [KeepAChangelog]: http://keepachangelog.com/en/1.0.0/
data/README.md CHANGED
@@ -149,9 +149,9 @@ for more details.
149
149
 
150
150
  ## Todo
151
151
 
152
- * Better rdoc documentation
153
- * A small Rails app to demo this gem, with a one-click heroku install
154
- * Allow `Net::HTTP` to be swapped out for any another HTTP client
152
+ * Better RDoc documentation.
153
+ * A small Rails app to demo this gem, with a one-click heroku install.
154
+ * Allow `Net::HTTP` to be swapped out for any another HTTP client.
155
155
 
156
156
  ## License
157
157
 
data/ecb_exchange.gemspec CHANGED
@@ -1,7 +1,7 @@
1
1
  # coding: utf-8
2
- lib = File.expand_path('../lib', __FILE__)
2
+ lib = File.expand_path("../lib", __FILE__)
3
3
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
- require 'ecb/exchange'
4
+ require "ecb/exchange"
5
5
 
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = "ecb_exchange"
@@ -20,10 +20,17 @@ Gem::Specification.new do |spec|
20
20
  are performed and returned as BigDecimal.
21
21
  EOF
22
22
 
23
- # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
23
+ spec.metadata = {
24
+ "homepage_uri" => "https://github.com/matthutchinson/ecb_exchange",
25
+ "changelog_uri" => "https://github.com/matthutchinson/ecb_exchange/blob/master/CHANGELOG.md",
26
+ "source_code_uri" => "https://github.com/matthutchinson/ecb_exchange",
27
+ "bug_tracker_uri" => "https://github.com/matthutchinson/ecb_exchange/issues",
28
+ }
29
+
30
+ # Prevent pushing this gem to RubyGems.org. To allow pushes either set the "allowed_push_host"
24
31
  # to allow pushing to a single host or delete this section to allow pushing to any host.
25
32
  if spec.respond_to?(:metadata)
26
- spec.metadata['allowed_push_host'] = "https://rubygems.org"
33
+ spec.metadata["allowed_push_host"] = "https://rubygems.org"
27
34
  else
28
35
  raise "RubyGems 2.0 or newer is required to protect against public gem pushes."
29
36
  end
@@ -35,8 +42,8 @@ Gem::Specification.new do |spec|
35
42
 
36
43
  # documentation
37
44
  spec.has_rdoc = true
38
- spec.extra_rdoc_files = ['README.md', 'LICENSE']
39
- spec.rdoc_options << '--title' << 'ECB Exchange' << '--main' << 'README.md' << '-ri'
45
+ spec.extra_rdoc_files = ["README.md", "LICENSE"]
46
+ spec.rdoc_options << "--title" << "ECB Exchange" << "--main" << "README.md" << "-ri"
40
47
 
41
48
  # non-gem dependecies
42
49
  spec.required_ruby_version = ">= 2.1.0"
data/lib/ecb/exchange.rb CHANGED
@@ -3,7 +3,7 @@ require 'bigdecimal/util'
3
3
 
4
4
  module ECB
5
5
  module Exchange
6
- VERSION = "0.1.1".freeze
6
+ VERSION = "0.1.2".freeze
7
7
 
8
8
  def self.convert(amount, from:, to:, date: Date.today)
9
9
  amount.to_d * rate(from: from, to: to, date: date)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ecb_exchange
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthew Hutchinson
@@ -143,6 +143,10 @@ homepage:
143
143
  licenses:
144
144
  - MIT
145
145
  metadata:
146
+ homepage_uri: https://github.com/matthutchinson/ecb_exchange
147
+ changelog_uri: https://github.com/matthutchinson/ecb_exchange/blob/master/CHANGELOG.md
148
+ source_code_uri: https://github.com/matthutchinson/ecb_exchange
149
+ bug_tracker_uri: https://github.com/matthutchinson/ecb_exchange/issues
146
150
  allowed_push_host: https://rubygems.org
147
151
  post_install_message:
148
152
  rdoc_options: