ripl 0.6.1 → 0.6.2

Sign up to get free protection for your applications and to get access to all the features.
data/.gemspec CHANGED
@@ -17,8 +17,9 @@ Gem::Specification.new do |s|
17
17
  s.add_development_dependency 'rr', '>= 1.0.0'
18
18
  s.add_development_dependency 'bacon-bits'
19
19
  s.add_development_dependency 'bacon-rr'
20
+ s.add_development_dependency 'rake', '0.9.2.2'
20
21
  s.files = Dir.glob(%w[{lib,test}/**/*.rb bin/* [A-Z]*.{txt,rdoc} ext/**/*.{rb,c} **/deps.rip]) + %w{Rakefile .gemspec}
21
- s.files += Dir.glob(['man/*', '*.gemspec'])
22
+ s.files += Dir.glob(['man/*', '*.gemspec']) + %w{.travis.yml test/.riplrc}
22
23
  s.extra_rdoc_files = ["README.rdoc", "LICENSE.txt"]
23
24
  s.license = 'MIT'
24
25
  end
@@ -0,0 +1,6 @@
1
+ before_install: bundle init --gemspec=.gemspec
2
+ rvm:
3
+ - 1.8.7
4
+ - 1.9.2
5
+ - 1.9.3
6
+ - jruby
@@ -1,3 +1,7 @@
1
+ == 0.6.2
2
+ * Fix rc test
3
+ * Add $RIPL_HISTORY and $RIPL_RC
4
+
1
5
  == 0.6.1
2
6
  * Fix history bug
3
7
 
@@ -1,6 +1,7 @@
1
1
  module Ripl
2
2
  def self.config
3
- @config ||= {:readline => true, :riplrc => '~/.riplrc', :completion => {}}
3
+ @config ||= { :readline => true, :riplrc => ENV['RIPL_RC'] || '~/.riplrc',
4
+ :completion => {} }
4
5
  end
5
6
 
6
7
  def self.start(*args) Runner.start(*args) end
@@ -21,4 +21,4 @@ module Ripl::History
21
21
  def after_loop() super; write_history end
22
22
  end
23
23
  Ripl::Shell.include Ripl::History
24
- Ripl.config[:history] = '~/.irb_history'
24
+ Ripl.config[:history] = ENV['RIPL_HISTORY'] || '~/.irb_history'
@@ -1,3 +1,3 @@
1
1
  module Ripl
2
- VERSION = '0.6.1'
2
+ VERSION = '0.6.2'
3
3
  end
File without changes
@@ -1,4 +1,5 @@
1
1
  bacon >=1.1.0
2
2
  rr >=1.0.0
3
3
  bacon-bits >=0
4
- bacon-rr >=0
4
+ bacon-rr >=0
5
+ rake =0.9.2.2
@@ -67,13 +67,13 @@ describe "Runner" do
67
67
  it "rescues and prints SyntaxError" do
68
68
  mock(Runner).load(anything) { raise SyntaxError }
69
69
  mock_shell
70
- capture_stderr { Runner.run([]) }.should =~ %r{^ripl: Error while loading ~/.riplrc:\nSyntaxError:}
70
+ capture_stderr { Runner.run([]) }.should =~ %r{^ripl: Error while loading .*.riplrc:\nSyntaxError:}
71
71
  end
72
72
 
73
73
  it "rescues and prints LoadError" do
74
74
  mock(Runner).load(anything) { raise LoadError }
75
75
  mock_shell
76
- capture_stderr { Runner.run([]) }.should =~ %r{^ripl: Error while loading ~/.riplrc:\nLoadError:}
76
+ capture_stderr { Runner.run([]) }.should =~ %r{^ripl: Error while loading .*.riplrc:\nLoadError:}
77
77
  end
78
78
  end
79
79
 
@@ -3,6 +3,9 @@ require 'bacon/bits'
3
3
  require 'rr'
4
4
  require 'bacon/rr'
5
5
  require 'stringio'
6
+
7
+ ENV['RIPL_HISTORY'] = File.dirname(__FILE__) + '/.irb_history'
8
+ ENV['RIPL_RC'] = File.dirname(__FILE__) + '/.riplrc'
6
9
  require 'ripl'
7
10
  include Ripl
8
11
 
metadata CHANGED
@@ -1,83 +1,96 @@
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.2
4
5
  prerelease:
5
- version: 0.6.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: 2012-01-14 00:00:00 -05:00
14
- default_executable:
15
- dependencies:
16
- - !ruby/object:Gem::Dependency
12
+ date: 2012-02-12 00:00:00.000000000Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
17
15
  name: bond
18
- prerelease: false
19
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: &70297166159640 !ruby/object:Gem::Requirement
20
17
  none: false
21
- requirements:
18
+ requirements:
22
19
  - - ~>
23
- - !ruby/object:Gem::Version
20
+ - !ruby/object:Gem::Version
24
21
  version: 0.4.0
25
22
  type: :runtime
26
- version_requirements: *id001
27
- - !ruby/object:Gem::Dependency
28
- name: bacon
29
23
  prerelease: false
30
- requirement: &id002 !ruby/object:Gem::Requirement
24
+ version_requirements: *70297166159640
25
+ - !ruby/object:Gem::Dependency
26
+ name: bacon
27
+ requirement: &70297166159180 !ruby/object:Gem::Requirement
31
28
  none: false
32
- requirements:
33
- - - ">="
34
- - !ruby/object:Gem::Version
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
35
32
  version: 1.1.0
36
33
  type: :development
37
- version_requirements: *id002
38
- - !ruby/object:Gem::Dependency
39
- name: rr
40
34
  prerelease: false
41
- requirement: &id003 !ruby/object:Gem::Requirement
35
+ version_requirements: *70297166159180
36
+ - !ruby/object:Gem::Dependency
37
+ name: rr
38
+ requirement: &70297166158720 !ruby/object:Gem::Requirement
42
39
  none: false
43
- requirements:
44
- - - ">="
45
- - !ruby/object:Gem::Version
40
+ requirements:
41
+ - - ! '>='
42
+ - !ruby/object:Gem::Version
46
43
  version: 1.0.0
47
44
  type: :development
48
- version_requirements: *id003
49
- - !ruby/object:Gem::Dependency
50
- name: bacon-bits
51
45
  prerelease: false
52
- requirement: &id004 !ruby/object:Gem::Requirement
46
+ version_requirements: *70297166158720
47
+ - !ruby/object:Gem::Dependency
48
+ name: bacon-bits
49
+ requirement: &70297166158320 !ruby/object:Gem::Requirement
53
50
  none: false
54
- requirements:
55
- - - ">="
56
- - !ruby/object:Gem::Version
57
- version: "0"
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
58
55
  type: :development
59
- version_requirements: *id004
60
- - !ruby/object:Gem::Dependency
56
+ prerelease: false
57
+ version_requirements: *70297166158320
58
+ - !ruby/object:Gem::Dependency
61
59
  name: bacon-rr
60
+ requirement: &70297166157860 !ruby/object:Gem::Requirement
61
+ none: false
62
+ requirements:
63
+ - - ! '>='
64
+ - !ruby/object:Gem::Version
65
+ version: '0'
66
+ type: :development
62
67
  prerelease: false
63
- requirement: &id005 !ruby/object:Gem::Requirement
68
+ version_requirements: *70297166157860
69
+ - !ruby/object:Gem::Dependency
70
+ name: rake
71
+ requirement: &70297166157360 !ruby/object:Gem::Requirement
64
72
  none: false
65
- requirements:
66
- - - ">="
67
- - !ruby/object:Gem::Version
68
- version: "0"
73
+ requirements:
74
+ - - =
75
+ - !ruby/object:Gem::Version
76
+ version: 0.9.2.2
69
77
  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. Works on ruby 1.8.7 and greater.
78
+ prerelease: false
79
+ version_requirements: *70297166157360
80
+ description: ripl is a light, modular alternative to irb. Like irb, it loads ~/.irbrc,
81
+ has autocompletion and keeps history in ~/.irb_history. Unlike irb, it is highly
82
+ customizable via plugins and supports commands i.e. ripl-play. This customizability
83
+ makes it easy to build custom shells (i.e. for a gem or application) and complex
84
+ shells (i.e. for the web). In other words, ripl is also a shell framework. Works
85
+ on ruby 1.8.7 and greater.
72
86
  email: gabriel.horner@gmail.com
73
- executables:
87
+ executables:
74
88
  - ripl
75
89
  extensions: []
76
-
77
- extra_rdoc_files:
90
+ extra_rdoc_files:
78
91
  - README.rdoc
79
92
  - LICENSE.txt
80
- files:
93
+ files:
81
94
  - lib/ripl/completion.rb
82
95
  - lib/ripl/history.rb
83
96
  - lib/ripl/readline.rb
@@ -101,33 +114,32 @@ files:
101
114
  - man/ripl.1
102
115
  - man/ripl.1.html
103
116
  - man/ripl.1.ronn
104
- has_rdoc: true
117
+ - .travis.yml
118
+ - test/.riplrc
105
119
  homepage: http://github.com/cldwalker/ripl
106
- licenses:
120
+ licenses:
107
121
  - MIT
108
122
  post_install_message:
109
123
  rdoc_options: []
110
-
111
- require_paths:
124
+ require_paths:
112
125
  - lib
113
- required_ruby_version: !ruby/object:Gem::Requirement
126
+ required_ruby_version: !ruby/object:Gem::Requirement
114
127
  none: false
115
- requirements:
116
- - - ">="
117
- - !ruby/object:Gem::Version
118
- version: "0"
119
- required_rubygems_version: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ! '>='
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ required_rubygems_version: !ruby/object:Gem::Requirement
120
133
  none: false
121
- requirements:
122
- - - ">="
123
- - !ruby/object:Gem::Version
134
+ requirements:
135
+ - - ! '>='
136
+ - !ruby/object:Gem::Version
124
137
  version: 1.3.6
125
138
  requirements: []
126
-
127
139
  rubyforge_project:
128
- rubygems_version: 1.6.2
140
+ rubygems_version: 1.8.15
129
141
  signing_key:
130
142
  specification_version: 3
131
- summary: ruby interactive print loop - A light, modular alternative to irb and a shell framework
143
+ summary: ruby interactive print loop - A light, modular alternative to irb and a shell
144
+ framework
132
145
  test_files: []
133
-