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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 93bbb70dfec9743994eaf1b9d2b68fd1ce501c2a
4
- data.tar.gz: 88e2fb91ddbc60279652e4dc118f392eda0c0af7
3
+ metadata.gz: 438e4ba56f4218968d31d57101e6a44f78a58ccc
4
+ data.tar.gz: 5126bd415de369e7abfad67ac0599b39c1997dd4
5
5
  SHA512:
6
- metadata.gz: e134578e531e9e134cbe9c61e402bf4421cc640a8d1a2858205cf1683b6bc962a74682e3911bea230c8d97afb72c108fa4fc888c7d858e6b962529c05caf319e
7
- data.tar.gz: 0a849700022f5a288b2cdd1b837221f5a50dd864b04881212832510b4c543efbcd713ca246e5cf2cc0d3b04e5361699e10d574c56cea2e83c88cd81e62ad64f6
6
+ metadata.gz: '09b9e49f9b6a05bf50616d135155efe4d080eb36daafd3893c9d9657c035e860d7b5652f3f3c70207cb3f87a88503258d551c075deff5b9f271ca1de8632695a'
7
+ data.tar.gz: f626a8d982805e1dda2f9efe0ac5482d13b1ccad2d6123473d768a96211c81e08cfbe1521a2dcfb72adacf1382ce9ce07831d738be0351fb3fc2fc04a4a0a3bb
data/.gitignore CHANGED
@@ -7,3 +7,4 @@
7
7
  /pkg/
8
8
  /spec/reports/
9
9
  /tmp/
10
+ activerecord-mysql-uuid-column-*.gem
@@ -4,4 +4,6 @@ language: ruby
4
4
  rvm:
5
5
  - 2.2.6
6
6
  - 2.3.3
7
+ - 2.4.0
8
+ - ruby-head
7
9
  before_install: gem install bundler
data/README.md CHANGED
@@ -1,8 +1,13 @@
1
1
  # ActiveRecord::Mysql::UuidColumn
2
2
 
3
- Adds a :uuid column to ActiveRecord MySQL Adapter
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: uuid_test
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 "test_uuids", force: true do |t|
39
- t.uuid "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{This gem add support for a real uuid column for MySQL adapter.}
13
- spec.description = %q{Most people use varchar(36) for storing uuids, which is very wrong for storing a 128 bit integer.}
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", '~> 0'
28
- spec.add_development_dependency "looksee", '~> 0'
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
@@ -1,7 +1,7 @@
1
1
  module ActiveRecord
2
2
  module Mysql
3
3
  module UuidColumn
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.1"
5
5
  end
6
6
  end
7
7
  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.0
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: '0'
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: '0'
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: Most people use varchar(36) for storing uuids, which is very wrong for
118
- storing a 128 bit integer.
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: This gem add support for a real uuid column for MySQL adapter.
178
+ summary: Adds a :uuid column to ActiveRecord MySQL2 Adapter. Store UUIDs as 16 bytes
179
+ binary column.
165
180
  test_files: []