ar-uuid 0.2.2 → 0.2.3
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/.github/workflows/{tests.yml → ruby-tests.yml} +18 -23
- data/.rubocop.yml +4 -1
- data/README.md +1 -2
- data/ar-uuid.gemspec +2 -1
- data/gemfiles/{5_0.gemfile → 6_1.gemfile} +1 -1
- data/gemfiles/{5_1.gemfile → 7_0.gemfile} +1 -1
- data/lib/ar/uuid/utils.rb +2 -2
- data/lib/ar/uuid/version.rb +1 -1
- metadata +9 -9
- data/gemfiles/5_2.gemfile +0 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 750147d7697999f1d3509ff6ecc6285b18d34e321794fc3ac57978c93887803a
|
|
4
|
+
data.tar.gz: 596c88e367384dd1a57d6ea57f9bfc0911da47beb26250ec60b16128655e97dc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 07df5b242c40693b4a324f9486c30419af3d87674e51f0353fb0d266f60b0e743780f539b3a4a0327f0861d7067609c52e0ed9d9c079c21676349907918969da
|
|
7
|
+
data.tar.gz: d2a5c5077dbaffc6e05ac725f37bf63f27d2e2ec59a045ca1b715cec025954acbc5b587745df973f75106e204b01065fa7de057ff9199b61b5d66f645b7d23ec
|
|
@@ -1,29 +1,30 @@
|
|
|
1
1
|
---
|
|
2
|
-
name:
|
|
2
|
+
name: ruby-tests
|
|
3
3
|
|
|
4
4
|
on:
|
|
5
|
-
|
|
6
|
-
branches:
|
|
7
|
-
- main
|
|
5
|
+
pull_request_target:
|
|
8
6
|
push:
|
|
9
7
|
branches:
|
|
10
8
|
- main
|
|
9
|
+
workflow_dispatch:
|
|
10
|
+
inputs: {}
|
|
11
11
|
|
|
12
12
|
jobs:
|
|
13
13
|
build:
|
|
14
14
|
name: Tests with Ruby ${{ matrix.ruby }} and ${{ matrix.gemfile }}
|
|
15
15
|
runs-on: "ubuntu-latest"
|
|
16
|
+
if: |
|
|
17
|
+
github.actor == 'dependabot[bot]' && github.event_name == 'pull_request_target' ||
|
|
18
|
+
github.actor != 'dependabot[bot]'
|
|
16
19
|
strategy:
|
|
17
20
|
fail-fast: false
|
|
18
21
|
matrix:
|
|
19
|
-
ruby: [2.
|
|
22
|
+
ruby: ["2.7", "3.0", "3.1"]
|
|
20
23
|
gemfile:
|
|
21
24
|
- Gemfile
|
|
25
|
+
- gemfiles/7_0.gemfile
|
|
26
|
+
- gemfiles/6_1.gemfile
|
|
22
27
|
- gemfiles/6_0.gemfile
|
|
23
|
-
- gemfiles/5_2.gemfile
|
|
24
|
-
- gemfiles/5_1.gemfile
|
|
25
|
-
- gemfiles/5_0.gemfile
|
|
26
|
-
|
|
27
28
|
services:
|
|
28
29
|
postgres:
|
|
29
30
|
image: postgres:11.5
|
|
@@ -33,31 +34,24 @@ jobs:
|
|
|
33
34
|
--health-retries 5
|
|
34
35
|
|
|
35
36
|
steps:
|
|
36
|
-
- uses: actions/checkout@
|
|
37
|
+
- uses: actions/checkout@v3.0.2
|
|
37
38
|
|
|
38
|
-
- uses: actions/cache@
|
|
39
|
+
- uses: actions/cache@v3.0.5
|
|
39
40
|
with:
|
|
40
41
|
path: vendor/bundle
|
|
41
42
|
key: >
|
|
42
43
|
${{ runner.os }}-${{ matrix.ruby }}-gems-${{
|
|
43
44
|
hashFiles(matrix.gemfile) }}
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
|
|
46
|
+
- name: Install PostgreSQL 11 client
|
|
47
|
+
run: |
|
|
48
|
+
sudo apt -y install libpq-dev
|
|
47
49
|
|
|
48
50
|
- name: Set up Ruby
|
|
49
|
-
uses:
|
|
51
|
+
uses: ruby/setup-ruby@v1
|
|
50
52
|
with:
|
|
51
53
|
ruby-version: ${{ matrix.ruby }}
|
|
52
54
|
|
|
53
|
-
- name: Install PostgreSQL client
|
|
54
|
-
env:
|
|
55
|
-
PGHOST: localhost
|
|
56
|
-
PGUSER: postgres
|
|
57
|
-
run: |
|
|
58
|
-
sudo apt-get -yqq install libpq-dev
|
|
59
|
-
psql -U postgres -c "create database test"
|
|
60
|
-
|
|
61
55
|
- name: Install gem dependencies
|
|
62
56
|
env:
|
|
63
57
|
BUNDLE_GEMFILE: ${{ matrix.gemfile }}
|
|
@@ -72,4 +66,5 @@ jobs:
|
|
|
72
66
|
PGUSER: postgres
|
|
73
67
|
BUNDLE_GEMFILE: ${{ matrix.gemfile }}
|
|
74
68
|
run: |
|
|
69
|
+
psql -U postgres -c "create database test"
|
|
75
70
|
bundle exec rake
|
data/.rubocop.yml
CHANGED
data/README.md
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
# ar-uuid
|
|
2
2
|
|
|
3
|
-
[](https://codeclimate.com/github/fnando/ar-uuid)
|
|
3
|
+
[](https://github.com/fnando/ar-uuid)
|
|
5
4
|
[](https://rubygems.org/gems/ar-uuid)
|
|
6
5
|
[](https://rubygems.org/gems/ar-uuid)
|
|
7
6
|
|
data/ar-uuid.gemspec
CHANGED
|
@@ -12,7 +12,8 @@ Gem::Specification.new do |spec|
|
|
|
12
12
|
spec.description = spec.summary
|
|
13
13
|
spec.homepage = "http://rubygems.org/gems/ar-uuid"
|
|
14
14
|
spec.license = "MIT"
|
|
15
|
-
spec.required_ruby_version = Gem::Requirement.new(">= 2.
|
|
15
|
+
spec.required_ruby_version = Gem::Requirement.new(">= 2.7.0")
|
|
16
|
+
spec.metadata["rubygems_mfa_required"] = "true"
|
|
16
17
|
|
|
17
18
|
spec.files = `git ls-files -z`
|
|
18
19
|
.split("\x0")
|
data/lib/ar/uuid/utils.rb
CHANGED
|
@@ -22,10 +22,10 @@ module AR
|
|
|
22
22
|
limit 1
|
|
23
23
|
SQL
|
|
24
24
|
|
|
25
|
-
FUNCTION_NAMES = {
|
|
25
|
+
FUNCTION_NAMES = { # rubocop:disable Style/MutableConstant
|
|
26
26
|
"uuid-ossp" => "uuid_generate_v4()",
|
|
27
27
|
"pgcrypto" => "gen_random_uuid()"
|
|
28
|
-
}
|
|
28
|
+
}
|
|
29
29
|
|
|
30
30
|
def self.uuid_extname
|
|
31
31
|
connection = ::ActiveRecord::Base.connection
|
data/lib/ar/uuid/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ar-uuid
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Nando Vieira
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2022-07-25 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activerecord
|
|
@@ -163,7 +163,7 @@ files:
|
|
|
163
163
|
- ".github/ISSUE_TEMPLATE/feature_request.md"
|
|
164
164
|
- ".github/PULL_REQUEST_TEMPLATE.md"
|
|
165
165
|
- ".github/dependabot.yml"
|
|
166
|
-
- ".github/workflows/tests.yml"
|
|
166
|
+
- ".github/workflows/ruby-tests.yml"
|
|
167
167
|
- ".gitignore"
|
|
168
168
|
- ".rubocop.yml"
|
|
169
169
|
- CHANGELOG.md
|
|
@@ -177,10 +177,9 @@ files:
|
|
|
177
177
|
- ar-uuid.gemspec
|
|
178
178
|
- bin/console
|
|
179
179
|
- bin/setup
|
|
180
|
-
- gemfiles/5_0.gemfile
|
|
181
|
-
- gemfiles/5_1.gemfile
|
|
182
|
-
- gemfiles/5_2.gemfile
|
|
183
180
|
- gemfiles/6_0.gemfile
|
|
181
|
+
- gemfiles/6_1.gemfile
|
|
182
|
+
- gemfiles/7_0.gemfile
|
|
184
183
|
- lib/ar-uuid.rb
|
|
185
184
|
- lib/ar/uuid.rb
|
|
186
185
|
- lib/ar/uuid/ext.rb
|
|
@@ -191,7 +190,8 @@ files:
|
|
|
191
190
|
homepage: http://rubygems.org/gems/ar-uuid
|
|
192
191
|
licenses:
|
|
193
192
|
- MIT
|
|
194
|
-
metadata:
|
|
193
|
+
metadata:
|
|
194
|
+
rubygems_mfa_required: 'true'
|
|
195
195
|
post_install_message:
|
|
196
196
|
rdoc_options: []
|
|
197
197
|
require_paths:
|
|
@@ -200,14 +200,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
200
200
|
requirements:
|
|
201
201
|
- - ">="
|
|
202
202
|
- !ruby/object:Gem::Version
|
|
203
|
-
version: 2.
|
|
203
|
+
version: 2.7.0
|
|
204
204
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
205
205
|
requirements:
|
|
206
206
|
- - ">="
|
|
207
207
|
- !ruby/object:Gem::Version
|
|
208
208
|
version: '0'
|
|
209
209
|
requirements: []
|
|
210
|
-
rubygems_version: 3.
|
|
210
|
+
rubygems_version: 3.3.7
|
|
211
211
|
signing_key:
|
|
212
212
|
specification_version: 4
|
|
213
213
|
summary: Override migration methods to support UUID columns without having to be explicit
|