Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
11 changes: 11 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ plugins:
AllCops:
NewCops: enable

# Bundler

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

# Gemspec

Gemspec/OrderedDependencies:
Expand Down Expand Up @@ -43,6 +49,11 @@ 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
Expand Down
7 changes: 0 additions & 7 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,6 @@
# Note that changes in the inspected code, or installation of new
# versions of RuboCop, may require this file to be generated again.

# Configuration parameters: EnforcedStyle, AllowedGems.
# SupportedStyles: Gemfile, gems.rb, gemspec
Gemspec/DevelopmentDependencies:
Exclude:
- 'money.gemspec'

# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle, IndentationWidth.
# SupportedStyles: with_first_argument, with_fixed_indentation
Expand Down Expand Up @@ -668,7 +662,6 @@ Style/EmptyMethod:
Style/ExpandPathArguments:
Exclude:
- 'lib/money/currency/loader.rb'
- 'money.gemspec'

# This cop supports safe autocorrection (--autocorrect).
Style/ExplicitBlockArgument:
Expand Down
15 changes: 15 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,30 @@

source "https://rubygems.org"

# Debugger
gem "pry", require: false

# Types
gem "rbs", platforms: [:mri, :windows]
gem "typeprof", platforms: [:mri, :windows]

# Specs
gem "rspec", "~> 3.4"

# Spec coverage
gem "simplecov", require: false

# Tasks
gem "rake"

# Linting
gem "rubocop", require: false
gem "rubocop-rake", require: false
gem "rubocop-rspec", require: false

# Documentation
gem "yard", "~> 0.9.38"
gem "rdoc"
gem "redcarpet" unless RUBY_PLATFORM == "java"

gemspec
14 changes: 3 additions & 11 deletions money.gemspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

lib = File.expand_path('../lib', __FILE__)
lib = File.expand_path("lib", __dir__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require "money/version"

Expand All @@ -16,17 +16,9 @@ Gem::Specification.new do |s|
s.license = "MIT"

s.add_dependency "bigdecimal"
s.add_dependency 'i18n', "~> 1.9"
s.add_dependency "i18n", "~> 1.9"

s.add_development_dependency "bundler"
s.add_development_dependency "rake"
s.add_development_dependency "rspec", "~> 3.4"
# Documentation
s.add_development_dependency "yard", "~> 0.9.38"
s.add_development_dependency "rdoc"
s.add_development_dependency "redcarpet" unless RUBY_PLATFORM == "java"

s.required_ruby_version = '>= 3.1'
s.required_ruby_version = ">= 3.1"

s.files = `git ls-files -z -- config/* lib/* CHANGELOG.md LICENSE money.gemspec README.md`.split("\x0")
s.require_paths = ["lib"]
Expand Down