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 +4 -4
- data/.travis.yml +0 -38
- data/Gemfile +1 -1
- data/activeuuid.gemspec +1 -1
- data/lib/activeuuid/patches.rb +7 -4
- data/lib/activeuuid/version.rb +1 -1
- data/spec/spec_helper.rb +5 -1
- data/spec/support/migrate/20111117081813_create_articles.rb +1 -4
- data/spec/support/migrate/20120817081813_create_uuid_articles.rb +1 -4
- metadata +4 -8
- data/gemfiles/Gemfile.rails-4-0 +0 -6
- data/gemfiles/Gemfile.rails-4-1 +0 -6
- data/gemfiles/Gemfile.rails-4-2 +0 -5
- data/gemfiles/Gemfile.rails-5-0 +0 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 55924fcfc13d60b21201fdff86711941c7071976
|
4
|
+
data.tar.gz: c77c3584417245def83a538781839b4dece0c29f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 06bc761558486e33552e205f93ba0c02ef0cda68e2588926b28840f58208f7e8a9bafe454c17043eb4d9eb22e1d2334c03143012f22ed8bdacf6e8f19eb2d63a
|
7
|
+
data.tar.gz: 07dcc86495f978390df2db4a978fe3f61a2970b9473f1db5637fd57740c13557b42b451ae5417209bc02cbc311542187116549168757b148476cb2f56ea8a439
|
data/.travis.yml
CHANGED
@@ -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
data/activeuuid.gemspec
CHANGED
data/lib/activeuuid/patches.rb
CHANGED
@@ -120,10 +120,13 @@ module ActiveUUID
|
|
120
120
|
|
121
121
|
def self.prepended(_klass)
|
122
122
|
def quote(value, column = nil)
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
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
|
|
data/lib/activeuuid/version.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
@@ -25,7 +25,11 @@ if ENV["DB"] == "mysql"
|
|
25
25
|
end
|
26
26
|
end
|
27
27
|
|
28
|
-
ActiveRecord
|
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
|
-
|
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
|
-
|
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.
|
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-
|
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: '
|
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: '
|
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
|
data/gemfiles/Gemfile.rails-4-0
DELETED
data/gemfiles/Gemfile.rails-4-1
DELETED
data/gemfiles/Gemfile.rails-4-2
DELETED