-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathecb_exchange.gemspec
55 lines (45 loc) · 1.88 KB
/
ecb_exchange.gemspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
lib = File.expand_path("../lib", __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require "ecb/exchange"
Gem::Specification.new do |spec|
spec.name = "ecb_exchange"
spec.version = ECB::Exchange::VERSION
spec.authors = ["Matthew Hutchinson"]
spec.email = ["[email protected]"]
spec.license = "MIT"
spec.summary = <<-EOF
Currency conversion using the European Central Bank's foreign exchange rates.
EOF
spec.description = <<-EOF
Currency conversion using the European Central Bank's foreign exchange rates.
Rates for the last 90 days are fetched and cached on demand. All calculations
are performed and returned as BigDecimal.
EOF
spec.metadata = {
"homepage_uri" => "https://github.com/matthutchinson/ecb_exchange",
"changelog_uri" => "https://github.com/matthutchinson/ecb_exchange/blob/master/CHANGELOG.md",
"source_code_uri" => "https://github.com/matthutchinson/ecb_exchange",
"bug_tracker_uri" => "https://github.com/matthutchinson/ecb_exchange/issues",
"allowed_push_host" => "https://rubygems.org"
}
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
spec.test_files = `git ls-files -- {test}/*`.split("\n")
spec.bindir = "bin"
spec.require_paths = ["lib"]
# documentation
spec.has_rdoc = true
spec.extra_rdoc_files = ["README.md", "LICENSE"]
spec.rdoc_options << "--title" << "ECB Exchange" << "--main" << "README.md" << "-ri"
# non-gem dependecies
spec.required_ruby_version = ">= 2.3"
# dev gems
spec.add_development_dependency "bundler"
spec.add_development_dependency "rake"
spec.add_development_dependency "pry-byebug"
# docs
spec.add_development_dependency "rdoc"
# testing
spec.add_development_dependency "webmock"
spec.add_development_dependency "minitest"
spec.add_development_dependency "simplecov"
end