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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 310c74261238918fa745014e63fc25691fd7f6d31baa27a53d7977a079e37bc5
4
- data.tar.gz: b6c545315222b4ec9ef21ee38ade3e2044dbe0327955b8673215f05a0904885e
3
+ metadata.gz: c55b80bc15cb833b89b11a49d5b77555f7c874eacccc8860352b02cda9fd4dba
4
+ data.tar.gz: d06c60b173c634ff1856263fffcc86787216c8e974b3006f4630eb9aa39ab3a8
5
5
  SHA512:
6
- metadata.gz: 457ab7be14fefda336a4db3e0a20b1d8f2cfe6e0d814337943664a1104fe4d67e13eb0d4a1e4d413fd81b38334cd49980067c5ed4c6556bb8bf7d1fb1f7c58e1
7
- data.tar.gz: 74ff493fb8f777c586b6df3810c9cfd125fd71cbbe1fede598ee6feb47380831dc97b418ea0e14c90453bf036c86258f0bb813bab68d2f82c1ae1ad629d732ff
6
+ metadata.gz: 43a8f1e5678f0ffcc638fb0b4b2ce5db4c804dcda2c98ef37952b72ee4bab9bb418d4bd726b49052f14802b767bd8293a8e3ee7096d278e4eab3d41ffa535fc1
7
+ data.tar.gz: 2a53a8de7d4f8faf9cb1da0b3e8eeebe2aa9aa8faef94d239424e3ef1b9569e2ad3e9a3176f397f8311162eb5fcbc17cbd6ee4d7316f6c87e9d1972d682a22f0
@@ -1 +1 @@
1
- 2.5.1
1
+ 2.6.1
@@ -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
@@ -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
@@ -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)
@@ -1,108 +1,109 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- mysql-binuuid-rails (1.1.0)
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.1)
11
- actionpack (= 5.2.1)
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.1)
15
- actionpack (= 5.2.1)
16
- actionview (= 5.2.1)
17
- activejob (= 5.2.1)
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.1)
21
- actionview (= 5.2.1)
22
- activesupport (= 5.2.1)
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.1)
28
- activesupport (= 5.2.1)
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.1)
34
- activesupport (= 5.2.1)
33
+ activejob (5.2.3)
34
+ activesupport (= 5.2.3)
35
35
  globalid (>= 0.3.6)
36
- activemodel (5.2.1)
37
- activesupport (= 5.2.1)
38
- activerecord (5.2.1)
39
- activemodel (= 5.2.1)
40
- activesupport (= 5.2.1)
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.1)
43
- actionpack (= 5.2.1)
44
- activerecord (= 5.2.1)
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.1)
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.0.5)
53
+ concurrent-ruby (1.1.5)
54
54
  crass (1.0.4)
55
- erubi (1.7.1)
56
- globalid (0.4.1)
55
+ erubi (1.8.0)
56
+ globalid (0.4.2)
57
57
  activesupport (>= 4.2.0)
58
- i18n (1.1.0)
58
+ i18n (1.6.0)
59
59
  concurrent-ruby (~> 1.0)
60
- loofah (2.2.2)
60
+ loofah (2.2.3)
61
61
  crass (~> 1.0.2)
62
62
  nokogiri (>= 1.5.9)
63
- mail (2.7.0)
63
+ mail (2.7.1)
64
64
  mini_mime (>= 0.1.1)
65
- marcel (0.3.2)
65
+ marcel (0.3.3)
66
66
  mimemagic (~> 0.3.2)
67
- method_source (0.9.0)
68
- mimemagic (0.3.2)
67
+ method_source (0.9.2)
68
+ mimemagic (0.3.3)
69
69
  mini_mime (1.0.1)
70
- mini_portile2 (2.3.0)
70
+ mini_portile2 (2.4.0)
71
71
  minitest (5.11.3)
72
- minitest-hooks (1.4.2)
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.8.4)
77
- mini_portile2 (~> 2.3.0)
78
- rack (2.0.5)
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.1)
82
- actioncable (= 5.2.1)
83
- actionmailer (= 5.2.1)
84
- actionpack (= 5.2.1)
85
- actionview (= 5.2.1)
86
- activejob (= 5.2.1)
87
- activemodel (= 5.2.1)
88
- activerecord (= 5.2.1)
89
- activestorage (= 5.2.1)
90
- activesupport (= 5.2.1)
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.1)
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.1)
100
- actionpack (= 5.2.1)
101
- activesupport (= 5.2.1)
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.1)
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.0)
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.16.2
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
- Thank you:
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
@@ -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.unpack("H*")[0]
20
+ undashed_uuid = value.unpack1('H*')
21
21
  add_dashes(undashed_uuid.to_s)
22
22
  else
23
23
  super
@@ -1,3 +1,3 @@
1
1
  module MySQLBinUUID
2
- VERSION = "1.1.1"
2
+ VERSION = "1.2.0"
3
3
  end
@@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
19
19
  f.match(%r{^(test|spec|features)/})
20
20
  end
21
21
 
22
- spec.required_ruby_version = ">= 2.3"
22
+ spec.required_ruby_version = ">= 2.4"
23
23
 
24
24
  spec.add_runtime_dependency "rails", ENV["RAILS_VERSION"] || ">= 5"
25
25
 
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.1.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: 2018-10-19 00:00:00.000000000 Z
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.3'
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
- rubyforge_project:
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