anbt-sql-formatter 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -13
- data/CHANGELOG.md +5 -0
- data/anbt-sql-formatter.gemspec +1 -1
- data/lib/anbt-sql-formatter/parser.rb +3 -3
- data/lib/anbt-sql-formatter/version.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,15 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
5
|
-
data.tar.gz: !binary |-
|
6
|
-
NzA1YmE4NjQxZGYxMmYwMWFmNzkzYmQzOGJjOGJiMmIzOThiZjEwZA==
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 06c0d1af78c569f0eb6c74286ade60edd1aaeca8
|
4
|
+
data.tar.gz: f1366c1c4e7a1769c5384ad2ff102702499466e5
|
7
5
|
SHA512:
|
8
|
-
metadata.gz:
|
9
|
-
|
10
|
-
ZDI4NjUxNDEzZjhiYTU2YTk5OTQxMTc2ZGY2M2JhMjVmZTJlNGNjNTE1YmUz
|
11
|
-
YmUwZjM4ODNlOTE0ZTliZDMwOTJiZTAwN2FjMGQwYmRiZjgxNjQ=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
NTczY2NlMDk4YTRkNzMxY2ZiYWI1NWI1YTI1NTNhMzUxMTFlNjAyYWY1MmRk
|
14
|
-
OWJhMjRlNWYzNDhjYTU1MDlmMzc2YmJlNjE1ZTZkOWY2OTZkMjljYzViNzYy
|
15
|
-
NzhjOTgzYWIyZTQyYTNlM2YyNGE1ZDE0NjQxZGQwMDYwYWY2Mjc=
|
6
|
+
metadata.gz: 0e12afe4467dba91c3ac4f18f39594b33d3a73f4008b37e46fa22f8f51dc6041b6c470c83ee4b22fdfeffdda7db12a41d9a3c96239e375c803df6390e47c2fe4
|
7
|
+
data.tar.gz: 44e782498886cebb11e7b49a087b35d46d30364d10709efc20f1dd6f13ad790b087f41e34f40083f7a4d01328be21aca18f47b04a1aad0a6e64cb77107c6b42b
|
data/CHANGELOG.md
CHANGED
data/anbt-sql-formatter.gemspec
CHANGED
@@ -7,7 +7,7 @@ Gem::Specification.new do |s|
|
|
7
7
|
s.version = Anbt::Sql::Formatter::VERSION
|
8
8
|
s.authors = ["sonota88"]
|
9
9
|
s.email = ["yosiot8753@gmail.com"]
|
10
|
-
s.homepage = ""
|
10
|
+
s.homepage = "https://github.com/sonota88/anbt-sql-formatter"
|
11
11
|
s.summary = %q{A tool for SQL formatting written in Ruby.}
|
12
12
|
s.description = %q{A tool for SQL formatting written in Ruby. Ruby port of Blanco SQL Formatter.}
|
13
13
|
|
@@ -91,9 +91,9 @@ class AnbtSql
|
|
91
91
|
@char = char_at(@before, @pos)
|
92
92
|
|
93
93
|
if space?(@char)
|
94
|
-
|
94
|
+
work_string = ""
|
95
95
|
loop {
|
96
|
-
|
96
|
+
work_string += @char
|
97
97
|
|
98
98
|
is_next_char_space = false
|
99
99
|
if @pos + 1 < @before.size &&
|
@@ -104,7 +104,7 @@ class AnbtSql
|
|
104
104
|
if not is_next_char_space
|
105
105
|
@pos += 1
|
106
106
|
return AnbtSql::Token.new(AnbtSql::TokenConstants::SPACE,
|
107
|
-
|
107
|
+
work_string, start_pos)
|
108
108
|
else
|
109
109
|
@pos += 1
|
110
110
|
next
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: anbt-sql-formatter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- sonota88
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-11-29 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: A tool for SQL formatting written in Ruby. Ruby port of Blanco SQL Formatter.
|
14
14
|
email:
|
@@ -18,7 +18,7 @@ executables:
|
|
18
18
|
extensions: []
|
19
19
|
extra_rdoc_files: []
|
20
20
|
files:
|
21
|
-
- .gitignore
|
21
|
+
- ".gitignore"
|
22
22
|
- CHANGELOG.md
|
23
23
|
- Gemfile
|
24
24
|
- Rakefile
|
@@ -47,7 +47,7 @@ files:
|
|
47
47
|
- test/test_parser.rb
|
48
48
|
- test/test_rule.rb
|
49
49
|
- uninstall.rb
|
50
|
-
homepage:
|
50
|
+
homepage: https://github.com/sonota88/anbt-sql-formatter
|
51
51
|
licenses: []
|
52
52
|
metadata: {}
|
53
53
|
post_install_message:
|
@@ -56,17 +56,17 @@ require_paths:
|
|
56
56
|
- lib
|
57
57
|
required_ruby_version: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '0'
|
62
62
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
63
63
|
requirements:
|
64
|
-
- -
|
64
|
+
- - ">="
|
65
65
|
- !ruby/object:Gem::Version
|
66
66
|
version: '0'
|
67
67
|
requirements: []
|
68
68
|
rubyforge_project: anbt-sql-formatter
|
69
|
-
rubygems_version: 2.
|
69
|
+
rubygems_version: 2.6.8
|
70
70
|
signing_key:
|
71
71
|
specification_version: 4
|
72
72
|
summary: A tool for SQL formatting written in Ruby.
|