pry-coolline 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: f66afd26f35aa61985abc293507a99675cd5565a
4
+ data.tar.gz: 59c0a699bdac066924698860649f2dc8c3dbd1ba
5
+ SHA512:
6
+ metadata.gz: 4ae6b1652e38266bbce2598dba322415927ec408ed0d96d615db2f9b38331a6e297840194bc20c64f2a9f1c9f1427d4f5e07b4584e80f485ee04fd7a30dcfc68
7
+ data.tar.gz: dcde1ce1d27c1d62feab4134eab456efd0f81f0a4e28f9b45233e67845d75fb721254e3dfb4034ac871ed0bd5181633ea80401611a096547a62b92873958b328
data/.gitignore CHANGED
@@ -5,3 +5,4 @@ Makefile
5
5
  doc/
6
6
  pkg/
7
7
  .yardoc/
8
+ *.gem
data/README.md CHANGED
@@ -21,7 +21,7 @@ After installing `pry-coolline` just start Pry as normal, the coolline
21
21
  plugin will be detected and used automatically.
22
22
 
23
23
  <center>
24
- ![Alt text](http://dl.dropbox.com/u/26521875/coolline.png)
24
+ ![Alt text](https://dl.dropboxusercontent.com/u/26521875/pics/coolline.png)
25
25
 
26
26
  Features
27
27
  --------
data/Rakefile CHANGED
@@ -22,7 +22,6 @@ def apply_spec_defaults(s)
22
22
  s.email = 'jrmair@gmail.com'
23
23
  s.description = s.summary
24
24
  s.add_dependency("coolline","~>0.3")
25
- s.add_dependency("io-console","~>0.3.0")
26
25
  s.add_development_dependency("riot")
27
26
  s.required_ruby_version = '>= 1.9.2'
28
27
  s.require_path = 'lib'
@@ -16,5 +16,14 @@ begin
16
16
  require 'pry-coolline/wrapper'
17
17
 
18
18
  Pry.config.input = PryCoolline.make_input
19
+
20
+ require 'bond'
21
+
22
+ Pry.config.completer = Pry::BondCompleter.start
23
+
24
+ # Let's speak in Bond's metaphor.
25
+ # Assasinate the agent and replace it with one that uses our weapon.
26
+ Bond::M.reset
27
+ Bond.start :readline => Pry.config.input.bond_adapter
19
28
  rescue LoadError
20
29
  end if ENV["TERM"] != "dumb"
@@ -1,3 +1,3 @@
1
1
  module PryCoolline
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.3"
3
3
  end
@@ -9,6 +9,14 @@ module PryCoolline
9
9
  proc.call cool.completed_word
10
10
  end
11
11
  end
12
+
13
+ def bond_adapter
14
+ cool = self.cool
15
+ Module.new.extend(Module.new{
16
+ define_method(:setup){ |*| }
17
+ define_method(:line_buffer){ cool.line }
18
+ })
19
+ end
12
20
  end
13
21
 
14
22
  module_function
@@ -9,26 +9,23 @@ Gem::Specification.new do |s|
9
9
  s.date = "2012-04-03"
10
10
  s.description = "Live syntax-highlighting for the Pry REPL"
11
11
  s.email = "jrmair@gmail.com"
12
- s.files = [".gemtest", ".gitignore", ".yardopts", "CHANGELOG", "LICENSE", "README.md", "Rakefile", "lib/pry-coolline.rb", "lib/pry-coolline/version.rb", "pry-coolline.gemspec", "test/test.rb"]
12
+ s.files = `git ls-files`.split("\n")
13
13
  s.homepage = "https://github.com/pry/pry-coolline"
14
14
  s.require_paths = ["lib"]
15
15
  s.required_ruby_version = Gem::Requirement.new(">= 1.9.2")
16
16
  s.rubygems_version = "1.8.16"
17
17
  s.summary = "Live syntax-highlighting for the Pry REPL"
18
- s.test_files = ["test/test.rb"]
18
+ s.test_files = Dir["test/**/*.rb"]
19
19
 
20
20
  if s.respond_to? :specification_version then
21
21
  s.specification_version = 3
22
22
 
23
23
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
24
- s.add_runtime_dependency(%q<coolline>, ["~> 0.2.0"])
25
- s.add_runtime_dependency(%q<io-console>, ["~> 0.3.0"])
24
+ s.add_runtime_dependency(%q<coolline>, ["~> 0.4.0"])
26
25
  else
27
- s.add_dependency(%q<coolline>, ["~> 0.2.0"])
28
- s.add_dependency(%q<io-console>, ["~> 0.3.0"])
26
+ s.add_dependency(%q<coolline>, ["~> 0.4.0"])
29
27
  end
30
28
  else
31
- s.add_dependency(%q<coolline>, ["~> 0.2.0"])
32
- s.add_dependency(%q<io-console>, ["~> 0.3.0"])
29
+ s.add_dependency(%q<coolline>, ["~> 0.4.0"])
33
30
  end
34
31
  end
metadata CHANGED
@@ -1,20 +1,18 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pry-coolline
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
5
- prerelease:
4
+ version: 0.2.3
6
5
  platform: ruby
7
6
  authors:
8
7
  - John Mair (banisterfiend)
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-01-27 00:00:00.000000000 Z
11
+ date: 2014-01-21 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: coolline
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
17
  - - ~>
20
18
  - !ruby/object:Gem::Version
@@ -22,41 +20,22 @@ dependencies:
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
24
  - - ~>
28
25
  - !ruby/object:Gem::Version
29
26
  version: '0.3'
30
- - !ruby/object:Gem::Dependency
31
- name: io-console
32
- requirement: !ruby/object:Gem::Requirement
33
- none: false
34
- requirements:
35
- - - ~>
36
- - !ruby/object:Gem::Version
37
- version: 0.3.0
38
- type: :runtime
39
- prerelease: false
40
- version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
- requirements:
43
- - - ~>
44
- - !ruby/object:Gem::Version
45
- version: 0.3.0
46
27
  - !ruby/object:Gem::Dependency
47
28
  name: riot
48
29
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
30
  requirements:
51
- - - ! '>='
31
+ - - '>='
52
32
  - !ruby/object:Gem::Version
53
33
  version: '0'
54
34
  type: :development
55
35
  prerelease: false
56
36
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
37
  requirements:
59
- - - ! '>='
38
+ - - '>='
60
39
  - !ruby/object:Gem::Version
61
40
  version: '0'
62
41
  description: Live syntax-highlighting for the Pry REPL
@@ -82,27 +61,26 @@ files:
82
61
  - test/run_all.rb
83
62
  homepage: https://github.com/pry/pry-coolline
84
63
  licenses: []
64
+ metadata: {}
85
65
  post_install_message:
86
66
  rdoc_options: []
87
67
  require_paths:
88
68
  - lib
89
69
  required_ruby_version: !ruby/object:Gem::Requirement
90
- none: false
91
70
  requirements:
92
- - - ! '>='
71
+ - - '>='
93
72
  - !ruby/object:Gem::Version
94
73
  version: 1.9.2
95
74
  required_rubygems_version: !ruby/object:Gem::Requirement
96
- none: false
97
75
  requirements:
98
- - - ! '>='
76
+ - - '>='
99
77
  - !ruby/object:Gem::Version
100
78
  version: '0'
101
79
  requirements: []
102
80
  rubyforge_project:
103
- rubygems_version: 1.8.23
81
+ rubygems_version: 2.0.14
104
82
  signing_key:
105
- specification_version: 3
83
+ specification_version: 4
106
84
  summary: Live syntax-highlighting for the Pry REPL
107
85
  test_files:
108
86
  - test/helpers.rb