Skip to content

Commit

Permalink
Update README and post installation instructions message (#320)
Browse files Browse the repository at this point in the history
- Recommend usage of 'bundle exec'.
- Update post installation instructions to use bundle exec.

My enviroment couldn't find the `i18n-task` executable without the use of `bundle exec`.
Showing this recommendation in the post installation message will make this more friendly for projects using this gem.
  • Loading branch information
dportalesr authored and glebm committed Dec 8, 2018
1 parent e2ffb33 commit 6662d80
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ $ cp $(i18n-tasks gem-path)/templates/minitest/i18n_test.rb test/

## Usage

Run `i18n-tasks` to get the list of all the tasks with short descriptions.
Run `bundle exec i18n-tasks` to get the list of all the tasks with short descriptions.

### Check health

Expand Down
4 changes: 2 additions & 2 deletions i18n-tasks.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ Gem::Specification.new do |s| # rubocop:disable Metrics/BlockLength
TEXT
s.post_install_message = <<~TEXT
# Install default configuration:
cp $(i18n-tasks gem-path)/templates/config/i18n-tasks.yml config/
cp $(bundle exec i18n-tasks gem-path)/templates/config/i18n-tasks.yml config/
# Add an RSpec for missing and unused keys:
cp $(i18n-tasks gem-path)/templates/rspec/i18n_spec.rb spec/
cp $(bundle exec i18n-tasks gem-path)/templates/rspec/i18n_spec.rb spec/
TEXT
s.homepage = 'https://github.com/glebm/i18n-tasks'
s.metadata = { 'issue_tracker' => 'https://github.com/glebm/i18n-tasks' } if s.respond_to?(:metadata=)
Expand Down

0 comments on commit 6662d80

Please sign in to comment.