webdack-uuid_migration 1.3.0 → 1.4.0

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
  SHA256:
3
- metadata.gz: b3954bb0c6c9a9722b6ed24293b37a4bc644b47c48d63bad5a1950f2ecd9f9c3
4
- data.tar.gz: 57f8f13689f5706525e6fd5bdd0f757b6708868a78b9ae275c625ee0bd6f515f
3
+ metadata.gz: 25ef14eb1022b074c75b7ade13dd9c8e7082ba2b09eb3eeca117af57e531791e
4
+ data.tar.gz: 6b496e37a98d3efd7d8f3d6654a024e21e810786c10f7298a713e4de770dde8e
5
5
  SHA512:
6
- metadata.gz: c04960961a11f997c245afb2975647146b45cc5101efdcfeaf78685d56c9475efee6327a30eb3523f0df9c2cbcf50c8280321bfc13ff3af6919e1ba6558d5c79
7
- data.tar.gz: b0ac076d70cfdf22c6081f4871c77e370b99ad7359ca4026e339c5a8044786a02d414c62e35ac013ab30d74d9a4c69d7f6ba58f4a8d3989a5db8a44b736ebe92
6
+ metadata.gz: 439f373570a94d237cd92f86e980fc8d8f21cf1939110be0827915030bd8fc84307b0a9774b85e0a33d474bca12d72b303e3893417fad793e17b8859327d72fa
7
+ data.tar.gz: 1dcb80f724a2d9b2aefa3b88b1e201dbab2ff89b2ba10c3d852d9d9ccbd3e6efa390fa58c227e546dd3de773e07c3631636ec2378889d4f440b66c7a7fdc384d
data/.travis.yml CHANGED
@@ -1,18 +1,22 @@
1
1
  rvm:
2
- - 2.6.5
3
- - 2.5.7
4
- - 2.4.9
2
+ - 3.0.0
3
+ - 2.7.2
4
+ - 2.5.8
5
5
 
6
6
  gemfile:
7
+ - gemfiles/rails61.gemfile
7
8
  - gemfiles/rails60.gemfile
8
9
  - gemfiles/rails52.gemfile
9
- - gemfiles/rails51.gemfile
10
10
  - gemfiles/rails42.gemfile
11
11
 
12
12
  matrix:
13
13
  exclude:
14
- - rvm: 2.4.9
15
- gemfile: gemfiles/rails60.gemfile
14
+ - rvm: 3.0.0
15
+ gemfile: gemfiles/rails52.gemfile
16
+ - rvm: 3.0.0
17
+ gemfile: gemfiles/rails42.gemfile
18
+ - rvm: 2.7.2
19
+ gemfile: gemfiles/rails42.gemfile
16
20
 
17
21
  script: bundle exec rspec spec
18
22
 
data/README.md CHANGED
@@ -10,16 +10,16 @@ However, there is no reliable tutorial to help convert an in-production Rails ap
10
10
  from Integer ids to UUIDs.
11
11
 
12
12
  This gem has helper methods to convert Integer columns to UUIDs during migrations.
13
- It supports migrating primary key columns, relations, and polymorphic relations as well.
13
+ It supports migrating primary key columns, relations, and polymorphic relations.
14
14
 
15
- It is designed to be very fast and is suitable for inplace migration of schema and data.
15
+ It is designed to be fast and is suitable for in-place migration of schema and data.
16
16
  It has been used in production since 2014.
17
17
 
18
18
  This only supports PostgreSQL.
19
19
 
20
20
  ## Documentation
21
21
 
22
- http://www.rubydoc.info/gems/webdack-uuid_migration (Link is dead).
22
+ http://www.rubydoc.info/gems/webdack-uuid_migration (The link may occasionally not work).
23
23
 
24
24
  ## Installation
25
25
 
@@ -157,6 +157,8 @@ Example:
157
157
 
158
158
  Works with Rails 4.2+, 5 & 6. It uses Rails 4's out-of-the-box UUID support for PostgreSQL.
159
159
 
160
+ Update to latest version (>=1.4.0) for using it with Ruby 3.
161
+
160
162
  See https://travis-ci.org/kreatio-sw/webdack-uuid_migration for current build matrix.
161
163
 
162
164
  To run the test suite:
@@ -171,6 +173,7 @@ To run the test suite:
171
173
  - [Felix Bünemann](https://github.com/felixbuenemann) for checking compatibility with Rails 4.1
172
174
  - [Nick Schwaderer](https://github.com/Schwad) Rails 5.2.x compatibility
173
175
  - [Kelsey Hannan](https://github.com/KelseyDH) Upgrading to `pgcrypto`
176
+ - [Sébastien Dubois](https://github.com/sedubois) Ruby 3.0 compatibility
174
177
 
175
178
  ## Contributing
176
179
 
@@ -0,0 +1,5 @@
1
+ source "https://rubygems.org"
2
+
3
+ gem 'activerecord', '~>6.1.0'
4
+
5
+ gemspec :path=>"../"
@@ -56,7 +56,7 @@ module Webdack
56
56
  foreign_key_spec = fk_key_spec.dup
57
57
  from_table = foreign_key_spec.delete(:from_table)
58
58
  to_table = foreign_key_spec.delete(:to_table)
59
- add_foreign_key from_table, to_table, foreign_key_spec
59
+ add_foreign_key from_table, to_table, **foreign_key_spec
60
60
  end
61
61
  end
62
62
  end
@@ -2,6 +2,6 @@
2
2
  module Webdack
3
3
  #
4
4
  module UUIDMigration
5
- VERSION = "1.3.0"
5
+ VERSION = "1.4.0"
6
6
  end
7
7
  end
@@ -9,7 +9,7 @@ Gem::Specification.new do |spec|
9
9
  spec.authors = ["Deepak Kumar"]
10
10
  spec.email = ["deepak@kreatio.com"]
11
11
  spec.summary = %q{Useful helpers to migrate Integer id columns to UUID in PostgreSql.}
12
- spec.description = %q{Useful helpers to migrate Integer id columns to UUID in PostgreSql. Special support for primary keys.}
12
+ spec.description = %q{Useful helpers to consistently migrate Integer id columns to UUID in PostgreSql. Special support for primary keys and references.}
13
13
  spec.homepage = "https://github.com/kreatio-sw/webdack-uuid_migration"
14
14
  spec.license = 'MIT'
15
15
 
@@ -26,6 +26,4 @@ Gem::Specification.new do |spec|
26
26
  spec.add_development_dependency 'gem-release'
27
27
 
28
28
  spec.add_dependency 'activerecord', '>= 4.0'
29
-
30
- spec.has_rdoc= 'yard'
31
29
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: webdack-uuid_migration
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Deepak Kumar
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-11-29 00:00:00.000000000 Z
11
+ date: 2021-02-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -108,8 +108,8 @@ dependencies:
108
108
  - - ">="
109
109
  - !ruby/object:Gem::Version
110
110
  version: '4.0'
111
- description: Useful helpers to migrate Integer id columns to UUID in PostgreSql. Special
112
- support for primary keys.
111
+ description: Useful helpers to consistently migrate Integer id columns to UUID in
112
+ PostgreSql. Special support for primary keys and references.
113
113
  email:
114
114
  - deepak@kreatio.com
115
115
  executables: []
@@ -127,6 +127,7 @@ files:
127
127
  - gemfiles/rails51.gemfile
128
128
  - gemfiles/rails52.gemfile
129
129
  - gemfiles/rails60.gemfile
130
+ - gemfiles/rails61.gemfile
130
131
  - lib/webdack/uuid_migration.rb
131
132
  - lib/webdack/uuid_migration/helpers.rb
132
133
  - lib/webdack/uuid_migration/schema_helpers.rb
@@ -162,7 +163,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
162
163
  - !ruby/object:Gem::Version
163
164
  version: '0'
164
165
  requirements: []
165
- rubygems_version: 3.0.1
166
+ rubygems_version: 3.1.4
166
167
  signing_key:
167
168
  specification_version: 4
168
169
  summary: Useful helpers to migrate Integer id columns to UUID in PostgreSql.