webdack-uuid_migration 1.0.0 → 1.0.1

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: f850dddcf73b99edb05d67288e97f57a8051ff4c
4
- data.tar.gz: 8d76dcca99385ce74f34f8d569f8718bed43009a
3
+ metadata.gz: 6368bae7ea813a00d4a532174f0f1ebd704b2cef
4
+ data.tar.gz: d9e59fe6d56546514c5eca167ef2e8b53bd6b622
5
5
  SHA512:
6
- metadata.gz: 935713be851921cb7f149e8adc08faa0a7dd8a120eedcda930b1a12dae892a3f8bcedfea7a119f570058a6f9212510bcaefd16b96afc527a84466439d3b1bff6
7
- data.tar.gz: 5be949bcbf3d6c89f53be9d8bae70f31b2d8148779ee751ea4ddc3dd15103c360a2fd442fbffd3e21b849e12d4dd8c657106a40afe89ba01564c45b1c2751d8f
6
+ metadata.gz: 4840bb9c3a7da55bc2c9fe9b0712163181a86f9060f2aeba6eefeb2c862621953b8fd53e97d13b433d7260a96af9a0a5addabbba88a0f2c201766c6f3d61fd3b
7
+ data.tar.gz: 64dd4f6a8271522d79870c6628c524c5258ebc45937e66c91afe5ed41ca8d17a316ff30a661c96e6b70bf854131f01fa8ad8d2228530b4748caf85cd90727b7b
data/README.md CHANGED
@@ -94,7 +94,9 @@ Example:
94
94
  ## Compatibility
95
95
 
96
96
  Works only with Rails 4. It uses Rails4's out-of-the-box UUID support for PostgreSQL. Works with Ruby 1.9.3,
97
- 2.0.0, and 2.1.1.
97
+ 2.0.0, 2.1.1, and 2.3.0.
98
+
99
+ Tested with Rails 5.0.0.beta1.
98
100
 
99
101
  To run the test suite:
100
102
 
@@ -2,6 +2,6 @@
2
2
  module Webdack
3
3
  #
4
4
  module UUIDMigration
5
- VERSION = "1.0.0"
5
+ VERSION = "1.0.1"
6
6
  end
7
7
  end
@@ -1,5 +1,5 @@
1
1
  class Student < ActiveRecord::Base
2
- belongs_to :city
2
+ belongs_to :city, -> {where('true')}
3
3
 
4
- belongs_to :institution, :polymorphic => true
4
+ belongs_to :institution, -> {where('true')}, :polymorphic => true
5
5
  end
@@ -80,6 +80,7 @@ describe Webdack::UUIDMigration::Helpers do
80
80
  def initial_setup
81
81
  init_database
82
82
  create_initial_schema
83
+ reset_columns_data # Ensure to reset the column data before sample data creation.
83
84
  populate_sample_data
84
85
  end
85
86
 
@@ -124,7 +125,7 @@ describe Webdack::UUIDMigration::Helpers do
124
125
  # Verify that our data is still there
125
126
  student= Student.where(name: original_name).first
126
127
 
127
- # Verify that data in id columns have been migrated to UUID by verifying teh format
128
+ # Verify that data in id columns have been migrated to UUID by verifying the format
128
129
  [student.id, student.city_id, student.institution_id].each do |id|
129
130
  expect(id).to match(/^0{8}-0{4}-0{4}-0{4}-\d{12}$/)
130
131
  end
@@ -23,8 +23,9 @@ Gem::Specification.new do |spec|
23
23
  spec.add_development_dependency "yard"
24
24
  spec.add_development_dependency "rspec"
25
25
  spec.add_development_dependency "pg"
26
+ spec.add_development_dependency 'gem-release'
26
27
 
27
- spec.add_dependency 'activerecord', '~> 4.0'
28
+ spec.add_dependency 'activerecord', '>= 4.0'
28
29
 
29
30
  spec.has_rdoc= 'yard'
30
31
  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.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Deepak Kumar
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-05 00:00:00.000000000 Z
11
+ date: 2015-12-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -80,18 +80,32 @@ dependencies:
80
80
  - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: gem-release
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'
83
97
  - !ruby/object:Gem::Dependency
84
98
  name: activerecord
85
99
  requirement: !ruby/object:Gem::Requirement
86
100
  requirements:
87
- - - "~>"
101
+ - - ">="
88
102
  - !ruby/object:Gem::Version
89
103
  version: '4.0'
90
104
  type: :runtime
91
105
  prerelease: false
92
106
  version_requirements: !ruby/object:Gem::Requirement
93
107
  requirements:
94
- - - "~>"
108
+ - - ">="
95
109
  - !ruby/object:Gem::Version
96
110
  version: '4.0'
97
111
  description: Useful helpers to migrate Integer id columns to UUID in PostgreSql. Special
@@ -141,7 +155,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
141
155
  version: '0'
142
156
  requirements: []
143
157
  rubyforge_project:
144
- rubygems_version: 2.4.5
158
+ rubygems_version: 2.5.1
145
159
  signing_key:
146
160
  specification_version: 4
147
161
  summary: Useful helpers to migrate Integer id columns to UUID in PostgreSql.