Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
73 commits
Select commit Hold shift + click to select a range
6e21ee4
remove deprecated formatting rules
yukideluxe Jul 24, 2025
e22a48c
Specs: Remove spec for Money#pence which doesn’t exist
sunny Jul 25, 2025
8fac9bf
Merge pull request #1152 from sunny/remove-spec-for-pence
yukideluxe Jul 25, 2025
392a5b7
Deprecate `Money#dollars` when the currency is not USD
sunny Jul 25, 2025
4595f6c
Specs: Silence deprecation warning
sunny Jul 25, 2025
02f8786
Calling `#eql?` will return false if the currency differs, even for z…
sunny Jul 25, 2025
ee4fb1f
Replace docs on Inch CI with ones on github.io
yokomaru Jul 27, 2025
e1c6128
Merge pull request #1156 from yokomaru/replace-docs-budge-and-link
yukideluxe Jul 28, 2025
f58f801
Merge pull request #1151 from RubyMoney/jl-remove-deprecation-formatt…
yukideluxe Jul 30, 2025
956ece2
Merge pull request #1155 from sunny/eql-returns-false-if-currency-dif…
yukideluxe Jul 30, 2025
9011358
Deprecate from_dollars
sunny Aug 2, 2025
4f5db8b
Deprecate #dollars
sunny Aug 2, 2025
1b5f3a3
Minor spec shortening
sunny Aug 2, 2025
cd63ec8
Minor changes
sunny Aug 2, 2025
80eb00c
Minor spec updates
sunny Aug 8, 2025
3bfb4a2
Merge pull request #1153 from sunny/deprecate-calling-dollars-on-non-…
yukideluxe Aug 14, 2025
9f6505c
Adjust formatting rules to use i18n translations for `:format`
DRBragg Aug 18, 2025
bb1d006
Merge pull request #1157 from DRBragg/i18n-formatting
yukideluxe Aug 18, 2025
7ffab1c
Enable configurable precision for allocations (#1114)
faraquet Oct 27, 2025
3d88fdb
CI: Tell dependabot to update GH Actions (#1160)
olleolleolle Oct 27, 2025
d50bf95
Merge branch 'main' into silence-spec-warning
sunny Oct 27, 2025
5e15e9d
Bump actions/checkout from 4 to 5 (#1161)
dependabot[bot] Oct 27, 2025
c9bd513
RSpec: Use conditional hooks for money precision (#1138)
tagliala Nov 3, 2025
07fc576
Merge branch 'main' into silence-spec-warning
sunny Nov 3, 2025
a5853bf
Move default currency
sunny Nov 3, 2025
5c20334
Bump actions/checkout from 5 to 6 (#1164)
dependabot[bot] Nov 24, 2025
2ce2571
default_currency is no longer USD
c960657 Dec 4, 2025
db49c4f
Merge pull request #1165 from c960657/patch-1
yukideluxe Dec 4, 2025
5542470
Merge pull request #1154 from sunny/silence-spec-warning
yukideluxe Dec 4, 2025
d96fe08
Remove deprecated use_i18n and legacy locale backend
yukideluxe Dec 4, 2025
f4e5314
use RSpec hooks to remove duplication
yukideluxe Dec 4, 2025
b751843
Merge pull request #1166 from RubyMoney/jl-i18n-deprecation
yukideluxe Dec 4, 2025
f8582eb
Do not allow division by zero (#1148)
pranavbabu Dec 4, 2025
145fad0
Improve performance of find_by_iso_numeric method (#1147)
pranavbabu Dec 4, 2025
17fd5dc
Bump to 7.0.0
yukideluxe Dec 4, 2025
2e93bda
Tweaks in the documentation
yukideluxe Dec 4, 2025
ae102c1
Merge pull request #1167 from RubyMoney/jl-bump-7.0.0
yukideluxe Dec 4, 2025
d0f0586
remove deprecated platforms
yukideluxe Dec 6, 2025
2cabc3b
tweak README for better yard generation
yukideluxe Dec 6, 2025
ebf9721
fix yard config and use redcarpet for proper markdown parsing
yukideluxe Dec 6, 2025
759654d
fix yard warnings
yukideluxe Dec 6, 2025
4bb3064
include rdoc needed by yard
yukideluxe Dec 6, 2025
5450278
use platform :windows instead of :mingw, :x64_mingw
yukideluxe Dec 6, 2025
363f463
do not install redcarpet when using jruby
yukideluxe Dec 6, 2025
e1fcf03
Update README with customized currency symbol example (#1102)
ptadros Dec 8, 2025
78e3428
Merge pull request #1169 from RubyMoney/jl-update-yard
yukideluxe Dec 8, 2025
6482fb1
bump to 7.0.1 to fix permission error #1170
yukideluxe Dec 8, 2025
7f5fc34
Changelog update
yukideluxe Dec 8, 2025
7c39b35
Merge pull request #1171 from RubyMoney/jl-bump-7.0.1
yukideluxe Dec 8, 2025
c56b524
Add RuboCop linting (#1168)
sunny Dec 9, 2025
ba4632c
Lint: Move dev dependencies to Gemfile (#1174)
sunny Dec 9, 2025
143b1cd
Task to check file and dir permissions before a release (#1175)
sunny Dec 9, 2025
da05a31
Fix Money::Currency.register exception when table is not initialized …
sunny Dec 9, 2025
c344e94
v7.0.2
sunny Dec 10, 2025
4596969
Lint: Fix Layout/ArgumentAlignment (#1176)
sunny Dec 11, 2025
86f5827
Lint: Fix Layout/EndAlignment (#1177)
sunny Dec 11, 2025
3309010
Lint: Fix Style/ConditionalAssignment (#1180)
sunny Dec 11, 2025
27850e2
Lint: Fix trailing commas (#1179)
sunny Dec 11, 2025
5e12076
Lint: Fix Style/TrivialAccessors (#1178)
sunny Dec 11, 2025
809a3db
Lint: Fix Naming/BlockForwarding & Style/ArgumentsForwarding (#1182)
sunny Dec 11, 2025
b350fe1
Lint: Fix spacing (#1183)
sunny Dec 11, 2025
02fe18d
Lint: RSpec cops (#1181)
sunny Dec 11, 2025
ae2f3c5
Lint: Fix indentation (#1184)
sunny Dec 11, 2025
ca7b345
Lint: Fix naming cops (#1186)
sunny Dec 11, 2025
ad6aa14
Lint: Fix blocks (#1185)
sunny Dec 11, 2025
0d1edfc
Lint: Fix Redundant cops (#1187)
sunny Dec 12, 2025
08b5420
Lint: Fix RSpec context wording (#1188)
sunny Dec 12, 2025
894e538
Add RuboCop rake task (#1189)
sunny Dec 12, 2025
3d523b1
Lint: Fix RSpec subject cops (#1190)
sunny Dec 12, 2025
b6b00e7
Fix name for ANG currency
dideler Dec 12, 2025
c650cbd
Document ANG name fix in CHANGELOG
dideler Dec 15, 2025
a51506c
Fix name for ANG currency (#1191)
yukideluxe Dec 15, 2025
0db4686
Lint: Fix RSpec/MessageSpies
sunny Dec 15, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.rubocop_todo.yml linguist-generated
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
24 changes: 24 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Lint

on:
push:
branches: [main]
pull_request:
branches: [main]

permissions:
contents: read

jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: "3.4"
bundler-cache: true
- name: RuboCop
run: bin/rubocop --format github --format clang
17 changes: 13 additions & 4 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,29 @@ name: Ruby

on:
push:
branches: [ main ]
branches: [main]
pull_request:
branches: [ main ]
branches: [main]

permissions:
contents: read

jobs:
test:

runs-on: ubuntu-latest
strategy:
matrix:
ruby-version: ['3.1', '3.2', '3.3', '3.4', 'jruby-9.4', 'jruby-10.0']

steps:
- uses: actions/checkout@v4
- name: Set up Java for JRuby 10.0
if: matrix.ruby-version == 'jruby-10.0'
uses: actions/setup-java@v5
with:
distribution: 'temurin'
java-version: '21'
- name: Checkout repository
uses: actions/checkout@v6
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
.bundle
Gemfile.lock
pkg/*
bin/

# Rubinius
*.rbc
Expand Down
135 changes: 135 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,135 @@
inherit_from: .rubocop_todo.yml

plugins:
- rubocop-rake
- rubocop-rspec

AllCops:
NewCops: enable

# Bundler

Bundler/OrderedGems:
# Sort the gemspec dependencies by logical order instead of alphabetical.
Enabled: false

# Gemspec

Gemspec/OrderedDependencies:
# Sort the gemspec dependencies by logical order instead of alphabetical.
Enabled: false

# Layout

Layout/FirstHashElementIndentation:
EnforcedStyle: consistent

Layout/SpaceInsideArrayPercentLiteral:
# Sometimes spacing is used to align amounts.
Enabled: false

# Lint

Lint/BinaryOperatorWithIdenticalOperands:
# In specs we want to test instances of Money are really equal.
Exclude:
- 'spec/**/*'

Lint/EmptyClass:
# Allow defining empty classes, since it can be used as a base class.
Enabled: false

# RSpec

RSpec/DescribedClass:
Exclude:
# Prefer Money.new(…) to described_class.new(…)
- 'spec/money_spec.rb'
- 'spec/money/formatting_spec.rb'

RSpec/MultipleExpectations:
# Do not limit the amount of expectations in a spec
Enabled: false

# Style

Style/ClassAndModuleChildren:
# Sometimes the nested is better than the compact.
Enabled: false

Style/Documentation:
# Not all modules need a comment.
Enabled: false

Style/FrozenStringLiteralComment:
# Add `# frozen_string_literal: true` to all files.
EnforcedStyle: always_true
SafeAutoCorrect: true

Style/GuardClause:
# Not enforced since guard clauses can cause long lines as well.
Enabled: false

Style/IfUnlessModifier:
# Not enforced since having an if on its own line can help shorten a line.
Enabled: false

Style/NumericPredicate:
# Sometimes we prefer testing `== 0` over `.zero?`.
Enabled: false

Style/NumericLiterals:
# Some numbers in specs are tricky to represent with regular spacing.
Enabled: false

Style/OptionalBooleanParameter:
# We also need backwards compatiblity so it doesn’t always make sense to
# disallow arguments with a boolean default value.
Enabled: false

Style/PreferredHashMethods:
# Money::FormattingRules has `#has_key?` but not `#key?`.
Enabled: false

Style/QuotedSymbols:
# Prefer :"some symbol" to :'some symbol'.
EnforcedStyle: double_quotes

Style/StringLiterals:
# Prefer "double quotes" over 'single quotes'.
EnforcedStyle: double_quotes

Style/SymbolArray:
# Prefer [:a, :b] to %i[a b]
EnforcedStyle: brackets

Style/TrailingCommaInArguments:
# Prefer trailing commas in multiline arguments:
# call(
# a: 1,
# b: 2,
# )
EnforcedStyleForMultiline: diff_comma

Style/TrailingCommaInArrayLiteral:
# Prefer trailing commas in arrays:
# [
# 1,
# 2,
# ]
EnforcedStyleForMultiline: diff_comma

Style/TrailingCommaInHashLiteral:
# Prefer trailing commas in multiline hashes:
# {
# a: 1,
# b: 2,
# }
EnforcedStyleForMultiline: diff_comma

Style/YodaCondition:
# Sometimes in specs it makes more sense to write
# 2 >= Money.new(2, 'USD')
# over
# Money.new(2, 'USD') <= 2
Enabled: false
Loading