pry-coolline 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -3
- data/lib/pry-coolline.rb +6 -3
- data/lib/pry-coolline/version.rb +1 -1
- metadata +18 -8
data/Rakefile
CHANGED
@@ -21,7 +21,7 @@ def apply_spec_defaults(s)
|
|
21
21
|
s.author = "John Mair (banisterfiend)"
|
22
22
|
s.email = 'jrmair@gmail.com'
|
23
23
|
s.description = s.summary
|
24
|
-
s.add_dependency("coolline","~>0.
|
24
|
+
s.add_dependency("coolline","~>0.3")
|
25
25
|
s.add_dependency("io-console","~>0.3.0")
|
26
26
|
s.required_ruby_version = '>= 1.9.2'
|
27
27
|
s.require_path = 'lib'
|
@@ -86,5 +86,3 @@ task :pushgems => :gems do
|
|
86
86
|
end
|
87
87
|
end
|
88
88
|
end
|
89
|
-
|
90
|
-
|
data/lib/pry-coolline.rb
CHANGED
@@ -8,17 +8,20 @@ begin
|
|
8
8
|
require 'coolline'
|
9
9
|
|
10
10
|
Pry.config.input = Coolline.new do |cool|
|
11
|
-
cool.word_boundaries = [" ", "\t", ",", ";",
|
11
|
+
cool.word_boundaries = [" ", "\t", ",", ";", '"', "'", "`", "<", ">",
|
12
12
|
"=", ";", "|", "{", "}", "(", ")", "-"]
|
13
13
|
|
14
14
|
# bring saved history into coolline
|
15
15
|
cool.history_file = Pry.config.history.file
|
16
16
|
|
17
17
|
cool.transform_proc = proc do
|
18
|
-
|
18
|
+
if Pry.color
|
19
|
+
CodeRay.scan(cool.line, :ruby).term
|
20
|
+
else
|
21
|
+
cool.line
|
22
|
+
end
|
19
23
|
end
|
20
24
|
end
|
21
25
|
|
22
26
|
rescue LoadError
|
23
27
|
end if ENV["TERM"] != "dumb"
|
24
|
-
|
data/lib/pry-coolline/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pry-coolline
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,22 +9,27 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-07-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: coolline
|
16
|
-
requirement:
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 0.
|
21
|
+
version: '0.3'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements:
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ~>
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0.3'
|
25
30
|
- !ruby/object:Gem::Dependency
|
26
31
|
name: io-console
|
27
|
-
requirement:
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
28
33
|
none: false
|
29
34
|
requirements:
|
30
35
|
- - ~>
|
@@ -32,7 +37,12 @@ dependencies:
|
|
32
37
|
version: 0.3.0
|
33
38
|
type: :runtime
|
34
39
|
prerelease: false
|
35
|
-
version_requirements:
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ~>
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: 0.3.0
|
36
46
|
description: Live syntax-highlighting for the Pry REPL
|
37
47
|
email: jrmair@gmail.com
|
38
48
|
executables: []
|
@@ -70,7 +80,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
70
80
|
version: '0'
|
71
81
|
requirements: []
|
72
82
|
rubyforge_project:
|
73
|
-
rubygems_version: 1.8.
|
83
|
+
rubygems_version: 1.8.24
|
74
84
|
signing_key:
|
75
85
|
specification_version: 3
|
76
86
|
summary: Live syntax-highlighting for the Pry REPL
|