pry_to_irb_alias 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. checksums.yaml +7 -0
  2. data/lib/pry_to_irb_alias.rb +10 -0
  3. metadata +60 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: e78b20e362ab02be3943a4bfdd24a4f16b2ab49f1d5528689f404ff2c46fdb18
4
+ data.tar.gz: 81627560f9de3f1d5df907587968cdd2fb9766d015d18e4c94f0dff1944255da
5
+ SHA512:
6
+ metadata.gz: 4983e814b19b280ae4bea6f34938ebf8edac41870b32a568a4d5d7bafd9cbdc3f482a6430b661a1cc11b1277fc3d1409f3e5f8540f9d676c14fefa2faeca85f7
7
+ data.tar.gz: 78407f893e5f4479b69439f7aed4a39046a2132d2dc9c958708fdf952a89f694a6d108f28342825e97ed63047dc8d0571226fe38bc15df3102258a1457bf27d9
@@ -0,0 +1,10 @@
1
+ if defined?(TOPLEVEL_BINDING.pry)
2
+ STDERR.puts "pry exists in the project: remove it and pry_to_irb_alias will invoque `irb` when `binding.pry` is called."
3
+ else
4
+ TOPLEVEL_BINDING.class.class_eval do
5
+ def pry
6
+ STDERR.puts "\n`pry` is deprecated and removed from the project.\nPlease call `irb` next time.\n\n"
7
+ irb
8
+ end
9
+ end
10
+ end
metadata ADDED
@@ -0,0 +1,60 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: pry_to_irb_alias
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Thomas Brennetot
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2024-03-26 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: irb
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ description: Does your coworker have the muscle memory to write `binding.pry` then
28
+ that gem is for you. Migrate to `irb` without annoying your coworkers.
29
+ email:
30
+ - thomas@brennetot.com
31
+ executables: []
32
+ extensions: []
33
+ extra_rdoc_files: []
34
+ files:
35
+ - lib/pry_to_irb_alias.rb
36
+ homepage: https://github.com/D-system/pry_to_irb_alias
37
+ licenses:
38
+ - MIT
39
+ metadata:
40
+ source_code_uri: https://github.com/D-system/pry_to_irb_alias
41
+ post_install_message:
42
+ rdoc_options: []
43
+ require_paths:
44
+ - lib
45
+ required_ruby_version: !ruby/object:Gem::Requirement
46
+ requirements:
47
+ - - ">="
48
+ - !ruby/object:Gem::Version
49
+ version: 2.0.0
50
+ required_rubygems_version: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ requirements: []
56
+ rubygems_version: 3.5.5
57
+ signing_key:
58
+ specification_version: 4
59
+ summary: Smooth transition to IRB
60
+ test_files: []