Skip to content

Commit 162e150

Browse files
authored
[CHORE] Add an interactive console for the gem and add pry as a development dependency (#13)
* Add an interactive console for the gem and add pry as a development dependency * Add note to README
1 parent bacccf2 commit 162e150

File tree

4 files changed

+25
-1
lines changed

4 files changed

+25
-1
lines changed

Diff for: Gemfile.lock

+7-1
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,15 @@ GEM
77
remote: https://rubygems.org/
88
specs:
99
ast (2.3.0)
10+
coderay (1.1.1)
1011
diff-lcs (1.3)
12+
method_source (0.9.0)
1113
parser (2.4.0.0)
1214
ast (~> 2.2)
1315
powerpack (0.1.1)
16+
pry (0.11.3)
17+
coderay (~> 1.1.0)
18+
method_source (~> 0.9.0)
1419
rainbow (2.2.1)
1520
rake (11.3.0)
1621
rspec (3.5.0)
@@ -40,10 +45,11 @@ PLATFORMS
4045

4146
DEPENDENCIES
4247
bundler (~> 1.14)
48+
pry
4349
rake
4450
rspec
4551
rubocop (~> 0.48)
4652
vrt!
4753

4854
BUNDLED WITH
49-
1.15.3
55+
1.16.0

Diff for: README.md

+8
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,14 @@ rails generate vrt:install
2121
```
2222

2323
## Usage
24+
25+
For convenience in development, we provide a utility for spinning up a
26+
playground for playing with the gem. You can invoke it with:
27+
28+
```bash
29+
bin/console
30+
```
31+
2432
When one has a VRT Classification ID, one can check it's validity:
2533
```ruby
2634
vrt = VRT::Map.new

Diff for: bin/console

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/usr/bin/env ruby
2+
3+
require 'bundler/setup'
4+
require 'vrt'
5+
require 'pry'
6+
7+
# An interactive console for the VRT gem
8+
9+
Pry.start

Diff for: vrt.gemspec

+1
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,5 @@ Gem::Specification.new do |spec|
2222
spec.add_development_dependency 'rake'
2323
spec.add_development_dependency 'rspec'
2424
spec.add_development_dependency 'rubocop', '~> 0.48'
25+
spec.add_development_dependency 'pry'
2526
end

0 commit comments

Comments
 (0)