Skip to content

Commit 5332813

Browse files
authored
v2.0.0 🎉 (#725)
1 parent a8497be commit 5332813

6 files changed

Lines changed: 151 additions & 36 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,12 @@
22

33
## Unreleased
44

5-
- **Breaking change**: Drop support for Ruby < 3 and Rails < 6.1
6-
- **Breaking change**: Requires `money` gem version ~> 7.0
5+
## 2.0.0
6+
7+
- **Breaking change**: Requires `money` gem version ~> 7.0.
8+
See the [Money 7.0 upgrading guide](https://github.com/RubyMoney/money/blob/main/UPGRADING-7.0.md)
9+
- **Breaking change**: Requires `monetize` gem version ~> 7.0
10+
- **Breaking change**: Drop support for Ruby < 3.1 and Rails < 6.1
711
- Allow monetizing methods with kwargs
812
- Fix `money_only_cents` for negative money
913
- Allow `nil` to be set as the default currency
@@ -307,4 +311,3 @@
307311
## 0.0.1
308312

309313
- Hello World
310-

CONTRIBUTORS

Lines changed: 112 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,162 @@
1+
Aaron Frase
2+
Abe Voelker
13
Alegzander
4+
Alex Willemsma
5+
Alexander Koltun
6+
Alexander Popov
7+
Alexander Simonov
8+
Alistair Holt
29
Andreas Loupasakis
10+
Andres Sild
11+
Andrew Boardman
312
Andrew Griffith
13+
Andrew Grimm
14+
Anthony Dmitriyev
415
Anthony Smith
16+
Anton
17+
Antonio Facciolo
18+
Antonis Berkakis
19+
Anuj Biyani
20+
Ari Pollak
21+
Bartosz Pochodaj
22+
Baz Scott
23+
Ben Kimpel
524
Ben Pickles
25+
Bert Bruynooghe
26+
Bertie Croll
627
Borna Novak
728
Bradley Schaefer
829
Brandon Beacher
930
Brian Armstrong
1031
Bryan Rite
11-
Carlos Hernandez
1232
Carlos Hernández
33+
Charlie
34+
Cheng Zheng
35+
Christian Schmidt
1336
Clarke Brunsdon
1437
Colin Bartlett
1538
Dan Beaulieu
39+
Dan Itsara
40+
Daniel Rice
41+
Daniel Smith
1642
Danil Pismenny
1743
David Pelaez
44+
David Vanoni
1845
Deepak Kannan
1946
Derek Bender
2047
Dmitriy Dudkin
48+
Donald Piret
49+
Dunya Kirkali
50+
Edith Emmings
51+
Emile Bosch
2152
Esdras Mayrink
2253
Felipe Rodrigues
2354
Fotos Georgiadis
2455
François KLINGLER
2556
Garrett Lancaster
57+
George Millo
58+
Geremia Taglialatela
2659
Gonzalo Rodríguez-Baltanás Díaz
2760
Graham Pengelly
61+
Graham Rogers
62+
Göktuğ Öztürk
2863
Hosam Aly
64+
Ian C. Anderson
65+
Igor Kapkov
66+
Ingo Tomahogh-Willms
2967
Jacob Vosmaer
68+
Jakob Hilden
69+
Jakub Pavlík
3070
James Chen
71+
James Chevalier
72+
James Jalandoni
73+
James Le Cuirot
3174
Jamie Dyer
75+
Jim Posen
3276
Joe Frambach
77+
Joe Kurleto
78+
Joe Nyland
79+
Joel Ambass
80+
Johannes Barre
3381
John Wood
82+
Joshua Pinter
83+
Josua Schmid
84+
Joyce Lee
85+
Juan Manuel Ramallo
86+
Juanito Fatas
3487
Julia López
88+
Julien ITARD
89+
Kasper Holbek Jensen
90+
Kasper Johansen
91+
Kassio Borges
92+
Kaz Walker
93+
Keith Broughton
94+
Kevin Ross
3595
Kevin Sołtysiak
96+
Kieran
3697
Kirill Shamardin
37-
Michael J.
98+
Kristaps Kulikovskis
99+
Manoj Mishra
100+
Manuel Meurer
101+
Mateusz Bugowski
102+
Michael J. Cohen
103+
Miguel Parramon
38104
Mike Boone
105+
Mike R
106+
Mohamed El Mahallawy
107+
Nathan Griffith
108+
Nazar Matus
109+
Neilos
110+
Nerian
39111
Nick
112+
Nick Pezza
40113
Nobu Funaki
114+
Oliver Klee
41115
Oliver Morgan
42116
Paolo Dona
117+
Patrick Oscity
118+
Paul Nikitochkin
43119
Paul Wittmann
44-
Ralf S.
120+
Paulo Santos
121+
Peter Goldstein
122+
RKushnir
123+
Ralf Schmitz Bongiolo
124+
Rich
45125
Richard Norton
126+
Richard Venneman
127+
Rodion
128+
Romain Sempe
129+
RuslanMac
46130
Rémi Prévost
131+
Sammy Larbi
47132
Shane Emmons
48133
Simone Carletti
134+
Siva Gollapalli
135+
Stefan Wrobel
136+
Steve Slotnick
137+
Sunny Ripert
138+
Tema Bolshakov
49139
Thomas Wright
140+
Tim Gremore
141+
Timo
142+
Timothy Stott
143+
Tobias Pfeiffer
144+
Tom G
145+
Vincent Touchard
146+
Vlatko Ristovski
147+
Wai-Yin Kwan
148+
Walop
149+
Will Jessop
50150
Xenor Chang
151+
Yuri Mikhaylov
51152
Yury Kaliada
153+
Zack Hubert
154+
Zane Wolfgang Pickett
52155
avbrychak
156+
camelmasa
157+
egorgorodov
158+
joerg
53159
ntudor
160+
orthographic-pedant
161+
tangopium
162+
Артём Большаков

Gemfile

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,11 @@ platforms :ruby do
1717
gem "sqlite3", "~> 1.4"
1818
end
1919

20-
group :development do
21-
gem "pry"
22-
gem "money", git: "https://github.com/RubyMoney/money.git"
23-
end
20+
# Debugging
21+
gem "pry"
22+
23+
# Specs
24+
gem "rspec-rails", "~> 6"
25+
26+
# Cleanup database on spec run
27+
gem "database_cleaner", "~> 2"

Rakefile

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,5 +72,15 @@ end
7272

7373
desc "Update CONTRIBUTORS file"
7474
task :contributors do
75-
sh "git shortlog -s | awk '{ print $2 \" \" $3 }' > CONTRIBUTORS"
75+
list = `git shortlog -s`.lines.map do |line|
76+
line
77+
.split("\t")
78+
.last
79+
.sub(/Carlos Hernandez/, "Carlos Hernández")
80+
.sub(/Ralf S. Bongiolo/, "Ralf Schmitz Bongiolo")
81+
.gsub(/ó/, "ó")
82+
end
83+
File.write("CONTRIBUTORS", list.uniq.sort.join)
7684
end
85+
86+
task "release:guard_clean" => :contributors

lib/money-rails/version.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
module MoneyRails
2-
VERSION = '1.15.0'
4+
VERSION = "2.0.0"
35
end

money-rails.gemspec

Lines changed: 11 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
require File.expand_path('../lib/money-rails/version', __FILE__)
1+
# frozen_string_literal: true
2+
3+
require File.expand_path("lib/money-rails/version", __dir__)
24

35
Gem::Specification.new do |s|
46
s.name = "money-rails"
@@ -11,36 +13,21 @@ Gem::Specification.new do |s|
1113
s.summary = "Money gem integration with Rails"
1214
s.homepage = "https://github.com/RubyMoney/money-rails"
1315

14-
s.files = Dir.glob("{lib,spec,config}/**/*")
15-
s.files += %w(CHANGELOG.md LICENSE README.md)
16-
s.files += %w(Rakefile money-rails.gemspec)
17-
18-
s.files.delete("spec/dummy/log")
19-
s.files.delete("spec/dummy/log/development.log")
20-
s.files.delete("spec/dummy/log/test.log")
21-
s.files.delete("spec/dummy/db/development.sqlite3")
22-
s.files.delete("spec/dummy/db/test.sqlite3")
23-
24-
s.test_files = s.files.grep(/^spec\//)
16+
s.files = `git ls-files -z -- lib/ config/ CHANGELOG.md LICENSE *.gemspec README.md`.split("\x0")
2517

2618
s.require_path = "lib"
2719

28-
s.required_ruby_version = '>= 3.1'
20+
s.required_ruby_version = ">= 3.1"
2921

30-
s.add_dependency "money", "~> 6.16"
31-
s.add_dependency "monetize", "~> 1.9"
22+
s.add_dependency "money", "~> 7.0"
23+
s.add_dependency "monetize", "~> 2.0"
3224
s.add_dependency "activesupport", ">= 6.1"
3325
s.add_dependency "railties", ">= 6.1"
3426

35-
s.add_development_dependency "rails", ">= 6.1", "< 8"
36-
s.add_development_dependency "rspec-rails", "~> 6"
37-
s.add_development_dependency "database_cleaner", '~> 2'
38-
s.add_development_dependency "bundler"
39-
4027
if s.respond_to?(:metadata)
41-
s.metadata['changelog_uri'] = 'https://github.com/RubyMoney/money-rails/blob/master/CHANGELOG.md'
42-
s.metadata['source_code_uri'] = 'https://github.com/RubyMoney/money-rails/'
43-
s.metadata['bug_tracker_uri'] = 'https://github.com/RubyMoney/money-rails/issues'
44-
s.metadata['rubygems_mfa_required'] = 'true'
28+
s.metadata["changelog_uri"] = "https://github.com/RubyMoney/money-rails/blob/master/CHANGELOG.md"
29+
s.metadata["source_code_uri"] = "https://github.com/RubyMoney/money-rails/"
30+
s.metadata["bug_tracker_uri"] = "https://github.com/RubyMoney/money-rails/issues"
31+
s.metadata["rubygems_mfa_required"] = "true"
4532
end
4633
end

0 commit comments

Comments
 (0)