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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c4bf811a35caf66a1fef10a52f9fb3f234c6050bedb1797e4026f20f72e40e27
4
- data.tar.gz: 2cb5ec001f658c697e1caaa9137abfc0e5c949828dafed70f31117980b227af4
3
+ metadata.gz: a5bfef5fb2713ecaff0a6ebaece184749796e484985612f8484894bc830c1c52
4
+ data.tar.gz: b751ced10caf987650416afee9b95c6f4b5dee93a680ba48c29a65df66a2532d
5
5
  SHA512:
6
- metadata.gz: 9ad2ffdca08455a4c9eb204a93b386460b470f29357890dd4fa3637433623b2ab783a656d1bfb64673bba589306eeefcfdaec21ec41150ba94dd769a05ba7a2c
7
- data.tar.gz: 2a5045aa4a9f5bb41ddd74b0a6144e958a10a0512579b6d0a56a8b21d3ae45622026b4554c722847967b40c4862ba9f7b630c3be0b3aa071792b832c6d58cead
6
+ metadata.gz: 53308cb6c2dab1e56f0fec92cf7eb08ef72837be88b9eb5b63ce04b6ee3ecb2dcf2d7c6b983cbc3864aba4a1d243fd2fab946809dafe7314be6a4ef902f7b3e8
7
+ data.tar.gz: 4ffea2eeca83558d7f08298c46642a7d32dd6ac5cf4ff616c9d91bc16172b59dfae460863c418fdd7ff2813d68cc78db872175292cea6ed0ac6174fae1439e20
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  ## CHANGELOG
2
2
 
3
+ ### 2.2.0
4
+
5
+ - Remove Readline-dependent `session_history`
6
+
7
+ ### 2.1.1
8
+
9
+ - Loosen Ruby dependency to allow Ruby 3.0
10
+
3
11
  ### 2.1.0
4
12
 
5
13
  - Separate every_day_irb into its own git repository
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
@@ -1,4 +1,4 @@
1
- Copyright (c) 2010-2019 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)](http://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-2019 Jan Lelis <http://janlelis.com>. Released under the MIT license.
37
+ Copyright (C) 2010-2022 Jan Lelis <https://janlelis.com>. Released under the MIT license.
@@ -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 = ["mail@janlelis.de"]
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 = "~> 2.0"
21
+ gem.required_ruby_version = ">= 2.0", "< 4.0"
21
22
  gem.add_dependency 'cd', '~> 1.0'
22
23
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EveryDayIrb
4
- VERSION = "2.1.0"
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.0
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: 2019-04-02 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
@@ -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
- - mail@janlelis.de
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.0.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
@@ -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