every_day_irb 2.1.1 → 2.3.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 63b54ae5658ab766b9b11309684504b8fa40ed1ba8514d20c7794c90cb73275f
4
- data.tar.gz: 2f9f355a588e94980e8e7186e5f9ad789b1ddc3ca7ff1f8fba3ef9759c521e95
3
+ metadata.gz: 7de65763fd3335615c9d23b536fa6955cd0b27efbadce1fec5a16e59e1974d59
4
+ data.tar.gz: c2c6b6dec69898437a2660606ea4bea682a1df3bafdadf6395668dfec9bb941f
5
5
  SHA512:
6
- metadata.gz: f379ad16388abc35a36015bc6ee219ce67b1d8725728378e992c4a519aae1a960bef10aa21b0f4fd07a0525111f989802b299c5a98d898968c7f795a24238558
7
- data.tar.gz: e23d016a3c95d27830522ffdd6248fa05ac746fadbb0940231bc53f9c2e06257c93b185cf246fb3094bd4eccbade1a2ecac43cb16705a5d537ca580b2bae3391
6
+ metadata.gz: ea0a8fe9724b3e5fab7d3ce8def0ff77e898e0a3f29ea4f87310a034de207a26b54fc7fb51fcf54a5e537b9a57865af01234f29c82c760a79f59a8ea1618be7f
7
+ data.tar.gz: ea66f344bc2c8d577030741bb93cd70424225979a701a438b1c11dde05c505102169f2970caf293c6d6088aea617c37ee3399d9fc1daa0abc463c17ea087d77b
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  ## CHANGELOG
2
2
 
3
+ ### 2.3.0
4
+
5
+ - Relax Ruby requirement to allow Ruby 4.0
6
+ - Add dependency to IRB gem
7
+
8
+ ### 2.2.0
9
+
10
+ - Remove Readline-dependent `session_history`
11
+
3
12
  ### 2.1.1
4
13
 
5
14
  - Loosen Ruby dependency to allow Ruby 3.0
data/Gemfile CHANGED
@@ -4,3 +4,4 @@ gemspec
4
4
 
5
5
  gem "rspec", "~> 3.2"
6
6
  gem "rake"
7
+ gem "abbrev"
data/Gemfile.lock CHANGED
@@ -1,36 +1,84 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- every_day_irb (2.1.1)
4
+ every_day_irb (2.3.0)
5
5
  cd (~> 1.0)
6
+ irb
6
7
 
7
8
  GEM
8
9
  remote: https://rubygems.org/
9
10
  specs:
10
- cd (1.0.1)
11
- diff-lcs (1.4.4)
12
- rake (13.0.1)
13
- rspec (3.9.0)
14
- rspec-core (~> 3.9.0)
15
- rspec-expectations (~> 3.9.0)
16
- rspec-mocks (~> 3.9.0)
17
- rspec-core (3.9.1)
18
- rspec-support (~> 3.9.1)
19
- rspec-expectations (3.9.1)
11
+ abbrev (0.1.2)
12
+ cd (1.0.2)
13
+ date (3.5.1)
14
+ diff-lcs (1.6.2)
15
+ erb (6.0.1)
16
+ io-console (0.8.2)
17
+ irb (1.16.0)
18
+ pp (>= 0.6.0)
19
+ rdoc (>= 4.0.0)
20
+ reline (>= 0.4.2)
21
+ pp (0.6.3)
22
+ prettyprint
23
+ prettyprint (0.2.0)
24
+ psych (5.3.1)
25
+ date
26
+ stringio
27
+ rake (13.3.1)
28
+ rdoc (7.0.3)
29
+ erb
30
+ psych (>= 4.0.0)
31
+ tsort
32
+ reline (0.6.3)
33
+ io-console (~> 0.5)
34
+ rspec (3.13.2)
35
+ rspec-core (~> 3.13.0)
36
+ rspec-expectations (~> 3.13.0)
37
+ rspec-mocks (~> 3.13.0)
38
+ rspec-core (3.13.6)
39
+ rspec-support (~> 3.13.0)
40
+ rspec-expectations (3.13.5)
20
41
  diff-lcs (>= 1.2.0, < 2.0)
21
- rspec-support (~> 3.9.0)
22
- rspec-mocks (3.9.1)
42
+ rspec-support (~> 3.13.0)
43
+ rspec-mocks (3.13.7)
23
44
  diff-lcs (>= 1.2.0, < 2.0)
24
- rspec-support (~> 3.9.0)
25
- rspec-support (3.9.2)
45
+ rspec-support (~> 3.13.0)
46
+ rspec-support (3.13.6)
47
+ stringio (3.2.0)
48
+ tsort (0.2.0)
26
49
 
27
50
  PLATFORMS
28
51
  ruby
52
+ x86_64-linux
29
53
 
30
54
  DEPENDENCIES
55
+ abbrev
31
56
  every_day_irb!
32
57
  rake
33
58
  rspec (~> 3.2)
34
59
 
60
+ CHECKSUMS
61
+ abbrev (0.1.2) sha256=ad1b4eaaaed4cb722d5684d63949e4bde1d34f2a95e20db93aecfe7cbac74242
62
+ cd (1.0.2) sha256=f93cef96f0c52ba722d020620b3d38fc2946103973ab42b0888131fb33fba91d
63
+ date (3.5.1) sha256=750d06384d7b9c15d562c76291407d89e368dda4d4fff957eb94962d325a0dc0
64
+ diff-lcs (1.6.2) sha256=9ae0d2cba7d4df3075fe8cd8602a8604993efc0dfa934cff568969efb1909962
65
+ erb (6.0.1) sha256=28ecdd99c5472aebd5674d6061e3c6b0a45c049578b071e5a52c2a7f13c197e5
66
+ every_day_irb (2.3.0)
67
+ io-console (0.8.2) sha256=d6e3ae7a7cc7574f4b8893b4fca2162e57a825b223a177b7afa236c5ef9814cc
68
+ irb (1.16.0) sha256=2abe56c9ac947cdcb2f150572904ba798c1e93c890c256f8429981a7675b0806
69
+ pp (0.6.3) sha256=2951d514450b93ccfeb1df7d021cae0da16e0a7f95ee1e2273719669d0ab9df6
70
+ prettyprint (0.2.0) sha256=2bc9e15581a94742064a3cc8b0fb9d45aae3d03a1baa6ef80922627a0766f193
71
+ psych (5.3.1) sha256=eb7a57cef10c9d70173ff74e739d843ac3b2c019a003de48447b2963d81b1974
72
+ rake (13.3.1) sha256=8c9e89d09f66a26a01264e7e3480ec0607f0c497a861ef16063604b1b08eb19c
73
+ rdoc (7.0.3) sha256=dfe3d0981d19b7bba71d9dbaeb57c9f4e3a7a4103162148a559c4fc687ea81f9
74
+ reline (0.6.3) sha256=1198b04973565b36ec0f11542ab3f5cfeeec34823f4e54cebde90968092b1835
75
+ rspec (3.13.2) sha256=206284a08ad798e61f86d7ca3e376718d52c0bc944626b2349266f239f820587
76
+ rspec-core (3.13.6) sha256=a8823c6411667b60a8bca135364351dda34cd55e44ff94c4be4633b37d828b2d
77
+ rspec-expectations (3.13.5) sha256=33a4d3a1d95060aea4c94e9f237030a8f9eae5615e9bd85718fe3a09e4b58836
78
+ rspec-mocks (3.13.7) sha256=0979034e64b1d7a838aaaddf12bf065ea4dc40ef3d4c39f01f93ae2c66c62b1c
79
+ rspec-support (3.13.6) sha256=2e8de3702427eab064c9352fe74488cc12a1bfae887ad8b91cba480ec9f8afb2
80
+ stringio (3.2.0) sha256=c37cb2e58b4ffbd33fe5cd948c05934af997b36e0b6ca6fdf43afa234cf222e1
81
+ tsort (0.2.0) sha256=9650a793f6859a43b6641671278f79cfead60ac714148aabe4e3f0060480089f
82
+
35
83
  BUNDLED WITH
36
- 2.1.4
84
+ 4.0.3
data/MIT-LICENSE.txt CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2010-2020 Jan Lelis
1
+ Copyright (c) 2010-2022 Jan Lelis
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
- # Every day… IRB [![[version]](https://badge.fury.io/rb/every_day_irb.svg)](https://badge.fury.io/rb/every_day_irb) [![[travis]](https://travis-ci.org/janlelis/every_day_irb.svg)](https://travis-ci.org/janlelis/every_day_irb)
1
+ # Every day… IRB [![[version]](https://badge.fury.io/rb/every_day_irb.svg)](https://badge.fury.io/rb/every_day_irb) [![Test](https://github.com/janlelis/every_day_irb/workflows/Test/badge.svg)](https://github.com/janlelis/every_day_irb/actions?query=workflow%3ATest)
2
2
 
3
- Provides utility methods useful in IRB, like a `rq` method for requiring libraries, or `ls` for showing the list of files of the current directory. Part of [Irbtools](https://irb.tools).
3
+ Provides utility methods useful in IRB, like a `rq` method for requiring libraries, or `ls` for showing the list of files of the current directory. Part of [Irbtools](https://github.com/janlelis/irbtools).
4
4
 
5
5
  ## Setup
6
6
 
@@ -29,10 +29,9 @@ to get the following methods:
29
29
  - rerequire(lib)
30
30
  - clear
31
31
  - reset!
32
- - session_history(number_of_lines = nil)
33
32
 
34
- More info at the [Irbtools README](https://github.com/janlelis/irbtools#irbtools-methods) and in the [specs](https://github.com/janlelis/every_day_irb/blob/master/spec/every_day_irb_spec.rb).
33
+ More info at the [Irbtools README](https://github.com/janlelis/irbtools#irbtools-methods) and in the [specs](https://github.com/janlelis/every_day_irb/blob/main/spec/every_day_irb_spec.rb).
35
34
 
36
35
  ## MIT License
37
36
 
38
- Copyright (C) 2010-2020 Jan Lelis <https://janlelis.com>. Released under the MIT license.
37
+ Copyright (C) 2010-2022 Jan Lelis <https://janlelis.com>. Released under the MIT license.
@@ -9,14 +9,16 @@ Gem::Specification.new do |gem|
9
9
  gem.description = "EveryDayIrb simplifies daily life in IRB with commands like: ls, cat, rq, rrq, ld, reset!, ..."
10
10
  gem.authors = ["Jan Lelis"]
11
11
  gem.email = ["hi@ruby.consulting"]
12
- gem.homepage = "https://irb.tools"
12
+ gem.homepage = "https://github.com/janlelis/every_day_irb"
13
13
  gem.license = "MIT"
14
14
 
15
15
  gem.files = Dir["{**/}{.*,*}"].select{ |path| File.file?(path) && path !~ /^pkg/ }
16
16
  gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
17
17
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
18
18
  gem.require_paths = ["lib"]
19
+ gem.metadata = { "rubygems_mfa_required" => "true" }
19
20
 
20
- gem.required_ruby_version = ">= 2.0", "< 4.0"
21
+ gem.required_ruby_version = ">= 2.0"
22
+ gem.add_dependency 'irb'
21
23
  gem.add_dependency 'cd', '~> 1.0'
22
24
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EveryDayIrb
4
- VERSION = "2.1.1"
4
+ VERSION = "2.3.0"
5
5
  end
data/lib/every_day_irb.rb CHANGED
@@ -66,16 +66,4 @@ module EveryDayIrb
66
66
  exit
67
67
  end
68
68
  end
69
-
70
- # returns the last lines
71
- def session_history(number_of_lines = nil)
72
- if !number_of_lines
73
- if defined?(Ripl) && Ripl.started?
74
- number_of_lines = Ripl.shell.line
75
- else
76
- number_of_lines = context.instance_variable_get(:@line_no)
77
- end
78
- end
79
- Readline::HISTORY.entries[-number_of_lines...-1]*"\n"
80
- end
81
69
  end
@@ -119,8 +119,4 @@ describe EveryDayIrb do
119
119
  describe '#reset!' do
120
120
  pending
121
121
  end
122
-
123
- describe '#session_history' do
124
- pending
125
- end
126
122
  end
metadata CHANGED
@@ -1,15 +1,28 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: every_day_irb
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.1
4
+ version: 2.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Lelis
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2020-12-25 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
12
+ - !ruby/object:Gem::Dependency
13
+ name: irb
14
+ requirement: !ruby/object:Gem::Requirement
15
+ requirements:
16
+ - - ">="
17
+ - !ruby/object:Gem::Version
18
+ version: '0'
19
+ type: :runtime
20
+ prerelease: false
21
+ version_requirements: !ruby/object:Gem::Requirement
22
+ requirements:
23
+ - - ">="
24
+ - !ruby/object:Gem::Version
25
+ version: '0'
13
26
  - !ruby/object:Gem::Dependency
14
27
  name: cd
15
28
  requirement: !ruby/object:Gem::Requirement
@@ -33,7 +46,6 @@ extensions: []
33
46
  extra_rdoc_files: []
34
47
  files:
35
48
  - ".gitignore"
36
- - ".travis.yml"
37
49
  - CHANGELOG.md
38
50
  - CODE_OF_CONDUCT.md
39
51
  - Gemfile
@@ -45,11 +57,11 @@ files:
45
57
  - lib/every_day_irb.rb
46
58
  - lib/every_day_irb/version.rb
47
59
  - spec/every_day_irb_spec.rb
48
- homepage: https://irb.tools
60
+ homepage: https://github.com/janlelis/every_day_irb
49
61
  licenses:
50
62
  - MIT
51
- metadata: {}
52
- post_install_message:
63
+ metadata:
64
+ rubygems_mfa_required: 'true'
53
65
  rdoc_options: []
54
66
  require_paths:
55
67
  - lib
@@ -58,17 +70,13 @@ required_ruby_version: !ruby/object:Gem::Requirement
58
70
  - - ">="
59
71
  - !ruby/object:Gem::Version
60
72
  version: '2.0'
61
- - - "<"
62
- - !ruby/object:Gem::Version
63
- version: '4.0'
64
73
  required_rubygems_version: !ruby/object:Gem::Requirement
65
74
  requirements:
66
75
  - - ">="
67
76
  - !ruby/object:Gem::Version
68
77
  version: '0'
69
78
  requirements: []
70
- rubygems_version: 3.1.2
71
- signing_key:
79
+ rubygems_version: 4.0.3
72
80
  specification_version: 4
73
81
  summary: EveryDayIrb simplifies daily life in IRB.
74
82
  test_files:
data/.travis.yml DELETED
@@ -1,18 +0,0 @@
1
- sudo: false
2
- language: ruby
3
-
4
- rvm:
5
- - 2.6
6
- - 2.5
7
- - 2.4
8
- - 2.3
9
- - ruby-head
10
- - jruby-9.2.6.0
11
- - truffleruby
12
-
13
- matrix:
14
- allow_failures:
15
- - rvm: ruby-head
16
- - rvm: truffleruby
17
- - rvm: 2.3
18
- # fast_finish: true