summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Arko <andre@arko.net>2015-05-10 20:22:01 -0700
committerAndre Arko <andre@arko.net>2015-05-11 13:08:46 -0700
commitd65d78e52105a68a571aa524fd929bcbfe641540 (patch)
tree470b1de10eb9cbff4bebf7ebdbfbe1593a934310
parente69a0354157a61fd877bc63c5ee9e715c4bde276 (diff)
downloadbundler-d65d78e52105a68a571aa524fd929bcbfe641540.tar.gz
[gem] simplify test instructions in readme
-rw-r--r--lib/bundler/templates/newgem/README.md.tt4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bundler/templates/newgem/README.md.tt b/lib/bundler/templates/newgem/README.md.tt
index 72a228bd7d..064381e908 100644
--- a/lib/bundler/templates/newgem/README.md.tt
+++ b/lib/bundler/templates/newgem/README.md.tt
@@ -1,6 +1,6 @@
# <%=config[:constant_name]%>
-Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/<%=config[:namespaced_path]%>`. To experiment with that code, run `bin/console` for an interactive prompt.<% if %w[minitest rspec].include?(config[:test]) %> Run <% if config[:test] == 'rspec' %>`rake spec`<% else %>`rake test`<% end %> to run the test suite.<% end %>
+Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/<%=config[:namespaced_path]%>`. To experiment with that code, run `bin/console` for an interactive prompt.
TODO: Delete this and the text above, and describe your gem
@@ -26,7 +26,7 @@ TODO: Write usage instructions here
## Development
-After checking out the repo, run `bin/setup` to install dependencies. Then, run `bin/console` for an interactive prompt that will allow you to experiment.<% if config[:bin] %> Run `bundle exec <%= config[:name] %>` to use the code located in this directory, ignoring other installed copies of this gem.<% end %><% if %w[minitest rspec].include?(config[:test]) %> Run <% if config[:test] == 'rspec' %>`rake spec`<% else %>`rake test`<% end %> to run the test suite.<% end %>
+After checking out the repo, run `bin/setup` to install dependencies.<% if config[:test] %> Then, run `rake <%= config[:test].sub('mini', '') %>` to run the tests.<% end %> You can also run `bin/console` for an interactive prompt that will allow you to experiment.<% if config[:bin] %> Run `bundle exec <%= config[:name] %>` to use the gem in this directory, ignoring other installed copies of this gem.<% end %>
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).