mysql-binuuid-rails 1.1.1 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.ruby-version +1 -1
- data/.travis.yml +3 -1
- data/CHANGELOG.md +8 -0
- data/CONTRIBUTORS.md +9 -0
- data/Gemfile.lock +55 -54
- data/README.md +1 -5
- data/lib/mysql-binuuid/type.rb +2 -2
- data/lib/mysql-binuuid/version.rb +1 -1
- data/mysql-binuuid-rails.gemspec +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c55b80bc15cb833b89b11a49d5b77555f7c874eacccc8860352b02cda9fd4dba
|
|
4
|
+
data.tar.gz: d06c60b173c634ff1856263fffcc86787216c8e974b3006f4630eb9aa39ab3a8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 43a8f1e5678f0ffcc638fb0b4b2ce5db4c804dcda2c98ef37952b72ee4bab9bb418d4bd726b49052f14802b767bd8293a8e3ee7096d278e4eab3d41ffa535fc1
|
|
7
|
+
data.tar.gz: 2a53a8de7d4f8faf9cb1da0b3e8eeebe2aa9aa8faef94d239424e3ef1b9569e2ad3e9a3176f397f8311162eb5fcbc17cbd6ee4d7316f6c87e9d1972d682a22f0
|
data/.ruby-version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.
|
|
1
|
+
2.6.1
|
data/.travis.yml
CHANGED
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
language: ruby
|
|
2
2
|
cache: bundler
|
|
3
3
|
rvm:
|
|
4
|
-
- 2.3.8
|
|
5
4
|
- 2.4.5
|
|
6
5
|
- 2.5.3
|
|
6
|
+
- 2.6.2
|
|
7
7
|
env:
|
|
8
8
|
matrix:
|
|
9
9
|
- RAILS_VERSION=5.0.5
|
|
10
10
|
- RAILS_VERSION=5.1.6
|
|
11
11
|
- RAILS_VERSION=5.2.0
|
|
12
12
|
- RAILS_VERSION=5.2.1
|
|
13
|
+
- RAILS_VERSION=5.2.2
|
|
14
|
+
- RAILS_VERSION=5.2.3
|
|
13
15
|
before_install:
|
|
14
16
|
- gem install bundler
|
|
15
17
|
- gem update bundler
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
# 1.2.0
|
|
2
|
+
|
|
3
|
+
* Set minimum Ruby version from 2.3 to 2.4 (2.3 is EOL and no longer maintained)
|
|
4
|
+
* Fixed an issue where a UUID would be unpacked again while it's a perfectly
|
|
5
|
+
fine UUID already.
|
|
6
|
+
Thanks @sirwolfgang
|
|
7
|
+
|
|
8
|
+
|
|
1
9
|
# 1.1.1
|
|
2
10
|
|
|
3
11
|
* Fixes possible SQL injection for ActiveRecord columns typed with
|
data/CONTRIBUTORS.md
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# Thank you!
|
|
2
|
+
|
|
3
|
+
A word of thanks to all those that have contributed to this project:
|
|
4
|
+
|
|
5
|
+
* Emmanuel Joubaud - [@ejoubaud](https://github.com/ejoubaud)
|
|
6
|
+
* Geoff Evason - [@geoffevason](https://github.com/geoffevason)
|
|
7
|
+
* Mark Oude Veldhuis - [@markoudev](https://github.com/markoudev)
|
|
8
|
+
* Stanisław Pitucha - [@viraptor](https://github.com/viraptor)
|
|
9
|
+
* Zane Wolfgang Pickett - [@sirwolfgang](https://github.com/sirwolfgang)
|
data/Gemfile.lock
CHANGED
|
@@ -1,108 +1,109 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
mysql-binuuid-rails (1.
|
|
4
|
+
mysql-binuuid-rails (1.2.0)
|
|
5
5
|
rails (>= 5)
|
|
6
6
|
|
|
7
7
|
GEM
|
|
8
8
|
remote: https://rubygems.org/
|
|
9
9
|
specs:
|
|
10
|
-
actioncable (5.2.
|
|
11
|
-
actionpack (= 5.2.
|
|
10
|
+
actioncable (5.2.3)
|
|
11
|
+
actionpack (= 5.2.3)
|
|
12
12
|
nio4r (~> 2.0)
|
|
13
13
|
websocket-driver (>= 0.6.1)
|
|
14
|
-
actionmailer (5.2.
|
|
15
|
-
actionpack (= 5.2.
|
|
16
|
-
actionview (= 5.2.
|
|
17
|
-
activejob (= 5.2.
|
|
14
|
+
actionmailer (5.2.3)
|
|
15
|
+
actionpack (= 5.2.3)
|
|
16
|
+
actionview (= 5.2.3)
|
|
17
|
+
activejob (= 5.2.3)
|
|
18
18
|
mail (~> 2.5, >= 2.5.4)
|
|
19
19
|
rails-dom-testing (~> 2.0)
|
|
20
|
-
actionpack (5.2.
|
|
21
|
-
actionview (= 5.2.
|
|
22
|
-
activesupport (= 5.2.
|
|
20
|
+
actionpack (5.2.3)
|
|
21
|
+
actionview (= 5.2.3)
|
|
22
|
+
activesupport (= 5.2.3)
|
|
23
23
|
rack (~> 2.0)
|
|
24
24
|
rack-test (>= 0.6.3)
|
|
25
25
|
rails-dom-testing (~> 2.0)
|
|
26
26
|
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
|
27
|
-
actionview (5.2.
|
|
28
|
-
activesupport (= 5.2.
|
|
27
|
+
actionview (5.2.3)
|
|
28
|
+
activesupport (= 5.2.3)
|
|
29
29
|
builder (~> 3.1)
|
|
30
30
|
erubi (~> 1.4)
|
|
31
31
|
rails-dom-testing (~> 2.0)
|
|
32
32
|
rails-html-sanitizer (~> 1.0, >= 1.0.3)
|
|
33
|
-
activejob (5.2.
|
|
34
|
-
activesupport (= 5.2.
|
|
33
|
+
activejob (5.2.3)
|
|
34
|
+
activesupport (= 5.2.3)
|
|
35
35
|
globalid (>= 0.3.6)
|
|
36
|
-
activemodel (5.2.
|
|
37
|
-
activesupport (= 5.2.
|
|
38
|
-
activerecord (5.2.
|
|
39
|
-
activemodel (= 5.2.
|
|
40
|
-
activesupport (= 5.2.
|
|
36
|
+
activemodel (5.2.3)
|
|
37
|
+
activesupport (= 5.2.3)
|
|
38
|
+
activerecord (5.2.3)
|
|
39
|
+
activemodel (= 5.2.3)
|
|
40
|
+
activesupport (= 5.2.3)
|
|
41
41
|
arel (>= 9.0)
|
|
42
|
-
activestorage (5.2.
|
|
43
|
-
actionpack (= 5.2.
|
|
44
|
-
activerecord (= 5.2.
|
|
42
|
+
activestorage (5.2.3)
|
|
43
|
+
actionpack (= 5.2.3)
|
|
44
|
+
activerecord (= 5.2.3)
|
|
45
45
|
marcel (~> 0.3.1)
|
|
46
|
-
activesupport (5.2.
|
|
46
|
+
activesupport (5.2.3)
|
|
47
47
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
|
48
48
|
i18n (>= 0.7, < 2)
|
|
49
49
|
minitest (~> 5.1)
|
|
50
50
|
tzinfo (~> 1.1)
|
|
51
51
|
arel (9.0.0)
|
|
52
52
|
builder (3.2.3)
|
|
53
|
-
concurrent-ruby (1.
|
|
53
|
+
concurrent-ruby (1.1.5)
|
|
54
54
|
crass (1.0.4)
|
|
55
|
-
erubi (1.
|
|
56
|
-
globalid (0.4.
|
|
55
|
+
erubi (1.8.0)
|
|
56
|
+
globalid (0.4.2)
|
|
57
57
|
activesupport (>= 4.2.0)
|
|
58
|
-
i18n (1.
|
|
58
|
+
i18n (1.6.0)
|
|
59
59
|
concurrent-ruby (~> 1.0)
|
|
60
|
-
loofah (2.2.
|
|
60
|
+
loofah (2.2.3)
|
|
61
61
|
crass (~> 1.0.2)
|
|
62
62
|
nokogiri (>= 1.5.9)
|
|
63
|
-
mail (2.7.
|
|
63
|
+
mail (2.7.1)
|
|
64
64
|
mini_mime (>= 0.1.1)
|
|
65
|
-
marcel (0.3.
|
|
65
|
+
marcel (0.3.3)
|
|
66
66
|
mimemagic (~> 0.3.2)
|
|
67
|
-
method_source (0.9.
|
|
68
|
-
mimemagic (0.3.
|
|
67
|
+
method_source (0.9.2)
|
|
68
|
+
mimemagic (0.3.3)
|
|
69
69
|
mini_mime (1.0.1)
|
|
70
|
-
mini_portile2 (2.
|
|
70
|
+
mini_portile2 (2.4.0)
|
|
71
71
|
minitest (5.11.3)
|
|
72
|
-
minitest-hooks (1.
|
|
72
|
+
minitest-hooks (1.5.0)
|
|
73
|
+
minitest (> 5.3)
|
|
73
74
|
minitest-spec-context (0.0.3)
|
|
74
75
|
mysql2 (0.4.10)
|
|
75
76
|
nio4r (2.3.1)
|
|
76
|
-
nokogiri (1.
|
|
77
|
-
mini_portile2 (~> 2.
|
|
78
|
-
rack (2.0.
|
|
77
|
+
nokogiri (1.10.3)
|
|
78
|
+
mini_portile2 (~> 2.4.0)
|
|
79
|
+
rack (2.0.7)
|
|
79
80
|
rack-test (1.1.0)
|
|
80
81
|
rack (>= 1.0, < 3)
|
|
81
|
-
rails (5.2.
|
|
82
|
-
actioncable (= 5.2.
|
|
83
|
-
actionmailer (= 5.2.
|
|
84
|
-
actionpack (= 5.2.
|
|
85
|
-
actionview (= 5.2.
|
|
86
|
-
activejob (= 5.2.
|
|
87
|
-
activemodel (= 5.2.
|
|
88
|
-
activerecord (= 5.2.
|
|
89
|
-
activestorage (= 5.2.
|
|
90
|
-
activesupport (= 5.2.
|
|
82
|
+
rails (5.2.3)
|
|
83
|
+
actioncable (= 5.2.3)
|
|
84
|
+
actionmailer (= 5.2.3)
|
|
85
|
+
actionpack (= 5.2.3)
|
|
86
|
+
actionview (= 5.2.3)
|
|
87
|
+
activejob (= 5.2.3)
|
|
88
|
+
activemodel (= 5.2.3)
|
|
89
|
+
activerecord (= 5.2.3)
|
|
90
|
+
activestorage (= 5.2.3)
|
|
91
|
+
activesupport (= 5.2.3)
|
|
91
92
|
bundler (>= 1.3.0)
|
|
92
|
-
railties (= 5.2.
|
|
93
|
+
railties (= 5.2.3)
|
|
93
94
|
sprockets-rails (>= 2.0.0)
|
|
94
95
|
rails-dom-testing (2.0.3)
|
|
95
96
|
activesupport (>= 4.2.0)
|
|
96
97
|
nokogiri (>= 1.6)
|
|
97
98
|
rails-html-sanitizer (1.0.4)
|
|
98
99
|
loofah (~> 2.2, >= 2.2.2)
|
|
99
|
-
railties (5.2.
|
|
100
|
-
actionpack (= 5.2.
|
|
101
|
-
activesupport (= 5.2.
|
|
100
|
+
railties (5.2.3)
|
|
101
|
+
actionpack (= 5.2.3)
|
|
102
|
+
activesupport (= 5.2.3)
|
|
102
103
|
method_source
|
|
103
104
|
rake (>= 0.8.7)
|
|
104
105
|
thor (>= 0.19.0, < 2.0)
|
|
105
|
-
rake (12.3.
|
|
106
|
+
rake (12.3.2)
|
|
106
107
|
sprockets (3.7.2)
|
|
107
108
|
concurrent-ruby (~> 1.0)
|
|
108
109
|
rack (> 1, < 3)
|
|
@@ -110,7 +111,7 @@ GEM
|
|
|
110
111
|
actionpack (>= 4.0)
|
|
111
112
|
activesupport (>= 4.0)
|
|
112
113
|
sprockets (>= 3.0.0)
|
|
113
|
-
thor (0.20.
|
|
114
|
+
thor (0.20.3)
|
|
114
115
|
thread_safe (0.3.6)
|
|
115
116
|
tzinfo (1.2.5)
|
|
116
117
|
thread_safe (~> 0.1)
|
|
@@ -131,4 +132,4 @@ DEPENDENCIES
|
|
|
131
132
|
rake
|
|
132
133
|
|
|
133
134
|
BUNDLED WITH
|
|
134
|
-
1.
|
|
135
|
+
1.17.2
|
data/README.md
CHANGED
|
@@ -154,11 +154,7 @@ https://github.com/nedap/mysql-binuuid-rails
|
|
|
154
154
|
|
|
155
155
|
## Contributors
|
|
156
156
|
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
* Emmanuel Joubaud ([@ejoubaud](https://github.com/ejoubaud))
|
|
160
|
-
* Geoff Evason ([@geoffevason](https://github.com/geoffevason))
|
|
161
|
-
* Stanisław Pitucha ([@viraptor](https://github.com/viraptor))
|
|
157
|
+
See [CONTRIBUTORS.md](CONTRIBUTORS.md).
|
|
162
158
|
|
|
163
159
|
|
|
164
160
|
# License
|
data/lib/mysql-binuuid/type.rb
CHANGED
|
@@ -13,11 +13,11 @@ module MySQLBinUUID
|
|
|
13
13
|
# It could be a Data object, in which case we should add dashes to the
|
|
14
14
|
# string value from there.
|
|
15
15
|
add_dashes(value.to_s)
|
|
16
|
-
elsif value.is_a?(String) && value.encoding == Encoding::ASCII_8BIT
|
|
16
|
+
elsif value.is_a?(String) && value.encoding == Encoding::ASCII_8BIT && strip_dashes(value).length != 32
|
|
17
17
|
# We cannot unpack something that looks like a UUID, with or without
|
|
18
18
|
# dashes. Not entirely sure why ActiveRecord does a weird combination of
|
|
19
19
|
# cast and serialize before anything needs to be saved..
|
|
20
|
-
undashed_uuid = value.
|
|
20
|
+
undashed_uuid = value.unpack1('H*')
|
|
21
21
|
add_dashes(undashed_uuid.to_s)
|
|
22
22
|
else
|
|
23
23
|
super
|
data/mysql-binuuid-rails.gemspec
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: mysql-binuuid-rails
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Mark Oude Veldhuis
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2019-04-25 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|
|
@@ -119,6 +119,7 @@ files:
|
|
|
119
119
|
- ".ruby-version"
|
|
120
120
|
- ".travis.yml"
|
|
121
121
|
- CHANGELOG.md
|
|
122
|
+
- CONTRIBUTORS.md
|
|
122
123
|
- Gemfile
|
|
123
124
|
- Gemfile.lock
|
|
124
125
|
- LICENSE.txt
|
|
@@ -142,15 +143,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
142
143
|
requirements:
|
|
143
144
|
- - ">="
|
|
144
145
|
- !ruby/object:Gem::Version
|
|
145
|
-
version: '2.
|
|
146
|
+
version: '2.4'
|
|
146
147
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
147
148
|
requirements:
|
|
148
149
|
- - ">="
|
|
149
150
|
- !ruby/object:Gem::Version
|
|
150
151
|
version: '0'
|
|
151
152
|
requirements: []
|
|
152
|
-
|
|
153
|
-
rubygems_version: 2.7.6
|
|
153
|
+
rubygems_version: 3.0.1
|
|
154
154
|
signing_key:
|
|
155
155
|
specification_version: 4
|
|
156
156
|
summary: Let ActiveRecord serialize and cast your UUIDs to and from binary columns
|