pry 0.9.12.2pre1-java → 0.9.12.3-java

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: 8a85745c7e2252470da5008671eaa514a69a8d8b
4
- data.tar.gz: 8082c7abdf59ddbac2dafecc1f57b2590913a07e
3
+ metadata.gz: 501300ea168f5291f73ae2e5c671b42b3da0762e
4
+ data.tar.gz: a238a4311470a5093f5dd55d79b7261bff5ab83b
5
5
  SHA512:
6
- metadata.gz: ee01180fa6e0f2c0bf82bf2ef02fd01582a57b3d0068b658df3d317e29c83366bea87186ad7979acb1ff7d535cf4dd4dde9e14c4a731a5c12ac7c96b065eed34
7
- data.tar.gz: 9057c032078aaee7b02444d40aa15c9b0a1497e652c45b2213e4f2a02492149d8a6a0e04a71a241a6794818a87783957d716ea1c0baf779eeace34af4853ee26
6
+ metadata.gz: 5922f03c53cc476fb7ac78d835ad9ab9dbbc01620b32c29f1a4bf3eac14dda7d99f0a036664da37633e95b6ca48d122cdbcbc6105cc63c17592e7fc2f9c5cc80
7
+ data.tar.gz: d9f7d7cca2379dac90ac3c56c1e56cb8d607f900edbb9148a5e5f6cd8aaa937d709f119fdfa51fc8ea059fe8ec8d7dbdff745337b17adb023a540ca567e43d51
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
data/lib/pry/pager.rb CHANGED
@@ -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
data/lib/pry/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  class Pry
2
- VERSION = "0.9.12.2pre1"
2
+ VERSION = "0.9.12.3"
3
3
  end
data/pry.gemspec CHANGED
@@ -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
 
data/spec/pry_spec.rb CHANGED
@@ -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: java
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