niceql 0.1.25 → 0.6.1

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.
data/niceql.gemspec CHANGED
@@ -1,4 +1,6 @@
1
1
  # coding: utf-8
2
+ # frozen_string_literal: true
3
+
2
4
  lib = File.expand_path("../lib", __FILE__)
3
5
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
6
  require "niceql/version"
@@ -9,8 +11,12 @@ Gem::Specification.new do |spec|
9
11
  spec.authors = ["alekseyl"]
10
12
  spec.email = ["leshchuk@gmail.com"]
11
13
 
12
- spec.summary = %q{This is simple and nice sql prettifier, it splits, indent and colorize SQL query and PG errors if any }
13
- spec.description = %q{This is simple and nice sql prettifier, it splits, indent and colorize SQL query and PG error if any }
14
+ spec.summary = "This is a simple and nice gem for SQL prettifying and formatting. "\
15
+ "Niceql splits, indent and colorize SQL query and PG errors if any. "
16
+ spec.description = "This is a simple and nice gem for SQL prettifying and formatting. "\
17
+ "Niceql splits, indent and colorize SQL query and PG errors if any. "\
18
+ "Could be used as a standalone gem without any dependencies. "\
19
+ "Seamless ActiveRecord integration via rails_sql_prettifier gem. "
14
20
  spec.homepage = "https://github.com/alekseyl/niceql"
15
21
  spec.license = "MIT"
16
22
 
@@ -23,19 +29,23 @@ Gem::Specification.new do |spec|
23
29
  "public gem pushes."
24
30
  end
25
31
 
26
- spec.files = `git ls-files -z`.split("\x0").reject do |f|
32
+ spec.files = %x(git ls-files -z).split("\x0").reject do |f|
27
33
  f.match(%r{^(test|spec|features)/})
28
34
  end
29
35
  spec.bindir = "exe"
30
36
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
31
37
  spec.require_paths = ["lib"]
32
38
 
33
- spec.required_ruby_version = '>= 2.3'
34
- spec.add_development_dependency "bundler", ">= 1"
35
- spec.add_development_dependency "rake", "~> 10"
36
- spec.add_development_dependency "minitest", "~> 5.0"
39
+ spec.required_ruby_version = ">= 2.5"
40
+
41
+ spec.add_development_dependency("awesome_print")
42
+ spec.add_development_dependency("bundler", ">= 1")
43
+ spec.add_development_dependency("minitest", "~> 5.0")
44
+ spec.add_development_dependency("rake", ">= 12.3.3")
45
+ spec.add_development_dependency("rubocop-shopify", "~> 2.0")
37
46
 
38
- spec.add_development_dependency "differ"
39
- spec.add_development_dependency "pry-byebug"
40
- spec.add_development_dependency "benchmark-ips"
47
+ spec.add_development_dependency("benchmark-ips")
48
+ spec.add_development_dependency("differ")
49
+ spec.add_development_dependency("pry-byebug")
50
+ spec.add_development_dependency("sqlite3")
41
51
  end
metadata CHANGED
@@ -1,15 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: niceql
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.25
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - alekseyl
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-04-13 00:00:00.000000000 Z
11
+ date: 2022-11-19 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: awesome_print
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
13
27
  - !ruby/object:Gem::Dependency
14
28
  name: bundler
15
29
  requirement: !ruby/object:Gem::Requirement
@@ -25,33 +39,61 @@ dependencies:
25
39
  - !ruby/object:Gem::Version
26
40
  version: '1'
27
41
  - !ruby/object:Gem::Dependency
28
- name: rake
42
+ name: minitest
29
43
  requirement: !ruby/object:Gem::Requirement
30
44
  requirements:
31
45
  - - "~>"
32
46
  - !ruby/object:Gem::Version
33
- version: '10'
47
+ version: '5.0'
34
48
  type: :development
35
49
  prerelease: false
36
50
  version_requirements: !ruby/object:Gem::Requirement
37
51
  requirements:
38
52
  - - "~>"
39
53
  - !ruby/object:Gem::Version
40
- version: '10'
54
+ version: '5.0'
41
55
  - !ruby/object:Gem::Dependency
42
- name: minitest
56
+ name: rake
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: 12.3.3
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: 12.3.3
69
+ - !ruby/object:Gem::Dependency
70
+ name: rubocop-shopify
43
71
  requirement: !ruby/object:Gem::Requirement
44
72
  requirements:
45
73
  - - "~>"
46
74
  - !ruby/object:Gem::Version
47
- version: '5.0'
75
+ version: '2.0'
48
76
  type: :development
49
77
  prerelease: false
50
78
  version_requirements: !ruby/object:Gem::Requirement
51
79
  requirements:
52
80
  - - "~>"
53
81
  - !ruby/object:Gem::Version
54
- version: '5.0'
82
+ version: '2.0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: benchmark-ips
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
55
97
  - !ruby/object:Gem::Dependency
56
98
  name: differ
57
99
  requirement: !ruby/object:Gem::Requirement
@@ -81,7 +123,7 @@ dependencies:
81
123
  - !ruby/object:Gem::Version
82
124
  version: '0'
83
125
  - !ruby/object:Gem::Dependency
84
- name: benchmark-ips
126
+ name: sqlite3
85
127
  requirement: !ruby/object:Gem::Requirement
86
128
  requirements:
87
129
  - - ">="
@@ -94,16 +136,21 @@ dependencies:
94
136
  - - ">="
95
137
  - !ruby/object:Gem::Version
96
138
  version: '0'
97
- description: 'This is simple and nice sql prettifier, it splits, indent and colorize
98
- SQL query and PG error if any '
139
+ description: 'This is a simple and nice gem for SQL prettifying and formatting. Niceql
140
+ splits, indent and colorize SQL query and PG errors if any. Could be used as a standalone
141
+ gem without any dependencies. Seamless ActiveRecord integration via rails_sql_prettifier
142
+ gem. '
99
143
  email:
100
144
  - leshchuk@gmail.com
101
145
  executables: []
102
146
  extensions: []
103
147
  extra_rdoc_files: []
104
148
  files:
149
+ - ".github/dependabot.yml"
150
+ - ".github/workflows/ci.yml"
151
+ - ".github/workflows/rubocop.yml"
105
152
  - ".gitignore"
106
- - ".travis.yml"
153
+ - ".rubocop.yml"
107
154
  - CHANGELOG.md
108
155
  - Gemfile
109
156
  - LICENSE.txt
@@ -113,13 +160,9 @@ files:
113
160
  - bin/setup
114
161
  - err_now.png
115
162
  - err_was.png
116
- - lib/benchmark/cat.rb
117
- - lib/benchmark/gsub.rb
118
- - lib/benchmark/txt
119
163
  - lib/generators/niceql/install_generator.rb
120
164
  - lib/generators/templates/niceql_initializer.rb
121
165
  - lib/niceql.rb
122
- - lib/niceql/string.rb
123
166
  - lib/niceql/version.rb
124
167
  - niceql.gemspec
125
168
  - to_niceql.png
@@ -128,7 +171,7 @@ licenses:
128
171
  - MIT
129
172
  metadata:
130
173
  allowed_push_host: https://rubygems.org
131
- post_install_message:
174
+ post_install_message:
132
175
  rdoc_options: []
133
176
  require_paths:
134
177
  - lib
@@ -136,17 +179,16 @@ required_ruby_version: !ruby/object:Gem::Requirement
136
179
  requirements:
137
180
  - - ">="
138
181
  - !ruby/object:Gem::Version
139
- version: '2.3'
182
+ version: '2.5'
140
183
  required_rubygems_version: !ruby/object:Gem::Requirement
141
184
  requirements:
142
185
  - - ">="
143
186
  - !ruby/object:Gem::Version
144
187
  version: '0'
145
188
  requirements: []
146
- rubyforge_project:
147
- rubygems_version: 2.7.6
148
- signing_key:
189
+ rubygems_version: 3.0.9
190
+ signing_key:
149
191
  specification_version: 4
150
- summary: This is simple and nice sql prettifier, it splits, indent and colorize SQL
151
- query and PG errors if any
192
+ summary: This is a simple and nice gem for SQL prettifying and formatting. Niceql
193
+ splits, indent and colorize SQL query and PG errors if any.
152
194
  test_files: []
data/.travis.yml DELETED
@@ -1,7 +0,0 @@
1
- sudo: false
2
- language: ruby
3
- rvm:
4
- - 2.4
5
- - 2.5
6
- - 2.3
7
- - 2.6
data/lib/benchmark/cat.rb DELETED
@@ -1,34 +0,0 @@
1
- require 'benchmark/ips'
2
-
3
- # 2 + 1 = 3 object
4
- def slow_plus
5
- 'foo' + 'bar'
6
- end
7
-
8
- # 2 + 1 = 3 object
9
- def slow_concat
10
- 'foo'.concat 'bar'
11
- end
12
-
13
- # 2 + 1 = 3 object
14
- def slow_append
15
- 'foo' << 'bar'
16
- end
17
-
18
- # 1 object
19
- def fast
20
- 'foo' 'bar'
21
- end
22
-
23
- def fast_interpolation
24
- "#{'foo'}#{'bar'}"
25
- end
26
-
27
- Benchmark.ips do |x|
28
- x.report('String#+') { slow_plus }
29
- x.report('String#concat') { slow_concat }
30
- x.report('String#append') { slow_append }
31
- x.report('"foo" "bar"') { fast }
32
- x.report('"#{\'foo\'}#{\'bar\'}"') { fast_interpolation }
33
- x.compare!
34
- end
@@ -1,34 +0,0 @@
1
- require 'benchmark/ips'
2
-
3
- # 2 + 1 = 3 object
4
- def slow_plus
5
- 'foo' + 'bar'
6
- end
7
-
8
- # 2 + 1 = 3 object
9
- def slow_concat
10
- 'foo'.concat 'bar'
11
- end
12
-
13
- # 2 + 1 = 3 object
14
- def slow_append
15
- 'foo' << 'bar'
16
- end
17
-
18
- # 1 object
19
- def fast
20
- 'foo' 'bar'
21
- end
22
-
23
- def fast_interpolation
24
- "#{'foo'}#{'bar'}"
25
- end
26
-
27
- Benchmark.ips do |x|
28
- x.report('String#+') { slow_plus }
29
- x.report('String#concat') { slow_concat }
30
- x.report('String#append') { slow_append }
31
- x.report('"foo" "bar"') { fast }
32
- x.report('"#{\'foo\'}#{\'bar\'}"') { fast_interpolation }
33
- x.compare!
34
- end