activerecord-mysql-uuid-column 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.travis.yml +2 -0
- data/README.md +14 -4
- data/activerecord-mysql-uuid-column.gemspec +5 -4
- data/lib/active_record-mysql-uuid_column/version.rb +1 -1
- metadata +21 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 438e4ba56f4218968d31d57101e6a44f78a58ccc
|
4
|
+
data.tar.gz: 5126bd415de369e7abfad67ac0599b39c1997dd4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '09b9e49f9b6a05bf50616d135155efe4d080eb36daafd3893c9d9657c035e860d7b5652f3f3c70207cb3f87a88503258d551c075deff5b9f271ca1de8632695a'
|
7
|
+
data.tar.gz: f626a8d982805e1dda2f9efe0ac5482d13b1ccad2d6123473d768a96211c81e08cfbe1521a2dcfb72adacf1382ce9ce07831d738be0351fb3fc2fc04a4a0a3bb
|
data/.gitignore
CHANGED
data/.travis.yml
CHANGED
data/README.md
CHANGED
@@ -1,8 +1,13 @@
|
|
1
1
|
# ActiveRecord::Mysql::UuidColumn
|
2
2
|
|
3
|
-
Adds a :uuid column to ActiveRecord
|
3
|
+
Adds a :uuid column to ActiveRecord MySQL2 Adapter
|
4
4
|
it is stored in a 16 bytes binary column. which is exactly the space it needs.
|
5
5
|
|
6
|
+
[![Gem Version](https://badge.fury.io/rb/activerecord-mysql-uuid-column.svg)](https://badge.fury.io/rb/activerecord-mysql-uuid-column)
|
7
|
+
[![Build Status](https://travis-ci.org/mathieujobin/activerecord-mysql-uuid-column.svg?branch=master)](https://travis-ci.org/mathieujobin/activerecord-mysql-uuid-column)
|
8
|
+
![GitHub release](https://img.shields.io/github/release/mathieujobin/activerecord-mysql-uuid-column.svg)
|
9
|
+
[![Codecov](https://img.shields.io/codecov/c/github/mathieujobin/activerecord-mysql-uuid-column.svg)](https://codecov.io/gh/mathieujobin/activerecord-mysql-uuid-column)
|
10
|
+
|
6
11
|
## Installation
|
7
12
|
|
8
13
|
Add this line to your application's Gemfile:
|
@@ -28,15 +33,15 @@ test:
|
|
28
33
|
username: root
|
29
34
|
host: localhost
|
30
35
|
reconnect: true
|
31
|
-
database:
|
36
|
+
database: awesome_project_of_yours
|
32
37
|
```
|
33
38
|
|
34
39
|
Adds column type `uuid`
|
35
40
|
|
36
41
|
```
|
37
42
|
ActiveRecord::Schema.define(version: 20161122225732) do
|
38
|
-
create_table "
|
39
|
-
t.uuid "
|
43
|
+
create_table "workers", force: true do |t|
|
44
|
+
t.uuid "job_uuid"
|
40
45
|
end
|
41
46
|
end
|
42
47
|
```
|
@@ -61,6 +66,11 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
61
66
|
|
62
67
|
Bug reports and pull requests are welcome on GitHub at https://github.com/mathieujobin/activerecord-mysql-uuid-column. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
63
68
|
|
69
|
+
## Online API Doc
|
70
|
+
http://www.rubydoc.info/gems/activerecord-mysql-uuid-column/0.1.0
|
71
|
+
|
72
|
+
## On libraries.io
|
73
|
+
https://libraries.io/rubygems/activerecord-mysql-uuid-column
|
64
74
|
|
65
75
|
## License
|
66
76
|
|
@@ -9,8 +9,8 @@ Gem::Specification.new do |spec|
|
|
9
9
|
spec.authors = ["Mathieu Jobin"]
|
10
10
|
spec.email = ["mathieu@justbudget.com"]
|
11
11
|
|
12
|
-
spec.summary = %q{
|
13
|
-
spec.description =
|
12
|
+
spec.summary = %q{Adds a :uuid column to ActiveRecord MySQL2 Adapter. Store UUIDs as 16 bytes binary column.}
|
13
|
+
spec.description = spec.summary
|
14
14
|
spec.homepage = "https://github.com/mathieujobin/activerecord-mysql-uuid-column"
|
15
15
|
spec.license = "MIT"
|
16
16
|
|
@@ -24,8 +24,9 @@ Gem::Specification.new do |spec|
|
|
24
24
|
spec.add_development_dependency "bundler", "~> 1.13"
|
25
25
|
spec.add_development_dependency "rake", "~> 10.0"
|
26
26
|
spec.add_development_dependency "rspec", "~> 3.0"
|
27
|
-
spec.add_development_dependency "byebug", '~>
|
28
|
-
spec.add_development_dependency "looksee", '~>
|
27
|
+
spec.add_development_dependency "byebug", '~> 3'
|
28
|
+
spec.add_development_dependency "looksee", '~> 4'
|
29
|
+
spec.add_development_dependency "codecov", '~> 0'
|
29
30
|
spec.add_dependency "activerecord", ">= 5", "< 6"
|
30
31
|
spec.add_dependency "mysql2", "~> 0.4.4"
|
31
32
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activerecord-mysql-uuid-column
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mathieu Jobin
|
@@ -58,16 +58,30 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
61
|
+
version: '3'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '
|
68
|
+
version: '3'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: looksee
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '4'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '4'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: codecov
|
71
85
|
requirement: !ruby/object:Gem::Requirement
|
72
86
|
requirements:
|
73
87
|
- - "~>"
|
@@ -114,8 +128,8 @@ dependencies:
|
|
114
128
|
- - "~>"
|
115
129
|
- !ruby/object:Gem::Version
|
116
130
|
version: 0.4.4
|
117
|
-
description:
|
118
|
-
|
131
|
+
description: Adds a :uuid column to ActiveRecord MySQL2 Adapter. Store UUIDs as 16
|
132
|
+
bytes binary column.
|
119
133
|
email:
|
120
134
|
- mathieu@justbudget.com
|
121
135
|
executables: []
|
@@ -161,5 +175,6 @@ rubyforge_project:
|
|
161
175
|
rubygems_version: 2.5.2
|
162
176
|
signing_key:
|
163
177
|
specification_version: 4
|
164
|
-
summary:
|
178
|
+
summary: Adds a :uuid column to ActiveRecord MySQL2 Adapter. Store UUIDs as 16 bytes
|
179
|
+
binary column.
|
165
180
|
test_files: []
|