every_day_irb 2.1.0 → 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 +8 -0
- data/Gemfile.lock +36 -0
- data/MIT-LICENSE.txt +1 -1
- data/README.md +3 -4
- data/every_day_irb.gemspec +3 -2
- 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 +11 -7
- 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/Gemfile.lock
ADDED
@@ -0,0 +1,36 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
every_day_irb (2.1.1)
|
5
|
+
cd (~> 1.0)
|
6
|
+
|
7
|
+
GEM
|
8
|
+
remote: https://rubygems.org/
|
9
|
+
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)
|
20
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
21
|
+
rspec-support (~> 3.9.0)
|
22
|
+
rspec-mocks (3.9.1)
|
23
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
24
|
+
rspec-support (~> 3.9.0)
|
25
|
+
rspec-support (3.9.2)
|
26
|
+
|
27
|
+
PLATFORMS
|
28
|
+
ruby
|
29
|
+
|
30
|
+
DEPENDENCIES
|
31
|
+
every_day_irb!
|
32
|
+
rake
|
33
|
+
rspec (~> 3.2)
|
34
|
+
|
35
|
+
BUNDLED WITH
|
36
|
+
2.1.4
|
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)](
|
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
@@ -8,7 +8,7 @@ Gem::Specification.new do |gem|
|
|
8
8
|
gem.summary = "EveryDayIrb simplifies daily life in IRB."
|
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
|
-
gem.email = ["
|
11
|
+
gem.email = ["hi@ruby.consulting"]
|
12
12
|
gem.homepage = "https://irb.tools"
|
13
13
|
gem.license = "MIT"
|
14
14
|
|
@@ -16,7 +16,8 @@ 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
|
-
gem.required_ruby_version = "
|
21
|
+
gem.required_ruby_version = ">= 2.0", "< 4.0"
|
21
22
|
gem.add_dependency 'cd', '~> 1.0'
|
22
23
|
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
|
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
|
@@ -27,16 +27,16 @@ dependencies:
|
|
27
27
|
description: 'EveryDayIrb simplifies daily life in IRB with commands like: ls, cat,
|
28
28
|
rq, rrq, ld, reset!, ...'
|
29
29
|
email:
|
30
|
-
-
|
30
|
+
- hi@ruby.consulting
|
31
31
|
executables: []
|
32
32
|
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
|
39
|
+
- Gemfile.lock
|
40
40
|
- MIT-LICENSE.txt
|
41
41
|
- README.md
|
42
42
|
- Rakefile
|
@@ -47,23 +47,27 @@ files:
|
|
47
47
|
homepage: https://irb.tools
|
48
48
|
licenses:
|
49
49
|
- MIT
|
50
|
-
metadata:
|
50
|
+
metadata:
|
51
|
+
rubygems_mfa_required: 'true'
|
51
52
|
post_install_message:
|
52
53
|
rdoc_options: []
|
53
54
|
require_paths:
|
54
55
|
- lib
|
55
56
|
required_ruby_version: !ruby/object:Gem::Requirement
|
56
57
|
requirements:
|
57
|
-
- - "
|
58
|
+
- - ">="
|
58
59
|
- !ruby/object:Gem::Version
|
59
60
|
version: '2.0'
|
61
|
+
- - "<"
|
62
|
+
- !ruby/object:Gem::Version
|
63
|
+
version: '4.0'
|
60
64
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
61
65
|
requirements:
|
62
66
|
- - ">="
|
63
67
|
- !ruby/object:Gem::Version
|
64
68
|
version: '0'
|
65
69
|
requirements: []
|
66
|
-
rubygems_version: 3.
|
70
|
+
rubygems_version: 3.4.1
|
67
71
|
signing_key:
|
68
72
|
specification_version: 4
|
69
73
|
summary: EveryDayIrb simplifies daily life in IRB.
|
data/.travis.yml
DELETED