ruby-beautify 0.97.2 → 0.97.3

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: 95b3bdeb89a34b2183b43d667c71c8ce3e95c6e4
4
- data.tar.gz: b4d4147b1c41919ce93522b0489c3dcd1e958461
3
+ metadata.gz: 86201974441fcea19d548ca195a492a021fd7c1a
4
+ data.tar.gz: f3348c778cca09b9a826a651a8e335a3f2e0d152
5
5
  SHA512:
6
- metadata.gz: 892a887b34598ab7918c33efe425f61a268ac8ca30f405ae887456187e5efe37b3b0593f421416cfd83248f2cbd0597c4b07f2c88b5fa72d97d55ae9b0c5d832
7
- data.tar.gz: e352c5f70a78c3c11ae9cfbd1cd4779218c9ab07eb21c7be46ab74543df45776cf36eb82ce3550d3c8be0a32e51abcdf681ed9b213fbe6efa2a87a38b48a8f5f
6
+ metadata.gz: fa5181076ce984dc0785c7c2896f13719982fb1035402a3cc4a64f3a817e39e6c459145edb12539d882a6d220dd1d14992566515b57ab44817ee7a3130fa8a9f
7
+ data.tar.gz: 8064548c241743cf698809064a7d9029ad1cbfb95c3691c1e05ac7d0949132bd32e4c6361c70f2b9781974c1490a740e5209507c8fad5c39578fbb4fb8081469
data/README.md CHANGED
@@ -52,7 +52,7 @@ It can use a configuration file like some of the other ruby projects out there.
52
52
 
53
53
  ```
54
54
  --spaces
55
- --ident_count=2
55
+ --indent_count=2
56
56
  ```
57
57
 
58
58
  Note, you'll have to add the equal sign between value and argument (tricky bit, that).
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 RBeautify::VERSION;exit 0}
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 faile a syntax check).") { @overwrite = true }
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 RBeautify::VERSION;exit 0}
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 faile a syntax check).") { @overwrite = true }
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
- # print an indented line. Requires the leve, token, count, and string.
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$/
@@ -1,3 +1,3 @@
1
1
  module RubyBeautify
2
- VERSION = "0.97.2"
2
+ VERSION = "0.97.3"
3
3
  end
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.2
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-02-10 00:00:00.000000000 Z
11
+ date: 2015-04-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake