fx 0.1.0 → 0.11.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.
- checksums.yaml +5 -5
- data/.github/scripts/check-eol +95 -0
- data/.github/workflows/ci.yml +61 -0
- data/.github/workflows/eol-check.yml +30 -0
- data/.rspec +1 -1
- data/.standard.yml +3 -0
- data/CHANGELOG.md +186 -0
- data/CONTRIBUTING.md +13 -4
- data/Gemfile +21 -2
- data/LICENSE +18 -0
- data/README.md +99 -14
- data/Rakefile +11 -1
- data/bin/rake +2 -3
- data/bin/rspec +13 -3
- data/bin/setup +1 -4
- data/bin/standardrb +27 -0
- data/bin/yard +13 -3
- data/fx.gemspec +20 -27
- data/lib/fx/adapters/postgres/connection.rb +6 -0
- data/lib/fx/adapters/postgres/functions.rb +16 -28
- data/lib/fx/adapters/postgres/query_executor.rb +34 -0
- data/lib/fx/adapters/postgres/triggers.rb +14 -28
- data/lib/fx/adapters/postgres.rb +30 -17
- data/lib/fx/command_recorder.rb +104 -13
- data/lib/fx/configuration.rb +10 -25
- data/lib/fx/definition.rb +32 -10
- data/lib/fx/function.rb +23 -9
- data/lib/fx/railtie.rb +15 -0
- data/lib/fx/schema_dumper.rb +33 -10
- data/lib/fx/statements.rb +213 -11
- data/lib/fx/trigger.rb +5 -3
- data/lib/fx/version.rb +1 -1
- data/lib/fx.rb +40 -0
- data/lib/generators/fx/function/USAGE +2 -0
- data/lib/generators/fx/function/function_generator.rb +54 -39
- data/lib/generators/fx/function/templates/db/migrate/create_function.erb +1 -1
- data/lib/generators/fx/function/templates/db/migrate/update_function.erb +1 -1
- data/lib/generators/fx/migration_helper.rb +45 -0
- data/lib/generators/fx/name_helper.rb +33 -0
- data/lib/generators/fx/trigger/USAGE +2 -0
- data/lib/generators/fx/trigger/templates/db/migrate/create_trigger.erb +1 -1
- data/lib/generators/fx/trigger/templates/db/migrate/update_trigger.erb +1 -1
- data/lib/generators/fx/trigger/trigger_generator.rb +46 -51
- data/lib/generators/fx/version_helper.rb +55 -0
- data/spec/acceptance/user_manages_functions_spec.rb +26 -6
- data/spec/acceptance/user_manages_triggers_spec.rb +11 -11
- data/spec/acceptance_helper.rb +17 -11
- data/spec/dummy/Rakefile +8 -1
- data/spec/dummy/bin/bundle +2 -2
- data/spec/dummy/bin/rails +3 -3
- data/spec/dummy/bin/rake +2 -2
- data/spec/dummy/config/application.rb +2 -0
- data/spec/dummy/config/database.yml +2 -0
- data/spec/dummy/config.ru +1 -1
- data/spec/features/functions/migrations_spec.rb +9 -9
- data/spec/features/functions/revert_spec.rb +13 -13
- data/spec/features/triggers/migrations_spec.rb +11 -11
- data/spec/features/triggers/revert_spec.rb +21 -21
- data/spec/fx/adapters/postgres/functions_spec.rb +40 -0
- data/spec/fx/adapters/postgres/query_executor_spec.rb +75 -0
- data/spec/fx/adapters/postgres/triggers_spec.rb +48 -0
- data/spec/fx/adapters/postgres_spec.rb +115 -111
- data/spec/fx/command_recorder_spec.rb +39 -53
- data/spec/fx/configuration_spec.rb +20 -9
- data/spec/fx/definition_spec.rb +53 -38
- data/spec/fx/function_spec.rb +143 -0
- data/spec/fx/schema_dumper_spec.rb +241 -0
- data/spec/fx/statements_spec.rb +219 -0
- data/spec/fx/trigger_spec.rb +52 -0
- data/spec/fx_spec.rb +28 -0
- data/spec/generators/fx/function/function_generator_spec.rb +22 -10
- data/spec/generators/fx/migration_helper_spec.rb +108 -0
- data/spec/generators/fx/name_helper_spec.rb +114 -0
- data/spec/generators/fx/trigger/trigger_generator_spec.rb +55 -20
- data/spec/generators/fx/version_helper_spec.rb +157 -0
- data/spec/spec_helper.rb +16 -4
- data/spec/support/database_reset.rb +24 -0
- data/spec/support/definition_helpers.rb +5 -9
- data/spec/support/generator_setup.rb +46 -5
- data/spec/support/migration_helpers.rb +9 -1
- data/spec/support/warning_helper.rb +5 -0
- metadata +43 -215
- data/.ruby-version +0 -1
- data/.travis.yml +0 -27
- data/Appraisals +0 -21
- data/bin/appraisal +0 -17
- data/gemfiles/rails40.gemfile +0 -8
- data/gemfiles/rails40.gemfile.lock +0 -111
- data/gemfiles/rails41.gemfile +0 -8
- data/gemfiles/rails41.gemfile.lock +0 -113
- data/gemfiles/rails42.gemfile +0 -8
- data/gemfiles/rails42.gemfile.lock +0 -130
- data/gemfiles/rails50.gemfile +0 -8
- data/gemfiles/rails50.gemfile.lock +0 -126
- data/lib/fx/command_recorder/arguments.rb +0 -43
- data/lib/fx/command_recorder/function.rb +0 -30
- data/lib/fx/command_recorder/trigger.rb +0 -30
- data/lib/fx/schema_dumper/function.rb +0 -29
- data/lib/fx/schema_dumper/trigger.rb +0 -29
- data/lib/fx/statements/function.rb +0 -105
- data/lib/fx/statements/trigger.rb +0 -133
- data/spec/fx/command_recorder/arguments_spec.rb +0 -41
- data/spec/fx/schema_dumper/function_spec.rb +0 -22
- data/spec/fx/schema_dumper/trigger_spec.rb +0 -40
- data/spec/fx/statements/function_spec.rb +0 -103
- data/spec/fx/statements/trigger_spec.rb +0 -132
metadata
CHANGED
|
@@ -1,235 +1,84 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: fx
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.11.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Teo Ljungberg
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
|
-
- !ruby/object:Gem::Dependency
|
|
14
|
-
name: appraisal
|
|
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'
|
|
27
|
-
- !ruby/object:Gem::Dependency
|
|
28
|
-
name: bundler
|
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
|
30
|
-
requirements:
|
|
31
|
-
- - ">="
|
|
32
|
-
- !ruby/object:Gem::Version
|
|
33
|
-
version: '1.5'
|
|
34
|
-
type: :development
|
|
35
|
-
prerelease: false
|
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
37
|
-
requirements:
|
|
38
|
-
- - ">="
|
|
39
|
-
- !ruby/object:Gem::Version
|
|
40
|
-
version: '1.5'
|
|
41
|
-
- !ruby/object:Gem::Dependency
|
|
42
|
-
name: database_cleaner
|
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
|
44
|
-
requirements:
|
|
45
|
-
- - ">="
|
|
46
|
-
- !ruby/object:Gem::Version
|
|
47
|
-
version: '0'
|
|
48
|
-
type: :development
|
|
49
|
-
prerelease: false
|
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
51
|
-
requirements:
|
|
52
|
-
- - ">="
|
|
53
|
-
- !ruby/object:Gem::Version
|
|
54
|
-
version: '0'
|
|
55
|
-
- !ruby/object:Gem::Dependency
|
|
56
|
-
name: rake
|
|
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: rspec
|
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
|
72
|
-
requirements:
|
|
73
|
-
- - ">="
|
|
74
|
-
- !ruby/object:Gem::Version
|
|
75
|
-
version: '3.3'
|
|
76
|
-
type: :development
|
|
77
|
-
prerelease: false
|
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
79
|
-
requirements:
|
|
80
|
-
- - ">="
|
|
81
|
-
- !ruby/object:Gem::Version
|
|
82
|
-
version: '3.3'
|
|
83
|
-
- !ruby/object:Gem::Dependency
|
|
84
|
-
name: pg
|
|
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
|
-
- !ruby/object:Gem::Dependency
|
|
98
|
-
name: pry
|
|
99
|
-
requirement: !ruby/object:Gem::Requirement
|
|
100
|
-
requirements:
|
|
101
|
-
- - ">="
|
|
102
|
-
- !ruby/object:Gem::Version
|
|
103
|
-
version: '0'
|
|
104
|
-
type: :development
|
|
105
|
-
prerelease: false
|
|
106
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
107
|
-
requirements:
|
|
108
|
-
- - ">="
|
|
109
|
-
- !ruby/object:Gem::Version
|
|
110
|
-
version: '0'
|
|
111
|
-
- !ruby/object:Gem::Dependency
|
|
112
|
-
name: ammeter
|
|
113
|
-
requirement: !ruby/object:Gem::Requirement
|
|
114
|
-
requirements:
|
|
115
|
-
- - ">="
|
|
116
|
-
- !ruby/object:Gem::Version
|
|
117
|
-
version: 1.1.3
|
|
118
|
-
type: :development
|
|
119
|
-
prerelease: false
|
|
120
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
121
|
-
requirements:
|
|
122
|
-
- - ">="
|
|
123
|
-
- !ruby/object:Gem::Version
|
|
124
|
-
version: 1.1.3
|
|
125
|
-
- !ruby/object:Gem::Dependency
|
|
126
|
-
name: yard
|
|
127
|
-
requirement: !ruby/object:Gem::Requirement
|
|
128
|
-
requirements:
|
|
129
|
-
- - ">="
|
|
130
|
-
- !ruby/object:Gem::Version
|
|
131
|
-
version: '0'
|
|
132
|
-
type: :development
|
|
133
|
-
prerelease: false
|
|
134
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
135
|
-
requirements:
|
|
136
|
-
- - ">="
|
|
137
|
-
- !ruby/object:Gem::Version
|
|
138
|
-
version: '0'
|
|
139
|
-
- !ruby/object:Gem::Dependency
|
|
140
|
-
name: redcarpet
|
|
141
|
-
requirement: !ruby/object:Gem::Requirement
|
|
142
|
-
requirements:
|
|
143
|
-
- - ">="
|
|
144
|
-
- !ruby/object:Gem::Version
|
|
145
|
-
version: '0'
|
|
146
|
-
type: :development
|
|
147
|
-
prerelease: false
|
|
148
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
149
|
-
requirements:
|
|
150
|
-
- - ">="
|
|
151
|
-
- !ruby/object:Gem::Version
|
|
152
|
-
version: '0'
|
|
153
12
|
- !ruby/object:Gem::Dependency
|
|
154
13
|
name: activerecord
|
|
155
14
|
requirement: !ruby/object:Gem::Requirement
|
|
156
15
|
requirements:
|
|
157
16
|
- - ">="
|
|
158
17
|
- !ruby/object:Gem::Version
|
|
159
|
-
version:
|
|
18
|
+
version: '7.2'
|
|
160
19
|
type: :runtime
|
|
161
20
|
prerelease: false
|
|
162
21
|
version_requirements: !ruby/object:Gem::Requirement
|
|
163
22
|
requirements:
|
|
164
23
|
- - ">="
|
|
165
24
|
- !ruby/object:Gem::Version
|
|
166
|
-
version:
|
|
25
|
+
version: '7.2'
|
|
167
26
|
- !ruby/object:Gem::Dependency
|
|
168
27
|
name: railties
|
|
169
28
|
requirement: !ruby/object:Gem::Requirement
|
|
170
29
|
requirements:
|
|
171
30
|
- - ">="
|
|
172
31
|
- !ruby/object:Gem::Version
|
|
173
|
-
version:
|
|
32
|
+
version: '7.2'
|
|
174
33
|
type: :runtime
|
|
175
34
|
prerelease: false
|
|
176
35
|
version_requirements: !ruby/object:Gem::Requirement
|
|
177
36
|
requirements:
|
|
178
37
|
- - ">="
|
|
179
38
|
- !ruby/object:Gem::Version
|
|
180
|
-
version:
|
|
181
|
-
description: |
|
|
182
|
-
|
|
183
|
-
|
|
39
|
+
version: '7.2'
|
|
40
|
+
description: |
|
|
41
|
+
Adds methods to ActiveRecord::Migration to create and manage database functions
|
|
42
|
+
and triggers in Rails
|
|
184
43
|
email:
|
|
185
44
|
- teo@teoljungberg.com
|
|
186
45
|
executables: []
|
|
187
46
|
extensions: []
|
|
188
47
|
extra_rdoc_files: []
|
|
189
48
|
files:
|
|
49
|
+
- ".github/scripts/check-eol"
|
|
50
|
+
- ".github/workflows/ci.yml"
|
|
51
|
+
- ".github/workflows/eol-check.yml"
|
|
190
52
|
- ".gitignore"
|
|
191
53
|
- ".rspec"
|
|
192
|
-
- ".
|
|
193
|
-
- ".travis.yml"
|
|
54
|
+
- ".standard.yml"
|
|
194
55
|
- ".yardopts"
|
|
195
|
-
-
|
|
56
|
+
- CHANGELOG.md
|
|
196
57
|
- CONTRIBUTING.md
|
|
197
58
|
- Gemfile
|
|
59
|
+
- LICENSE
|
|
198
60
|
- README.md
|
|
199
61
|
- Rakefile
|
|
200
|
-
- bin/appraisal
|
|
201
62
|
- bin/console
|
|
202
63
|
- bin/rake
|
|
203
64
|
- bin/rspec
|
|
204
65
|
- bin/setup
|
|
66
|
+
- bin/standardrb
|
|
205
67
|
- bin/yard
|
|
206
68
|
- fx.gemspec
|
|
207
|
-
- gemfiles/rails40.gemfile
|
|
208
|
-
- gemfiles/rails40.gemfile.lock
|
|
209
|
-
- gemfiles/rails41.gemfile
|
|
210
|
-
- gemfiles/rails41.gemfile.lock
|
|
211
|
-
- gemfiles/rails42.gemfile
|
|
212
|
-
- gemfiles/rails42.gemfile.lock
|
|
213
|
-
- gemfiles/rails50.gemfile
|
|
214
|
-
- gemfiles/rails50.gemfile.lock
|
|
215
69
|
- lib/fx.rb
|
|
216
70
|
- lib/fx/adapters/postgres.rb
|
|
217
71
|
- lib/fx/adapters/postgres/connection.rb
|
|
218
72
|
- lib/fx/adapters/postgres/functions.rb
|
|
73
|
+
- lib/fx/adapters/postgres/query_executor.rb
|
|
219
74
|
- lib/fx/adapters/postgres/triggers.rb
|
|
220
75
|
- lib/fx/command_recorder.rb
|
|
221
|
-
- lib/fx/command_recorder/arguments.rb
|
|
222
|
-
- lib/fx/command_recorder/function.rb
|
|
223
|
-
- lib/fx/command_recorder/trigger.rb
|
|
224
76
|
- lib/fx/configuration.rb
|
|
225
77
|
- lib/fx/definition.rb
|
|
226
78
|
- lib/fx/function.rb
|
|
79
|
+
- lib/fx/railtie.rb
|
|
227
80
|
- lib/fx/schema_dumper.rb
|
|
228
|
-
- lib/fx/schema_dumper/function.rb
|
|
229
|
-
- lib/fx/schema_dumper/trigger.rb
|
|
230
81
|
- lib/fx/statements.rb
|
|
231
|
-
- lib/fx/statements/function.rb
|
|
232
|
-
- lib/fx/statements/trigger.rb
|
|
233
82
|
- lib/fx/trigger.rb
|
|
234
83
|
- lib/fx/version.rb
|
|
235
84
|
- lib/generators.rb
|
|
@@ -237,10 +86,13 @@ files:
|
|
|
237
86
|
- lib/generators/fx/function/function_generator.rb
|
|
238
87
|
- lib/generators/fx/function/templates/db/migrate/create_function.erb
|
|
239
88
|
- lib/generators/fx/function/templates/db/migrate/update_function.erb
|
|
89
|
+
- lib/generators/fx/migration_helper.rb
|
|
90
|
+
- lib/generators/fx/name_helper.rb
|
|
240
91
|
- lib/generators/fx/trigger/USAGE
|
|
241
92
|
- lib/generators/fx/trigger/templates/db/migrate/create_trigger.erb
|
|
242
93
|
- lib/generators/fx/trigger/templates/db/migrate/update_trigger.erb
|
|
243
94
|
- lib/generators/fx/trigger/trigger_generator.rb
|
|
95
|
+
- lib/generators/fx/version_helper.rb
|
|
244
96
|
- spec/acceptance/user_manages_functions_spec.rb
|
|
245
97
|
- spec/acceptance/user_manages_triggers_spec.rb
|
|
246
98
|
- spec/acceptance_helper.rb
|
|
@@ -259,76 +111,52 @@ files:
|
|
|
259
111
|
- spec/features/functions/revert_spec.rb
|
|
260
112
|
- spec/features/triggers/migrations_spec.rb
|
|
261
113
|
- spec/features/triggers/revert_spec.rb
|
|
114
|
+
- spec/fx/adapters/postgres/functions_spec.rb
|
|
115
|
+
- spec/fx/adapters/postgres/query_executor_spec.rb
|
|
116
|
+
- spec/fx/adapters/postgres/triggers_spec.rb
|
|
262
117
|
- spec/fx/adapters/postgres_spec.rb
|
|
263
|
-
- spec/fx/command_recorder/arguments_spec.rb
|
|
264
118
|
- spec/fx/command_recorder_spec.rb
|
|
265
119
|
- spec/fx/configuration_spec.rb
|
|
266
120
|
- spec/fx/definition_spec.rb
|
|
267
|
-
- spec/fx/
|
|
268
|
-
- spec/fx/
|
|
269
|
-
- spec/fx/
|
|
270
|
-
- spec/fx/
|
|
121
|
+
- spec/fx/function_spec.rb
|
|
122
|
+
- spec/fx/schema_dumper_spec.rb
|
|
123
|
+
- spec/fx/statements_spec.rb
|
|
124
|
+
- spec/fx/trigger_spec.rb
|
|
125
|
+
- spec/fx_spec.rb
|
|
271
126
|
- spec/generators/fx/function/function_generator_spec.rb
|
|
127
|
+
- spec/generators/fx/migration_helper_spec.rb
|
|
128
|
+
- spec/generators/fx/name_helper_spec.rb
|
|
272
129
|
- spec/generators/fx/trigger/trigger_generator_spec.rb
|
|
130
|
+
- spec/generators/fx/version_helper_spec.rb
|
|
273
131
|
- spec/spec_helper.rb
|
|
132
|
+
- spec/support/database_reset.rb
|
|
274
133
|
- spec/support/definition_helpers.rb
|
|
275
134
|
- spec/support/generator_setup.rb
|
|
276
135
|
- spec/support/migration_helpers.rb
|
|
136
|
+
- spec/support/warning_helper.rb
|
|
277
137
|
homepage: https://github.com/teoljungberg/fx
|
|
278
138
|
licenses:
|
|
279
139
|
- MIT
|
|
280
|
-
metadata:
|
|
281
|
-
|
|
140
|
+
metadata:
|
|
141
|
+
bug_tracker_uri: https://github.com/teoljungberg/fx/issues
|
|
142
|
+
changelog_uri: https://github.com/teoljungberg/fx/blob/v0.11.0/CHANGELOG.md
|
|
143
|
+
homepage_uri: https://github.com/teoljungberg/fx
|
|
144
|
+
source_code_uri: https://github.com/teoljungberg/fx
|
|
282
145
|
rdoc_options: []
|
|
283
146
|
require_paths:
|
|
284
147
|
- lib
|
|
285
148
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
286
149
|
requirements:
|
|
287
|
-
- - "
|
|
150
|
+
- - ">="
|
|
288
151
|
- !ruby/object:Gem::Version
|
|
289
|
-
version: '
|
|
152
|
+
version: '3.3'
|
|
290
153
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
291
154
|
requirements:
|
|
292
155
|
- - ">="
|
|
293
156
|
- !ruby/object:Gem::Version
|
|
294
157
|
version: '0'
|
|
295
158
|
requirements: []
|
|
296
|
-
|
|
297
|
-
rubygems_version: 2.5.1
|
|
298
|
-
signing_key:
|
|
159
|
+
rubygems_version: 4.0.3
|
|
299
160
|
specification_version: 4
|
|
300
161
|
summary: Support for database functions and triggers in Rails migrations
|
|
301
|
-
test_files:
|
|
302
|
-
- spec/acceptance/user_manages_functions_spec.rb
|
|
303
|
-
- spec/acceptance/user_manages_triggers_spec.rb
|
|
304
|
-
- spec/acceptance_helper.rb
|
|
305
|
-
- spec/dummy/.gitignore
|
|
306
|
-
- spec/dummy/Rakefile
|
|
307
|
-
- spec/dummy/bin/bundle
|
|
308
|
-
- spec/dummy/bin/rails
|
|
309
|
-
- spec/dummy/bin/rake
|
|
310
|
-
- spec/dummy/config.ru
|
|
311
|
-
- spec/dummy/config/application.rb
|
|
312
|
-
- spec/dummy/config/boot.rb
|
|
313
|
-
- spec/dummy/config/database.yml
|
|
314
|
-
- spec/dummy/config/environment.rb
|
|
315
|
-
- spec/dummy/db/migrate/.keep
|
|
316
|
-
- spec/features/functions/migrations_spec.rb
|
|
317
|
-
- spec/features/functions/revert_spec.rb
|
|
318
|
-
- spec/features/triggers/migrations_spec.rb
|
|
319
|
-
- spec/features/triggers/revert_spec.rb
|
|
320
|
-
- spec/fx/adapters/postgres_spec.rb
|
|
321
|
-
- spec/fx/command_recorder/arguments_spec.rb
|
|
322
|
-
- spec/fx/command_recorder_spec.rb
|
|
323
|
-
- spec/fx/configuration_spec.rb
|
|
324
|
-
- spec/fx/definition_spec.rb
|
|
325
|
-
- spec/fx/schema_dumper/function_spec.rb
|
|
326
|
-
- spec/fx/schema_dumper/trigger_spec.rb
|
|
327
|
-
- spec/fx/statements/function_spec.rb
|
|
328
|
-
- spec/fx/statements/trigger_spec.rb
|
|
329
|
-
- spec/generators/fx/function/function_generator_spec.rb
|
|
330
|
-
- spec/generators/fx/trigger/trigger_generator_spec.rb
|
|
331
|
-
- spec/spec_helper.rb
|
|
332
|
-
- spec/support/definition_helpers.rb
|
|
333
|
-
- spec/support/generator_setup.rb
|
|
334
|
-
- spec/support/migration_helpers.rb
|
|
162
|
+
test_files: []
|
data/.ruby-version
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
2.3
|
data/.travis.yml
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
addons:
|
|
2
|
-
postgresql: "9.4"
|
|
3
|
-
before_install:
|
|
4
|
-
- "echo '--colour' > ~/.rspec"
|
|
5
|
-
- "echo 'gem: --no-document' > ~/.gemrc"
|
|
6
|
-
- git config --global user.name "Travis CI"
|
|
7
|
-
- git config --global user.email "travis-ci@example.com"
|
|
8
|
-
branches:
|
|
9
|
-
only:
|
|
10
|
-
- master
|
|
11
|
-
install:
|
|
12
|
-
- travis_retry bin/setup
|
|
13
|
-
language:
|
|
14
|
-
- ruby
|
|
15
|
-
notifications:
|
|
16
|
-
email: false
|
|
17
|
-
rvm:
|
|
18
|
-
- 2.3.1
|
|
19
|
-
gemfile:
|
|
20
|
-
- gemfiles/rails40.gemfile
|
|
21
|
-
- gemfiles/rails41.gemfile
|
|
22
|
-
- gemfiles/rails42.gemfile
|
|
23
|
-
- gemfiles/rails50.gemfile
|
|
24
|
-
matrix:
|
|
25
|
-
exclude:
|
|
26
|
-
- rvm: 2.1.8
|
|
27
|
-
gemfile: gemfiles/rails50.gemfile
|
data/Appraisals
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
appraise "rails40" do
|
|
2
|
-
gem "activerecord", "~> 4.0.0"
|
|
3
|
-
gem "railties", "~> 4.0.0"
|
|
4
|
-
end
|
|
5
|
-
|
|
6
|
-
appraise "rails41" do
|
|
7
|
-
gem "activerecord", "~> 4.1.0"
|
|
8
|
-
gem "railties", "~> 4.1.0"
|
|
9
|
-
end
|
|
10
|
-
|
|
11
|
-
appraise "rails42" do
|
|
12
|
-
gem "activerecord", "~> 4.2.0"
|
|
13
|
-
gem "railties", "~> 4.2.0"
|
|
14
|
-
end
|
|
15
|
-
|
|
16
|
-
if RUBY_VERSION > "2.2.0"
|
|
17
|
-
appraise "rails50" do
|
|
18
|
-
gem "activerecord", "~> 5.0"
|
|
19
|
-
gem "railties", "~> 5.0"
|
|
20
|
-
end
|
|
21
|
-
end
|
data/bin/appraisal
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env ruby
|
|
2
|
-
# frozen_string_literal: true
|
|
3
|
-
#
|
|
4
|
-
# This file was generated by Bundler.
|
|
5
|
-
#
|
|
6
|
-
# The application 'appraisal' is installed as part of a gem, and
|
|
7
|
-
# this file is here to facilitate running it.
|
|
8
|
-
#
|
|
9
|
-
|
|
10
|
-
require "pathname"
|
|
11
|
-
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
|
|
12
|
-
Pathname.new(__FILE__).realpath)
|
|
13
|
-
|
|
14
|
-
require "rubygems"
|
|
15
|
-
require "bundler/setup"
|
|
16
|
-
|
|
17
|
-
load Gem.bin_path("appraisal", "appraisal")
|
data/gemfiles/rails40.gemfile
DELETED
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
PATH
|
|
2
|
-
remote: ../
|
|
3
|
-
specs:
|
|
4
|
-
fx (0.1.0)
|
|
5
|
-
activerecord (>= 4.0.0)
|
|
6
|
-
railties (>= 4.0.0)
|
|
7
|
-
|
|
8
|
-
GEM
|
|
9
|
-
remote: https://rubygems.org/
|
|
10
|
-
specs:
|
|
11
|
-
actionpack (4.0.13)
|
|
12
|
-
activesupport (= 4.0.13)
|
|
13
|
-
builder (~> 3.1.0)
|
|
14
|
-
erubis (~> 2.7.0)
|
|
15
|
-
rack (~> 1.5.2)
|
|
16
|
-
rack-test (~> 0.6.2)
|
|
17
|
-
activemodel (4.0.13)
|
|
18
|
-
activesupport (= 4.0.13)
|
|
19
|
-
builder (~> 3.1.0)
|
|
20
|
-
activerecord (4.0.13)
|
|
21
|
-
activemodel (= 4.0.13)
|
|
22
|
-
activerecord-deprecated_finders (~> 1.0.2)
|
|
23
|
-
activesupport (= 4.0.13)
|
|
24
|
-
arel (~> 4.0.0)
|
|
25
|
-
activerecord-deprecated_finders (1.0.4)
|
|
26
|
-
activesupport (4.0.13)
|
|
27
|
-
i18n (~> 0.6, >= 0.6.9)
|
|
28
|
-
minitest (~> 4.2)
|
|
29
|
-
multi_json (~> 1.3)
|
|
30
|
-
thread_safe (~> 0.1)
|
|
31
|
-
tzinfo (~> 0.3.37)
|
|
32
|
-
ammeter (1.1.3)
|
|
33
|
-
activesupport (>= 3.0)
|
|
34
|
-
railties (>= 3.0)
|
|
35
|
-
rspec-rails (>= 2.2)
|
|
36
|
-
appraisal (2.1.0)
|
|
37
|
-
bundler
|
|
38
|
-
rake
|
|
39
|
-
thor (>= 0.14.0)
|
|
40
|
-
arel (4.0.2)
|
|
41
|
-
builder (3.1.4)
|
|
42
|
-
coderay (1.1.1)
|
|
43
|
-
database_cleaner (1.5.3)
|
|
44
|
-
diff-lcs (1.2.5)
|
|
45
|
-
erubis (2.7.0)
|
|
46
|
-
i18n (0.7.0)
|
|
47
|
-
method_source (0.8.2)
|
|
48
|
-
minitest (4.7.5)
|
|
49
|
-
multi_json (1.12.1)
|
|
50
|
-
pg (0.18.4)
|
|
51
|
-
pry (0.10.3)
|
|
52
|
-
coderay (~> 1.1.0)
|
|
53
|
-
method_source (~> 0.8.1)
|
|
54
|
-
slop (~> 3.4)
|
|
55
|
-
rack (1.5.5)
|
|
56
|
-
rack-test (0.6.3)
|
|
57
|
-
rack (>= 1.0)
|
|
58
|
-
railties (4.0.13)
|
|
59
|
-
actionpack (= 4.0.13)
|
|
60
|
-
activesupport (= 4.0.13)
|
|
61
|
-
rake (>= 0.8.7)
|
|
62
|
-
thor (>= 0.18.1, < 2.0)
|
|
63
|
-
rake (11.1.2)
|
|
64
|
-
redcarpet (3.3.4)
|
|
65
|
-
rspec (3.4.0)
|
|
66
|
-
rspec-core (~> 3.4.0)
|
|
67
|
-
rspec-expectations (~> 3.4.0)
|
|
68
|
-
rspec-mocks (~> 3.4.0)
|
|
69
|
-
rspec-core (3.4.4)
|
|
70
|
-
rspec-support (~> 3.4.0)
|
|
71
|
-
rspec-expectations (3.4.0)
|
|
72
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
|
73
|
-
rspec-support (~> 3.4.0)
|
|
74
|
-
rspec-mocks (3.4.1)
|
|
75
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
|
76
|
-
rspec-support (~> 3.4.0)
|
|
77
|
-
rspec-rails (3.4.2)
|
|
78
|
-
actionpack (>= 3.0, < 4.3)
|
|
79
|
-
activesupport (>= 3.0, < 4.3)
|
|
80
|
-
railties (>= 3.0, < 4.3)
|
|
81
|
-
rspec-core (~> 3.4.0)
|
|
82
|
-
rspec-expectations (~> 3.4.0)
|
|
83
|
-
rspec-mocks (~> 3.4.0)
|
|
84
|
-
rspec-support (~> 3.4.0)
|
|
85
|
-
rspec-support (3.4.1)
|
|
86
|
-
slop (3.6.0)
|
|
87
|
-
thor (0.19.1)
|
|
88
|
-
thread_safe (0.3.5)
|
|
89
|
-
tzinfo (0.3.49)
|
|
90
|
-
yard (0.8.7.6)
|
|
91
|
-
|
|
92
|
-
PLATFORMS
|
|
93
|
-
ruby
|
|
94
|
-
|
|
95
|
-
DEPENDENCIES
|
|
96
|
-
activerecord (~> 4.0.0)
|
|
97
|
-
ammeter (>= 1.1.3)
|
|
98
|
-
appraisal
|
|
99
|
-
bundler (>= 1.5)
|
|
100
|
-
database_cleaner
|
|
101
|
-
fx!
|
|
102
|
-
pg
|
|
103
|
-
pry
|
|
104
|
-
railties (~> 4.0.0)
|
|
105
|
-
rake
|
|
106
|
-
redcarpet
|
|
107
|
-
rspec (>= 3.3)
|
|
108
|
-
yard
|
|
109
|
-
|
|
110
|
-
BUNDLED WITH
|
|
111
|
-
1.12.4
|
data/gemfiles/rails41.gemfile
DELETED
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
PATH
|
|
2
|
-
remote: ../
|
|
3
|
-
specs:
|
|
4
|
-
fx (0.1.0)
|
|
5
|
-
activerecord (>= 4.0.0)
|
|
6
|
-
railties (>= 4.0.0)
|
|
7
|
-
|
|
8
|
-
GEM
|
|
9
|
-
remote: https://rubygems.org/
|
|
10
|
-
specs:
|
|
11
|
-
actionpack (4.1.15)
|
|
12
|
-
actionview (= 4.1.15)
|
|
13
|
-
activesupport (= 4.1.15)
|
|
14
|
-
rack (~> 1.5.2)
|
|
15
|
-
rack-test (~> 0.6.2)
|
|
16
|
-
actionview (4.1.15)
|
|
17
|
-
activesupport (= 4.1.15)
|
|
18
|
-
builder (~> 3.1)
|
|
19
|
-
erubis (~> 2.7.0)
|
|
20
|
-
activemodel (4.1.15)
|
|
21
|
-
activesupport (= 4.1.15)
|
|
22
|
-
builder (~> 3.1)
|
|
23
|
-
activerecord (4.1.15)
|
|
24
|
-
activemodel (= 4.1.15)
|
|
25
|
-
activesupport (= 4.1.15)
|
|
26
|
-
arel (~> 5.0.0)
|
|
27
|
-
activesupport (4.1.15)
|
|
28
|
-
i18n (~> 0.6, >= 0.6.9)
|
|
29
|
-
json (~> 1.7, >= 1.7.7)
|
|
30
|
-
minitest (~> 5.1)
|
|
31
|
-
thread_safe (~> 0.1)
|
|
32
|
-
tzinfo (~> 1.1)
|
|
33
|
-
ammeter (1.1.3)
|
|
34
|
-
activesupport (>= 3.0)
|
|
35
|
-
railties (>= 3.0)
|
|
36
|
-
rspec-rails (>= 2.2)
|
|
37
|
-
appraisal (2.1.0)
|
|
38
|
-
bundler
|
|
39
|
-
rake
|
|
40
|
-
thor (>= 0.14.0)
|
|
41
|
-
arel (5.0.1.20140414130214)
|
|
42
|
-
builder (3.2.2)
|
|
43
|
-
coderay (1.1.1)
|
|
44
|
-
database_cleaner (1.5.3)
|
|
45
|
-
diff-lcs (1.2.5)
|
|
46
|
-
erubis (2.7.0)
|
|
47
|
-
i18n (0.7.0)
|
|
48
|
-
json (1.8.3)
|
|
49
|
-
method_source (0.8.2)
|
|
50
|
-
minitest (5.9.0)
|
|
51
|
-
pg (0.18.4)
|
|
52
|
-
pry (0.10.3)
|
|
53
|
-
coderay (~> 1.1.0)
|
|
54
|
-
method_source (~> 0.8.1)
|
|
55
|
-
slop (~> 3.4)
|
|
56
|
-
rack (1.5.5)
|
|
57
|
-
rack-test (0.6.3)
|
|
58
|
-
rack (>= 1.0)
|
|
59
|
-
railties (4.1.15)
|
|
60
|
-
actionpack (= 4.1.15)
|
|
61
|
-
activesupport (= 4.1.15)
|
|
62
|
-
rake (>= 0.8.7)
|
|
63
|
-
thor (>= 0.18.1, < 2.0)
|
|
64
|
-
rake (11.1.2)
|
|
65
|
-
redcarpet (3.3.4)
|
|
66
|
-
rspec (3.4.0)
|
|
67
|
-
rspec-core (~> 3.4.0)
|
|
68
|
-
rspec-expectations (~> 3.4.0)
|
|
69
|
-
rspec-mocks (~> 3.4.0)
|
|
70
|
-
rspec-core (3.4.4)
|
|
71
|
-
rspec-support (~> 3.4.0)
|
|
72
|
-
rspec-expectations (3.4.0)
|
|
73
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
|
74
|
-
rspec-support (~> 3.4.0)
|
|
75
|
-
rspec-mocks (3.4.1)
|
|
76
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
|
77
|
-
rspec-support (~> 3.4.0)
|
|
78
|
-
rspec-rails (3.4.2)
|
|
79
|
-
actionpack (>= 3.0, < 4.3)
|
|
80
|
-
activesupport (>= 3.0, < 4.3)
|
|
81
|
-
railties (>= 3.0, < 4.3)
|
|
82
|
-
rspec-core (~> 3.4.0)
|
|
83
|
-
rspec-expectations (~> 3.4.0)
|
|
84
|
-
rspec-mocks (~> 3.4.0)
|
|
85
|
-
rspec-support (~> 3.4.0)
|
|
86
|
-
rspec-support (3.4.1)
|
|
87
|
-
slop (3.6.0)
|
|
88
|
-
thor (0.19.1)
|
|
89
|
-
thread_safe (0.3.5)
|
|
90
|
-
tzinfo (1.2.2)
|
|
91
|
-
thread_safe (~> 0.1)
|
|
92
|
-
yard (0.8.7.6)
|
|
93
|
-
|
|
94
|
-
PLATFORMS
|
|
95
|
-
ruby
|
|
96
|
-
|
|
97
|
-
DEPENDENCIES
|
|
98
|
-
activerecord (~> 4.1.0)
|
|
99
|
-
ammeter (>= 1.1.3)
|
|
100
|
-
appraisal
|
|
101
|
-
bundler (>= 1.5)
|
|
102
|
-
database_cleaner
|
|
103
|
-
fx!
|
|
104
|
-
pg
|
|
105
|
-
pry
|
|
106
|
-
railties (~> 4.1.0)
|
|
107
|
-
rake
|
|
108
|
-
redcarpet
|
|
109
|
-
rspec (>= 3.3)
|
|
110
|
-
yard
|
|
111
|
-
|
|
112
|
-
BUNDLED WITH
|
|
113
|
-
1.12.4
|