pretty 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/pretty +2 -2
- data/bin/ruby.txt +3 -0
- metadata +7 -7
data/bin/pretty
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
#checking for filename(s)
|
7
7
|
if ARGV.empty?
|
8
|
-
STDERR.puts "Usage: pretty [-language] filename(-s)\nIf not language specified rules for Ruby will be used.\nExample pretty hello.rb"
|
8
|
+
STDERR.puts "Usage: pretty [-language] filename(-s)\nIf not language specified rules for Ruby will be used.\nExample: pretty hello.rb"
|
9
9
|
else
|
10
10
|
#declaring variables
|
11
11
|
errors = []
|
@@ -19,7 +19,7 @@ if ARGV[0] =~ /-/
|
|
19
19
|
end
|
20
20
|
|
21
21
|
if !language : language = "ruby" end
|
22
|
-
File.open("
|
22
|
+
File.open("#{File.expand_path(__FILE__)[0..-7]+language}.txt","r").read.each {|line| rules << line.split("!!!")}
|
23
23
|
|
24
24
|
ARGV.each do |filename| #parsing file(-s)
|
25
25
|
|
data/bin/ruby.txt
ADDED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pretty
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mateusz 'WujcioL' Tybura
|
@@ -9,22 +9,22 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2008-08-
|
12
|
+
date: 2008-08-20 00:00:00 +02:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|
16
16
|
description: This program is checking your code for few errors which makes it not pretty.
|
17
17
|
email: wujciol@gmail.com
|
18
|
-
executables:
|
19
|
-
|
18
|
+
executables:
|
19
|
+
- pretty
|
20
20
|
extensions: []
|
21
21
|
|
22
22
|
extra_rdoc_files: []
|
23
23
|
|
24
24
|
files:
|
25
|
-
-
|
26
|
-
-
|
27
|
-
-
|
25
|
+
- bin/pretty
|
26
|
+
- bin/pretty.bat
|
27
|
+
- bin/ruby.txt
|
28
28
|
has_rdoc: false
|
29
29
|
homepage: http://wujciol.yoyo.pl
|
30
30
|
post_install_message:
|