rogerdpack-rbeautify 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/bin/rbeautify +4 -2
  2. metadata +3 -2
data/bin/rbeautify CHANGED
@@ -22,7 +22,7 @@
22
22
  ***************************************************************************/
23
23
  =end
24
24
 
25
- PVERSION = "Version 2.9, 10/24/2008"
25
+ PVERSION = "modified from Version 2.9, 10/24/2008"
26
26
 
27
27
  module RBeautify
28
28
 
@@ -180,7 +180,9 @@ module RBeautify
180
180
  end
181
181
  error = (tab != 0)
182
182
  STDERR.puts "Error: indent/outdent mismatch: #{tab}." if error
183
- return output.join("\n") + "\n",error
183
+ # attempt to accomodate for DOS style line endings...
184
+ line_joiner = source.include?("\r\n") ? "\r\n" : "\n"
185
+ return output.join(line_joiner) + line_joiner,error
184
186
  end # beautify_string
185
187
 
186
188
  def RBeautify.beautify_file(path)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rogerdpack-rbeautify
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roger Pack
@@ -35,6 +35,7 @@ files:
35
35
  - bin/rbeautify
36
36
  has_rdoc: false
37
37
  homepage: http://github.com/rogerdpack/rbeautify
38
+ licenses:
38
39
  post_install_message:
39
40
  rdoc_options: []
40
41
 
@@ -55,7 +56,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
55
56
  requirements: []
56
57
 
57
58
  rubyforge_project:
58
- rubygems_version: 1.2.0
59
+ rubygems_version: 1.3.5
59
60
  signing_key:
60
61
  specification_version: 2
61
62
  summary: prettifier/beautifier for Ruby code [from http://www.arachnoid.com/ruby/]