pry-coolline 0.2.5 → 0.2.6

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
- SHA1:
3
- metadata.gz: 7c38d850baa2711eafd1053148b2337763367f28
4
- data.tar.gz: 98e98681dc84888a9c06e7dcbe1b4977ad6c998f
2
+ SHA256:
3
+ metadata.gz: 5dc4becb987244e658ec2a61668a00c198bbd721a8c20558ef936b794c19edef
4
+ data.tar.gz: b82d19a59c140a9584c1459b1dd4f6fff1fb0b80f0bef91dfe08cf483e8bb664
5
5
  SHA512:
6
- metadata.gz: 7b1b4eaf3b18a2650a88f5c3b887c77229e10b7e4edb6a9c9e43234edc4d3fbaed27cb19818ceb7c010dafc4cb31cda15e0927e1fcd8ce6aa556da91ce53b339
7
- data.tar.gz: 7f45744174a93f93c94535fd8344e80361dedacffc2df0932ac55d8932a499d6ff7abdc9c212dc9bcb96af15a15dc53fad35e01b43f5cdad7a18822563371084
6
+ metadata.gz: 405bdb0b9cda8831be9fa8bc9674e0e3fe458fa40551d3a724a9c39ee51fc99c6be6c36db2e03db4656b79516f4e86c851c116ae432984a222543d3fc00ae91c
7
+ data.tar.gz: 728bdb276e36f66d28ad2e6d52097ed579f235aa9b3ab92c56f58810cfbf6a8d24c82ac273e3cbfda8a9116733e93427a864ff9394d135473f141ccc27bd9edd
@@ -0,0 +1,33 @@
1
+ name: pry
2
+
3
+ on: [push]
4
+
5
+ jobs:
6
+ test:
7
+ strategy:
8
+ matrix:
9
+ os: [ubuntu-latest]
10
+ ruby:
11
+ - 2.5
12
+ - 2.6
13
+ - 2.7
14
+ - '3.0'
15
+ - 3.1
16
+
17
+ runs-on: ${{ matrix.os }}
18
+
19
+ steps:
20
+ - uses: actions/checkout@v2
21
+
22
+ - uses: ruby/setup-ruby@v1
23
+ with:
24
+ ruby-version: ${{ matrix.ruby }}
25
+
26
+ - name: Install dependencies
27
+ run: bundle install
28
+
29
+ - name: Display Ruby version
30
+ run: ruby -v
31
+
32
+ - name: Test
33
+ run: bundle exec rake test
data/.gitignore CHANGED
@@ -6,3 +6,4 @@ doc/
6
6
  pkg/
7
7
  .yardoc/
8
8
  *.gem
9
+ Gemfile.lock
data/CHANGELOG CHANGED
@@ -0,0 +1,11 @@
1
+ ## 0.2.6 (December 31th, 2021)
2
+
3
+ Bugfixes:
4
+ - Support v0.13 Pry config API, fixes #36 (@owst, #37)
5
+ - Fix versioned experiments when used with allow_multiple_experiments=control (@andrehjr, #613)
6
+
7
+ Features:
8
+ - Enabled the option to actually disable paren matching (@threeifbywhiskey, #30)
9
+
10
+ Misc:
11
+ - change how load path is modified (@stevenchanin, #38)
data/Gemfile ADDED
@@ -0,0 +1,2 @@
1
+ source 'https://rubygems.org'
2
+ gemspec
data/Rakefile CHANGED
@@ -1,9 +1,9 @@
1
- $:.unshift 'lib'
1
+ require 'bundler/gem_tasks'
2
2
 
3
3
  PROJECT_NAME = "pry-coolline"
4
+ direc = File.dirname(__FILE__)
4
5
 
5
6
  require 'rake/clean'
6
- require "#{PROJECT_NAME}/version"
7
7
 
8
8
  CLOBBER.include("**/*~", "**/*#*", "**/*.log")
9
9
  CLEAN.include("**/*#*", "**/*#*.*", "**/*_flymake*.*", "**/*_flymake",
@@ -1,3 +1,3 @@
1
1
  module PryCoolline
2
- VERSION = "0.2.5"
2
+ VERSION = "0.2.6"
3
3
  end
@@ -31,8 +31,15 @@ module PryCoolline
31
31
  cool.word_boundaries = cool.completion_word_boundaries +
32
32
  [".", ":"]
33
33
 
34
+ pry_history_file =
35
+ if Gem::Version.new(Pry::VERSION) >= Gem::Version.new("0.13")
36
+ Pry.config.history_file
37
+ else
38
+ Pry.config.history.file
39
+ end
40
+
34
41
  # bring saved history into coolline
35
- cool.history_file = File.expand_path(Pry.config.history.file)
42
+ cool.history_file = File.expand_path(pry_history_file)
36
43
 
37
44
  cool.transform_proc = proc do
38
45
  if Pry.color
data/lib/pry-coolline.rb CHANGED
@@ -4,7 +4,9 @@
4
4
  require 'pry'
5
5
  require 'pry-coolline/version'
6
6
 
7
- Pry.config.coolline_paren_matching ||= true
7
+ unless defined?(Pry.config.coolline_paren_matching)
8
+ Pry.config.coolline_paren_matching = true
9
+ end
8
10
 
9
11
  Pry.config.coolline_matched_paren ||= "\e[42m"
10
12
  Pry.config.coolline_mismatched_paren ||= "\e[41m"
data/pry-coolline.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
 
3
- $LOAD_PATH.unshift File.expand_path(File.join("../lib", __FILE__))
3
+ $:.push File.expand_path('../lib', __FILE__)
4
4
  require 'pry-coolline/version'
5
5
 
6
6
  Gem::Specification.new do |s|
@@ -22,8 +22,10 @@ Gem::Specification.new do |s|
22
22
  s.files = `git ls-files`.split("\n")
23
23
  s.test_files = `git ls-files -- test/*`.split("\n")
24
24
 
25
- s.add_dependency("coolline","~>0.5")
26
- s.add_development_dependency("riot")
25
+ s.add_dependency "coolline", "~>0.5"
26
+ s.add_dependency "pry", "~> 0.13"
27
+ s.add_development_dependency "riot"
28
+ s.add_development_dependency "rake", "~> 10.0"
27
29
  s.required_ruby_version = '>= 1.9.2'
28
30
  s.require_path = 'lib'
29
31
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pry-coolline
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Mair (banisterfiend)
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-14 00:00:00.000000000 Z
11
+ date: 2021-12-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: coolline
@@ -24,6 +24,20 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0.5'
27
+ - !ruby/object:Gem::Dependency
28
+ name: pry
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '0.13'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '0.13'
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: riot
29
43
  requirement: !ruby/object:Gem::Requirement
@@ -38,6 +52,20 @@ dependencies:
38
52
  - - ">="
39
53
  - !ruby/object:Gem::Version
40
54
  version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rake
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '10.0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '10.0'
41
69
  description: Live syntax-highlighting for the Pry REPL
42
70
  email: jrmair@gmail.com
43
71
  executables: []
@@ -45,9 +73,11 @@ extensions: []
45
73
  extra_rdoc_files: []
46
74
  files:
47
75
  - ".gemtest"
76
+ - ".github/workflows/ci.yml"
48
77
  - ".gitignore"
49
78
  - ".yardopts"
50
79
  - CHANGELOG
80
+ - Gemfile
51
81
  - LICENSE
52
82
  - README.md
53
83
  - Rakefile
@@ -63,7 +93,7 @@ homepage: https://github.com/pry/pry-coolline
63
93
  licenses:
64
94
  - MIT
65
95
  metadata: {}
66
- post_install_message:
96
+ post_install_message:
67
97
  rdoc_options: []
68
98
  require_paths:
69
99
  - lib
@@ -78,13 +108,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
78
108
  - !ruby/object:Gem::Version
79
109
  version: '0'
80
110
  requirements: []
81
- rubyforge_project:
82
- rubygems_version: 2.2.2
83
- signing_key:
111
+ rubygems_version: 3.2.32
112
+ signing_key:
84
113
  specification_version: 4
85
114
  summary: Live syntax-highlighting for the Pry REPL
86
115
  test_files:
87
116
  - test/helpers.rb
88
117
  - test/paren_match_test.rb
89
118
  - test/run_all.rb
90
- has_rdoc: