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
2 changes: 1 addition & 1 deletion .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ jobs:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Run tests
run: bundle exec rspec spec
run: bin/rspec
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

1. Fork [the repo](https://github.com/RubyMoney/money)
2. Grab dependencies: `bundle install`
3. Make sure everything is working: `bundle exec rake spec`
3. Make sure everything is working: `bin/rake spec`
4. Make your changes
5. Test your changes
6. Create a Pull Request
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ The development version (hosted on Github) can be installed with:

git clone git://github.com/RubyMoney/money.git
cd money
rake install
bin/rake install

## Usage

Expand Down
18 changes: 9 additions & 9 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,33 +2,33 @@

# Clean
#
# rake clean
# rake clobber
# bin/rake clean
# bin/rake clobber

require "rake/clean"

CLOBBER.include("doc", ".yardoc")

# Bundler
#
# rake build
# rake release
# bin/rake build
# bin/rake release

require "bundler/gem_tasks"

gemspec = Gem::Specification.load("money.gemspec")

# RuboCop
#
# rake rubocop
# bin/rake rubocop

require "rubocop/rake_task"

RuboCop::RakeTask.new

# Yard
#
# rake yard
# bin/rake yard

require "yard"

Expand All @@ -41,7 +41,7 @@ end

# RSpec
#
# rake spec
# bin/rake spec

require "rspec/core/rake_task"

Expand All @@ -52,7 +52,7 @@ end

# File permissions
#
# rake check_permissions
# bin/rake check_permissions

desc "Check file permissions"
task :check_permissions do
Expand All @@ -76,6 +76,6 @@ task spec: :check_permissions

# Default task
#
# rake
# bin/rake

task default: [:rubocop, :spec]
2 changes: 1 addition & 1 deletion UPGRADING-7.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ currency.cents_based? # => true

3. **Run your test suite:**
```bash
bundle exec rake test # or rspec, etc.
bin/rake test # or rspec, etc.
```

4. **Check for deprecation warnings** and address them.
Expand Down
27 changes: 27 additions & 0 deletions bin/rake
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#!/usr/bin/env ruby
# frozen_string_literal: true

#
# This file was generated by Bundler.
#
# The application 'rake' is installed as part of a gem, and
# this file is here to facilitate running it.
#

ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)

bundle_binstub = File.expand_path("bundle", __dir__)

if File.file?(bundle_binstub)
if File.read(bundle_binstub, 300).include?("This file was generated by Bundler")
load(bundle_binstub)
else
abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
end
end

require "rubygems"
require "bundler/setup"

load Gem.bin_path("rake", "rake")
27 changes: 27 additions & 0 deletions bin/rspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#!/usr/bin/env ruby
# frozen_string_literal: true

#
# This file was generated by Bundler.
#
# The application 'rspec' is installed as part of a gem, and
# this file is here to facilitate running it.
#

ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)

bundle_binstub = File.expand_path("bundle", __dir__)

if File.file?(bundle_binstub)
if File.read(bundle_binstub, 300).include?("This file was generated by Bundler")
load(bundle_binstub)
else
abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
end
end

require "rubygems"
require "bundler/setup"

load Gem.bin_path("rspec-core", "rspec")
2 changes: 1 addition & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

Dir["./spec/support/**/*.rb"].each { |f| require f }

# This file was generated by the `rspec --init` command. Conventionally, all
# This file was generated by the `bin/rspec --init` command. Conventionally, all
# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
# The generated `.rspec` file contains `--require spec_helper` which will cause
# this file to always be loaded, without a need to explicitly require it in any
Expand Down