ruby-beautify 0.97.2 → 0.97.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/WHATSNEW.md +5 -0
- data/bin/rbeautify +2 -2
- data/bin/ruby-beautify +2 -2
- data/lib/ruby-beautify.rb +1 -1
- data/lib/ruby-beautify/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 86201974441fcea19d548ca195a492a021fd7c1a
|
4
|
+
data.tar.gz: f3348c778cca09b9a826a651a8e335a3f2e0d152
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fa5181076ce984dc0785c7c2896f13719982fb1035402a3cc4a64f3a817e39e6c459145edb12539d882a6d220dd1d14992566515b57ab44817ee7a3130fa8a9f
|
7
|
+
data.tar.gz: 8064548c241743cf698809064a7d9029ad1cbfb95c3691c1e05ac7d0949132bd32e4c6361c70f2b9781974c1490a740e5209507c8fad5c39578fbb4fb8081469
|
data/README.md
CHANGED
data/WHATSNEW.md
CHANGED
@@ -1,3 +1,8 @@
|
|
1
|
+
## 0.97.2
|
2
|
+
* Typo fix, thanks @andyw8.
|
3
|
+
* More typos, cleaned up thanks to @veelenga.
|
4
|
+
* @tnnn fixed a namespacing issue preventing version from working, thanks.
|
5
|
+
|
1
6
|
## 0.97.2
|
2
7
|
* Thanks goes to @bachue for discovering that `ruby-beautify` was not honoring spaces and indent count on file overwrites.
|
3
8
|
|
data/bin/rbeautify
CHANGED
@@ -6,11 +6,11 @@ include RubyBeautify
|
|
6
6
|
my_argv = config_argv
|
7
7
|
|
8
8
|
Options = OptionParser.new do |opts|
|
9
|
-
opts.on("-V", "--version", "Print version") { |version| puts
|
9
|
+
opts.on("-V", "--version", "Print version") { |version| puts RubyBeautify::VERSION;exit 0}
|
10
10
|
opts.on("-c", "--indent_count [COUNT]", Integer, "Count of characters to use for indenting. (default: 1)") { |count| @indent_count = count}
|
11
11
|
opts.on("-t", "--tabs", "Use tabs for the indent character (default)") { @indent_token = "\t" }
|
12
12
|
opts.on("-s", "--spaces", "Use spaces for the indent character") { @indent_token = " " }
|
13
|
-
opts.on("--overwrite", "Overwrite files as you go (won't touch files that
|
13
|
+
opts.on("--overwrite", "Overwrite files as you go (won't touch files that failed a syntax check).") { @overwrite = true }
|
14
14
|
opts.banner = "Usage: print ruby into a pretty format, or break trying."
|
15
15
|
end
|
16
16
|
Options.parse!(my_argv)
|
data/bin/ruby-beautify
CHANGED
@@ -6,11 +6,11 @@ include RubyBeautify
|
|
6
6
|
my_argv = config_argv
|
7
7
|
|
8
8
|
Options = OptionParser.new do |opts|
|
9
|
-
opts.on("-V", "--version", "Print version") { |version| puts
|
9
|
+
opts.on("-V", "--version", "Print version") { |version| puts RubyBeautify::VERSION;exit 0}
|
10
10
|
opts.on("-c", "--indent_count [COUNT]", Integer, "Count of characters to use for indenting. (default: 1)") { |count| @indent_count = count}
|
11
11
|
opts.on("-t", "--tabs", "Use tabs for the indent character (default)") { @indent_token = "\t" }
|
12
12
|
opts.on("-s", "--spaces", "Use spaces for the indent character") { @indent_token = " " }
|
13
|
-
opts.on("--overwrite", "Overwrite files as you go (won't touch files that
|
13
|
+
opts.on("--overwrite", "Overwrite files as you go (won't touch files that failed a syntax check).") { @overwrite = true }
|
14
14
|
opts.banner = "Usage: print ruby into a pretty format, or break trying."
|
15
15
|
end
|
16
16
|
Options.parse!(my_argv)
|
data/lib/ruby-beautify.rb
CHANGED
@@ -146,7 +146,7 @@ module RubyBeautify
|
|
146
146
|
line_lex.select {|l| CLOSE_BRACKETS.include? l[1]}.count
|
147
147
|
end
|
148
148
|
|
149
|
-
#
|
149
|
+
# prepare an indented line. Requires the level, token, count and string.
|
150
150
|
def indented_line(level, token = "\t", count = 1, string)
|
151
151
|
output_string = ""
|
152
152
|
if string =~ /^\n$/
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-beautify
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.97.
|
4
|
+
version: 0.97.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ernie Brodeur
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-04-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|