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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b4477e31c6a5e1b567761f5f07d5417ba16ef1eeead50d5b6794cea5f8d47de5
4
- data.tar.gz: eadcce5a9a928ed2b2a6263e0298411c6853b92a627263ce2cd145622bd7c80d
3
+ metadata.gz: 31bf1197f255276517574ac35b2f8c9d45595cdd25ba9a9ebf39961fd68bb4b8
4
+ data.tar.gz: 9d372920ea2674feecc5924d3482157b32de74347685a37c0eb51a09a5dff35b
5
5
  SHA512:
6
- metadata.gz: 944a10bb35028051b0c96a81626afa293027609e81bb156b54891cd35b23200a2b1fb9f46085c15a9f450ac21d17aea14966c619adeb11afeff98fb3e5499c3b
7
- data.tar.gz: a3b2f347758b1cf5050816888b362bebb920b9ce3c9de7c49706e70475dca8718667a682343dd70ad9364b873612d3b1ad2d3b7e2b1f12433ffb34448da77990
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 ecosystem
119
+ ## Other UniRate clients
120
120
 
121
- UniRate ships official integrations for 40+ ecosystems, all maintained under the
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
- **Core clients (9 languages)**
125
- [Python](https://github.com/UniRate-API/unirate-api-python) ·
126
- [Node.js / TypeScript](https://github.com/UniRate-API/unirate-api-nodejs) ·
127
- [Go](https://github.com/UniRate-API/unirate-api-go) ·
128
- [Rust](https://github.com/UniRate-API/unirate-api-rust) ·
129
- [Java](https://github.com/UniRate-API/unirate-api-java) ·
130
- [Ruby](https://github.com/UniRate-API/unirate-api-ruby) ·
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).
@@ -5,5 +5,5 @@
5
5
  # gem: `Money` is a class there, and reopening it as a module at gem-build
6
6
  # time (before `money` is installed) would raise a TypeError.
7
7
  module MoneyUniRateApi
8
- VERSION = "0.2.1"
8
+ VERSION = "0.2.2"
9
9
  end
@@ -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 do |code, value|
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
@@ -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://github.com/UniRate-API/money-unirate-api"
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" => spec.homepage,
26
- "bug_tracker_uri" => "#{spec.homepage}/issues",
27
- "changelog_uri" => "#{spec.homepage}/blob/main/CHANGELOG.md",
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.1
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-09-10 00:00:00.000000000 Z
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://github.com/UniRate-API/money-unirate-api
105
+ homepage: https://unirateapi.com
106
106
  licenses:
107
107
  - MIT
108
108
  metadata:
109
- homepage_uri: https://github.com/UniRate-API/money-unirate-api
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