ar-uuid 0.2.2 → 0.2.3

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
  SHA256:
3
- metadata.gz: 89711805f2e4a8f202186b701a490127ed55dc23df8aaee62f0fcaad8648c840
4
- data.tar.gz: 4443bec600bf3366de382b5724a202a0107b173d3b2f48f238084695f516fa53
3
+ metadata.gz: 750147d7697999f1d3509ff6ecc6285b18d34e321794fc3ac57978c93887803a
4
+ data.tar.gz: 596c88e367384dd1a57d6ea57f9bfc0911da47beb26250ec60b16128655e97dc
5
5
  SHA512:
6
- metadata.gz: 1fd89d52a5e7c5d306f9cd532b9a2201195f9e4ce171386cf87d2ac8dacdc647203e032dd07fabce340460438971250597e9dde630ae87f917b02bc111dd78f8
7
- data.tar.gz: e8b4248c57c4b6cf1711119961f2fce98aff1e7410d6767f6dd9513cd06c5c0a2ea0097fd149b3893737e5ac3972ae7416c000dfe88bf148ecfc44c2d4b61247
6
+ metadata.gz: 07df5b242c40693b4a324f9486c30419af3d87674e51f0353fb0d266f60b0e743780f539b3a4a0327f0861d7067609c52e0ed9d9c079c21676349907918969da
7
+ data.tar.gz: d2a5c5077dbaffc6e05ac725f37bf63f27d2e2ec59a045ca1b715cec025954acbc5b587745df973f75106e204b01065fa7de057ff9199b61b5d66f645b7d23ec
@@ -1,29 +1,30 @@
1
1
  ---
2
- name: Tests
2
+ name: ruby-tests
3
3
 
4
4
  on:
5
- pull_request:
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.6.x, 2.7.x, 3.0.x]
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@v2.3.4
37
+ - uses: actions/checkout@v3.0.2
37
38
 
38
- - uses: actions/cache@v2
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
- restore-keys: >
45
- ${{ runner.os }}-${{ matrix.ruby }}-gems-${{
46
- hashFiles(matrix.gemfile) }}
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: actions/setup-ruby@v1
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
@@ -3,8 +3,11 @@ inherit_gem:
3
3
  rubocop-fnando: .rubocop.yml
4
4
 
5
5
  AllCops:
6
- TargetRubyVersion: 2.6
6
+ TargetRubyVersion: 2.7
7
7
  NewCops: enable
8
+ Exclude:
9
+ - vendor/**/*
10
+ - gemfiles/**/*
8
11
  Naming/FileName:
9
12
  Exclude:
10
13
  - lib/ar-uuid.rb
data/README.md CHANGED
@@ -1,7 +1,6 @@
1
1
  # ar-uuid
2
2
 
3
- [![Tests](https://github.com/fnando/ar-uuid/workflows/Tests/badge.svg)](https://github.com/fnando/ar-uuid)
4
- [![Code Climate](https://codeclimate.com/github/fnando/ar-uuid/badges/gpa.svg)](https://codeclimate.com/github/fnando/ar-uuid)
3
+ [![Tests](https://github.com/fnando/ar-uuid/workflows/ruby-tests/badge.svg)](https://github.com/fnando/ar-uuid)
5
4
  [![Gem](https://img.shields.io/gem/v/ar-uuid.svg)](https://rubygems.org/gems/ar-uuid)
6
5
  [![Gem](https://img.shields.io/gem/dt/ar-uuid.svg)](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.6.0")
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")
@@ -2,4 +2,4 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
  gemspec path: ".."
5
- gem "activerecord", "~> 5.0.0"
5
+ gem "activerecord", "~> 6.1.0"
@@ -2,4 +2,4 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
  gemspec path: ".."
5
- gem "activerecord", "~> 5.1.0"
5
+ gem "activerecord", "~> 7.0.0"
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
- }.freeze
28
+ }
29
29
 
30
30
  def self.uuid_extname
31
31
  connection = ::ActiveRecord::Base.connection
@@ -2,6 +2,6 @@
2
2
 
3
3
  module AR
4
4
  module UUID
5
- VERSION = "0.2.2"
5
+ VERSION = "0.2.3"
6
6
  end
7
7
  end
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.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: 2021-08-22 00:00:00.000000000 Z
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.6.0
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.2.22
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
data/gemfiles/5_2.gemfile DELETED
@@ -1,5 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- source "https://rubygems.org"
4
- gemspec path: ".."
5
- gem "activerecord", "~> 5.2.0"