table_saw 3.2.0 → 3.3.0

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.
@@ -0,0 +1,244 @@
1
+ PATH
2
+ remote: ..
3
+ specs:
4
+ table_saw (3.3.0)
5
+ activerecord (>= 7.1)
6
+ pg
7
+ thor
8
+
9
+ GEM
10
+ remote: https://rubygems.org/
11
+ specs:
12
+ actionpack (8.1.1)
13
+ actionview (= 8.1.1)
14
+ activesupport (= 8.1.1)
15
+ nokogiri (>= 1.8.5)
16
+ rack (>= 2.2.4)
17
+ rack-session (>= 1.0.1)
18
+ rack-test (>= 0.6.3)
19
+ rails-dom-testing (~> 2.2)
20
+ rails-html-sanitizer (~> 1.6)
21
+ useragent (~> 0.16)
22
+ actionview (8.1.1)
23
+ activesupport (= 8.1.1)
24
+ builder (~> 3.1)
25
+ erubi (~> 1.11)
26
+ rails-dom-testing (~> 2.2)
27
+ rails-html-sanitizer (~> 1.6)
28
+ activemodel (8.1.1)
29
+ activesupport (= 8.1.1)
30
+ activerecord (8.1.1)
31
+ activemodel (= 8.1.1)
32
+ activesupport (= 8.1.1)
33
+ timeout (>= 0.4.0)
34
+ activesupport (8.1.1)
35
+ base64
36
+ bigdecimal
37
+ concurrent-ruby (~> 1.0, >= 1.3.1)
38
+ connection_pool (>= 2.2.5)
39
+ drb
40
+ i18n (>= 1.6, < 2)
41
+ json
42
+ logger (>= 1.4.2)
43
+ minitest (>= 5.1)
44
+ securerandom (>= 0.3)
45
+ tzinfo (~> 2.0, >= 2.0.5)
46
+ uri (>= 0.13.1)
47
+ appraisal (2.5.0)
48
+ bundler
49
+ rake
50
+ thor (>= 0.14.0)
51
+ ast (2.4.3)
52
+ base64 (0.3.0)
53
+ bigdecimal (3.3.1)
54
+ builder (3.3.0)
55
+ coderay (1.1.3)
56
+ combustion (1.5.0)
57
+ activesupport (>= 3.0.0)
58
+ railties (>= 3.0.0)
59
+ thor (>= 0.14.6)
60
+ concurrent-ruby (1.3.5)
61
+ connection_pool (2.5.4)
62
+ crass (1.0.6)
63
+ database_cleaner-active_record (2.2.2)
64
+ activerecord (>= 5.a)
65
+ database_cleaner-core (~> 2.0)
66
+ database_cleaner-core (2.0.1)
67
+ date (3.5.0)
68
+ diff-lcs (1.6.2)
69
+ docile (1.4.1)
70
+ drb (2.2.3)
71
+ erb (5.1.3)
72
+ erubi (1.13.1)
73
+ i18n (1.14.7)
74
+ concurrent-ruby (~> 1.0)
75
+ io-console (0.8.1)
76
+ irb (1.15.3)
77
+ pp (>= 0.6.0)
78
+ rdoc (>= 4.0.0)
79
+ reline (>= 0.4.2)
80
+ json (2.15.2)
81
+ language_server-protocol (3.17.0.5)
82
+ lint_roller (1.1.0)
83
+ logger (1.7.0)
84
+ loofah (2.24.1)
85
+ crass (~> 1.0.2)
86
+ nokogiri (>= 1.12.0)
87
+ method_source (1.1.0)
88
+ minitest (5.26.0)
89
+ nokogiri (1.18.10-aarch64-linux-gnu)
90
+ racc (~> 1.4)
91
+ nokogiri (1.18.10-aarch64-linux-musl)
92
+ racc (~> 1.4)
93
+ nokogiri (1.18.10-arm-linux-gnu)
94
+ racc (~> 1.4)
95
+ nokogiri (1.18.10-arm-linux-musl)
96
+ racc (~> 1.4)
97
+ nokogiri (1.18.10-arm64-darwin)
98
+ racc (~> 1.4)
99
+ nokogiri (1.18.10-x86_64-darwin)
100
+ racc (~> 1.4)
101
+ nokogiri (1.18.10-x86_64-linux-gnu)
102
+ racc (~> 1.4)
103
+ nokogiri (1.18.10-x86_64-linux-musl)
104
+ racc (~> 1.4)
105
+ ostruct (0.6.3)
106
+ parallel (1.27.0)
107
+ parser (3.3.10.0)
108
+ ast (~> 2.4.1)
109
+ racc
110
+ pg (1.6.2)
111
+ pg (1.6.2-aarch64-linux)
112
+ pg (1.6.2-aarch64-linux-musl)
113
+ pg (1.6.2-arm64-darwin)
114
+ pg (1.6.2-x86_64-darwin)
115
+ pg (1.6.2-x86_64-linux)
116
+ pg (1.6.2-x86_64-linux-musl)
117
+ pp (0.6.3)
118
+ prettyprint
119
+ prettyprint (0.2.0)
120
+ prism (1.6.0)
121
+ pry (0.15.2)
122
+ coderay (~> 1.1)
123
+ method_source (~> 1.0)
124
+ psych (5.2.6)
125
+ date
126
+ stringio
127
+ racc (1.8.1)
128
+ rack (3.2.3)
129
+ rack-session (2.1.1)
130
+ base64 (>= 0.1.0)
131
+ rack (>= 3.0.0)
132
+ rack-test (2.2.0)
133
+ rack (>= 1.3)
134
+ rackup (2.2.1)
135
+ rack (>= 3)
136
+ rails-dom-testing (2.3.0)
137
+ activesupport (>= 5.0.0)
138
+ minitest
139
+ nokogiri (>= 1.6)
140
+ rails-html-sanitizer (1.6.2)
141
+ loofah (~> 2.21)
142
+ nokogiri (>= 1.15.7, != 1.16.7, != 1.16.6, != 1.16.5, != 1.16.4, != 1.16.3, != 1.16.2, != 1.16.1, != 1.16.0.rc1, != 1.16.0)
143
+ railties (8.1.1)
144
+ actionpack (= 8.1.1)
145
+ activesupport (= 8.1.1)
146
+ irb (~> 1.13)
147
+ rackup (>= 1.0.0)
148
+ rake (>= 12.2)
149
+ thor (~> 1.0, >= 1.2.2)
150
+ tsort (>= 0.2)
151
+ zeitwerk (~> 2.6)
152
+ rainbow (3.1.1)
153
+ rake (13.0.3)
154
+ rdoc (6.15.1)
155
+ erb
156
+ psych (>= 4.0.0)
157
+ tsort
158
+ regexp_parser (2.11.3)
159
+ reline (0.6.2)
160
+ io-console (~> 0.5)
161
+ rspec (3.13.2)
162
+ rspec-core (~> 3.13.0)
163
+ rspec-expectations (~> 3.13.0)
164
+ rspec-mocks (~> 3.13.0)
165
+ rspec-core (3.13.6)
166
+ rspec-support (~> 3.13.0)
167
+ rspec-expectations (3.13.5)
168
+ diff-lcs (>= 1.2.0, < 2.0)
169
+ rspec-support (~> 3.13.0)
170
+ rspec-mocks (3.13.7)
171
+ diff-lcs (>= 1.2.0, < 2.0)
172
+ rspec-support (~> 3.13.0)
173
+ rspec-support (3.13.6)
174
+ rubocop (1.81.7)
175
+ json (~> 2.3)
176
+ language_server-protocol (~> 3.17.0.2)
177
+ lint_roller (~> 1.1.0)
178
+ parallel (~> 1.10)
179
+ parser (>= 3.3.0.2)
180
+ rainbow (>= 2.2.2, < 4.0)
181
+ regexp_parser (>= 2.9.3, < 3.0)
182
+ rubocop-ast (>= 1.47.1, < 2.0)
183
+ ruby-progressbar (~> 1.7)
184
+ unicode-display_width (>= 2.4.0, < 4.0)
185
+ rubocop-ast (1.47.1)
186
+ parser (>= 3.3.7.2)
187
+ prism (~> 1.4)
188
+ rubocop-rspec (3.7.0)
189
+ lint_roller (~> 1.1)
190
+ rubocop (~> 1.72, >= 1.72.1)
191
+ ruby-progressbar (1.13.0)
192
+ scenic (1.9.0)
193
+ activerecord (>= 4.0.0)
194
+ railties (>= 4.0.0)
195
+ securerandom (0.4.1)
196
+ simplecov (0.22.0)
197
+ docile (~> 1.1)
198
+ simplecov-html (~> 0.11)
199
+ simplecov_json_formatter (~> 0.1)
200
+ simplecov-html (0.13.2)
201
+ simplecov_json_formatter (0.1.4)
202
+ stringio (3.1.7)
203
+ thor (1.4.0)
204
+ timeout (0.4.4)
205
+ tsort (0.2.0)
206
+ tzinfo (2.0.6)
207
+ concurrent-ruby (~> 1.0)
208
+ unicode-display_width (3.2.0)
209
+ unicode-emoji (~> 4.1)
210
+ unicode-emoji (4.1.0)
211
+ uri (1.1.0)
212
+ useragent (0.16.11)
213
+ zeitwerk (2.6.18)
214
+
215
+ PLATFORMS
216
+ aarch64-linux
217
+ aarch64-linux-gnu
218
+ aarch64-linux-musl
219
+ arm-linux-gnu
220
+ arm-linux-musl
221
+ arm64-darwin
222
+ x86_64-darwin
223
+ x86_64-linux
224
+ x86_64-linux-gnu
225
+ x86_64-linux-musl
226
+
227
+ DEPENDENCIES
228
+ activerecord (~> 8.1.0, < 8.2)
229
+ appraisal
230
+ bundler (~> 2.0)
231
+ combustion (~> 1.4)
232
+ database_cleaner-active_record (~> 2.2)
233
+ ostruct
234
+ pry
235
+ rake (= 13.0.3)
236
+ rspec (~> 3.13)
237
+ rubocop-rspec (~> 3.5)
238
+ scenic (~> 1.5)
239
+ simplecov (~> 0.16)
240
+ table_saw!
241
+ zeitwerk (~> 2.6.0)
242
+
243
+ BUNDLED WITH
244
+ 2.7.2
@@ -23,7 +23,11 @@ module TableSaw
23
23
  end
24
24
 
25
25
  def quote_value(column, value)
26
- type = TableSaw.connection.lookup_cast_type_from_column(column)
26
+ type = if ActiveRecord.version >= Gem::Version.create('8.1.0')
27
+ column.fetch_cast_type(TableSaw.connection)
28
+ else
29
+ TableSaw.connection.lookup_cast_type_from_column(column)
30
+ end
27
31
  TableSaw.connection.quote(type.serialize(type.deserialize(value)))
28
32
  end
29
33
  end
@@ -1,7 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'table_saw/foreign_key'
4
- require 'set'
5
4
 
6
5
  module TableSaw
7
6
  module Queries
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module TableSaw
4
- VERSION = '3.2.0'
4
+ VERSION = '3.3.0'
5
5
  end
data/table_saw.gemspec CHANGED
@@ -23,10 +23,10 @@ Gem::Specification.new do |spec|
23
23
  spec.executables = ['table-saw']
24
24
  spec.require_paths = ['lib']
25
25
 
26
- spec.required_ruby_version = '>= 3.1'
26
+ spec.required_ruby_version = '>= 3.2'
27
27
  spec.metadata['rubygems_mfa_required'] = 'true'
28
28
 
29
- spec.add_dependency 'activerecord', '>= 6.1'
29
+ spec.add_dependency 'activerecord', '>= 7.1'
30
30
  spec.add_dependency 'pg'
31
31
  spec.add_dependency 'thor'
32
32
  end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: table_saw
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.0
4
+ version: 3.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hamed Asghari
8
- autorequire:
9
8
  bindir: exe
10
9
  cert_chain: []
11
- date: 2024-08-10 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: activerecord
@@ -16,14 +15,14 @@ dependencies:
16
15
  requirements:
17
16
  - - ">="
18
17
  - !ruby/object:Gem::Version
19
- version: '6.1'
18
+ version: '7.1'
20
19
  type: :runtime
21
20
  prerelease: false
22
21
  version_requirements: !ruby/object:Gem::Requirement
23
22
  requirements:
24
23
  - - ">="
25
24
  - !ruby/object:Gem::Version
26
- version: '6.1'
25
+ version: '7.1'
27
26
  - !ruby/object:Gem::Dependency
28
27
  name: pg
29
28
  requirement: !ruby/object:Gem::Requirement
@@ -52,7 +51,6 @@ dependencies:
52
51
  - - ">="
53
52
  - !ruby/object:Gem::Version
54
53
  version: '0'
55
- description:
56
54
  email:
57
55
  - hasghari@gmail.com
58
56
  executables:
@@ -75,14 +73,12 @@ files:
75
73
  - bin/console
76
74
  - bin/setup
77
75
  - exe/table-saw
78
- - gemfiles/activerecord_6.1.0.gemfile
79
- - gemfiles/activerecord_6.1.0.gemfile.lock
80
- - gemfiles/activerecord_7.0.0.gemfile
81
- - gemfiles/activerecord_7.0.0.gemfile.lock
82
- - gemfiles/activerecord_7.1.0.gemfile
83
- - gemfiles/activerecord_7.1.0.gemfile.lock
84
76
  - gemfiles/activerecord_7.2.0.gemfile
85
77
  - gemfiles/activerecord_7.2.0.gemfile.lock
78
+ - gemfiles/activerecord_8.0.0.gemfile
79
+ - gemfiles/activerecord_8.0.0.gemfile.lock
80
+ - gemfiles/activerecord_8.1.0.gemfile
81
+ - gemfiles/activerecord_8.1.0.gemfile.lock
86
82
  - lib/table_saw.rb
87
83
  - lib/table_saw/associations.rb
88
84
  - lib/table_saw/configuration.rb
@@ -116,7 +112,6 @@ licenses:
116
112
  - MIT
117
113
  metadata:
118
114
  rubygems_mfa_required: 'true'
119
- post_install_message:
120
115
  rdoc_options: []
121
116
  require_paths:
122
117
  - lib
@@ -124,15 +119,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
124
119
  requirements:
125
120
  - - ">="
126
121
  - !ruby/object:Gem::Version
127
- version: '3.1'
122
+ version: '3.2'
128
123
  required_rubygems_version: !ruby/object:Gem::Requirement
129
124
  requirements:
130
125
  - - ">="
131
126
  - !ruby/object:Gem::Version
132
127
  version: '0'
133
128
  requirements: []
134
- rubygems_version: 3.5.11
135
- signing_key:
129
+ rubygems_version: 3.6.9
136
130
  specification_version: 4
137
131
  summary: Create a postgres dump file from a subset of tables
138
132
  test_files: []
@@ -1,179 +0,0 @@
1
- PATH
2
- remote: ..
3
- specs:
4
- table_saw (3.2.0)
5
- activerecord (>= 6.1)
6
- pg
7
- thor
8
-
9
- GEM
10
- remote: https://rubygems.org/
11
- specs:
12
- actionpack (6.1.7.8)
13
- actionview (= 6.1.7.8)
14
- activesupport (= 6.1.7.8)
15
- rack (~> 2.0, >= 2.0.9)
16
- rack-test (>= 0.6.3)
17
- rails-dom-testing (~> 2.0)
18
- rails-html-sanitizer (~> 1.0, >= 1.2.0)
19
- actionview (6.1.7.8)
20
- activesupport (= 6.1.7.8)
21
- builder (~> 3.1)
22
- erubi (~> 1.4)
23
- rails-dom-testing (~> 2.0)
24
- rails-html-sanitizer (~> 1.1, >= 1.2.0)
25
- activemodel (6.1.7.8)
26
- activesupport (= 6.1.7.8)
27
- activerecord (6.1.7.8)
28
- activemodel (= 6.1.7.8)
29
- activesupport (= 6.1.7.8)
30
- activesupport (6.1.7.8)
31
- concurrent-ruby (~> 1.0, >= 1.0.2)
32
- i18n (>= 1.6, < 2)
33
- minitest (>= 5.1)
34
- tzinfo (~> 2.0)
35
- zeitwerk (~> 2.3)
36
- appraisal (2.5.0)
37
- bundler
38
- rake
39
- thor (>= 0.14.0)
40
- ast (2.4.2)
41
- base64 (0.2.0)
42
- bigdecimal (3.1.8)
43
- builder (3.3.0)
44
- coderay (1.1.3)
45
- combustion (1.5.0)
46
- activesupport (>= 3.0.0)
47
- railties (>= 3.0.0)
48
- thor (>= 0.14.6)
49
- concurrent-ruby (1.3.4)
50
- crass (1.0.6)
51
- database_cleaner-active_record (2.2.0)
52
- activerecord (>= 5.a)
53
- database_cleaner-core (~> 2.0.0)
54
- database_cleaner-core (2.0.1)
55
- diff-lcs (1.5.1)
56
- docile (1.4.1)
57
- erubi (1.13.0)
58
- i18n (1.14.5)
59
- concurrent-ruby (~> 1.0)
60
- json (2.7.2)
61
- language_server-protocol (3.17.0.3)
62
- loofah (2.22.0)
63
- crass (~> 1.0.2)
64
- nokogiri (>= 1.12.0)
65
- method_source (1.1.0)
66
- minitest (5.24.1)
67
- mutex_m (0.2.0)
68
- nokogiri (1.16.7-x86_64-darwin)
69
- racc (~> 1.4)
70
- nokogiri (1.16.7-x86_64-linux)
71
- racc (~> 1.4)
72
- parallel (1.26.1)
73
- parser (3.3.4.2)
74
- ast (~> 2.4.1)
75
- racc
76
- pg (1.5.7)
77
- pry (0.14.2)
78
- coderay (~> 1.1)
79
- method_source (~> 1.0)
80
- racc (1.8.1)
81
- rack (2.2.9)
82
- rack-test (2.1.0)
83
- rack (>= 1.3)
84
- rails-dom-testing (2.2.0)
85
- activesupport (>= 5.0.0)
86
- minitest
87
- nokogiri (>= 1.6)
88
- rails-html-sanitizer (1.6.0)
89
- loofah (~> 2.21)
90
- nokogiri (~> 1.14)
91
- railties (6.1.7.8)
92
- actionpack (= 6.1.7.8)
93
- activesupport (= 6.1.7.8)
94
- method_source
95
- rake (>= 12.2)
96
- thor (~> 1.0)
97
- rainbow (3.1.1)
98
- rake (13.0.3)
99
- regexp_parser (2.9.2)
100
- rexml (3.3.4)
101
- strscan
102
- rspec (3.13.0)
103
- rspec-core (~> 3.13.0)
104
- rspec-expectations (~> 3.13.0)
105
- rspec-mocks (~> 3.13.0)
106
- rspec-core (3.13.0)
107
- rspec-support (~> 3.13.0)
108
- rspec-expectations (3.13.1)
109
- diff-lcs (>= 1.2.0, < 2.0)
110
- rspec-support (~> 3.13.0)
111
- rspec-mocks (3.13.1)
112
- diff-lcs (>= 1.2.0, < 2.0)
113
- rspec-support (~> 3.13.0)
114
- rspec-support (3.13.1)
115
- rubocop (1.65.1)
116
- json (~> 2.3)
117
- language_server-protocol (>= 3.17.0)
118
- parallel (~> 1.10)
119
- parser (>= 3.3.0.2)
120
- rainbow (>= 2.2.2, < 4.0)
121
- regexp_parser (>= 2.4, < 3.0)
122
- rexml (>= 3.2.5, < 4.0)
123
- rubocop-ast (>= 1.31.1, < 2.0)
124
- ruby-progressbar (~> 1.7)
125
- unicode-display_width (>= 2.4.0, < 3.0)
126
- rubocop-ast (1.32.0)
127
- parser (>= 3.3.1.0)
128
- rubocop-capybara (2.21.0)
129
- rubocop (~> 1.41)
130
- rubocop-factory_bot (2.26.1)
131
- rubocop (~> 1.61)
132
- rubocop-rspec (2.31.0)
133
- rubocop (~> 1.40)
134
- rubocop-capybara (~> 2.17)
135
- rubocop-factory_bot (~> 2.22)
136
- rubocop-rspec_rails (~> 2.28)
137
- rubocop-rspec_rails (2.29.1)
138
- rubocop (~> 1.61)
139
- ruby-progressbar (1.13.0)
140
- scenic (1.8.0)
141
- activerecord (>= 4.0.0)
142
- railties (>= 4.0.0)
143
- simplecov (0.22.0)
144
- docile (~> 1.1)
145
- simplecov-html (~> 0.11)
146
- simplecov_json_formatter (~> 0.1)
147
- simplecov-html (0.12.3)
148
- simplecov_json_formatter (0.1.4)
149
- strscan (3.1.0)
150
- thor (1.3.1)
151
- tzinfo (2.0.6)
152
- concurrent-ruby (~> 1.0)
153
- unicode-display_width (2.5.0)
154
- zeitwerk (2.6.17)
155
-
156
- PLATFORMS
157
- x86_64-darwin-22
158
- x86_64-darwin-23
159
- x86_64-linux
160
-
161
- DEPENDENCIES
162
- activerecord (~> 6.1, < 6.2)
163
- appraisal
164
- base64
165
- bigdecimal
166
- bundler (~> 2.0)
167
- combustion (~> 1.4)
168
- database_cleaner-active_record (~> 2.2)
169
- mutex_m
170
- pry
171
- rake (= 13.0.3)
172
- rspec (~> 3.0)
173
- rubocop-rspec (~> 2.3)
174
- scenic (~> 1.5)
175
- simplecov (~> 0.16)
176
- table_saw!
177
-
178
- BUNDLED WITH
179
- 2.5.4
@@ -1,20 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "appraisal"
6
- gem "bundler", "~> 2.0"
7
- gem "combustion", "~> 1.4"
8
- gem "database_cleaner-active_record", "~> 2.2"
9
- gem "pry"
10
- gem "rake", "13.0.3"
11
- gem "rspec", "~> 3.0"
12
- gem "rubocop-rspec", "~> 2.3"
13
- gem "scenic", "~> 1.5"
14
- gem "simplecov", "~> 0.16"
15
- gem "activerecord", "~> 7.0", "< 7.1"
16
- gem "base64"
17
- gem "bigdecimal"
18
- gem "mutex_m"
19
-
20
- gemspec path: "../"