Browse Source

Add a console for manual investigation and debugging

develop^2
Bèr Kessels 3 months ago
parent
commit
e430fe27dc
3 changed files with 15 additions and 0 deletions
  1. 1
    0
      Gemfile
  2. 5
    0
      Gemfile.lock
  3. 9
    0
      bin/console

+ 1
- 0
Gemfile View File

@@ -29,6 +29,7 @@ group :development, :test do
29 29
   gem 'awesome_print'
30 30
   gem 'better_errors'
31 31
   gem 'byebug'
32
+  gem 'pry'
32 33
 
33 34
   gem 'foreman'
34 35
 end

+ 5
- 0
Gemfile.lock View File

@@ -40,6 +40,7 @@ GEM
40 40
     jsonapi-renderer (0.2.0)
41 41
     jsonapi-serializable (0.3.1)
42 42
       jsonapi-renderer (~> 0.2.0)
43
+    method_source (0.9.2)
43 44
     mini_portile2 (2.3.0)
44 45
     minitest (5.11.3)
45 46
     multi_json (1.13.1)
@@ -54,6 +55,9 @@ GEM
54 55
       ast (~> 2.4.0)
55 56
     pg (1.1.4)
56 57
     powerpack (0.1.2)
58
+    pry (0.12.2)
59
+      coderay (~> 1.1.0)
60
+      method_source (~> 0.9.0)
57 61
     rack (2.0.6)
58 62
     rack-protection (2.0.5)
59 63
       rack
@@ -103,6 +107,7 @@ DEPENDENCIES
103 107
   nokogiri
104 108
   nominatim!
105 109
   opening_hours_converter
110
+  pry
106 111
   rack-test
107 112
   rake
108 113
   rubocop

+ 9
- 0
bin/console View File

@@ -0,0 +1,9 @@
1
+#!/usr/bin/env ruby
2
+# frozen_string_literal: true
3
+
4
+require 'bundler/setup'
5
+require_relative '../lib/hours.rb'
6
+
7
+require 'pry'
8
+
9
+Pry.start

Loading…
Cancel
Save