pry 0.9.12.2pre1-i386-mswin32 → 0.9.12.3-i386-mswin32

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 25019da504a49f414886bfe277638003ef8ec9ff
4
- data.tar.gz: 20610934934d24769ae6d534a2927fbe03c6c937
3
+ metadata.gz: 6fcd430ab5ec6d0e33df84c72d51fd8b218eaf22
4
+ data.tar.gz: 191946162275d051ad96dc592fceb2bc91bda922
5
5
  SHA512:
6
- metadata.gz: 9f4dd5d4b3c6b794c45075a57b866e7476510b81d0a4eeada5705b3a5ab5ff85efdc546507d3df55b492d8d9f26c125e520b50cd69eb4ed6397aae2a0536e982
7
- data.tar.gz: 0114c22a06213a091d42a82c27f374af8c2ca37110ff6069bad9b4616a3704b9574f24c7172714df8a22e89a46f80a54927541e0666e3a0d247a2909f5c3c10b
6
+ metadata.gz: d880405b966796b9000dee9c65d9fe0a633f7088a4ba9f9c47936bc54a36f078e709c6452de44226451437b49707354b2c98a1848cf570c6ef5d8f22b4604b90
7
+ data.tar.gz: e984b5ace48af62e3e83392c273bd743d51a98ee0f117908161760619bef586dcf3dfc1bf8e5448c1bb5bab375a865f9b629ab72a281122a5fbe269b0ab4ffdd
data/CHANGELOG CHANGED
@@ -1,9 +1,12 @@
1
- 21/04/2012 version 0.9.12.1 HOTFIX
1
+ 10/05/2013 version 0.9.12.2 minor fix
2
+ * reload-code (with no args) should reload 'current file', issue #920
3
+
4
+ 21/04/2013 version 0.9.12.1 HOTFIX
2
5
  * Fixes #890, workaround for jruby crash related to http://jira.codehaus.org/browse/JRUBY-7114
3
6
  * note this fix is just applied to the 0.9.12 tag, not master. However, master has
4
7
  this fix applied too.
5
8
 
6
- 12/02/2012 version 0.9.12
9
+ 12/02/2013 version 0.9.12
7
10
  Bug fixes:
8
11
  * Fix major bug where commands broke due to slop looking at ARGV
9
12
  instead of command parameters (#828)
@@ -22,23 +25,23 @@ Features:
22
25
  (displays warning)
23
26
  * show-source/show-doc now indicate when -a option is available.
24
27
 
25
- 20/01/2012 version 0.9.11.4
28
+ 20/01/2013 version 0.9.11.4
26
29
  * fixed pager bug (wouldn't render color codes in some circumstances)
27
30
  * added Pry.last_internal_error, useful for devs debugging commands
28
31
 
29
- 17/01/2012 version 0.9.11.3
32
+ 17/01/2013 version 0.9.11.3
30
33
  * fix Pry.run_command
31
34
  * improve `ls` output
32
35
  * add :requires_gem => "jist" to 'gist' command (so deps can be installed
33
36
  via install-command)
34
37
  * improve help for 'edit' command
35
38
 
36
- 16/01/2012 version 0.9.11.2
39
+ 16/01/2013 version 0.9.11.2
37
40
  * minor bug fix for gist on windows, rescuing Jist::ClipboardError
38
41
  rather than letting the scary error spill out to users and potentially
39
42
  have them think the gist didnt post.
40
43
 
41
- 16/01/2012 version 0.9.11.1
44
+ 16/01/2013 version 0.9.11.1
42
45
  * fixed minor bug in 'gist' command where i neglected to remove
43
46
  a call to a non-existent method (no_arg) which was called when
44
47
  `gist` is invoked with no parameters
@@ -45,7 +45,7 @@ class Pry::Pager
45
45
  break if chunk.size < page_size
46
46
  if text_array.size > page_size
47
47
  puts "\n<page break> --- Press enter to continue ( q<enter> to break ) --- <page break>"
48
- break if $stdin.gets.chomp == "q"
48
+ break if Readline.readline.chomp == "q"
49
49
  end
50
50
  end
51
51
  end
@@ -424,7 +424,9 @@ class Pry
424
424
 
425
425
  begin
426
426
  if !process_command(val, eval_string, target)
427
- eval_string << "#{indented_val.chomp}\n" unless val.empty?
427
+ unless [val, eval_string].all?(&:empty?)
428
+ eval_string << "#{indented_val.chomp}\n"
429
+ end
428
430
  end
429
431
  ensure
430
432
  Pry.history << indented_val if interactive
@@ -1,3 +1,3 @@
1
1
  class Pry
2
- VERSION = "0.9.12.2pre1"
2
+ VERSION = "0.9.12.3"
3
3
  end
@@ -16,7 +16,7 @@ Gem::Specification.new do |s|
16
16
  s.files = `git ls-files`.split("\n")
17
17
  s.test_files = `git ls-files -- spec/*`.split("\n")
18
18
 
19
- s.add_dependency 'coderay', '~> 1.0.5'
19
+ s.add_dependency 'coderay', '~> 1.0'
20
20
  s.add_dependency 'slop', '~> 3.4'
21
21
  s.add_dependency 'method_source', '~> 0.8'
22
22
 
@@ -208,6 +208,17 @@ describe Pry do
208
208
 
209
209
  o.instance_variable_get(:@x).should == 10
210
210
  end
211
+
212
+ it 'should preserve newlines correctly with multi-line input' do
213
+ input_strings = ['@s = <<-END', '1', '', '', '2', 'END']
214
+ input = InputTester.new(*input_strings)
215
+
216
+ o = Object.new
217
+
218
+ pry_tester = Pry.start(o, :input => input, :output => StringIO.new)
219
+
220
+ o.instance_variable_get(:@s).should == "1\n\n\n2\n"
221
+ end
211
222
  end
212
223
 
213
224
  describe "complete_expression?" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pry
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.12.2pre1
4
+ version: 0.9.12.3
5
5
  platform: i386-mswin32
6
6
  authors:
7
7
  - John Mair (banisterfiend)
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-05-10 00:00:00.000000000 Z
13
+ date: 2013-11-09 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: coderay
@@ -18,14 +18,14 @@ dependencies:
18
18
  requirements:
19
19
  - - ~>
20
20
  - !ruby/object:Gem::Version
21
- version: 1.0.5
21
+ version: '1.0'
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
26
  - - ~>
27
27
  - !ruby/object:Gem::Version
28
- version: 1.0.5
28
+ version: '1.0'
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: slop
31
31
  requirement: !ruby/object:Gem::Requirement
@@ -352,12 +352,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
352
352
  version: '0'
353
353
  required_rubygems_version: !ruby/object:Gem::Requirement
354
354
  requirements:
355
- - - '>'
355
+ - - '>='
356
356
  - !ruby/object:Gem::Version
357
- version: 1.3.1
357
+ version: '0'
358
358
  requirements: []
359
359
  rubyforge_project:
360
- rubygems_version: 2.0.2
360
+ rubygems_version: 2.0.3
361
361
  signing_key:
362
362
  specification_version: 4
363
363
  summary: An IRB alternative and runtime developer console