Skip to content

Commit 30ed159

Browse files
authored
Merge pull request #1110 from tagliala/chore/fix-links
Fix HTTP links
2 parents ba2adef + 23f294e commit 30ed159

File tree

8 files changed

+65
-65
lines changed

8 files changed

+65
-65
lines changed

CHANGELOG.md

Lines changed: 40 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ Features
432432

433433
Bugfixes
434434
--------
435-
- EEK currency is no longer used, kept for BC ([#issue/110](http://github.com/RubyMoney/money/issues/110))
435+
- EEK currency is no longer used, kept for BC ([#issue/110](https://github.com/RubyMoney/money/issues/110))
436436
- Lithuanian Litas symbol position fixed (laurynas)
437437
- Fixed README typos (phlipper)
438438
- Fixed README typos (pwim)
@@ -558,11 +558,11 @@ Bugfixes
558558
--------
559559
- Updated Money#to_s to respect :separator and :subunit_to_unit.
560560
- Fixed Money#format for :subunit_to_unit != 100.
561-
([#issue/37](http://github.com/RubyMoney/money/issue/37))
561+
([#issue/37](https://github.com/RubyMoney/money/issues/37))
562562
- Fixed String#to_money for :subunit_to_unit != 100.
563-
([#issue/36](http://github.com/RubyMoney/money/issue/36))
563+
([#issue/36](https://github.com/RubyMoney/money/issues/36))
564564
- Removed duplicate currencies.
565-
([#issue/38](http://github.com/RubyMoney/money/issue/38))
565+
([#issue/38](https://github.com/RubyMoney/money/issues/38))
566566
- Fixed issue related to JRuby returning 2 for Math.log10(1000).floor instead
567567
of correctly returning 3.
568568

@@ -573,22 +573,22 @@ Features
573573
--------
574574
- Added support for creating objects with the main monetary unit instead of
575575
cents.
576-
([#issue/25](http://github.com/RubyMoney/money/issues/25))
576+
([#issue/25](https://github.com/RubyMoney/money/issues/25))
577577
- Deprecated `Money#format` with separate params instead of Hash. Deprecation
578578
target set to Money 3.5.0.
579-
([#issue/31](http://github.com/RubyMoney/money/issues/31))
579+
([#issue/31](https://github.com/RubyMoney/money/issues/31))
580580
- Deprecated `Money#new(0, currency: "EUR")` in favor of
581581
`Money#new(0, "EUR")`. Deprecation target set to Money 3.5.0.
582-
([#issue/31](http://github.com/RubyMoney/money/issues/31))
582+
([#issue/31](https://github.com/RubyMoney/money/issues/31))
583583
- Throw ArgumentError when trying to multiply two Money objects together.
584-
([#issue/29](http://github.com/RubyMoney/money/issues/29))
584+
([#issue/29](https://github.com/RubyMoney/money/issues/29))
585585
- Update Money#parse to use :subunit_to_unit
586-
([#issue/30](http://github.com/RubyMoney/money/issues/30))
586+
([#issue/30](https://github.com/RubyMoney/money/issues/30))
587587

588588
Bugfixes
589589
--------
590590
- Downgraded required_rubygems_version to >= 1.3.6.
591-
([#issue/26](http://github.com/RubyMoney/money/issues/26))
591+
([#issue/26](https://github.com/RubyMoney/money/issues/26))
592592
- Use BigDecimal when floating point calculations are needed.
593593
- Ruby 1.9.2 compatibility enhancements.
594594

@@ -598,7 +598,7 @@ Money 3.1.0
598598
Features
599599
--------
600600
- Implemented `Money::Bank::Base`.
601-
([#issue/14](http://github.com/RubyMoney/money/issues/14))
601+
([#issue/14](https://github.com/RubyMoney/money/issues/14))
602602
- Added `Money::Bank::Base#exchange_with`.
603603
- Deprecated `Money::Bank::Base#exchange`. Deprecation target set to Money
604604
3.2.0.
@@ -607,54 +607,54 @@ Features
607607
3.2.0.
608608
- Deprecate `Money::SYMBOLS`, `Money::SEPARATORS` and `Money::DELIMITERS`.
609609
Deprecation target set to Money 3.2.0.
610-
([#issue/16](http://github.com/RubyMoney/money/issues/16))
610+
([#issue/16](https://github.com/RubyMoney/money/issues/16))
611611
- Implemented `#has` for `Money` and `Money::Currency`.
612612
- Refactored test suite to conform to RSpec conventions.
613-
- Moved project from [FooBarWidget](http://github.com/FooBarWidget) to
614-
[RubyMoney](http://github.com/RubyMoney)
613+
- Moved project from [FooBarWidget](https://github.com/FooBarWidget) to
614+
[RubyMoney](https://github.com/RubyMoney)
615615
- Added Simone Carletti to list of authors.
616616
- Moved `@rounding_method` from `Money::Bank::VariableExchange` to
617617
`Money::Bank::Base`.
618-
([#issue/18](http://github.com/RubyMoney/money/issues/18))
618+
([#issue/18](https://github.com/RubyMoney/money/issues/18))
619619
- Added `#setup` to `Money::Bank::Base`. Called from `#initialize`.
620-
([#issue/19](http://github.com/RubyMoney/money/issues/19))
621-
- Added [google_currency](http://github.com/RubyMoney/google_currency) to list
620+
([#issue/19](https://github.com/RubyMoney/money/issues/19))
621+
- Added [google_currency](https://github.com/RubyMoney/google_currency) to list
622622
of Currency Exchange Implementations.
623623
- Added `#export_rates` to `Money::Bank::VariableExchange`.
624-
([#issue/21](http://github.com/RubyMoney/money/issues/21))
624+
([#issue/21](https://github.com/RubyMoney/money/issues/21))
625625
- Added `#import_rates` to `Money::Bank::VariableExchange`.
626-
([#issue/21](http://github.com/RubyMoney/money/issues/21))
626+
([#issue/21](https://github.com/RubyMoney/money/issues/21))
627627
- Removed dependency on Jeweler.
628628
- Replaced usage of hanna with yardoc.
629629
- Rewrote/reformatted all documentation.
630630

631631
Bugfixes
632632
--------
633633
- Fixed incorrect URLs in documentation.
634-
([#issue/17](http://github.com/RubyMoney/money/issues/17))
634+
([#issue/17](https://github.com/RubyMoney/money/issues/17))
635635
- Updated `:subunit_to_unit` for HKD from 10 to 100.
636-
([#issue/20](http://github.com/RubyMoney/money/issues/20))
636+
([#issue/20](https://github.com/RubyMoney/money/issues/20))
637637
- Updated Ghanaian Cedi to use correct ISO Code, GHS.
638-
([#issue/22](http://github.com/RubyMoney/money/issues/22))
638+
([#issue/22](https://github.com/RubyMoney/money/issues/22))
639639
- Make `default` rake task call `spec`.
640-
([#issue/23](http://github.com/RubyMoney/money/issues/23))
640+
([#issue/23](https://github.com/RubyMoney/money/issues/23))
641641

642642
Money 3.1.0.pre3
643643
================
644644

645645
Features
646646
--------
647-
- Added [google_currency](http://github.com/RubyMoney/google_currency) to list
647+
- Added [google_currency](https://github.com/RubyMoney/google_currency) to list
648648
of Currency Exchange Implementations.
649649
- Added `#export_rates` to `Money::Bank::VariableExchange`.
650-
([#issue/21](http://github.com/RubyMoney/money/issues/21))
650+
([#issue/21](https://github.com/RubyMoney/money/issues/21))
651651
- Added `#import_rates` to `Money::Bank::VariableExchange`.
652-
([#issue/21](http://github.com/RubyMoney/money/issues/21))
652+
([#issue/21](https://github.com/RubyMoney/money/issues/21))
653653

654654
Bugfixes
655655
--------
656656
- Updated `:subunit_to_unit` for HKD from 10 to 100.
657-
([#issue/20](http://github.com/RubyMoney/money/issues/20))
657+
([#issue/20](https://github.com/RubyMoney/money/issues/20))
658658

659659
Money 3.1.0.pre2
660660
================
@@ -663,22 +663,22 @@ Features
663663
--------
664664
- Moved `@rounding_method` from `Money::Bank::VariableExchange` to
665665
`Money::Bank::Base`.
666-
([#issue/18](http://github.com/RubyMoney/money/issues/18))
666+
([#issue/18](https://github.com/RubyMoney/money/issues/18))
667667
- Added `#setup` to `Money::Bank::Base`. Called from `#initialize`.
668-
([#issue/19](http://github.com/RubyMoney/money/issues/19))
668+
([#issue/19](https://github.com/RubyMoney/money/issues/19))
669669

670670
Bugfixes
671671
--------
672672
- Fixed incorrect URLs in documentation.
673-
([#issue/17](http://github.com/RubyMoney/money/issues/17))
673+
([#issue/17](https://github.com/RubyMoney/money/issues/17))
674674

675675
Money 3.1.0.pre1
676676
================
677677

678678
Features
679679
--------
680680
- Implemented `Money::Bank::Base`.
681-
([#issue/14](http://github.com/RubyMoney/money/issues/14))
681+
([#issue/14](https://github.com/RubyMoney/money/issues/14))
682682
- Added `Money::Bank::Base#exchange_with`.
683683
- Deprecated `Money::Bank::Base#exchange`. Deprecation target set to Money
684684
3.2.0.
@@ -687,17 +687,17 @@ Features
687687
3.2.0.
688688
- Deprecate `Money::SYMBOLS`, `Money::SEPARATORS` and `Money::DELIMITERS`.
689689
Deprecation target set to Money 3.2.0.
690-
([#issue/16](http://github.com/RubyMoney/money/issues/16))
690+
([#issue/16](https://github.com/RubyMoney/money/issues/16))
691691
- Implemented `#has` for `Money` and `Money::Currency`.
692692
- Refactored test suite to conform to RSpec conventions.
693-
- Moved project from [FooBarWidget](http://github.com/FooBarWidget) to
694-
[RubyMoney](http://github.com/RubyMoney)
693+
- Moved project from [FooBarWidget](https://github.com/FooBarWidget) to
694+
[RubyMoney](https://github.com/RubyMoney)
695695
- Added Simone Carletti to list of authors.
696696

697697
Bugfixes
698698
--------
699699
- Fixed rounding error in `Numeric#to_money`.
700-
([#issue/15](http://github.com/RubyMoney/money/issues/15))
700+
([#issue/15](https://github.com/RubyMoney/money/issues/15))
701701

702702
Money 3.0.5
703703
===========
@@ -708,11 +708,11 @@ Features
708708
- Added ability to pass a block to `VariableExchangeBank#new` or `#exchange`,
709709
specifying a custom truncation method
710710
- Added optional `currency` argument to` Numeric#to_money`.
711-
([#issue/11](http://github.com/RubyMoney/money/issues/11))
711+
([#issue/11](https://github.com/RubyMoney/money/issues/11))
712712
- Added optional `currency` argument to `String#to_money`.
713-
([#issue/11](http://github.com/RubyMoney/money/issues/11))
713+
([#issue/11](https://github.com/RubyMoney/money/issues/11))
714714
- Use '¤' as the default currency symbol.
715-
([#issue/10](http://github.com/RubyMoney/money/issues/10))
715+
([#issue/10](https://github.com/RubyMoney/money/issues/10))
716716

717717
Bugfixes
718718
--------
@@ -721,7 +721,7 @@ Bugfixes
721721
- Fixed issue when exchanging currencies with different `:subunit_to_unit`
722722
values.
723723
- `Numeric#to_money` now respects `:subunit_to_unit`.
724-
([#issue/12](http://github.com/RubyMoney/money/issues/12))
724+
([#issue/12](https://github.com/RubyMoney/money/issues/12))
725725

726726
Money 3.0.4
727727
===========
@@ -768,7 +768,7 @@ Features
768768
--------
769769
- Version Bump due to compatibility changes with ActiveRecord. See
770770
conversation
771-
[here](http://github.com/RubyMoney/money/issues#issue/4/comment/224880)
771+
[here](https://github.com/RubyMoney/money/issues/4#issuecomment-224880)
772772
for more information.
773773

774774
Money 2.3.0

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@
22

33
[![Gem Version](https://badge.fury.io/rb/money.svg)](https://rubygems.org/gems/money)
44
[![Ruby](https://github.com/RubyMoney/money/actions/workflows/ruby.yml/badge.svg)](https://github.com/RubyMoney/money/actions/workflows/ruby.yml)
5-
[![Code Climate](https://codeclimate.com/github/RubyMoney/money.svg)](https://codeclimate.com/github/RubyMoney/money)
5+
[![Maintainability](https://api.codeclimate.com/v1/badges/fa5311ad7b2fe88c54c8/maintainability)](https://codeclimate.com/github/RubyMoney/money/maintainability)
66
[![Inline docs](https://inch-ci.org/github/RubyMoney/money.svg)](https://inch-ci.org/github/RubyMoney/money)
7-
[![License](https://img.shields.io/github/license/RubyMoney/money.svg)](https://opensource.org/licenses/MIT)
7+
[![License](https://img.shields.io/github/license/RubyMoney/money.svg)](https://opensource.org/license/MIT)
88

99
:warning: Please read the [migration notes](#migration-notes) before upgrading to a new major version.
1010

1111
If you miss String parsing, check out the new [monetize gem](https://github.com/RubyMoney/monetize).
1212

1313
## Contributing
1414

15-
See the [Contribution Guidelines](https://github.com/RubyMoney/money/blob/master/CONTRIBUTING.md)
15+
See the [Contribution Guidelines](https://github.com/RubyMoney/money/blob/main/CONTRIBUTING.md)
1616

1717
## Introduction
1818

@@ -33,7 +33,7 @@ A Ruby Library for dealing with money and currency conversion.
3333
### Resources
3434

3535
- [Website](https://rubymoney.github.io/money/)
36-
- [API Documentation](http://www.rubydoc.info/gems/money/frames)
36+
- [API Documentation](https://www.rubydoc.info/gems/money/frames)
3737
- [Git Repository](https://github.com/RubyMoney/money)
3838

3939
### Notes
@@ -199,13 +199,13 @@ using:
199199
Money.default_currency = Money::Currency.new("CAD")
200200
```
201201

202-
If you use [Rails](https://github.com/RubyMoney/money/tree/master#ruby-on-rails), then `config/initializers/money.rb` is a very good place to put this.
202+
If you use [Rails](https://github.com/RubyMoney/money/tree/main#ruby-on-rails), then `config/initializers/money.rb` is a very good place to put this.
203203

204204
### Currency Exponent
205205

206206
The exponent of a money value is the number of digits after the decimal
207207
separator (which separates the major unit from the minor unit). See e.g.
208-
[ISO 4217](https://www.currency-iso.org/en/shared/amendments/iso-4217-amendment.html) for more
208+
[ISO 4217](https://www.iso.org/iso-4217-currency-codes.html) for more
209209
information. You can find the exponent (as an `Integer`) by
210210

211211
``` ruby
@@ -408,7 +408,7 @@ Money.from_cents(1000, 'USD').exchange_to('CAD') #=> #<Money fractional:900 curr
408408
```
409409

410410
There is nothing stopping you from creating store objects which scrapes
411-
[XE](http://www.xe.com) for the current rates or just returns `rand(2)`:
411+
[XE](https://www.xe.com) for the current rates or just returns `rand(2)`:
412412

413413
``` ruby
414414
Money.default_bank = Money::Bank::VariableExchange.new(StoreWhichScrapesXeDotCom.new)
@@ -446,9 +446,9 @@ implementations.
446446

447447
## Formatting
448448

449-
There are several formatting rules for when `Money#format` is called. For more information, check out the [formatting module source](https://github.com/RubyMoney/money/blob/master/lib/money/money/formatter.rb), or read the latest release's [rdoc version](http://www.rubydoc.info/gems/money/Money/Formatter).
449+
There are several formatting rules for when `Money#format` is called. For more information, check out the [formatting module source](https://github.com/RubyMoney/money/blob/main/lib/money/money/formatter.rb), or read the latest release's [rdoc version](https://www.rubydoc.info/gems/money/Money/Formatter).
450450

451-
If you wish to format money according to the EU's [Rules for expressing monetary units](http://publications.europa.eu/code/en/en-370303.htm#position) in either English, Irish, Latvian or Maltese:
451+
If you wish to format money according to the EU's [Rules for expressing monetary units](https://style-guide.europa.eu/en/content/-/isg/topic?identifier=7.3.3-rules-for-expressing-monetary-units#id370303__id370303_PositionISO) in either English, Irish, Latvian or Maltese:
452452

453453
```ruby
454454
m = Money.from_cents('123', :gbp) # => #<Money fractional:123 currency:GBP>

lib/money/currency.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ class Money
77
# Represents a specific currency unit.
88
#
99
# @see https://en.wikipedia.org/wiki/Currency
10-
# @see http://iso4217.net/
10+
# @see https://www.iso.org/iso-4217-currency-codes.html
1111
class Currency
1212
include Comparable
1313
extend Enumerable
@@ -111,13 +111,13 @@ def wrap(object)
111111
#
112112
# == monetary unit
113113
# The standard unit of value of a currency, as the dollar in the United States or the peso in Mexico.
114-
# https://www.answers.com/topic/monetary-unit
114+
# https://www.answers.com/redirectSearch?query=monetary-unit
115115
# == fractional monetary unit, subunit
116116
# A monetary unit that is valued at a fraction (usually one hundredth) of the basic monetary unit
117-
# https://www.answers.com/topic/fractional-monetary-unit-subunit
117+
# https://www.answers.com/redirectSearch?query=fractional-monetary-unit-subunit
118118
#
119119
# See https://en.wikipedia.org/wiki/List_of_circulating_currencies and
120-
# http://search.cpan.org/~tnguyen/Locale-Currency-Format-1.28/Format.pm
120+
# https://metacpan.org/release/TNGUYEN/Locale-Currency-Format-1.28/view/Format.pm
121121
def table
122122
@table ||= Loader.load_currencies
123123
end
@@ -140,7 +140,7 @@ def all
140140

141141
# We need a string-based validator before creating an unbounded number of
142142
# symbols.
143-
# http://www.randomhacks.net/articles/2007/01/20/13-ways-of-looking-at-a-ruby-symbol#11
143+
# http://www.randomhacks.net.s3-website-us-east-1.amazonaws.com/2007/01/20/13-ways-of-looking-at-a-ruby-symbol/#11
144144
# https://github.com/RubyMoney/money/issues/132
145145
#
146146
# @return [Set]

lib/money/money.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#
1515
# Money is a value object and should be treated as immutable.
1616
#
17-
# @see http://en.wikipedia.org/wiki/Money
17+
# @see https://en.wikipedia.org/wiki/Money
1818
class Money
1919
include Comparable
2020
include Money::Arithmetic

lib/money/money/formatting_rules.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def determine_format_from_formatting_rules(rules)
9191

9292
def delimiter_pattern_rule(rules)
9393
if rules[:south_asian_number_formatting]
94-
# from http://blog.revathskumar.com/2014/11/regex-comma-seperated-indian-currency-format.html
94+
# from https://blog.revathskumar.com/2014/11/regex-comma-seperated-indian-currency-format.html
9595
/(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/
9696
else
9797
/(\d)(?=(?:\d{3})+(?:[^\d]{1}|$))/

money.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Gem::Specification.new do |s|
2828
s.require_paths = ["lib"]
2929

3030
if s.respond_to?(:metadata)
31-
s.metadata['changelog_uri'] = 'https://github.com/RubyMoney/money/blob/master/CHANGELOG.md'
31+
s.metadata['changelog_uri'] = 'https://github.com/RubyMoney/money/blob/main/CHANGELOG.md'
3232
s.metadata['source_code_uri'] = 'https://github.com/RubyMoney/money/'
3333
s.metadata['bug_tracker_uri'] = 'https://github.com/RubyMoney/money/issues'
3434
s.metadata['rubygems_mfa_required'] = 'true'

sig/lib/money/currency.rbs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ class Money
22
# Represents a specific currency unit.
33
#
44
# @see https://en.wikipedia.org/wiki/Currency
5-
# @see http://iso4217.net/
5+
# @see https://www.iso.org/iso-4217-currency-codes.html
66
class Currency
77
include Comparable
88

@@ -70,13 +70,13 @@ class Money
7070
#
7171
# == monetary unit
7272
# The standard unit of value of a currency, as the dollar in the United States or the peso in Mexico.
73-
# https://www.answers.com/topic/monetary-unit
73+
# https://www.answers.com/redirectSearch?query=monetary-unit
7474
# == fractional monetary unit, subunit
7575
# A monetary unit that is valued at a fraction (usually one hundredth) of the basic monetary unit
76-
# https://www.answers.com/topic/fractional-monetary-unit-subunit
76+
# https://www.answers.com/redirectSearch?query=fractional-monetary-unit-subunit
7777
#
7878
# See https://en.wikipedia.org/wiki/List_of_circulating_currencies and
79-
# http://search.cpan.org/~tnguyen/Locale-Currency-Format-1.28/Format.pm
79+
# https://metacpan.org/release/TNGUYEN/Locale-Currency-Format-1.28/view/Format.pm
8080
def self.table: () -> untyped
8181

8282
# List the currencies imported and registered
@@ -89,7 +89,7 @@ class Money
8989

9090
# We need a string-based validator before creating an unbounded number of
9191
# symbols.
92-
# http://www.randomhacks.net/articles/2007/01/20/13-ways-of-looking-at-a-ruby-symbol#11
92+
# http://www.randomhacks.net.s3-website-us-east-1.amazonaws.com/2007/01/20/13-ways-of-looking-at-a-ruby-symbol/#11
9393
# https://github.com/RubyMoney/money/issues/132
9494
#
9595
# @return [Set]
@@ -306,4 +306,4 @@ class Money
306306

307307
def initialize_data!: () -> untyped
308308
end
309-
end
309+
end

0 commit comments

Comments
 (0)