ripl 0.5.1 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/.gemspec CHANGED
@@ -1,7 +1,7 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
  require 'rubygems' unless Object.const_defined?(:Gem)
3
3
  require File.dirname(__FILE__) + "/lib/ripl/version"
4
-
4
+
5
5
  Gem::Specification.new do |s|
6
6
  s.name = "ripl"
7
7
  s.version = Ripl::VERSION
@@ -9,9 +9,8 @@ Gem::Specification.new do |s|
9
9
  s.email = "gabriel.horner@gmail.com"
10
10
  s.homepage = "http://github.com/cldwalker/ripl"
11
11
  s.summary = "ruby interactive print loop - A light, modular alternative to irb and a shell framework"
12
- s.description = "ripl is a light, modular alternative to irb. Like irb, it loads ~/.irbrc, has autocompletion and keeps history in ~/.irb_history. Unlike irb, it is highly customizable via plugins and supports commands i.e. ripl-play. This customizability makes it easy to build custom shells (i.e. for a gem or application) and complex shells (i.e. for the web). In other words, ripl is also a shell framework."
12
+ s.description = "ripl is a light, modular alternative to irb. Like irb, it loads ~/.irbrc, has autocompletion and keeps history in ~/.irb_history. Unlike irb, it is highly customizable via plugins and supports commands i.e. ripl-play. This customizability makes it easy to build custom shells (i.e. for a gem or application) and complex shells (i.e. for the web). In other words, ripl is also a shell framework. Works on ruby 1.8.7 and greater."
13
13
  s.required_rubygems_version = ">= 1.3.6"
14
- s.rubyforge_project = 'tagaholic'
15
14
  s.executables = %w(ripl)
16
15
  s.add_dependency 'bond', '~> 0.4.0'
17
16
  s.add_development_dependency 'bacon', '>= 1.1.0'
@@ -1,5 +1,9 @@
1
+ == 0.6.0
2
+ * Cleaner backtrace
3
+ * Drop support for ruby 1.8.6
4
+
1
5
  == 0.5.1
2
- Fix History methods missing super
6
+ * Fix History methods missing super
3
7
 
4
8
  == 0.5.0
5
9
  * Minor changes to History#read_history
@@ -4,7 +4,8 @@ ripl is a light, modular alternative to irb. Like irb, it loads ~/.irbrc, has au
4
4
  keeps history in ~/.irb_history. Unlike irb, it is highly customizable via plugins and supports
5
5
  commands i.e. {ripl-play}[http://github.com/cldwalker/ripl-play]. This customizability makes it
6
6
  easy to build custom shells (i.e. for a gem or application) and complex shells (i.e. for the
7
- {web}[http://github.com/cldwalker/nirvana]). In other words, ripl is also a shell framework.
7
+ {web}[http://github.com/cldwalker/nirvana]). In other words, ripl is also a shell framework. Works
8
+ on ruby 1.8.7 and greater.
8
9
 
9
10
  == Install
10
11
 
@@ -197,6 +198,8 @@ Shells built on top of ripl:
197
198
  * {ripl-johnson}[http://github.com/cldwalker/ripl-johnson]: A js shell based on johnson (firefox tracemonkey)
198
199
  * {ronin}[https://github.com/ronin-ruby/ronin]: An exploit development platform using ripl for its console
199
200
  * {tux}[http://github.com/cldwalker/tux]: A sinatra shell
201
+ * {rack-webconsole}[https://github.com/codegram/rack-webconsole]: A rack middleware that adds a
202
+ web shell to any rack app
200
203
 
201
204
  == More Ripl Links
202
205
 
@@ -85,7 +85,8 @@ class Ripl::Runner
85
85
  end
86
86
 
87
87
  def format_error(err)
88
- "#{err.class}: #{err.message}\n #{err.backtrace.join("\n ")}"
88
+ stack = err.backtrace.take_while {|line| line !~ %r{/ripl/\S+\.rb} }
89
+ "#{err.class}: #{err.message}\n #{stack.join("\n ")}"
89
90
  end
90
91
  end
91
92
  extend API
@@ -1,3 +1,3 @@
1
1
  module Ripl
2
- VERSION = '0.5.1'
2
+ VERSION = '0.6.0'
3
3
  end
@@ -54,6 +54,12 @@ describe "Shell" do
54
54
  capture_stdout { shell.loop_once }.should == ""
55
55
  }.should =~ /RuntimeError/
56
56
  end
57
+
58
+ it "prints error from eval with no ripl internals in backtrace" do
59
+ mock(shell).get_input { "raise 'blah'" }
60
+ capture_stderr { shell.loop_once }.
61
+ should.not =~ %r{lib/ripl/}
62
+ end
57
63
  end
58
64
 
59
65
  describe "#prompt" do
metadata CHANGED
@@ -1,83 +1,86 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: ripl
3
- version: !ruby/object:Gem::Version
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.6.0
4
5
  prerelease:
5
- version: 0.5.1
6
6
  platform: ruby
7
- authors:
7
+ authors:
8
8
  - Gabriel Horner
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
-
13
- date: 2011-08-10 00:00:00 -04:00
12
+ date: 2011-11-06 01:00:00.000000000 -04:00
14
13
  default_executable:
15
- dependencies:
16
- - !ruby/object:Gem::Dependency
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
17
16
  name: bond
18
- prerelease: false
19
- requirement: &id001 !ruby/object:Gem::Requirement
17
+ requirement: &2153963920 !ruby/object:Gem::Requirement
20
18
  none: false
21
- requirements:
19
+ requirements:
22
20
  - - ~>
23
- - !ruby/object:Gem::Version
21
+ - !ruby/object:Gem::Version
24
22
  version: 0.4.0
25
23
  type: :runtime
26
- version_requirements: *id001
27
- - !ruby/object:Gem::Dependency
28
- name: bacon
29
24
  prerelease: false
30
- requirement: &id002 !ruby/object:Gem::Requirement
25
+ version_requirements: *2153963920
26
+ - !ruby/object:Gem::Dependency
27
+ name: bacon
28
+ requirement: &2153963460 !ruby/object:Gem::Requirement
31
29
  none: false
32
- requirements:
33
- - - ">="
34
- - !ruby/object:Gem::Version
30
+ requirements:
31
+ - - ! '>='
32
+ - !ruby/object:Gem::Version
35
33
  version: 1.1.0
36
34
  type: :development
37
- version_requirements: *id002
38
- - !ruby/object:Gem::Dependency
39
- name: rr
40
35
  prerelease: false
41
- requirement: &id003 !ruby/object:Gem::Requirement
36
+ version_requirements: *2153963460
37
+ - !ruby/object:Gem::Dependency
38
+ name: rr
39
+ requirement: &2153963000 !ruby/object:Gem::Requirement
42
40
  none: false
43
- requirements:
44
- - - ">="
45
- - !ruby/object:Gem::Version
41
+ requirements:
42
+ - - ! '>='
43
+ - !ruby/object:Gem::Version
46
44
  version: 1.0.0
47
45
  type: :development
48
- version_requirements: *id003
49
- - !ruby/object:Gem::Dependency
50
- name: bacon-bits
51
46
  prerelease: false
52
- requirement: &id004 !ruby/object:Gem::Requirement
47
+ version_requirements: *2153963000
48
+ - !ruby/object:Gem::Dependency
49
+ name: bacon-bits
50
+ requirement: &2153962620 !ruby/object:Gem::Requirement
53
51
  none: false
54
- requirements:
55
- - - ">="
56
- - !ruby/object:Gem::Version
57
- version: "0"
52
+ requirements:
53
+ - - ! '>='
54
+ - !ruby/object:Gem::Version
55
+ version: '0'
58
56
  type: :development
59
- version_requirements: *id004
60
- - !ruby/object:Gem::Dependency
61
- name: bacon-rr
62
57
  prerelease: false
63
- requirement: &id005 !ruby/object:Gem::Requirement
58
+ version_requirements: *2153962620
59
+ - !ruby/object:Gem::Dependency
60
+ name: bacon-rr
61
+ requirement: &2153962160 !ruby/object:Gem::Requirement
64
62
  none: false
65
- requirements:
66
- - - ">="
67
- - !ruby/object:Gem::Version
68
- version: "0"
63
+ requirements:
64
+ - - ! '>='
65
+ - !ruby/object:Gem::Version
66
+ version: '0'
69
67
  type: :development
70
- version_requirements: *id005
71
- description: ripl is a light, modular alternative to irb. Like irb, it loads ~/.irbrc, has autocompletion and keeps history in ~/.irb_history. Unlike irb, it is highly customizable via plugins and supports commands i.e. ripl-play. This customizability makes it easy to build custom shells (i.e. for a gem or application) and complex shells (i.e. for the web). In other words, ripl is also a shell framework.
68
+ prerelease: false
69
+ version_requirements: *2153962160
70
+ description: ripl is a light, modular alternative to irb. Like irb, it loads ~/.irbrc,
71
+ has autocompletion and keeps history in ~/.irb_history. Unlike irb, it is highly
72
+ customizable via plugins and supports commands i.e. ripl-play. This customizability
73
+ makes it easy to build custom shells (i.e. for a gem or application) and complex
74
+ shells (i.e. for the web). In other words, ripl is also a shell framework. Works
75
+ on ruby 1.8.7 and greater.
72
76
  email: gabriel.horner@gmail.com
73
- executables:
77
+ executables:
74
78
  - ripl
75
79
  extensions: []
76
-
77
- extra_rdoc_files:
80
+ extra_rdoc_files:
78
81
  - README.rdoc
79
82
  - LICENSE.txt
80
- files:
83
+ files:
81
84
  - lib/ripl/completion.rb
82
85
  - lib/ripl/history.rb
83
86
  - lib/ripl/readline.rb
@@ -101,34 +104,31 @@ files:
101
104
  - man/ripl.1
102
105
  - man/ripl.1.html
103
106
  - man/ripl.1.ronn
104
- - ripl.gemspec
105
107
  has_rdoc: true
106
108
  homepage: http://github.com/cldwalker/ripl
107
- licenses:
109
+ licenses:
108
110
  - MIT
109
111
  post_install_message:
110
112
  rdoc_options: []
111
-
112
- require_paths:
113
+ require_paths:
113
114
  - lib
114
- required_ruby_version: !ruby/object:Gem::Requirement
115
+ required_ruby_version: !ruby/object:Gem::Requirement
115
116
  none: false
116
- requirements:
117
- - - ">="
118
- - !ruby/object:Gem::Version
119
- version: "0"
120
- required_rubygems_version: !ruby/object:Gem::Requirement
117
+ requirements:
118
+ - - ! '>='
119
+ - !ruby/object:Gem::Version
120
+ version: '0'
121
+ required_rubygems_version: !ruby/object:Gem::Requirement
121
122
  none: false
122
- requirements:
123
- - - ">="
124
- - !ruby/object:Gem::Version
123
+ requirements:
124
+ - - ! '>='
125
+ - !ruby/object:Gem::Version
125
126
  version: 1.3.6
126
127
  requirements: []
127
-
128
- rubyforge_project: tagaholic
128
+ rubyforge_project:
129
129
  rubygems_version: 1.6.2
130
130
  signing_key:
131
131
  specification_version: 3
132
- summary: ruby interactive print loop - A light, modular alternative to irb and a shell framework
132
+ summary: ruby interactive print loop - A light, modular alternative to irb and a shell
133
+ framework
133
134
  test_files: []
134
-
@@ -1,25 +0,0 @@
1
- # -*- encoding: utf-8 -*-
2
- require 'rubygems' unless Object.const_defined?(:Gem)
3
- require File.dirname(__FILE__) + "/lib/ripl/version"
4
-
5
- Gem::Specification.new do |s|
6
- s.name = "ripl"
7
- s.version = Ripl::VERSION
8
- s.authors = ["Gabriel Horner"]
9
- s.email = "gabriel.horner@gmail.com"
10
- s.homepage = "http://github.com/cldwalker/ripl"
11
- s.summary = "ruby interactive print loop - A light, modular alternative to irb and a shell framework"
12
- s.description = "ripl is a light, modular alternative to irb. Like irb, it loads ~/.irbrc, has autocompletion and keeps history in ~/.irb_history. Unlike irb, it is highly customizable via plugins and supports commands i.e. ripl-play. This customizability makes it easy to build custom shells (i.e. for a gem or application) and complex shells (i.e. for the web). In other words, ripl is also a shell framework."
13
- s.required_rubygems_version = ">= 1.3.6"
14
- s.rubyforge_project = 'tagaholic'
15
- s.executables = %w(ripl)
16
- s.add_dependency 'bond', '~> 0.4.0'
17
- s.add_development_dependency 'bacon', '>= 1.1.0'
18
- s.add_development_dependency 'rr', '>= 1.0.0'
19
- s.add_development_dependency 'bacon-bits'
20
- s.add_development_dependency 'bacon-rr'
21
- s.files = Dir.glob(%w[{lib,test}/**/*.rb bin/* [A-Z]*.{txt,rdoc} ext/**/*.{rb,c} **/deps.rip]) + %w{Rakefile .gemspec}
22
- s.files += Dir.glob(['man/*', '*.gemspec'])
23
- s.extra_rdoc_files = ["README.rdoc", "LICENSE.txt"]
24
- s.license = 'MIT'
25
- end