money-unirate-api 0.2.1 → 0.2.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 +4 -4
- data/CHANGELOG.md +0 -9
- data/README.md +11 -64
- data/lib/money/bank/uni_rate/version.rb +1 -1
- data/lib/money/bank/uni_rate.rb +1 -5
- data/money-unirate-api.gemspec +5 -4
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 31bf1197f255276517574ac35b2f8c9d45595cdd25ba9a9ebf39961fd68bb4b8
|
|
4
|
+
data.tar.gz: 9d372920ea2674feecc5924d3482157b32de74347685a37c0eb51a09a5dff35b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fb58b74c52d7680ba7fcdb961016a5d1c0a2fa9b8b0629b13340960239af23dccd634c63aebd1f8dc2f36fdc05fb6979946cb5a87c808ec79001d0ed86026d2b
|
|
7
|
+
data.tar.gz: 0a2f761dd17aea84d3dd51cf9b3688953727146bbe46d9d2cbdb0ffbef78192564af15d944c5e1eb60ce42ccf9e64e9ea0a43b981153b714ba4c332c8dfc11e3
|
data/CHANGELOG.md
CHANGED
|
@@ -4,15 +4,6 @@ All notable changes to this project are documented here. The format follows
|
|
|
4
4
|
[Keep a Changelog](https://keepachangelog.com/en/1.1.0/) and this project
|
|
5
5
|
adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
6
6
|
|
|
7
|
-
## [0.2.1] - 2026-09-10
|
|
8
|
-
|
|
9
|
-
### Fixed
|
|
10
|
-
|
|
11
|
-
- `#update_rates` no longer raises `Money::Currency::UnknownCurrency` when the
|
|
12
|
-
UniRate snapshot includes currency codes the `money` gem doesn't register
|
|
13
|
-
(e.g. crypto such as `ETH`). Unknown codes are now skipped via
|
|
14
|
-
`Money::Currency.find`. Thanks to @jeroen-nijhof for the report and fix (#1).
|
|
15
|
-
|
|
16
7
|
## [0.2.0] - 2026-06-05
|
|
17
8
|
|
|
18
9
|
### Changed
|
data/README.md
CHANGED
|
@@ -116,76 +116,23 @@ bundle exec rubocop
|
|
|
116
116
|
```
|
|
117
117
|
|
|
118
118
|
<!-- unirate-ecosystem-footer:start -->
|
|
119
|
-
## UniRate
|
|
119
|
+
## Other UniRate clients
|
|
120
120
|
|
|
121
|
-
UniRate ships official
|
|
121
|
+
UniRate ships official client libraries and framework integrations across the
|
|
122
|
+
ecosystem. The repos below are all maintained under the
|
|
122
123
|
[UniRate-API](https://github.com/UniRate-API) org.
|
|
123
124
|
|
|
124
|
-
**
|
|
125
|
-
[
|
|
126
|
-
[
|
|
127
|
-
[
|
|
128
|
-
[
|
|
129
|
-
[
|
|
130
|
-
[Ruby](https://github.com/UniRate-API/unirate-api
|
|
131
|
-
[PHP](https://github.com/UniRate-API/unirate-api-php) ·
|
|
132
|
-
[.NET](https://github.com/UniRate-API/unirate-api-dotnet) ·
|
|
133
|
-
[Swift](https://github.com/UniRate-API/unirate-api-swift)
|
|
134
|
-
|
|
135
|
-
**JavaScript / TypeScript**
|
|
136
|
-
[React](https://github.com/UniRate-API/react-unirate) ·
|
|
137
|
-
[Next.js](https://github.com/UniRate-API/next-unirate) ·
|
|
138
|
-
[Remix](https://github.com/UniRate-API/remix-unirate) ·
|
|
139
|
-
[SvelteKit](https://github.com/UniRate-API/sveltekit-unirate) ·
|
|
140
|
-
[Vue](https://github.com/UniRate-API/vue-unirate) ·
|
|
141
|
-
[Angular](https://github.com/UniRate-API/angular-unirate) ·
|
|
142
|
-
[Nuxt](https://github.com/UniRate-API/nuxt-unirate) ·
|
|
143
|
-
[NestJS](https://github.com/UniRate-API/nestjs-unirate) ·
|
|
144
|
-
[tRPC](https://github.com/UniRate-API/trpc-unirate)
|
|
145
|
-
|
|
146
|
-
**Static-site generators**
|
|
147
|
-
[Astro](https://github.com/UniRate-API/astro-unirate) ·
|
|
148
|
-
[Eleventy](https://github.com/UniRate-API/eleventy-unirate) ·
|
|
149
|
-
[Hugo](https://github.com/UniRate-API/hugo-unirate) ·
|
|
150
|
-
[Jekyll](https://github.com/UniRate-API/jekyll-unirate)
|
|
151
|
-
|
|
152
|
-
**CMS & e-commerce**
|
|
153
|
-
[Wagtail](https://github.com/UniRate-API/wagtail-unirate) ·
|
|
154
|
-
[WordPress](https://github.com/UniRate-API/unirate-currency-converter) ·
|
|
155
|
-
[WooCommerce](https://github.com/UniRate-API/unirate-woocs) ·
|
|
156
|
-
[Drupal](https://github.com/UniRate-API/drupal-unirate) ·
|
|
157
|
-
[Strapi](https://github.com/UniRate-API/strapi-plugin-unirate) ·
|
|
158
|
-
[Medusa](https://github.com/UniRate-API/medusa-plugin-unirate) ·
|
|
159
|
-
[Symfony](https://github.com/UniRate-API/unirate-bundle) ·
|
|
160
|
-
[Laravel](https://github.com/UniRate-API/laravel-money-unirate) ·
|
|
161
|
-
[Directus](https://github.com/UniRate-API/directus-extension-unirate)
|
|
162
|
-
|
|
163
|
-
**Data, AI & backend**
|
|
164
|
-
[LangChain (Python)](https://github.com/UniRate-API/langchain-unirate) ·
|
|
165
|
-
[LangChain.js](https://github.com/UniRate-API/langchain-js-unirate) ·
|
|
166
|
-
[FastAPI](https://github.com/UniRate-API/fastapi-unirate) ·
|
|
167
|
-
[Flask](https://github.com/UniRate-API/flask-unirate) ·
|
|
168
|
-
[Django REST Framework](https://github.com/UniRate-API/djangorestframework-unirate) ·
|
|
169
|
-
[Apache Airflow](https://github.com/UniRate-API/airflow-provider-unirate) ·
|
|
170
|
-
[dbt](https://github.com/UniRate-API/dbt-unirate)
|
|
171
|
-
|
|
172
|
-
**Platform & tools**
|
|
173
|
-
[MCP server](https://github.com/UniRate-API/unirate-mcp) ·
|
|
174
|
-
[CLI](https://github.com/UniRate-API/unirate-cli) ·
|
|
175
|
-
[Cloudflare Workers](https://github.com/UniRate-API/cloudflare-workers-unirate) ·
|
|
176
|
-
[Home Assistant](https://github.com/UniRate-API/unirate-home-assistant) ·
|
|
177
|
-
[n8n](https://github.com/UniRate-API/n8n-nodes-unirate) ·
|
|
178
|
-
[Google Sheets](https://github.com/UniRate-API/unirate-sheets) ·
|
|
179
|
-
[VS Code](https://github.com/UniRate-API/vscode-unirate) ·
|
|
180
|
-
[Obsidian](https://github.com/UniRate-API/obsidian-currency)
|
|
181
|
-
|
|
182
|
-
**Money library bridges**
|
|
183
|
-
[money gem (Ruby)](https://github.com/UniRate-API/money-unirate-api) ·
|
|
184
|
-
[NodaMoney (.NET)](https://github.com/UniRate-API/UniRateApi.NodaMoney)
|
|
125
|
+
- **Languages:** [Python](https://github.com/UniRate-API/unirate-api-python) · [Node.js / TypeScript](https://github.com/UniRate-API/unirate-api-nodejs) · [Go](https://github.com/UniRate-API/unirate-api-go) · [Rust](https://github.com/UniRate-API/unirate-api-rust) · [Java](https://github.com/UniRate-API/unirate-api-java) · [Ruby](https://github.com/UniRate-API/unirate-api-ruby) · [PHP](https://github.com/UniRate-API/unirate-api-php) · [.NET](https://github.com/UniRate-API/unirate-api-dotnet) · [Swift](https://github.com/UniRate-API/unirate-api-swift)
|
|
126
|
+
- **Web frameworks:** [NestJS](https://github.com/UniRate-API/nestjs-unirate) · [Django / Wagtail](https://github.com/UniRate-API/wagtail-unirate) · [FastAPI](https://github.com/UniRate-API/fastapi-unirate) · [Flask](https://github.com/UniRate-API/flask-unirate) · [React](https://github.com/UniRate-API/react-unirate) · [tRPC](https://github.com/UniRate-API/trpc-unirate)
|
|
127
|
+
- **Static-site generators:** [Astro](https://github.com/UniRate-API/astro-unirate) · [Eleventy](https://github.com/UniRate-API/eleventy-unirate) · [Hugo](https://github.com/UniRate-API/hugo-unirate)
|
|
128
|
+
- **Data / orchestration:** [Airflow](https://github.com/UniRate-API/airflow-provider-unirate) · [dbt](https://github.com/UniRate-API/dbt-unirate) · [LangChain](https://github.com/UniRate-API/langchain-unirate)
|
|
129
|
+
- **Workflow / no-code:** [n8n](https://github.com/UniRate-API/n8n-nodes-unirate) · [Google Sheets](https://github.com/UniRate-API/unirate-sheets) · [MCP server](https://github.com/UniRate-API/unirate-mcp)
|
|
130
|
+
- **Editors / tools:** [VS Code](https://github.com/UniRate-API/vscode-unirate) · [Obsidian](https://github.com/UniRate-API/obsidian-currency)
|
|
131
|
+
- **Specialty bridges:** [NodaMoney (.NET)](https://github.com/UniRate-API/UniRateApi.NodaMoney) · [money gem (Ruby)](https://github.com/UniRate-API/money-unirate-api)
|
|
185
132
|
|
|
186
133
|
Get a free API key at [unirateapi.com](https://unirateapi.com).
|
|
187
134
|
<!-- unirate-ecosystem-footer:end -->
|
|
188
135
|
|
|
189
136
|
## License
|
|
190
137
|
|
|
191
|
-
MIT — see [LICENSE](LICENSE).
|
|
138
|
+
MIT — see [LICENSE](LICENSE).
|
data/lib/money/bank/uni_rate.rb
CHANGED
|
@@ -71,11 +71,7 @@ class Money
|
|
|
71
71
|
def update_rates
|
|
72
72
|
rates = fetch_rates
|
|
73
73
|
add_rate(base_currency, base_currency, 1)
|
|
74
|
-
rates.each
|
|
75
|
-
next unless Money::Currency.find(code)
|
|
76
|
-
|
|
77
|
-
add_rate(base_currency, code, value)
|
|
78
|
-
end
|
|
74
|
+
rates.each { |code, value| add_rate(base_currency, code, value) }
|
|
79
75
|
@rates_updated_at = Time.now
|
|
80
76
|
rates
|
|
81
77
|
end
|
data/money-unirate-api.gemspec
CHANGED
|
@@ -15,16 +15,17 @@ Gem::Specification.new do |spec|
|
|
|
15
15
|
"(https://unirateapi.com) — free currency exchange rates " \
|
|
16
16
|
"for RubyMoney. Fetches one base snapshot and derives all " \
|
|
17
17
|
"cross-rates, with optional TTL-based refresh."
|
|
18
|
-
spec.homepage = "https://
|
|
18
|
+
spec.homepage = "https://unirateapi.com"
|
|
19
19
|
spec.license = "MIT"
|
|
20
20
|
|
|
21
21
|
spec.required_ruby_version = ">= 3.0"
|
|
22
22
|
|
|
23
|
+
github = "https://github.com/UniRate-API/money-unirate-api"
|
|
23
24
|
spec.metadata = {
|
|
24
25
|
"homepage_uri" => spec.homepage,
|
|
25
|
-
"source_code_uri" =>
|
|
26
|
-
"bug_tracker_uri" => "#{
|
|
27
|
-
"changelog_uri" => "#{
|
|
26
|
+
"source_code_uri" => github,
|
|
27
|
+
"bug_tracker_uri" => "#{github}/issues",
|
|
28
|
+
"changelog_uri" => "#{github}/blob/main/CHANGELOG.md",
|
|
28
29
|
"documentation_uri" => "https://unirateapi.com",
|
|
29
30
|
"rubygems_mfa_required" => "true"
|
|
30
31
|
}
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: money-unirate-api
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Unirate Team
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-
|
|
11
|
+
date: 2026-10-04 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: money
|
|
@@ -102,11 +102,11 @@ files:
|
|
|
102
102
|
- lib/money/bank/uni_rate.rb
|
|
103
103
|
- lib/money/bank/uni_rate/version.rb
|
|
104
104
|
- money-unirate-api.gemspec
|
|
105
|
-
homepage: https://
|
|
105
|
+
homepage: https://unirateapi.com
|
|
106
106
|
licenses:
|
|
107
107
|
- MIT
|
|
108
108
|
metadata:
|
|
109
|
-
homepage_uri: https://
|
|
109
|
+
homepage_uri: https://unirateapi.com
|
|
110
110
|
source_code_uri: https://github.com/UniRate-API/money-unirate-api
|
|
111
111
|
bug_tracker_uri: https://github.com/UniRate-API/money-unirate-api/issues
|
|
112
112
|
changelog_uri: https://github.com/UniRate-API/money-unirate-api/blob/main/CHANGELOG.md
|