every_day_irb 2.1.1 → 2.2.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: a5bfef5fb2713ecaff0a6ebaece184749796e484985612f8484894bc830c1c52
4
+ data.tar.gz: b751ced10caf987650416afee9b95c6f4b5dee93a680ba48c29a65df66a2532d
5
5
  SHA512:
6
- metadata.gz: f379ad16388abc35a36015bc6ee219ce67b1d8725728378e992c4a519aae1a960bef10aa21b0f4fd07a0525111f989802b299c5a98d898968c7f795a24238558
7
- data.tar.gz: e23d016a3c95d27830522ffdd6248fa05ac746fadbb0940231bc53f9c2e06257c93b185cf246fb3094bd4eccbade1a2ecac43cb16705a5d537ca580b2bae3391
6
+ metadata.gz: 53308cb6c2dab1e56f0fec92cf7eb08ef72837be88b9eb5b63ce04b6ee3ecb2dcf2d7c6b983cbc3864aba4a1d243fd2fab946809dafe7314be6a4ef902f7b3e8
7
+ data.tar.gz: 4ffea2eeca83558d7f08298c46642a7d32dd6ac5cf4ff616c9d91bc16172b59dfae460863c418fdd7ff2813d68cc78db872175292cea6ed0ac6174fae1439e20
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## CHANGELOG
2
2
 
3
+ ### 2.2.0
4
+
5
+ - Remove Readline-dependent `session_history`
6
+
3
7
  ### 2.1.1
4
8
 
5
9
  - Loosen Ruby dependency to allow Ruby 3.0
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,4 +1,4 @@
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
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).
4
4
 
@@ -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.
@@ -16,6 +16,7 @@ Gem::Specification.new do |gem|
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
21
  gem.required_ruby_version = ">= 2.0", "< 4.0"
21
22
  gem.add_dependency 'cd', '~> 1.0'
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EveryDayIrb
4
- VERSION = "2.1.1"
4
+ VERSION = "2.2.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,14 +1,14 @@
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.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Lelis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-12-25 00:00:00.000000000 Z
11
+ date: 2022-12-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cd
@@ -33,7 +33,6 @@ extensions: []
33
33
  extra_rdoc_files: []
34
34
  files:
35
35
  - ".gitignore"
36
- - ".travis.yml"
37
36
  - CHANGELOG.md
38
37
  - CODE_OF_CONDUCT.md
39
38
  - Gemfile
@@ -48,7 +47,8 @@ files:
48
47
  homepage: https://irb.tools
49
48
  licenses:
50
49
  - MIT
51
- metadata: {}
50
+ metadata:
51
+ rubygems_mfa_required: 'true'
52
52
  post_install_message:
53
53
  rdoc_options: []
54
54
  require_paths:
@@ -67,7 +67,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  requirements: []
70
- rubygems_version: 3.1.2
70
+ rubygems_version: 3.4.1
71
71
  signing_key:
72
72
  specification_version: 4
73
73
  summary: EveryDayIrb simplifies daily life in IRB.
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