niceql 0.1.3 → 0.1.4

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.
metadata CHANGED
@@ -1,43 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: niceql
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - alekseyl
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-09-13 00:00:00.000000000 Z
11
+ date: 2017-09-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1'
19
+ version: '1.15'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ">="
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '1'
26
+ version: '1.15'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">="
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 12.3.3
33
+ version: '10.0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ">="
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 12.3.3
40
+ version: '10.0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: minitest
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -52,48 +52,6 @@ dependencies:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '5.0'
55
- - !ruby/object:Gem::Dependency
56
- name: differ
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - ">="
60
- - !ruby/object:Gem::Version
61
- version: '0'
62
- type: :development
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - ">="
67
- - !ruby/object:Gem::Version
68
- version: '0'
69
- - !ruby/object:Gem::Dependency
70
- name: pry-byebug
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - ">="
74
- - !ruby/object:Gem::Version
75
- version: '0'
76
- type: :development
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - ">="
81
- - !ruby/object:Gem::Version
82
- version: '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'
97
55
  description: 'This is simple and nice sql prettifier, it splits, indent and colorize
98
56
  SQL query and PG error if any '
99
57
  email:
@@ -104,7 +62,6 @@ extra_rdoc_files: []
104
62
  files:
105
63
  - ".gitignore"
106
64
  - ".travis.yml"
107
- - CHANGELOG.md
108
65
  - Gemfile
109
66
  - LICENSE.txt
110
67
  - README.md
@@ -113,13 +70,7 @@ files:
113
70
  - bin/setup
114
71
  - err_now.png
115
72
  - err_was.png
116
- - lib/benchmark/cat.rb
117
- - lib/benchmark/gsub.rb
118
- - lib/benchmark/txt
119
- - lib/generators/niceql/install_generator.rb
120
- - lib/generators/templates/niceql_initializer.rb
121
73
  - lib/niceql.rb
122
- - lib/niceql/string.rb
123
74
  - lib/niceql/version.rb
124
75
  - niceql.gemspec
125
76
  - to_niceql.png
@@ -128,7 +79,7 @@ licenses:
128
79
  - MIT
129
80
  metadata:
130
81
  allowed_push_host: https://rubygems.org
131
- post_install_message:
82
+ post_install_message:
132
83
  rdoc_options: []
133
84
  require_paths:
134
85
  - lib
@@ -136,16 +87,16 @@ required_ruby_version: !ruby/object:Gem::Requirement
136
87
  requirements:
137
88
  - - ">="
138
89
  - !ruby/object:Gem::Version
139
- version: '2.3'
90
+ version: '0'
140
91
  required_rubygems_version: !ruby/object:Gem::Requirement
141
92
  requirements:
142
93
  - - ">="
143
94
  - !ruby/object:Gem::Version
144
95
  version: '0'
145
96
  requirements: []
146
- rubyforge_project:
147
- rubygems_version: 2.7.6
148
- signing_key:
97
+ rubyforge_project:
98
+ rubygems_version: 2.6.13
99
+ signing_key:
149
100
  specification_version: 4
150
101
  summary: This is simple and nice sql prettifier, it splits, indent and colorize SQL
151
102
  query and PG errors if any
data/CHANGELOG.md DELETED
@@ -1,44 +0,0 @@
1
- # 0.1.3
2
-
3
- * ActiveRecord pg check for config now will try both connection_db_config and connection_config for adapter verification
4
- * prettify_pg_errors will not be set to true if ActiveRecord adapter is not using pg, i.e. ar_using_pg_adapter? is false.
5
- * rake dev dependency bumped according to security issues
6
-
7
- # 0.1.24/25
8
-
9
- * No features, just strict ruby dependency for >= 2.3,
10
- * travis fix for ruby 2.3 and 2.6 added
11
-
12
- # 0.1.23
13
- * +LATERAL verb
14
- * removed hidden rails dependencies PR(https://github.com/alekseyl/niceql/pull/9)
15
-
16
- # 0.1.22
17
- * multi query formatting
18
-
19
- # 0.1.21
20
- * fix bug for SQL started with comment
21
-
22
- # 0.1.20
23
- * Add respect for SQL comments single lined, multi lined, and inline
24
-
25
- # 0.1.19
26
- * add prettify_pg_errors to config - now pg errors prettified output is configurable,
27
- default is true if ActiveRecord::Base defined and db adapter is pg
28
-
29
- * tests for error prettifying
30
-
31
- # 0.1.18
32
- * add color to logger output
33
-
34
- # 0.1.17
35
- * add test
36
- * fix issue 1 for real
37
-
38
- # 0.1.16
39
- * Add prettify_active_record_log_output to rails config generator
40
-
41
- # 0.1.15
42
- * JOIN verb refactored, INNER|OUTER will be also colored properly
43
- * prettify_active_record_log_output added to config, now you can set it to true
44
- and sql will log prettified
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