ripl-play 0.1.0 → 0.1.1

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
@@ -13,7 +13,7 @@ Gem::Specification.new do |s|
13
13
  s.required_rubygems_version = ">= 1.3.6"
14
14
  s.rubyforge_project = 'tagaholic'
15
15
  s.executables = ['ripl-play', 'ripl-record']
16
- s.add_dependency 'ripl', '>= 0.2.5'
16
+ s.add_dependency 'ripl', '>= 0.2.6'
17
17
  s.files = Dir.glob(%w[{lib,test}/**/*.rb bin/* [A-Z]*.{txt,rdoc} ext/**/*.{rb,c} **/deps.rip]) + %w{Rakefile .gemspec}
18
18
  s.extra_rdoc_files = ["README.rdoc", "LICENSE.txt"]
19
19
  s.license = 'MIT'
@@ -1,2 +1,5 @@
1
+ == 0.1.1
2
+ * Take out exit words from a recording
3
+
1
4
  == 0.1.0
2
5
  * Initial release
@@ -15,7 +15,7 @@ To be able to playback multi-line code:
15
15
 
16
16
  With this plugin, ripl gains commands play and record.
17
17
 
18
- `ripl play` plays its input, line by line, as if each line were input by a user. To play a url:
18
+ <tt>ripl play</tt> plays its input, line by line, as if each line were input by a user. To play a url:
19
19
 
20
20
  $ ripl play https://gist.github.com/725338
21
21
  >> a = 10 ** 2
@@ -35,7 +35,7 @@ Urls should point to raw text except for gists and any github file url
35
35
  ({like this}[https://github.com/cldwalker/irbfiles/blob/master/boson/commands/core/string.rb])
36
36
  which are autoconverted.
37
37
 
38
- `ripl play` can also playback files or from stdin:
38
+ <tt>ripl play</tt> can also playback files or from stdin:
39
39
 
40
40
  # Plays script.rb line by line
41
41
  $ ripl play script.rb
@@ -56,7 +56,7 @@ If you want to share a ripl session for playback later, start ripl with record:
56
56
  <Control-D>
57
57
 
58
58
  After exiting, the file ripl_tape will contain all of your inputs from that session.
59
- Now anyone can playback that session with `ripl play`:
59
+ Now anyone can playback that session with <tt>ripl play</tt>:
60
60
 
61
61
  # play defaults to ripl_tape
62
62
  # Assuming you're in the same directory as ripl_tape
data/deps.rip CHANGED
@@ -1 +1 @@
1
- ripl >=0.2.5
1
+ ripl >=0.2.6
@@ -1,7 +1,7 @@
1
1
  require 'ripl'
2
2
 
3
3
  module Ripl::Play
4
- VERSION = '0.1.0'
4
+ VERSION = '0.1.1'
5
5
 
6
6
  def before_loop
7
7
  super
@@ -3,7 +3,9 @@ require 'ripl'
3
3
  module Ripl::Record
4
4
  def after_loop
5
5
  super
6
- saved_history = Array(history).reverse.slice(0, @line - 1).reverse
6
+ saved_history = Array(history)
7
+ saved_history.pop if Ripl::Shell::EXIT_WORDS.include?(saved_history[-1])
8
+ saved_history = saved_history.reverse.slice(0, @line - 1).reverse
7
9
  File.open(config[:play], 'w') {|f| f.write saved_history.join("\n") }
8
10
  end
9
11
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ripl-play
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 0
10
- version: 0.1.0
9
+ - 1
10
+ version: 0.1.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Gabriel Horner
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-12-02 00:00:00 -05:00
18
+ date: 2010-12-03 00:00:00 -05:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -26,12 +26,12 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- hash: 29
29
+ hash: 27
30
30
  segments:
31
31
  - 0
32
32
  - 2
33
- - 5
34
- version: 0.2.5
33
+ - 6
34
+ version: 0.2.6
35
35
  type: :runtime
36
36
  version_requirements: *id001
37
37
  description: A ripl plugin to playback ruby code in ripl coming from files, urls or stdin. Also records a ripl session for playback later.