activerecord-clean-db-structure 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e9057b2cd9b40521bab9a324d89cc954c3133986
4
- data.tar.gz: ce38ff48bea0d197a6bb73a611bdc32256c7a2cc
3
+ metadata.gz: 74075ad5bacc97daa51ec17089777e725696b476
4
+ data.tar.gz: 9f4c8e237c1a41f78d09adb0cdcdf533cf6cba90
5
5
  SHA512:
6
- metadata.gz: 5d162f9da67461de48c48ac5aeeb4ee308965121a0450b26f478065de6a557ecf91670c5181796a4a072bdea35aff8426a7d25cf2389fa713e4d8c896bf90d38
7
- data.tar.gz: b2f46a0a3bb71d278204a4d85aa08298716ac9a5dde77b0adca7d208c044cf1a402d6c919507bc11ae9dee3bc4c56f6d21bc4b41ab2934b2422f906390ff420a
6
+ metadata.gz: 6f2449492e32925ffd7469678453dbf8ef22f7beadfdc85d316da5c99aaf292e9cfe2839544c1f0967f2ddbb61af1bd10317f3a868d98660f57df9e1c088b60d
7
+ data.tar.gz: 565013be9fd41ce22a1cc7896f898f7cd58b4c29deb621319e2cd7a0542d18539698b39d66d45291af06ac3332f66daa8849446eddd551cc198d40f5247ca1ba
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.2.2 2017-08-05
4
+
5
+ * Support Rails 5.1 primary key UUIDs that rely on gen_random_uuid()
6
+
7
+
3
8
  ## 0.2.1 2017-06-30
4
9
 
5
10
  * Allow primary keys to be the last column of a table [Clemens Kofler](https://github.com/clemens)
@@ -1,27 +1,28 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- activerecord-clean-db-structure (0.2.1)
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.0)
11
- activesupport (= 5.1.0)
12
- activerecord (5.1.0)
13
- activemodel (= 5.1.0)
14
- activesupport (= 5.1.0)
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.0)
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.1)
24
- minitest (5.10.1)
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.12.5
38
+ 1.15.3
@@ -16,4 +16,6 @@ Gem::Specification.new do |s|
16
16
  s.license = 'MIT'
17
17
 
18
18
  s.add_dependency('activerecord', '>= 4.2')
19
+
20
+ s.add_development_dependency 'rake', '~> 0'
19
21
  end
@@ -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\);$/, '')
@@ -1,3 +1,3 @@
1
1
  module ActiveRecordCleanDbStructure
2
- VERSION = '0.2.1'
2
+ VERSION = '0.2.2'
3
3
  end
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.1
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-30 00:00:00.000000000 Z
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.4.5.1
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)