Skip to content

Commit fe8564f

Browse files
committed
Update generated gem files with current changes
These updates the generated files when creating a new gem with what's current including setup/console scripts. This updates the .gitignore with the defaults and adding the Gemfile.lock. For some reason it included the root bin directory despite being in git history, we want that though so we can remove it.
1 parent c0a6fb6 commit fe8564f

File tree

6 files changed

+42
-33
lines changed

6 files changed

+42
-33
lines changed

Diff for: .gitignore

+13-18
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,14 @@
1-
*.gem
2-
*.rbc
3-
.bundle
4-
.config
5-
.yardoc
1+
/.bundle/
2+
/.yardoc
3+
/_yardoc/
4+
/coverage/
5+
/doc/
6+
/pkg/
7+
/spec/reports/
8+
/spec/examples.txt
9+
/tmp/
10+
11+
# rspec failure tracking
12+
.rspec_status
13+
614
Gemfile.lock
7-
InstalledFiles
8-
_yardoc
9-
coverage
10-
doc/
11-
lib/bundler/man
12-
pkg
13-
rdoc
14-
spec/reports
15-
spec/examples.txt
16-
test/tmp
17-
test/version_tmp
18-
tmp
19-
bin

Diff for: README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ The following types are supported:
9494

9595
### Groups
9696

97-
Groups give you more flexibility to define when variables are needed.
97+
Groups give you more flexibility to define when variables are needed.
9898
It's similar to groups in a Gemfile:
9999

100100
```ruby
@@ -146,7 +146,7 @@ variable :FORCE_SSL, :boolean, default: 'false'
146146
variable :PORT, :integer, default: proc {|envied| envied.FORCE_SSL ? 443 : 80 }
147147
```
148148

149-
Please remember that ENVied only **reads** from ENV; it doesn't mutate ENV.
149+
Please remember that ENVied only **reads** from ENV; it doesn't mutate ENV.
150150
Don't let setting a default for, say `RAILS_ENV`, give you the impression that `ENV['RAILS_ENV']` is set.
151151
As a rule of thumb you should only use defaults:
152152
* for local development
@@ -219,7 +219,7 @@ bundle exec rspec
219219
## Developing
220220

221221
```bash
222-
bundle exec pry --gem
222+
bin/console
223223
```
224224

225225
## Contributing

Diff for: Rakefile

+2-6
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
require "bundler/gem_tasks"
2-
require 'rspec/core/rake_task'
2+
require "rspec/core/rake_task"
33

4-
RSpec::Core::RakeTask.new(:spec) do |s|
5-
s.ruby_opts = %w(-w)
6-
s.rspec_opts = '--format progress'
7-
end
4+
RSpec::Core::RakeTask.new(:spec)
85

9-
desc "Run the specs"
106
task default: :spec

Diff for: bin/console

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/usr/bin/env ruby
2+
3+
require "bundler/setup"
4+
require "envied"
5+
6+
# You can add fixtures and/or initialization code here to make experimenting
7+
# with your gem easier. You can also use a different console, if you like.
8+
9+
# (If you use this, don't forget to add pry to your Gemfile!)
10+
# require "pry"
11+
# Pry.start
12+
13+
require "irb"
14+
IRB.start(__FILE__)

Diff for: bin/setup

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/usr/bin/env bash
2+
set -euo pipefail
3+
IFS=$'\n\t'
4+
set -vx
5+
6+
bundle install
7+
8+
# Do any other automated setup that you need to do here

Diff for: spec/spec_helper.rb

+2-6
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
1-
require 'rubygems'
2-
require 'bundler'
3-
Bundler.setup
4-
5-
$:.unshift File.expand_path("../../lib", __FILE__)
6-
require 'envied'
1+
require "bundler/setup"
2+
require "envied"
73

84
RSpec.configure do |config|
95
# rspec-expectations config goes here. You can use an alternate

0 commit comments

Comments
 (0)