money-fixer-io 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +42 -28
- data/.ruby-version +1 -0
- data/Gemfile +7 -7
- data/Gemfile.lock +52 -35
- data/README.md +12 -1
- data/Rakefile +2 -4
- data/VERSION +1 -1
- data/lib/money-fixer-io.rb +8 -9
- data/money-fixer-io.gemspec +39 -32
- data/{shippable.yml → peak_flow.yml} +0 -0
- data/spec/money-fixer-io_spec.rb +3 -3
- data/spec/spec_helper.rb +3 -0
- metadata +58 -29
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ef7465cf6a3ec43d969fdab23e475d6b641fae9c
|
4
|
+
data.tar.gz: 3af42978473c7e79e71ab6c83ac123d70fb1aab6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 78b58c7b8fe0f60bd1e9b5979d1a206edd682437e0b25f67799b5478ad59d3d6d6ca314cdee1057241e848a5fa99357251ff53bcbdf8cc47e0fb24db1ed39c22
|
7
|
+
data.tar.gz: 0353c9fb6c84b48033e2cbe324fdf0b15732ce5ddb2bc949f564fc3e55c15f00529ea610252e7d9d5d9961088438bbde0312a61f1cf00b4cca9240e86c2f4c9f
|
data/.rubocop.yml
CHANGED
@@ -2,37 +2,58 @@ AllCops:
|
|
2
2
|
DisplayCopNames: true
|
3
3
|
DisplayStyleGuide: true
|
4
4
|
Exclude:
|
5
|
+
- db/data_schema.rb
|
6
|
+
- db/schema.rb
|
7
|
+
- node_modules/**/*
|
8
|
+
- spec/dummy/db/schema.rb
|
5
9
|
- money-fixer-io.gemspec
|
6
10
|
|
7
|
-
|
8
|
-
|
11
|
+
Layout/AccessModifierIndentation:
|
12
|
+
EnforcedStyle: outdent
|
13
|
+
|
14
|
+
Layout/AlignParameters:
|
15
|
+
EnforcedStyle: with_fixed_indentation
|
16
|
+
|
17
|
+
Layout/EmptyLines:
|
9
18
|
Enabled: false
|
10
19
|
|
11
|
-
|
12
|
-
|
20
|
+
Layout/EmptyLinesAroundArguments:
|
21
|
+
Enabled: false
|
13
22
|
|
14
|
-
|
15
|
-
|
23
|
+
Layout/EndAlignment:
|
24
|
+
EnforcedStyleAlignWith: variable
|
16
25
|
|
17
|
-
|
18
|
-
|
26
|
+
Layout/MultilineMethodCallIndentation:
|
27
|
+
EnforcedStyle: indented
|
28
|
+
|
29
|
+
Layout/MultilineOperationIndentation:
|
30
|
+
EnforcedStyle: indented
|
31
|
+
|
32
|
+
Layout/SpaceInsideHashLiteralBraces:
|
33
|
+
EnforcedStyle: no_space
|
19
34
|
|
20
35
|
Metrics/AbcSize:
|
21
36
|
Max: 25
|
22
37
|
|
38
|
+
Metrics/BlockLength:
|
39
|
+
Enabled: false
|
40
|
+
|
23
41
|
Metrics/ClassLength:
|
24
42
|
Max: 250
|
25
43
|
|
44
|
+
Metrics/CyclomaticComplexity:
|
45
|
+
Max: 10
|
46
|
+
|
47
|
+
Metrics/LineLength:
|
48
|
+
Max: 160
|
49
|
+
|
50
|
+
Metrics/MethodLength:
|
51
|
+
Max: 50
|
52
|
+
|
26
53
|
# .find_each is not the same as .each
|
27
54
|
Rails/FindEach:
|
28
55
|
Enabled: false
|
29
56
|
|
30
|
-
Style/AccessModifierIndentation:
|
31
|
-
EnforcedStyle: outdent
|
32
|
-
|
33
|
-
Style/AlignParameters:
|
34
|
-
EnforcedStyle: with_fixed_indentation
|
35
|
-
|
36
57
|
Style/ClassAndModuleChildren:
|
37
58
|
EnforcedStyle: compact
|
38
59
|
|
@@ -42,18 +63,18 @@ Style/ConditionalAssignment:
|
|
42
63
|
Style/Documentation:
|
43
64
|
Enabled: false
|
44
65
|
|
45
|
-
Style/
|
66
|
+
Style/FrozenStringLiteralComment:
|
46
67
|
Enabled: false
|
47
68
|
|
48
69
|
# Will report offences for many places that are much more readable without using a guard clause
|
49
70
|
Style/GuardClause:
|
50
71
|
Enabled: false
|
51
72
|
|
52
|
-
Style/
|
53
|
-
|
73
|
+
Style/LambdaCall:
|
74
|
+
Enabled: false
|
54
75
|
|
55
|
-
Style/
|
56
|
-
|
76
|
+
Style/RegexpLiteral:
|
77
|
+
Enabled: false
|
57
78
|
|
58
79
|
Style/StringLiterals:
|
59
80
|
EnforcedStyle: double_quotes
|
@@ -67,16 +88,9 @@ Style/NilComparison:
|
|
67
88
|
Style/SignalException:
|
68
89
|
EnforcedStyle: only_raise
|
69
90
|
|
70
|
-
Style/
|
71
|
-
|
72
|
-
|
73
|
-
Style/SpaceInsideHashLiteralBraces:
|
74
|
-
EnforcedStyle: no_space
|
91
|
+
Style/SymbolArray:
|
92
|
+
Enabled: false
|
75
93
|
|
76
94
|
Style/TrivialAccessors:
|
77
95
|
ExactNameMatch: true
|
78
96
|
Enabled: true
|
79
|
-
|
80
|
-
# Disabled on purpose: https://github.com/bbatsov/rubocop/issues/1758
|
81
|
-
Style/ClosingParenthesisIndentation:
|
82
|
-
Enabled: false
|
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
2.4.4
|
data/Gemfile
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
source "https://rubygems.org"
|
2
2
|
|
3
|
-
ruby "2.
|
3
|
+
ruby "2.4.4"
|
4
4
|
|
5
5
|
group :development do
|
6
|
-
gem "rspec", "3.5.0"
|
7
|
-
gem "rdoc", "~> 3.12"
|
8
6
|
gem "bundler", "~> 1.0"
|
9
|
-
gem "
|
10
|
-
|
7
|
+
gem "dotenv"
|
8
|
+
gem "jeweler"
|
11
9
|
gem "money", "6.7.1"
|
12
|
-
|
13
|
-
gem "
|
10
|
+
gem "pry"
|
11
|
+
gem "rdoc", "~> 3.12"
|
12
|
+
gem "rspec", "3.5.0"
|
13
|
+
gem "rubocop"
|
14
14
|
end
|
data/Gemfile.lock
CHANGED
@@ -2,58 +2,68 @@ GEM
|
|
2
2
|
remote: https://rubygems.org/
|
3
3
|
specs:
|
4
4
|
addressable (2.4.0)
|
5
|
-
ast (2.
|
6
|
-
builder (3.2.
|
5
|
+
ast (2.4.0)
|
6
|
+
builder (3.2.3)
|
7
|
+
coderay (1.1.2)
|
7
8
|
descendants_tracker (0.0.4)
|
8
9
|
thread_safe (~> 0.3, >= 0.3.1)
|
9
10
|
diff-lcs (1.2.5)
|
11
|
+
dotenv (2.4.0)
|
10
12
|
faraday (0.9.2)
|
11
13
|
multipart-post (>= 1.2, < 3)
|
12
|
-
git (1.
|
13
|
-
github_api (0.
|
14
|
+
git (1.4.0)
|
15
|
+
github_api (0.16.0)
|
14
16
|
addressable (~> 2.4.0)
|
15
17
|
descendants_tracker (~> 0.0.4)
|
16
18
|
faraday (~> 0.8, < 0.10)
|
17
19
|
hashie (>= 3.4)
|
20
|
+
mime-types (>= 1.16, < 3.0)
|
18
21
|
oauth2 (~> 1.0)
|
19
|
-
hashie (3.
|
20
|
-
highline (1.7.
|
22
|
+
hashie (3.5.7)
|
23
|
+
highline (1.7.10)
|
21
24
|
i18n (0.7.0)
|
22
|
-
|
25
|
+
jaro_winkler (1.4.0)
|
26
|
+
jeweler (2.3.9)
|
23
27
|
builder
|
24
|
-
bundler
|
28
|
+
bundler
|
25
29
|
git (>= 1.2.5)
|
26
|
-
github_api
|
30
|
+
github_api (~> 0.16.0)
|
27
31
|
highline (>= 1.6.15)
|
28
32
|
nokogiri (>= 1.5.10)
|
33
|
+
psych
|
29
34
|
rake
|
30
35
|
rdoc
|
31
|
-
|
32
|
-
json (1.8.
|
36
|
+
semver2
|
37
|
+
json (1.8.6)
|
33
38
|
jwt (1.5.6)
|
34
|
-
|
39
|
+
method_source (0.9.0)
|
40
|
+
mime-types (2.99.3)
|
41
|
+
mini_portile2 (2.3.0)
|
35
42
|
money (6.7.1)
|
36
43
|
i18n (>= 0.6.4, <= 0.7.0)
|
37
44
|
sixarm_ruby_unaccent (>= 1.1.1, < 2)
|
38
|
-
multi_json (1.
|
39
|
-
multi_xml (0.
|
45
|
+
multi_json (1.13.1)
|
46
|
+
multi_xml (0.6.0)
|
40
47
|
multipart-post (2.0.0)
|
41
|
-
nokogiri (1.
|
42
|
-
mini_portile2 (~> 2.
|
43
|
-
|
44
|
-
|
45
|
-
faraday (>= 0.8, < 0.10)
|
48
|
+
nokogiri (1.8.2)
|
49
|
+
mini_portile2 (~> 2.3.0)
|
50
|
+
oauth2 (1.4.0)
|
51
|
+
faraday (>= 0.8, < 0.13)
|
46
52
|
jwt (~> 1.0)
|
47
53
|
multi_json (~> 1.3)
|
48
54
|
multi_xml (~> 0.5)
|
49
55
|
rack (>= 1.2, < 3)
|
50
|
-
|
51
|
-
|
52
|
-
|
56
|
+
parallel (1.12.1)
|
57
|
+
parser (2.5.1.0)
|
58
|
+
ast (~> 2.4.0)
|
53
59
|
powerpack (0.1.1)
|
54
|
-
|
55
|
-
|
56
|
-
|
60
|
+
pry (0.11.3)
|
61
|
+
coderay (~> 1.1.0)
|
62
|
+
method_source (~> 0.9.0)
|
63
|
+
psych (3.0.2)
|
64
|
+
rack (2.0.5)
|
65
|
+
rainbow (3.0.0)
|
66
|
+
rake (12.3.1)
|
57
67
|
rdoc (3.12.2)
|
58
68
|
json (~> 1.4)
|
59
69
|
rspec (3.5.0)
|
@@ -69,28 +79,35 @@ GEM
|
|
69
79
|
diff-lcs (>= 1.2.0, < 2.0)
|
70
80
|
rspec-support (~> 3.5.0)
|
71
81
|
rspec-support (3.5.0)
|
72
|
-
rubocop (0.
|
73
|
-
|
82
|
+
rubocop (0.57.0)
|
83
|
+
jaro_winkler (~> 1.4.0)
|
84
|
+
parallel (~> 1.10)
|
85
|
+
parser (>= 2.5)
|
74
86
|
powerpack (~> 0.1)
|
75
|
-
rainbow (>=
|
87
|
+
rainbow (>= 2.2.2, < 4.0)
|
76
88
|
ruby-progressbar (~> 1.7)
|
77
89
|
unicode-display_width (~> 1.0, >= 1.0.1)
|
78
|
-
ruby-progressbar (1.
|
79
|
-
|
90
|
+
ruby-progressbar (1.9.0)
|
91
|
+
semver2 (3.4.2)
|
80
92
|
sixarm_ruby_unaccent (1.1.1)
|
81
|
-
thread_safe (0.3.
|
82
|
-
unicode-display_width (1.
|
93
|
+
thread_safe (0.3.6)
|
94
|
+
unicode-display_width (1.4.0)
|
83
95
|
|
84
96
|
PLATFORMS
|
85
97
|
ruby
|
86
98
|
|
87
99
|
DEPENDENCIES
|
88
100
|
bundler (~> 1.0)
|
89
|
-
|
101
|
+
dotenv
|
102
|
+
jeweler
|
90
103
|
money (= 6.7.1)
|
104
|
+
pry
|
91
105
|
rdoc (~> 3.12)
|
92
106
|
rspec (= 3.5.0)
|
93
|
-
rubocop
|
107
|
+
rubocop
|
108
|
+
|
109
|
+
RUBY VERSION
|
110
|
+
ruby 2.4.4p296
|
94
111
|
|
95
112
|
BUNDLED WITH
|
96
|
-
1.
|
113
|
+
1.16.2
|
data/README.md
CHANGED
@@ -1,6 +1,17 @@
|
|
1
1
|
# money-fixer-io
|
2
2
|
|
3
|
-
|
3
|
+
Money integration with Fixer.io.
|
4
|
+
|
5
|
+
## Install
|
6
|
+
|
7
|
+
gem "money-fixer-io"
|
8
|
+
|
9
|
+
## Usage
|
10
|
+
|
11
|
+
To use an API key, you can set an environment variable like this:
|
12
|
+
```
|
13
|
+
FIXER_IO_API_KEY=my-api-key
|
14
|
+
```
|
4
15
|
|
5
16
|
## Contributing to money-fixer-io
|
6
17
|
|
data/Rakefile
CHANGED
@@ -1,12 +1,10 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
|
3
1
|
require "rubygems"
|
4
2
|
require "bundler"
|
5
3
|
begin
|
6
4
|
Bundler.setup(:default, :development)
|
7
5
|
rescue Bundler::BundlerError => e
|
8
|
-
|
9
|
-
|
6
|
+
warn e.message
|
7
|
+
warn "Run `bundle install` to install missing gems"
|
10
8
|
exit e.status_code
|
11
9
|
end
|
12
10
|
require "rake"
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.2
|
data/lib/money-fixer-io.rb
CHANGED
@@ -2,8 +2,6 @@ require "money"
|
|
2
2
|
require "open-uri"
|
3
3
|
|
4
4
|
class Money::Bank::FixerIo < Money::Bank::VariableExchange
|
5
|
-
SERVICE_HOST = "api.fixer.io".freeze
|
6
|
-
|
7
5
|
# @return [Hash] Stores the currently known rates.
|
8
6
|
attr_reader :rates
|
9
7
|
|
@@ -131,6 +129,7 @@ private
|
|
131
129
|
uri = build_uri(from, to, args)
|
132
130
|
|
133
131
|
data = JSON.parse(uri.read)
|
132
|
+
|
134
133
|
rate = data.fetch("rates").fetch(to.iso_code)
|
135
134
|
rate = 1 / extract_rate(build_uri(to, from).read) if rate < 0.1
|
136
135
|
rate
|
@@ -145,18 +144,18 @@ private
|
|
145
144
|
# @return [URI::HTTP]
|
146
145
|
def build_uri(from, _to, args = {})
|
147
146
|
if args[:exchanged_at]
|
148
|
-
path = "/#{args.fetch(:exchanged_at)}"
|
147
|
+
path = "/api/#{args.fetch(:exchanged_at)}"
|
149
148
|
else
|
150
|
-
path = "/latest"
|
149
|
+
path = "/api/latest"
|
151
150
|
end
|
152
151
|
|
153
|
-
query =
|
152
|
+
query = {base: from.iso_code}
|
153
|
+
query[:access_key] = ENV["FIXER_IO_API_KEY"] if ENV["FIXER_IO_API_KEY"]
|
154
154
|
|
155
|
-
|
156
|
-
host:
|
155
|
+
URI::HTTP.build(
|
156
|
+
host: "data.fixer.io",
|
157
157
|
path: path,
|
158
|
-
query: query
|
158
|
+
query: URI.encode_www_form(query)
|
159
159
|
)
|
160
|
-
uri
|
161
160
|
end
|
162
161
|
end
|
data/money-fixer-io.gemspec
CHANGED
@@ -2,18 +2,18 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: money-fixer-io 0.0.
|
5
|
+
# stub: money-fixer-io 0.0.2 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
|
-
s.name = "money-fixer-io"
|
9
|
-
s.version = "0.0.
|
8
|
+
s.name = "money-fixer-io".freeze
|
9
|
+
s.version = "0.0.2"
|
10
10
|
|
11
|
-
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
|
-
s.require_paths = ["lib"]
|
13
|
-
s.authors = ["kaspernj"]
|
14
|
-
s.date = "
|
15
|
-
s.description = "fixer.io support for money"
|
16
|
-
s.email = "k@spernj.org"
|
11
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
|
12
|
+
s.require_paths = ["lib".freeze]
|
13
|
+
s.authors = ["kaspernj".freeze]
|
14
|
+
s.date = "2018-06-06"
|
15
|
+
s.description = "fixer.io support for money".freeze
|
16
|
+
s.email = "k@spernj.org".freeze
|
17
17
|
s.extra_rdoc_files = [
|
18
18
|
"LICENSE.txt",
|
19
19
|
"README.md"
|
@@ -22,6 +22,7 @@ Gem::Specification.new do |s|
|
|
22
22
|
".document",
|
23
23
|
".rspec",
|
24
24
|
".rubocop.yml",
|
25
|
+
".ruby-version",
|
25
26
|
"Gemfile",
|
26
27
|
"Gemfile.lock",
|
27
28
|
"LICENSE.txt",
|
@@ -30,40 +31,46 @@ Gem::Specification.new do |s|
|
|
30
31
|
"VERSION",
|
31
32
|
"lib/money-fixer-io.rb",
|
32
33
|
"money-fixer-io.gemspec",
|
33
|
-
"
|
34
|
+
"peak_flow.yml",
|
34
35
|
"spec/money-fixer-io_spec.rb",
|
35
36
|
"spec/spec_helper.rb"
|
36
37
|
]
|
37
|
-
s.homepage = "http://github.com/kaspernj/money-fixer-io"
|
38
|
-
s.licenses = ["MIT"]
|
39
|
-
s.rubygems_version = "2.
|
40
|
-
s.summary = "fixer.io support for money"
|
38
|
+
s.homepage = "http://github.com/kaspernj/money-fixer-io".freeze
|
39
|
+
s.licenses = ["MIT".freeze]
|
40
|
+
s.rubygems_version = "2.6.14.1".freeze
|
41
|
+
s.summary = "fixer.io support for money".freeze
|
41
42
|
|
42
43
|
if s.respond_to? :specification_version then
|
43
44
|
s.specification_version = 4
|
44
45
|
|
45
46
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
46
|
-
s.add_development_dependency(%q<
|
47
|
-
s.add_development_dependency(%q<
|
48
|
-
s.add_development_dependency(%q<
|
49
|
-
s.add_development_dependency(%q<
|
50
|
-
s.add_development_dependency(%q<
|
51
|
-
s.add_development_dependency(%q<
|
47
|
+
s.add_development_dependency(%q<bundler>.freeze, ["~> 1.0"])
|
48
|
+
s.add_development_dependency(%q<dotenv>.freeze, [">= 0"])
|
49
|
+
s.add_development_dependency(%q<jeweler>.freeze, [">= 0"])
|
50
|
+
s.add_development_dependency(%q<money>.freeze, ["= 6.7.1"])
|
51
|
+
s.add_development_dependency(%q<pry>.freeze, [">= 0"])
|
52
|
+
s.add_development_dependency(%q<rdoc>.freeze, ["~> 3.12"])
|
53
|
+
s.add_development_dependency(%q<rspec>.freeze, ["= 3.5.0"])
|
54
|
+
s.add_development_dependency(%q<rubocop>.freeze, [">= 0"])
|
52
55
|
else
|
53
|
-
s.add_dependency(%q<
|
54
|
-
s.add_dependency(%q<
|
55
|
-
s.add_dependency(%q<
|
56
|
-
s.add_dependency(%q<
|
57
|
-
s.add_dependency(%q<
|
58
|
-
s.add_dependency(%q<
|
56
|
+
s.add_dependency(%q<bundler>.freeze, ["~> 1.0"])
|
57
|
+
s.add_dependency(%q<dotenv>.freeze, [">= 0"])
|
58
|
+
s.add_dependency(%q<jeweler>.freeze, [">= 0"])
|
59
|
+
s.add_dependency(%q<money>.freeze, ["= 6.7.1"])
|
60
|
+
s.add_dependency(%q<pry>.freeze, [">= 0"])
|
61
|
+
s.add_dependency(%q<rdoc>.freeze, ["~> 3.12"])
|
62
|
+
s.add_dependency(%q<rspec>.freeze, ["= 3.5.0"])
|
63
|
+
s.add_dependency(%q<rubocop>.freeze, [">= 0"])
|
59
64
|
end
|
60
65
|
else
|
61
|
-
s.add_dependency(%q<
|
62
|
-
s.add_dependency(%q<
|
63
|
-
s.add_dependency(%q<
|
64
|
-
s.add_dependency(%q<
|
65
|
-
s.add_dependency(%q<
|
66
|
-
s.add_dependency(%q<
|
66
|
+
s.add_dependency(%q<bundler>.freeze, ["~> 1.0"])
|
67
|
+
s.add_dependency(%q<dotenv>.freeze, [">= 0"])
|
68
|
+
s.add_dependency(%q<jeweler>.freeze, [">= 0"])
|
69
|
+
s.add_dependency(%q<money>.freeze, ["= 6.7.1"])
|
70
|
+
s.add_dependency(%q<pry>.freeze, [">= 0"])
|
71
|
+
s.add_dependency(%q<rdoc>.freeze, ["~> 3.12"])
|
72
|
+
s.add_dependency(%q<rspec>.freeze, ["= 3.5.0"])
|
73
|
+
s.add_dependency(%q<rubocop>.freeze, [">= 0"])
|
67
74
|
end
|
68
75
|
end
|
69
76
|
|
File without changes
|
data/spec/money-fixer-io_spec.rb
CHANGED
@@ -10,12 +10,12 @@ describe Money::Bank::FixerIo do
|
|
10
10
|
result = bank.get_rate(currency_eur, currency_dkk, exchanged_at: Time.new(2004, 1, 1))
|
11
11
|
result = format("%.2f", result).to_f
|
12
12
|
|
13
|
-
expect(result).to eq 7.
|
13
|
+
expect(result).to eq 7.39
|
14
14
|
|
15
15
|
result = bank.get_rate(currency_eur, currency_dkk, exchanged_at: Time.new(2016, 1, 1))
|
16
16
|
result = format("%.2f", result).to_f
|
17
17
|
|
18
|
-
expect(result).to eq 7.
|
18
|
+
expect(result).to eq 7.45
|
19
19
|
end
|
20
20
|
|
21
21
|
it "does caching" do
|
@@ -28,7 +28,7 @@ describe Money::Bank::FixerIo do
|
|
28
28
|
result = bank.cache.fetch(currency_eur).fetch(currency_dkk).fetch("2004-01-01")
|
29
29
|
result = format("%.2f", result).to_f
|
30
30
|
|
31
|
-
expect(result).to eq 7.
|
31
|
+
expect(result).to eq 7.39
|
32
32
|
end
|
33
33
|
end
|
34
34
|
end
|
data/spec/spec_helper.rb
CHANGED
@@ -3,6 +3,9 @@ $LOAD_PATH.unshift(File.dirname(__FILE__))
|
|
3
3
|
|
4
4
|
require "rspec"
|
5
5
|
require "money-fixer-io"
|
6
|
+
require "dotenv"
|
7
|
+
|
8
|
+
Dotenv.load(File.join(File.dirname(__FILE__), "..", ".env"))
|
6
9
|
|
7
10
|
# Requires supporting files with custom matchers and macros, etc,
|
8
11
|
# in ./support/ and its subdirectories.
|
metadata
CHANGED
@@ -1,99 +1,127 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: money-fixer-io
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- kaspernj
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-06-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: '1.0'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: '1.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: dotenv
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
42
|
+
name: jeweler
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
47
|
+
version: '0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - "
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
54
|
+
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
56
|
+
name: money
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - '='
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
61
|
+
version: 6.7.1
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - '='
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version:
|
68
|
+
version: 6.7.1
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
70
|
+
name: pry
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: rdoc
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '3.12'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '3.12'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: rspec
|
71
99
|
requirement: !ruby/object:Gem::Requirement
|
72
100
|
requirements:
|
73
101
|
- - '='
|
74
102
|
- !ruby/object:Gem::Version
|
75
|
-
version:
|
103
|
+
version: 3.5.0
|
76
104
|
type: :development
|
77
105
|
prerelease: false
|
78
106
|
version_requirements: !ruby/object:Gem::Requirement
|
79
107
|
requirements:
|
80
108
|
- - '='
|
81
109
|
- !ruby/object:Gem::Version
|
82
|
-
version:
|
110
|
+
version: 3.5.0
|
83
111
|
- !ruby/object:Gem::Dependency
|
84
112
|
name: rubocop
|
85
113
|
requirement: !ruby/object:Gem::Requirement
|
86
114
|
requirements:
|
87
|
-
- -
|
115
|
+
- - ">="
|
88
116
|
- !ruby/object:Gem::Version
|
89
|
-
version: 0
|
117
|
+
version: '0'
|
90
118
|
type: :development
|
91
119
|
prerelease: false
|
92
120
|
version_requirements: !ruby/object:Gem::Requirement
|
93
121
|
requirements:
|
94
|
-
- -
|
122
|
+
- - ">="
|
95
123
|
- !ruby/object:Gem::Version
|
96
|
-
version: 0
|
124
|
+
version: '0'
|
97
125
|
description: fixer.io support for money
|
98
126
|
email: k@spernj.org
|
99
127
|
executables: []
|
@@ -105,6 +133,7 @@ files:
|
|
105
133
|
- ".document"
|
106
134
|
- ".rspec"
|
107
135
|
- ".rubocop.yml"
|
136
|
+
- ".ruby-version"
|
108
137
|
- Gemfile
|
109
138
|
- Gemfile.lock
|
110
139
|
- LICENSE.txt
|
@@ -113,7 +142,7 @@ files:
|
|
113
142
|
- VERSION
|
114
143
|
- lib/money-fixer-io.rb
|
115
144
|
- money-fixer-io.gemspec
|
116
|
-
-
|
145
|
+
- peak_flow.yml
|
117
146
|
- spec/money-fixer-io_spec.rb
|
118
147
|
- spec/spec_helper.rb
|
119
148
|
homepage: http://github.com/kaspernj/money-fixer-io
|
@@ -136,7 +165,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
136
165
|
version: '0'
|
137
166
|
requirements: []
|
138
167
|
rubyforge_project:
|
139
|
-
rubygems_version: 2.
|
168
|
+
rubygems_version: 2.6.14.1
|
140
169
|
signing_key:
|
141
170
|
specification_version: 4
|
142
171
|
summary: fixer.io support for money
|