leifcr-activeuuid 0.6.1 → 0.6.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: e6d3921fec4b0c5abb5e55539eb92720910eaa9a
4
- data.tar.gz: 12462ac8bb328eb9d681b7c09b6c8359522b7b59
3
+ metadata.gz: 55924fcfc13d60b21201fdff86711941c7071976
4
+ data.tar.gz: c77c3584417245def83a538781839b4dece0c29f
5
5
  SHA512:
6
- metadata.gz: 8aea46635d2a9e8ee0173857390dc3c2defffec316ea41c824754e098d0d045bcc2dea41bf0c790fc9fbbf59cc08456e60004afd428db027ed264e84f9ad4097
7
- data.tar.gz: 739ae260cfbb69c52b6be10f5e7b6ed2e1ee2c3c22834c65135370bb0cb20e6383284ff51c5444f6a94d3ed5bddb6dac29a97a3ae4b30e07b005e2508196189c
6
+ metadata.gz: 06bc761558486e33552e205f93ba0c02ef0cda68e2588926b28840f58208f7e8a9bafe454c17043eb4d9eb22e1d2334c03143012f22ed8bdacf6e8f19eb2d63a
7
+ data.tar.gz: 07dcc86495f978390df2db4a978fe3f61a2970b9473f1db5637fd57740c13557b42b451ae5417209bc02cbc311542187116549168757b148476cb2f56ea8a439
@@ -3,50 +3,12 @@ before_script:
3
3
  - psql -c 'create database activeuuid_test;' -U postgres
4
4
 
5
5
  rvm:
6
- - 2.3.6
7
6
  - 2.4.3
8
- - jruby-9.1.15.0
9
7
 
10
8
  gemfile:
11
- - Gemfile
12
- - gemfiles/Gemfile.rails-4-0
13
- - gemfiles/Gemfile.rails-4-1
14
- - gemfiles/Gemfile.rails-4-2
15
- - gemfiles/Gemfile.rails-5-0
16
9
  - gemfiles/Gemfile.rails-5-1
17
10
  - gemfiles/Gemfile.rails-head
18
11
 
19
12
  env:
20
- - DB=sqlite3
21
13
  - DB=mysql
22
14
  - DB=postgresql
23
-
24
- matrix:
25
- allow_failures:
26
- - gemfile: gemfiles/Gemfile.rails-head
27
- - rvm: jruby-9.1.15.0
28
- gemfile: Gemfile
29
- - rvm: jruby-9.1.15.0
30
- gemfile: gemfiles/Gemfile.rails-4-0
31
- - rvm: jruby-9.1.15.0
32
- gemfile: gemfiles/Gemfile.rails-4-1
33
- - rvm: jruby-9.1.15.0
34
- gemfile: gemfiles/Gemfile.rails-4-2
35
- - rvm: jruby-9.1.15.0
36
- gemfile: gemfiles/Gemfile.rails-5-0
37
- - rvm: jruby-9.1.15.0
38
- gemfile: gemfiles/Gemfile.rails-5-1
39
- exclude:
40
- - rvm: 2.3.6
41
- gemfile: gemfiles/Gemfile.rails-3-1
42
- - rvm: jruby
43
- gemfile: gemfiles/Gemfile.rails-3-1
44
- env: DB=postgresql
45
- - rvm: 2.3.6
46
- gemfile: gemfiles/Gemfile.rails-3-2
47
- - rvm: 2.4.3
48
- gemfile: gemfiles/Gemfile.rails-4-0
49
- - rvm: 2.4.3
50
- gemfile: gemfiles/Gemfile.rails-4-1
51
- - rvm: 2.4.3
52
- gemfile: gemfiles/Gemfile.rails-4-2
data/Gemfile CHANGED
@@ -2,5 +2,5 @@ source "http://rubygems.org"
2
2
 
3
3
  # Specify your gem's dependencies in activeuuid.gemspec
4
4
  gemspec
5
- gem "activerecord", "~>5.0"
5
+ gem "activerecord", "~>5.1"
6
6
  gem "rake", "< 11.0"
@@ -35,6 +35,6 @@ Gem::Specification.new do |s|
35
35
  s.add_development_dependency "sqlite3"
36
36
  end
37
37
 
38
- s.add_runtime_dependency "activerecord", ">= 4.0"
38
+ s.add_runtime_dependency "activerecord", ">= 5.1"
39
39
  s.add_runtime_dependency "uuidtools"
40
40
  end
@@ -120,10 +120,13 @@ module ActiveUUID
120
120
 
121
121
  def self.prepended(_klass)
122
122
  def quote(value, column = nil)
123
- value = UUIDTools::UUID.serialize(value) if column&.type == :uuid
124
- case method(__method__).super_method.arity
125
- when 1 then super(value)
126
- else super
123
+ # silence quoted_id warning until rails 5.2 (Must fix before rails 5.2)
124
+ ActiveSupport::Deprecation.silence do
125
+ value = UUIDTools::UUID.serialize(value) if column&.type == :uuid
126
+ case method(__method__).super_method.arity
127
+ when 1 then super(value)
128
+ else super
129
+ end
127
130
  end
128
131
  end
129
132
 
@@ -1,3 +1,3 @@
1
1
  module Activeuuid
2
- VERSION = "0.6.1".freeze
2
+ VERSION = "0.6.2".freeze
3
3
  end
@@ -25,7 +25,11 @@ if ENV["DB"] == "mysql"
25
25
  end
26
26
  end
27
27
 
28
- ActiveRecord::Migrator.migrate(File.dirname(__FILE__) + "/support/migrate")
28
+ if ActiveRecord.version.release() < Gem::Version.new('5.2.0')
29
+ ActiveRecord::Migrator.migrate(File.dirname(__FILE__) + "/support/migrate")
30
+ else
31
+ ActiveRecord::MigrationContext.new('spec/dummy/db/migrate').migrate
32
+ end
29
33
  ActiveRecord::SchemaDumper.dump(ActiveRecord::Base.connection, STDOUT)
30
34
 
31
35
  Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
@@ -1,7 +1,4 @@
1
- parent_class = ActiveRecord::Migration.respond_to?(:[]) ?
2
- ActiveRecord::Migration[4.2] :
3
- ActiveRecord::Migration
4
- class CreateArticles < parent_class
1
+ class CreateArticles < ActiveRecord::Migration[4.2]
5
2
  def change
6
3
  create_table :articles do |t|
7
4
  t.string :title
@@ -1,7 +1,4 @@
1
- parent_class = ActiveRecord::Migration.respond_to?(:[]) ?
2
- ActiveRecord::Migration[4.2] :
3
- ActiveRecord::Migration
4
- class CreateUuidArticles < parent_class
1
+ class CreateUuidArticles < ActiveRecord::Migration[4.2]
5
2
  def change
6
3
  create_table :uuid_articles, id: false do |t|
7
4
  t.uuid :id, primary_key: true
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: leifcr-activeuuid
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nate Murray
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-04-10 00:00:00.000000000 Z
11
+ date: 2018-04-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -156,14 +156,14 @@ dependencies:
156
156
  requirements:
157
157
  - - ">="
158
158
  - !ruby/object:Gem::Version
159
- version: '4.0'
159
+ version: '5.1'
160
160
  type: :runtime
161
161
  prerelease: false
162
162
  version_requirements: !ruby/object:Gem::Requirement
163
163
  requirements:
164
164
  - - ">="
165
165
  - !ruby/object:Gem::Version
166
- version: '4.0'
166
+ version: '5.1'
167
167
  - !ruby/object:Gem::Dependency
168
168
  name: uuidtools
169
169
  requirement: !ruby/object:Gem::Requirement
@@ -197,10 +197,6 @@ files:
197
197
  - README.mkd
198
198
  - Rakefile
199
199
  - activeuuid.gemspec
200
- - gemfiles/Gemfile.rails-4-0
201
- - gemfiles/Gemfile.rails-4-1
202
- - gemfiles/Gemfile.rails-4-2
203
- - gemfiles/Gemfile.rails-5-0
204
200
  - gemfiles/Gemfile.rails-5-1
205
201
  - gemfiles/Gemfile.rails-head
206
202
  - lib/activeuuid.rb
@@ -1,6 +0,0 @@
1
- source "http://rubygems.org"
2
-
3
- gemspec path: '../'
4
-
5
- gem 'mysql2', '~> 0.3.21', '~> 0.3.21', platforms: [:mri, :rbx]
6
- gem 'activerecord', '~> 4.0.0'
@@ -1,6 +0,0 @@
1
- source "http://rubygems.org"
2
-
3
- gemspec path: '../'
4
-
5
- gem 'mysql2', '~> 0.3.21', platforms: [:mri, :rbx]
6
- gem 'activerecord', '~> 4.1.0'
@@ -1,5 +0,0 @@
1
- source "http://rubygems.org"
2
-
3
- gemspec path: '../'
4
-
5
- gem 'activerecord', '~> 4.2.0'
@@ -1,5 +0,0 @@
1
- source "http://rubygems.org"
2
-
3
- gemspec path: '../'
4
-
5
- gem 'activerecord', '~> 5.0.0'