Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

023/master #24

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
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
4 changes: 4 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ Metrics/BlockLength:
Exclude:
- 'spec/**/*'

Style/FrozenStringLiteralComment:
Exclude:
- 'snippets/**/*'

AllCops:
TargetRubyVersion:
2.3
Expand Down
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.3.1
2.5.0
14 changes: 7 additions & 7 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
# frozen_string_literal: true

source 'https://rubygems.org'
ruby '2.3.1'
gem 'byebug', '~> 9.0'
gem 'pry', '~> 0.10'
gem 'pry-byebug', '~> 3.3'
gem 'rake', '~> 11.3'
gem 'rspec', '~> 3.5'
gem 'rubocop', '~> 0.46'
ruby '2.5.0'
gem 'byebug', '~> 10.0.0'
gem 'pry', '~> 0.11.3'
gem 'pry-byebug', '~> 3.6.0'
gem 'rake', '~> 12.3'
gem 'rspec', '~> 3.7.0'
gem 'rubocop', '~> 0.52.1'
78 changes: 39 additions & 39 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,59 +1,59 @@
GEM
remote: https://rubygems.org/
specs:
ast (2.3.0)
byebug (9.0.6)
coderay (1.1.1)
diff-lcs (1.2.5)
method_source (0.8.2)
parser (2.3.3.1)
ast (~> 2.2)
ast (2.4.0)
byebug (10.0.0)
coderay (1.1.2)
diff-lcs (1.3)
method_source (0.9.0)
parallel (1.12.1)
parser (2.4.0.2)
ast (~> 2.3)
powerpack (0.1.1)
pry (0.10.4)
pry (0.11.3)
coderay (~> 1.1.0)
method_source (~> 0.8.1)
slop (~> 3.4)
pry-byebug (3.4.0)
byebug (~> 9.0)
method_source (~> 0.9.0)
pry-byebug (3.6.0)
byebug (~> 10.0)
pry (~> 0.10)
rainbow (2.1.0)
rake (11.3.0)
rspec (3.5.0)
rspec-core (~> 3.5.0)
rspec-expectations (~> 3.5.0)
rspec-mocks (~> 3.5.0)
rspec-core (3.5.4)
rspec-support (~> 3.5.0)
rspec-expectations (3.5.0)
rainbow (3.0.0)
rake (12.3.0)
rspec (3.7.0)
rspec-core (~> 3.7.0)
rspec-expectations (~> 3.7.0)
rspec-mocks (~> 3.7.0)
rspec-core (3.7.1)
rspec-support (~> 3.7.0)
rspec-expectations (3.7.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.5.0)
rspec-mocks (3.5.0)
rspec-support (~> 3.7.0)
rspec-mocks (3.7.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.5.0)
rspec-support (3.5.0)
rubocop (0.46.0)
parser (>= 2.3.1.1, < 3.0)
rspec-support (~> 3.7.0)
rspec-support (3.7.1)
rubocop (0.52.1)
parallel (~> 1.10)
parser (>= 2.4.0.2, < 3.0)
powerpack (~> 0.1)
rainbow (>= 1.99.1, < 3.0)
rainbow (>= 2.2.2, < 4.0)
ruby-progressbar (~> 1.7)
unicode-display_width (~> 1.0, >= 1.0.1)
ruby-progressbar (1.8.1)
slop (3.6.0)
unicode-display_width (1.1.2)
ruby-progressbar (1.9.0)
unicode-display_width (1.3.0)

PLATFORMS
ruby

DEPENDENCIES
byebug (~> 9.0)
pry (~> 0.10)
pry-byebug (~> 3.3)
rake (~> 11.3)
rspec (~> 3.5)
rubocop (~> 0.46)
byebug (~> 10.0.0)
pry (~> 0.11.3)
pry-byebug (~> 3.6.0)
rake (~> 12.3)
rspec (~> 3.7.0)
rubocop (~> 0.52.1)

RUBY VERSION
ruby 2.3.1p112
ruby 2.5.0p0

BUNDLED WITH
1.13.5
1.16.1
35 changes: 0 additions & 35 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,41 +27,6 @@ in [`lib/tasks/aliases.rake`](lib/tasks/aliases.rake).
Developers should store ruby files in [`lib`](lib), or perhaps a subdirectory.
If a command line script is needed, it should go in [`bin`](bin).

## Code blocks

With this in the markdown:

&lt;!-- start code block file="lib/example.rb" --&gt;

This gets replaced with the contents of `lib/example.rb`

&lt;!-- end code block --&gt;

running:

```sh
cp README.md README.bak
bin/add-code-block.rb README.bak >README.md
```

produces:

<!-- start code block file="lib/example.rb" -->
```rb
# frozen_string_literal: true

# An example class
class Example
attr_accessor :value
def initialize(value = 0)
@value = value
end
end
```
<!-- end code block -->

Check the markdown source to see what happens.

## Tasks

Developers should run these often!
Expand Down
32 changes: 0 additions & 32 deletions bin/add-code-block.rb

This file was deleted.

2 changes: 1 addition & 1 deletion bin/rake
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/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
Expand Down
2 changes: 1 addition & 1 deletion bin/rspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/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
Expand Down
2 changes: 1 addition & 1 deletion bin/rubocop
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env ruby
# frozen_string_literal: true
#

# This file was generated by Bundler.
#
# The application 'rubocop' is installed as part of a gem, and
Expand Down
2 changes: 1 addition & 1 deletion lib/tasks/aliases.rake
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ desc 'Check code'
task test: :spec

desc 'lint and run tests'
task default: [:nag, :test]
task default: %i[nag test]