pry 0.9.12.2pre1-i386-mingw32 → 0.9.12.3-i386-mingw32

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3772a23debf2538e6e1b5c5c3ab6dd88cc072011
4
- data.tar.gz: 8082c7abdf59ddbac2dafecc1f57b2590913a07e
3
+ metadata.gz: 432a09e082a0e085cdef5a51b6191b8bf1070181
4
+ data.tar.gz: 191946162275d051ad96dc592fceb2bc91bda922
5
5
  SHA512:
6
- metadata.gz: 764b157842121ae0f57f3d705fc5da5719b63699d93ea6b9aa062761a32fd9a73c8da21cceee87503090d360bb2f92322cec0a20ca9304942d89c87f951fba1c
7
- data.tar.gz: 9057c032078aaee7b02444d40aa15c9b0a1497e652c45b2213e4f2a02492149d8a6a0e04a71a241a6794818a87783957d716ea1c0baf779eeace34af4853ee26
6
+ metadata.gz: 9db45eb52970c7dd4ac7664d74020fc358fbc797f0a3cf469f2617b1199cb88b183146ffca48cc17b721e107c543cd6f24921f2b967cefac1773167e00429824
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-mingw32
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