every_day_irb 2.1.1 → 2.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/MIT-LICENSE.txt +1 -1
- data/README.md +3 -4
- data/every_day_irb.gemspec +1 -0
- data/lib/every_day_irb/version.rb +1 -1
- data/lib/every_day_irb.rb +0 -12
- data/spec/every_day_irb_spec.rb +0 -4
- metadata +5 -5
- data/.travis.yml +0 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a5bfef5fb2713ecaff0a6ebaece184749796e484985612f8484894bc830c1c52
|
4
|
+
data.tar.gz: b751ced10caf987650416afee9b95c6f4b5dee93a680ba48c29a65df66a2532d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 53308cb6c2dab1e56f0fec92cf7eb08ef72837be88b9eb5b63ce04b6ee3ecb2dcf2d7c6b983cbc3864aba4a1d243fd2fab946809dafe7314be6a4ef902f7b3e8
|
7
|
+
data.tar.gz: 4ffea2eeca83558d7f08298c46642a7d32dd6ac5cf4ff616c9d91bc16172b59dfae460863c418fdd7ff2813d68cc78db872175292cea6ed0ac6174fae1439e20
|
data/CHANGELOG.md
CHANGED
data/MIT-LICENSE.txt
CHANGED
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) [![
|
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/
|
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-
|
37
|
+
Copyright (C) 2010-2022 Jan Lelis <https://janlelis.com>. Released under the MIT license.
|
data/every_day_irb.gemspec
CHANGED
@@ -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'
|
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
|
data/spec/every_day_irb_spec.rb
CHANGED
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.
|
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:
|
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
|
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