ripl 0.4.1 → 0.4.2

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.
@@ -1,3 +1,6 @@
1
+ == 0.4.2
2
+ * Make Shell#input= and Shell#in_loop available
3
+
1
4
  == 0.4.1
2
5
  * More support for internationalization
3
6
 
@@ -181,6 +181,7 @@ see {ripl-rails}[http://github.com/cldwalker/ripl-rails].
181
181
  * {ripl-padrino}[https://github.com/achiu/ripl-padrino]: console for padrino
182
182
  * {ripltools}[https://github.com/janlelis/ripltools]: a collection of ripl plugins
183
183
  * {ripl-rc}[https://github.com/godfat/ripl-rc]: ripl plugins for debugging, class-based coloring and more
184
+ * {ripl-em}[https://github.com/cldwalker/ripl-em]: interact with EM libraries asynchronously
184
185
 
185
186
  == Ripl Shells
186
187
  Shells built on top of ripl:
@@ -195,6 +196,7 @@ Shells built on top of ripl:
195
196
 
196
197
  * {ripl screencast}[http://www.rubypulse.com/ep0.51_ripl.html]
197
198
  * {overview of ripl features}[http://rbjl.net/44-ripl-why-should-you-use-an-irb-alternative]
199
+ * {slides at euroko about ruby consoles}[http://rbjl.net/irbtools+ripl.pdf]
198
200
 
199
201
  == Irb Alternatives
200
202
  Some other irb alternatives to check out:
@@ -16,7 +16,7 @@ class Ripl::Shell
16
16
  :binding => TOPLEVEL_BINDING, :irbrc=>'~/.irbrc'}
17
17
  EXIT_WORDS = [nil, 'exit', 'quit']
18
18
 
19
- attr_accessor :line, :binding, :result, :name
19
+ attr_accessor :line, :binding, :result, :name, :input
20
20
  def initialize(options={})
21
21
  options = OPTIONS.merge options
22
22
  @name, @binding = options.values_at(:name, :binding)
@@ -27,7 +27,7 @@ class Ripl::Shell
27
27
  # Loops shell until user exits
28
28
  def loop
29
29
  before_loop
30
- catch(:ripl_exit) { loop_once while(true) }
30
+ in_loop
31
31
  after_loop
32
32
  end
33
33
 
@@ -45,6 +45,10 @@ class Ripl::Shell
45
45
  add_commands(eval("self", @binding))
46
46
  end
47
47
 
48
+ def in_loop
49
+ catch(:ripl_exit) { loop_once while(true) }
50
+ end
51
+
48
52
  def add_commands(obj)
49
53
  ![Symbol, Fixnum].include?(obj.class) ? obj.extend(Ripl::Commands) :
50
54
  obj.class.send(:include, Ripl::Commands)
@@ -1,3 +1,3 @@
1
1
  module Ripl
2
- VERSION = '0.4.1'
2
+ VERSION = '0.4.2'
3
3
  end
metadata CHANGED
@@ -1,13 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ripl
3
3
  version: !ruby/object:Gem::Version
4
- hash: 13
5
- prerelease: false
6
- segments:
7
- - 0
8
- - 4
9
- - 1
10
- version: 0.4.1
4
+ prerelease:
5
+ version: 0.4.2
11
6
  platform: ruby
12
7
  authors:
13
8
  - Gabriel Horner
@@ -15,7 +10,7 @@ autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
12
 
18
- date: 2011-05-07 00:00:00 -04:00
13
+ date: 2011-06-12 00:00:00 -04:00
19
14
  default_executable:
20
15
  dependencies:
21
16
  - !ruby/object:Gem::Dependency
@@ -26,11 +21,6 @@ dependencies:
26
21
  requirements:
27
22
  - - ~>
28
23
  - !ruby/object:Gem::Version
29
- hash: 15
30
- segments:
31
- - 0
32
- - 4
33
- - 0
34
24
  version: 0.4.0
35
25
  type: :runtime
36
26
  version_requirements: *id001
@@ -42,11 +32,6 @@ dependencies:
42
32
  requirements:
43
33
  - - ">="
44
34
  - !ruby/object:Gem::Version
45
- hash: 19
46
- segments:
47
- - 1
48
- - 1
49
- - 0
50
35
  version: 1.1.0
51
36
  type: :development
52
37
  version_requirements: *id002
@@ -58,11 +43,6 @@ dependencies:
58
43
  requirements:
59
44
  - - ">="
60
45
  - !ruby/object:Gem::Version
61
- hash: 23
62
- segments:
63
- - 1
64
- - 0
65
- - 0
66
46
  version: 1.0.0
67
47
  type: :development
68
48
  version_requirements: *id003
@@ -74,9 +54,6 @@ dependencies:
74
54
  requirements:
75
55
  - - ">="
76
56
  - !ruby/object:Gem::Version
77
- hash: 3
78
- segments:
79
- - 0
80
57
  version: "0"
81
58
  type: :development
82
59
  version_requirements: *id004
@@ -88,9 +65,6 @@ dependencies:
88
65
  requirements:
89
66
  - - ">="
90
67
  - !ruby/object:Gem::Version
91
- hash: 3
92
- segments:
93
- - 0
94
68
  version: "0"
95
69
  type: :development
96
70
  version_requirements: *id005
@@ -141,25 +115,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
141
115
  requirements:
142
116
  - - ">="
143
117
  - !ruby/object:Gem::Version
144
- hash: 3
145
- segments:
146
- - 0
147
118
  version: "0"
148
119
  required_rubygems_version: !ruby/object:Gem::Requirement
149
120
  none: false
150
121
  requirements:
151
122
  - - ">="
152
123
  - !ruby/object:Gem::Version
153
- hash: 23
154
- segments:
155
- - 1
156
- - 3
157
- - 6
158
124
  version: 1.3.6
159
125
  requirements: []
160
126
 
161
127
  rubyforge_project: tagaholic
162
- rubygems_version: 1.3.7
128
+ rubygems_version: 1.6.2
163
129
  signing_key:
164
130
  specification_version: 3
165
131
  summary: ruby interactive print loop - A light, modular alternative to irb and a shell framework