Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: Flimm/perl5-Data-MoneyCurrency
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: OpenCageData/perl5-Data-MoneyCurrency
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Able to merge. These branches can be automatically merged.

Commits on Mar 20, 2018

  1. Create .travis.yml

    freyfogle authored Mar 20, 2018
    Copy the full SHA
    c809592 View commit details
  2. new ruby-money

    freyfogle committed Mar 20, 2018
    Copy the full SHA
    fe8aafb View commit details
  3. Copy the full SHA
    2d7ee13 View commit details
  4. preparing for 0.04

    freyfogle committed Mar 20, 2018
    Copy the full SHA
    43acfb5 View commit details

Commits on Mar 23, 2018

  1. added CPAN badge

    freyfogle authored Mar 23, 2018
    Copy the full SHA
    7c431d2 View commit details

Commits on Aug 15, 2018

  1. newest ruby-money

    freyfogle committed Aug 15, 2018
    Copy the full SHA
    af27ff6 View commit details
  2. lt (Lithuania) uses the EUR

    freyfogle committed Aug 15, 2018
    Copy the full SHA
    3dceefb View commit details
  3. update Changes file

    freyfogle committed Aug 15, 2018
    Copy the full SHA
    c5d4ac9 View commit details
  4. remove perl5 from name

    freyfogle committed Aug 15, 2018
    Copy the full SHA
    3c60586 View commit details
  5. add lithuania test

    freyfogle committed Aug 15, 2018
    Copy the full SHA
    e2019f3 View commit details
  6. more perl versions

    freyfogle committed Aug 15, 2018
    Copy the full SHA
    ff9fcd3 View commit details
  7. add Abstract

    freyfogle committed Aug 15, 2018
    Copy the full SHA
    2645050 View commit details
  8. Copy the full SHA
    ba9cf42 View commit details

Commits on Aug 17, 2018

  1. Copy the full SHA
    8e8afde View commit details

Commits on Aug 19, 2018

  1. v0.06

    freyfogle committed Aug 19, 2018
    Copy the full SHA
    b546dc9 View commit details

Commits on Nov 17, 2018

  1. new ruby-money config

    freyfogle committed Nov 17, 2018
    Copy the full SHA
    ada84c0 View commit details
  2. v0.07 for new conf

    freyfogle committed Nov 17, 2018
    Copy the full SHA
    29cba1d View commit details

Commits on Nov 18, 2018

  1. v0.07

    freyfogle committed Nov 18, 2018
    Copy the full SHA
    64f2314 View commit details
  2. Copy the full SHA
    df22cad View commit details

Commits on Dec 23, 2018

  1. v0.08

    freyfogle committed Dec 23, 2018
    Copy the full SHA
    174ed49 View commit details
  2. newest ruby-money conf

    freyfogle committed Dec 23, 2018
    Copy the full SHA
    ab73932 View commit details

Commits on Feb 12, 2019

  1. Copy the full SHA
    33cbb9b View commit details
  2. Merge pull request #1 from manwar/fix-minor-typo

    Fixed minor typo in the pod for Data::MoneyCurrency.
    freyfogle authored Feb 12, 2019
    Copy the full SHA
    d5bfc14 View commit details

Commits on Oct 28, 2019

  1. Copy the full SHA
    737828d View commit details
  2. add coveralls.io badge

    freyfogle committed Oct 28, 2019
    Copy the full SHA
    048924d View commit details
  3. Copy the full SHA
    2f1c6d6 View commit details
  4. Copy the full SHA
    d89d46c View commit details
  5. v0.09

    freyfogle committed Oct 28, 2019
    Copy the full SHA
    a2e5f91 View commit details
  6. Copy the full SHA
    1340f84 View commit details
  7. Copy the full SHA
    4c0fe21 View commit details
  8. Copy the full SHA
    9de1523 View commit details
  9. remove coveralls badge

    freyfogle committed Oct 28, 2019
    Copy the full SHA
    3a77291 View commit details
  10. Copy the full SHA
    d2f3571 View commit details
  11. Copy the full SHA
    0870c93 View commit details
  12. Copy the full SHA
    b505901 View commit details
  13. should be Perl_5

    freyfogle committed Oct 28, 2019
    Copy the full SHA
    9a9c3c0 View commit details
  14. only test versions >= 5.22

    freyfogle committed Oct 28, 2019
    Copy the full SHA
    615e8f7 View commit details
  15. Copy the full SHA
    6d39a79 View commit details
  16. Copy the full SHA
    b8d7117 View commit details
  17. Merge pull request #2 from manwar/tidy-up-error-message

    Tidy up error message
    freyfogle authored Oct 28, 2019
    Copy the full SHA
    71d542d View commit details

Commits on Jun 12, 2020

  1. Copy the full SHA
    40ced20 View commit details
  2. newest ruby-money

    freyfogle committed Jun 12, 2020
    Copy the full SHA
    ba2b838 View commit details
  3. v0.10

    freyfogle committed Jun 12, 2020
    Copy the full SHA
    9edf9dd View commit details
  4. v0.10

    freyfogle committed Jun 12, 2020
    Copy the full SHA
    ade45ff View commit details

Commits on Aug 22, 2020

  1. slack notification

    freyfogle committed Aug 22, 2020
    Copy the full SHA
    1ed216c View commit details

Commits on Nov 14, 2020

  1. newest ruby-money

    freyfogle committed Nov 14, 2020
    Copy the full SHA
    0af88d5 View commit details

Commits on Nov 20, 2020

  1. Copy the full SHA
    47f607c View commit details

Commits on Nov 30, 2020

  1. add github info

    freyfogle committed Nov 30, 2020
    Copy the full SHA
    37eb59f View commit details
  2. Copy the full SHA
    e0344e7 View commit details

Commits on Jan 12, 2021

  1. Create SECURITY.md

    freyfogle authored Jan 12, 2021
    Copy the full SHA
    004e1fe View commit details
Showing with 3,731 additions and 449 deletions.
  1. +40 −0 .github/workflows/ci.yml
  2. +2 −0 .gitignore
  3. +0 −4 .gitmodules
  4. +93 −0 Changes
  5. 0 LICENSE → LICENSE.txt
  6. +0 −19 MANIFEST
  7. +0 −19 MANIFEST.SKIP
  8. +0 −66 Makefile.PL
  9. +0 −33 README
  10. +52 −0 README.md
  11. +5 −0 SECURITY.md
  12. +208 −0 conf/currency_backwards_compatible.json
  13. +2,720 −0 conf/currency_iso.json
  14. +162 −0 conf/currency_non_iso.json
  15. +55 −0 dist.ini
  16. +302 −246 lib/Data/MoneyCurrency.pm
  17. BIN opencage_logo_300_150.png
  18. +0 −1 ruby-money
  19. +2 −4 t/00-load.t
  20. +22 −9 t/get_currencies_for_country.t
  21. +62 −37 t/get_currency.t
  22. +2 −3 t/manifest.t
  23. +2 −4 t/pod-coverage.t
  24. +2 −4 t/pod.t
40 changes: 40 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: CI Tests

on: [push, pull_request]

jobs:
tests:
runs-on: ubuntu-latest

strategy:
matrix:
version: ['5.30', '5.32', '5.34', '5.36', '5.38', '5.40']

env:
PERL_CPANM_OPT: "--notest --force --skip-satisfied"

name: Perl ${{ matrix.version }}

steps:
- uses: actions/checkout@v4
with:
submodules: recursive

- name: Set up perl
uses: shogo82148/actions-setup-perl@v1
with:
perl-version: ${{ matrix.version }}
install-modules-with: cpanm

- name: Install module
run: |
cpanm Dist::Zilla
dzil authordeps | xargs cpanm
export tmpbuild=$(mktemp --directory)
dzil build --in $tmpbuild
# cpanm --quiet --notest Devel::Cover::Report::Coveralls Perl::Critic
dzil listdeps | xargs cpanm
- name: Dzil tests
run: dzil test --author

2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -11,6 +11,8 @@ blib/
inc/
.lwpcookies
.last_cover_stats
.tidyall.d
*.tdy
nytprof.out
pod2htm*.tmp
pm_to_blib
4 changes: 0 additions & 4 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,4 +0,0 @@
[submodule "ruby-money"]
path = ruby-money
url = https://github.com/RubyMoney/money.git
branch = master
93 changes: 93 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
@@ -1,5 +1,98 @@
Revision history for Data-MoneyCurrency

0.27 Mon May 13 21:24:03 CEST 2024
- ZWG not ZIG

0.26 Mon May 13 17:57:33 CEST 2024
- ZW uses the ZIG
https://en.wikipedia.org/wiki/Zimbabwe_Gold

0.25
- HR now uses EUR

0.24 Fr 16 Dez 2022 13:59:12 MST
- unfortunately ruby-money no longer seems actively maintained
so we have a forked version
- correct formatting for ZAR
- new currency symbol for GEL
- new currency SEL
- html_entity for euro
- EUR as second currency for HR (full switch on 2023.1.1)

0.23 Sa 25 Jun 2022 12:59:39 CEST
- newest ruby-money conf
- VE now mapped to ves as currency

0.22 Wed Sep 8 09:44:59 CEST 2021
- back to File::ShareDir other way wasnt working

0.21 Wed Sep 8 09:24:59 CEST 2021
- remove Code::TidyAll and Perl::Tidy

0.20 Wed Sep 8 00:47:29 CEST 2021
- add tests for BTC, read non-iso conf file
- use File::Basename
- get rid of perltidy test, too annoying

0.19 Tue Sep 7 23:13:29 CEST 2021
El Salvador uses BTC
no longer use File::ShareDir

0.18 Fri Mar 26 17:10:36 CET 2021
Panama (PA) uses USD

0.17 Fri Mar 26 16:26:32 CET 2021
El Salvador (SV) uses USD

0.16 Sat Mar 20 13:14:27 CET 2021
add Kosovo

0.15 Fri Mar 19 10:26:27 CET 2021
add missing countrycodes, mainly for dependent territories

0.14 Sun Mar 14 10:18:09 CET 2021
add perltidy . files to build

0.13 Sat Mar 13 10:55:50 CET 2021
- new ruby-money conf (submodule is now main not master)
- perltidy all files, add tidy test and precommit hook
many thanks to Olaf Alders for the step by step guide
http://www.perladvent.org/2020/2020-12-01.html

0.12 Fri Nov 20 06:48:48 CET 2020
fix version mismatch between Module and dist

0.11 Sat Nov 14 21:18:10 CET 2020
new ruby-money conf

0.10 Fri Jun 12 10:27:29 CEST 2020
new ruby-money conf
point to OpenCage Github repo in pod and README

0.09 Mon Oct 28 08:50:30 CET 2019
new ruby-money conf
added coveralls.io badges, etc

0.08 Sun Dec 23 10:56:29 CET 2018
use Cpanel::JSON::XS rather than JSON
new ruby-money conf
changed Author in pod

0.07 Sa 17 Nov 2018 16:19:26 CET
new ruby-money conf to get new currency for Venezuala

0.06 So 19 Aug 2018 10:13:23 MDT
fixing mismatch of version number between .pm and dist.ini, no code changes

0.05 Fr 17 Aug 2018 08:42:44 CDT
trying to solve ShareDir install issues, no code changes

0.04 Wed Aug 15 07:20:01 CDT
update ruby-money config
switch to dzil for packaging/release
remove use 5.006;
fix lt/EUR mapping

0.03 Mon 26 Jun 14:36:07 UTC 2017
update ruby-money config, no code changes

File renamed without changes.
19 changes: 0 additions & 19 deletions MANIFEST

This file was deleted.

19 changes: 0 additions & 19 deletions MANIFEST.SKIP

This file was deleted.

66 changes: 0 additions & 66 deletions Makefile.PL

This file was deleted.

33 changes: 0 additions & 33 deletions README

This file was deleted.

52 changes: 52 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
[![Build Status](https://github.com/OpenCageData/perl5-Data-MoneyCurrency/actions/workflows/ci.yml/badge.svg)](https://github.com/OpenCageData/perl5-Data-MoneyCurrency/actions/workflows/ci.yml)
[![CPAN](https://img.shields.io/cpan/v/Data-MoneyCurrency.svg?style=flat-square)](https://metacpan.org/pod/Data::MoneyCurrency)
![Mastodon Follow](https://img.shields.io/mastodon/follow/109287663468501769?domain=https%3A%2F%2Fen.osm.town%2F&style=social)

# Data::MoneyCurrency

Get currency information for different currencies and countries

## Usage

For docs please see [the Data::MoneyCurrency page on search.metacpan.org](https://metacpan.org/pod/Data::MoneyCurrency)
or `perldoc Data::MoneyCurrency`.

## INSTALLATION

To install this module, use cpanm

cpanm Data::MoneyCurrency

## SUPPORT AND DOCUMENTATION

After installing, you can find documentation for this module with the
perldoc command.

perldoc Data::MoneyCurrency

You can also look for information at:

GitHub issues (report bugs here)
https://github.com/OpenCageData/perl5-Data-MoneyCurrency

Meta CPAN
https://metacpan.org/pod/Data::MoneyCurrency


## LICENSE AND COPYRIGHT

Copyright OpenCage GmbH
<cpan@opencagedata.com>

This is licensed under the MIT license, and includes code from the
RubyMoney/Money module, which is also licensed under the MIT license.

### Who is OpenCage GmbH?

<a href="https://opencagedata.com"><img src="opencage_logo_300_150.png"></a>

We run a worldwide [geocoding API](https://opencagedata.com/api) and [geosearch](https://opencagedata.com/geosearch) service based on open data.
Learn more [about us](https://opencagedata.com/about).

We also organize [Geomob](https://thegeomob.com), a series of regular meetups for location based service creators, where we do our best to highlight geoinnovation. If you like geo stuff, you will probably enjoy [the Geomob podcast](https://thegeomob.com/podcast/).

5 changes: 5 additions & 0 deletions SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Security Policy

## Reporting a Vulnerability

Please see the [OpenCage security bounty page](https://opencagedata.com/security-bounty)
Loading