activerecord-clean-db-structure 0.2.1 → 0.2.2
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 74075ad5bacc97daa51ec17089777e725696b476
|
|
4
|
+
data.tar.gz: 9f4c8e237c1a41f78d09adb0cdcdf533cf6cba90
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6f2449492e32925ffd7469678453dbf8ef22f7beadfdc85d316da5c99aaf292e9cfe2839544c1f0967f2ddbb61af1bd10317f3a868d98660f57df9e1c088b60d
|
|
7
|
+
data.tar.gz: 565013be9fd41ce22a1cc7896f898f7cd58b4c29deb621319e2cd7a0542d18539698b39d66d45291af06ac3332f66daa8849446eddd551cc198d40f5247ca1ba
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
|
@@ -1,27 +1,28 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
activerecord-clean-db-structure (0.2.
|
|
4
|
+
activerecord-clean-db-structure (0.2.2)
|
|
5
5
|
activerecord (>= 4.2)
|
|
6
6
|
|
|
7
7
|
GEM
|
|
8
8
|
remote: https://rubygems.org/
|
|
9
9
|
specs:
|
|
10
|
-
activemodel (5.1.
|
|
11
|
-
activesupport (= 5.1.
|
|
12
|
-
activerecord (5.1.
|
|
13
|
-
activemodel (= 5.1.
|
|
14
|
-
activesupport (= 5.1.
|
|
10
|
+
activemodel (5.1.2)
|
|
11
|
+
activesupport (= 5.1.2)
|
|
12
|
+
activerecord (5.1.2)
|
|
13
|
+
activemodel (= 5.1.2)
|
|
14
|
+
activesupport (= 5.1.2)
|
|
15
15
|
arel (~> 8.0)
|
|
16
|
-
activesupport (5.1.
|
|
16
|
+
activesupport (5.1.2)
|
|
17
17
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
|
18
18
|
i18n (~> 0.7)
|
|
19
19
|
minitest (~> 5.1)
|
|
20
20
|
tzinfo (~> 1.1)
|
|
21
21
|
arel (8.0.0)
|
|
22
22
|
concurrent-ruby (1.0.5)
|
|
23
|
-
i18n (0.8.
|
|
24
|
-
minitest (5.10.
|
|
23
|
+
i18n (0.8.6)
|
|
24
|
+
minitest (5.10.3)
|
|
25
|
+
rake (0.9.6)
|
|
25
26
|
thread_safe (0.3.6)
|
|
26
27
|
tzinfo (1.2.3)
|
|
27
28
|
thread_safe (~> 0.1)
|
|
@@ -31,6 +32,7 @@ PLATFORMS
|
|
|
31
32
|
|
|
32
33
|
DEPENDENCIES
|
|
33
34
|
activerecord-clean-db-structure!
|
|
35
|
+
rake (~> 0)
|
|
34
36
|
|
|
35
37
|
BUNDLED WITH
|
|
36
|
-
1.
|
|
38
|
+
1.15.3
|
|
@@ -33,6 +33,7 @@ module ActiveRecordCleanDbStructure
|
|
|
33
33
|
dump.gsub!(/^ id integer NOT NULL(,)?$/, ' id SERIAL PRIMARY KEY\1')
|
|
34
34
|
dump.gsub!(/^ id bigint NOT NULL(,)?$/, ' id BIGSERIAL PRIMARY KEY\1')
|
|
35
35
|
dump.gsub!(/^ id uuid DEFAULT uuid_generate_v4\(\) NOT NULL(,)?$/, ' id uuid DEFAULT uuid_generate_v4() PRIMARY KEY\1')
|
|
36
|
+
dump.gsub!(/^ id uuid DEFAULT gen_random_uuid\(\) NOT NULL(,)?$/, ' id uuid DEFAULT gen_random_uuid() PRIMARY KEY\1')
|
|
36
37
|
dump.gsub!(/^CREATE SEQUENCE \w+_id_seq\s+START WITH 1\s+INCREMENT BY 1\s+NO MINVALUE\s+NO MAXVALUE\s+CACHE 1;$/, '')
|
|
37
38
|
dump.gsub!(/^ALTER SEQUENCE \w+_id_seq OWNED BY .*;$/, '')
|
|
38
39
|
dump.gsub!(/^ALTER TABLE ONLY \w+ ALTER COLUMN id SET DEFAULT nextval\('\w+_id_seq'::regclass\);$/, '')
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: activerecord-clean-db-structure
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Lukas Fittl
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-06
|
|
11
|
+
date: 2017-08-06 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activerecord
|
|
@@ -24,6 +24,20 @@ dependencies:
|
|
|
24
24
|
- - ">="
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
26
|
version: '4.2'
|
|
27
|
+
- !ruby/object:Gem::Dependency
|
|
28
|
+
name: rake
|
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
|
30
|
+
requirements:
|
|
31
|
+
- - "~>"
|
|
32
|
+
- !ruby/object:Gem::Version
|
|
33
|
+
version: '0'
|
|
34
|
+
type: :development
|
|
35
|
+
prerelease: false
|
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
37
|
+
requirements:
|
|
38
|
+
- - "~>"
|
|
39
|
+
- !ruby/object:Gem::Version
|
|
40
|
+
version: '0'
|
|
27
41
|
description: Never worry about weird diffs and merge conflicts again
|
|
28
42
|
email: lukas@fittl.com
|
|
29
43
|
executables: []
|
|
@@ -63,7 +77,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
63
77
|
version: '0'
|
|
64
78
|
requirements: []
|
|
65
79
|
rubyforge_project:
|
|
66
|
-
rubygems_version: 2.
|
|
80
|
+
rubygems_version: 2.6.11
|
|
67
81
|
signing_key:
|
|
68
82
|
specification_version: 4
|
|
69
83
|
summary: Automatic cleanup for the Rails db/structure.sql file (ActiveRecord/PostgreSQL)
|