umbrellio-sequel-plugins 0.4.0.164 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +65 -0
- data/Gemfile.lock +59 -63
- data/lib/sequel/plugins/attr_encrypted.rb +1 -1
- data/umbrellio-sequel-plugins.gemspec +6 -6
- metadata +20 -19
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a56d6ec4ec8867a8f8f2d6721f240519d298e0fbcf0574b6f99eebc73bf5edad
|
4
|
+
data.tar.gz: d47dd520afe94e7cf2fcb7314305d48399499054d6bc7da4cd1ddb7ed525f1c4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5b5ee860f246e355526d33a852b11273e23caae0e03a02ae298ab4af33e21a3cfb72a231ae93b5a80e76232222041ed9e7e256a17401294887613ca7e3377f1b
|
7
|
+
data.tar.gz: 4ae1b3566ab9471fa4b1962fece7fd9bf3c8f6b34a7af3946dbbe9d2060f6da8c8b2d04f838e126fbbe353c0ad33b86b0d357b08b4e2cdc04322b4b232af84f3
|
@@ -0,0 +1,65 @@
|
|
1
|
+
name: CI
|
2
|
+
|
3
|
+
on: [push, pull_request]
|
4
|
+
|
5
|
+
jobs:
|
6
|
+
test:
|
7
|
+
runs-on: ubuntu-latest
|
8
|
+
|
9
|
+
# We want to run on external PRs, but not on our own internal PRs as they'll be run on push event
|
10
|
+
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != 'umbrellio/umbrellio-sequel-plugins'
|
11
|
+
|
12
|
+
services:
|
13
|
+
postgres:
|
14
|
+
image: postgres:12
|
15
|
+
env:
|
16
|
+
POSTGRES_USER: root
|
17
|
+
POSTGRES_HOST_AUTH_METHOD: trust
|
18
|
+
options: >-
|
19
|
+
--health-cmd pg_isready
|
20
|
+
--health-interval 10s
|
21
|
+
--health-timeout 5s
|
22
|
+
--health-retries 5
|
23
|
+
ports:
|
24
|
+
- 5432:5432
|
25
|
+
|
26
|
+
env:
|
27
|
+
PGHOST: localhost
|
28
|
+
PGUSER: root
|
29
|
+
|
30
|
+
strategy:
|
31
|
+
fail-fast: false
|
32
|
+
matrix:
|
33
|
+
ruby: ["2.5", "2.6", "2.7", "3.0"]
|
34
|
+
|
35
|
+
name: ${{ matrix.ruby }}
|
36
|
+
|
37
|
+
steps:
|
38
|
+
- uses: actions/checkout@v2
|
39
|
+
|
40
|
+
- uses: ruby/setup-ruby@v1
|
41
|
+
with:
|
42
|
+
ruby-version: ${{ matrix.ruby }}
|
43
|
+
bundler-cache: true
|
44
|
+
|
45
|
+
- run: psql -c 'CREATE DATABASE sequel_plugins'
|
46
|
+
- run: bundle exec rake
|
47
|
+
|
48
|
+
- uses: coverallsapp/github-action@v1.1.2
|
49
|
+
with:
|
50
|
+
github-token: ${{ secrets.GITHUB_TOKEN }}
|
51
|
+
|
52
|
+
deploy:
|
53
|
+
runs-on: ubuntu-latest
|
54
|
+
|
55
|
+
environment: Deploy
|
56
|
+
|
57
|
+
# Run on push to master branch
|
58
|
+
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
|
59
|
+
|
60
|
+
steps:
|
61
|
+
- uses: actions/checkout@v1
|
62
|
+
|
63
|
+
- uses: umbrellio/publish-ruby-gem-action@v1
|
64
|
+
with:
|
65
|
+
api-key: ${{secrets.RUBYGEMS_API_KEY}}
|
data/Gemfile.lock
CHANGED
@@ -1,104 +1,100 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
umbrellio-sequel-plugins (0.
|
4
|
+
umbrellio-sequel-plugins (0.5.0)
|
5
5
|
sequel
|
6
|
-
symbiont-ruby
|
6
|
+
symbiont-ruby
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: https://rubygems.org/
|
10
10
|
specs:
|
11
|
-
activesupport (6.
|
11
|
+
activesupport (6.1.3)
|
12
12
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
13
|
-
i18n (>=
|
14
|
-
minitest (
|
15
|
-
tzinfo (~>
|
16
|
-
zeitwerk (~> 2.
|
17
|
-
ast (2.4.
|
13
|
+
i18n (>= 1.6, < 2)
|
14
|
+
minitest (>= 5.1)
|
15
|
+
tzinfo (~> 2.0)
|
16
|
+
zeitwerk (~> 2.3)
|
17
|
+
ast (2.4.2)
|
18
18
|
coderay (1.1.3)
|
19
|
-
concurrent-ruby (1.1.
|
20
|
-
coveralls (0.8.23)
|
21
|
-
json (>= 1.8, < 3)
|
22
|
-
simplecov (~> 0.16.1)
|
23
|
-
term-ansicolor (~> 1.3)
|
24
|
-
thor (>= 0.19.4, < 2.0)
|
25
|
-
tins (~> 1.6)
|
19
|
+
concurrent-ruby (1.1.8)
|
26
20
|
diff-lcs (1.4.4)
|
27
|
-
docile (1.3.
|
28
|
-
i18n (1.8.
|
21
|
+
docile (1.3.5)
|
22
|
+
i18n (1.8.9)
|
29
23
|
concurrent-ruby (~> 1.0)
|
30
|
-
json (2.3.1)
|
31
24
|
method_source (1.0.0)
|
32
|
-
minitest (5.14.
|
33
|
-
money (6.
|
25
|
+
minitest (5.14.4)
|
26
|
+
money (6.14.1)
|
34
27
|
i18n (>= 0.6.4, <= 2)
|
35
28
|
parallel (1.20.1)
|
36
|
-
parser (
|
29
|
+
parser (3.0.0.0)
|
37
30
|
ast (~> 2.4.1)
|
38
31
|
pg (1.2.3)
|
39
|
-
pry (0.
|
32
|
+
pry (0.14.0)
|
40
33
|
coderay (~> 1.1)
|
41
34
|
method_source (~> 1.0)
|
42
35
|
rack (2.2.3)
|
43
36
|
rainbow (3.0.0)
|
44
|
-
rake (13.0.
|
45
|
-
regexp_parser (2.
|
37
|
+
rake (13.0.3)
|
38
|
+
regexp_parser (2.1.1)
|
46
39
|
rexml (3.2.4)
|
47
40
|
rspec (3.10.0)
|
48
41
|
rspec-core (~> 3.10.0)
|
49
42
|
rspec-expectations (~> 3.10.0)
|
50
43
|
rspec-mocks (~> 3.10.0)
|
51
|
-
rspec-core (3.10.
|
44
|
+
rspec-core (3.10.1)
|
52
45
|
rspec-support (~> 3.10.0)
|
53
|
-
rspec-expectations (3.10.
|
46
|
+
rspec-expectations (3.10.1)
|
54
47
|
diff-lcs (>= 1.2.0, < 2.0)
|
55
48
|
rspec-support (~> 3.10.0)
|
56
|
-
rspec-mocks (3.10.
|
49
|
+
rspec-mocks (3.10.2)
|
57
50
|
diff-lcs (>= 1.2.0, < 2.0)
|
58
51
|
rspec-support (~> 3.10.0)
|
59
|
-
rspec-support (3.10.
|
60
|
-
rubocop (
|
52
|
+
rspec-support (3.10.2)
|
53
|
+
rubocop (1.11.0)
|
61
54
|
parallel (~> 1.10)
|
62
|
-
parser (>=
|
55
|
+
parser (>= 3.0.0.0)
|
63
56
|
rainbow (>= 2.2.2, < 4.0)
|
64
|
-
regexp_parser (>= 1.
|
57
|
+
regexp_parser (>= 1.8, < 3.0)
|
65
58
|
rexml
|
66
|
-
rubocop-ast (>=
|
59
|
+
rubocop-ast (>= 1.2.0, < 2.0)
|
67
60
|
ruby-progressbar (~> 1.7)
|
68
|
-
unicode-display_width (>= 1.4.0, <
|
69
|
-
rubocop-ast (
|
61
|
+
unicode-display_width (>= 1.4.0, < 3.0)
|
62
|
+
rubocop-ast (1.4.1)
|
70
63
|
parser (>= 2.7.1.5)
|
71
|
-
rubocop-config-umbrellio (
|
72
|
-
rubocop (=
|
73
|
-
rubocop-performance (= 1.
|
74
|
-
rubocop-rails (= 2.
|
75
|
-
rubocop-
|
76
|
-
|
77
|
-
rubocop (
|
78
|
-
rubocop-
|
64
|
+
rubocop-config-umbrellio (1.11.0.40)
|
65
|
+
rubocop (= 1.11.0)
|
66
|
+
rubocop-performance (= 1.10.0)
|
67
|
+
rubocop-rails (= 2.9.1)
|
68
|
+
rubocop-rake (= 0.5.1)
|
69
|
+
rubocop-rspec (= 2.2.0)
|
70
|
+
rubocop-sequel (= 0.2.0)
|
71
|
+
rubocop-performance (1.10.0)
|
72
|
+
rubocop (>= 0.90.0, < 2.0)
|
73
|
+
rubocop-ast (>= 0.4.0)
|
74
|
+
rubocop-rails (2.9.1)
|
79
75
|
activesupport (>= 4.2.0)
|
80
76
|
rack (>= 1.1)
|
81
|
-
rubocop (>= 0.
|
82
|
-
rubocop-
|
83
|
-
rubocop
|
84
|
-
|
85
|
-
|
86
|
-
|
77
|
+
rubocop (>= 0.90.0, < 2.0)
|
78
|
+
rubocop-rake (0.5.1)
|
79
|
+
rubocop
|
80
|
+
rubocop-rspec (2.2.0)
|
81
|
+
rubocop (~> 1.0)
|
82
|
+
rubocop-ast (>= 1.1.0)
|
83
|
+
rubocop-sequel (0.2.0)
|
84
|
+
rubocop (~> 1.0)
|
85
|
+
ruby-progressbar (1.11.0)
|
86
|
+
sequel (5.42.0)
|
87
|
+
simplecov (0.21.2)
|
87
88
|
docile (~> 1.1)
|
88
|
-
|
89
|
-
|
90
|
-
simplecov-html (0.
|
89
|
+
simplecov-html (~> 0.11)
|
90
|
+
simplecov_json_formatter (~> 0.1)
|
91
|
+
simplecov-html (0.12.3)
|
92
|
+
simplecov-lcov (0.8.0)
|
93
|
+
simplecov_json_formatter (0.1.2)
|
91
94
|
symbiont-ruby (0.6.0)
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
thor (1.0.1)
|
96
|
-
thread_safe (0.3.6)
|
97
|
-
tins (1.26.0)
|
98
|
-
sync
|
99
|
-
tzinfo (1.2.8)
|
100
|
-
thread_safe (~> 0.1)
|
101
|
-
unicode-display_width (1.7.0)
|
95
|
+
tzinfo (2.0.4)
|
96
|
+
concurrent-ruby (~> 1.0)
|
97
|
+
unicode-display_width (2.0.0)
|
102
98
|
zeitwerk (2.4.2)
|
103
99
|
|
104
100
|
PLATFORMS
|
@@ -106,7 +102,6 @@ PLATFORMS
|
|
106
102
|
|
107
103
|
DEPENDENCIES
|
108
104
|
bundler
|
109
|
-
coveralls (>= 0.8)
|
110
105
|
money
|
111
106
|
pg
|
112
107
|
pry
|
@@ -114,7 +109,8 @@ DEPENDENCIES
|
|
114
109
|
rspec
|
115
110
|
rubocop-config-umbrellio
|
116
111
|
simplecov
|
112
|
+
simplecov-lcov
|
117
113
|
umbrellio-sequel-plugins!
|
118
114
|
|
119
115
|
BUNDLED WITH
|
120
|
-
2.
|
116
|
+
2.2.11
|
@@ -62,7 +62,7 @@ module Sequel::Plugins::AttrEncrypted
|
|
62
62
|
instance_variable_get("@#{attr}") || begin
|
63
63
|
decrypted = SimpleCrypt.decrypt(send("encrypted_#{attr}"), key)
|
64
64
|
|
65
|
-
result =
|
65
|
+
result = decrypted.nil? ? decrypted : JSON.parse(decrypted)
|
66
66
|
instance_variable_set("@#{attr}", result)
|
67
67
|
end
|
68
68
|
end
|
@@ -4,11 +4,11 @@ lib = File.expand_path("lib", __dir__)
|
|
4
4
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
5
5
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
|
-
gem_version = "0.
|
8
|
-
release_version =
|
7
|
+
gem_version = "0.5.0"
|
8
|
+
release_version = "#{gem_version}.#{ENV["GITHUB_RUN_NUMBER"]}" if ENV["GITHUB_ACTIONS"]
|
9
9
|
|
10
10
|
spec.name = "umbrellio-sequel-plugins"
|
11
|
-
spec.version = release_version
|
11
|
+
spec.version = gem_version || release_version
|
12
12
|
spec.required_ruby_version = ">= 2.4"
|
13
13
|
|
14
14
|
spec.authors = ["nulldef"]
|
@@ -16,16 +16,15 @@ Gem::Specification.new do |spec|
|
|
16
16
|
spec.homepage = "https://github.com/umbrellio/umbrellio-sequel-plugins"
|
17
17
|
spec.licenses = ["MIT"]
|
18
18
|
spec.summary = "Sequel plugins"
|
19
|
-
spec.description = "
|
19
|
+
spec.description = "A colletion of sequel plugins by Umbrellio"
|
20
20
|
|
21
21
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
22
22
|
spec.require_paths = ["lib"]
|
23
23
|
|
24
24
|
spec.add_runtime_dependency "sequel"
|
25
|
-
spec.add_runtime_dependency "symbiont-ruby"
|
25
|
+
spec.add_runtime_dependency "symbiont-ruby"
|
26
26
|
|
27
27
|
spec.add_development_dependency "bundler"
|
28
|
-
spec.add_development_dependency "coveralls", ">= 0.8"
|
29
28
|
spec.add_development_dependency "money"
|
30
29
|
spec.add_development_dependency "pg"
|
31
30
|
spec.add_development_dependency "pry"
|
@@ -33,4 +32,5 @@ Gem::Specification.new do |spec|
|
|
33
32
|
spec.add_development_dependency "rspec"
|
34
33
|
spec.add_development_dependency "rubocop-config-umbrellio"
|
35
34
|
spec.add_development_dependency "simplecov"
|
35
|
+
spec.add_development_dependency "simplecov-lcov"
|
36
36
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: umbrellio-sequel-plugins
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- nulldef
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-05-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sequel
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '0
|
33
|
+
version: '0'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '0
|
40
|
+
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: bundler
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -53,21 +53,21 @@ dependencies:
|
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
56
|
+
name: money
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '0
|
61
|
+
version: '0'
|
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: '0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
70
|
+
name: pg
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - ">="
|
@@ -81,7 +81,7 @@ dependencies:
|
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
|
-
name:
|
84
|
+
name: pry
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
87
|
- - ">="
|
@@ -95,7 +95,7 @@ dependencies:
|
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '0'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
|
-
name:
|
98
|
+
name: rake
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
101
|
- - ">="
|
@@ -109,7 +109,7 @@ dependencies:
|
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '0'
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
|
-
name:
|
112
|
+
name: rspec
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
115
|
- - ">="
|
@@ -123,7 +123,7 @@ dependencies:
|
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: '0'
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
|
-
name:
|
126
|
+
name: rubocop-config-umbrellio
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
129
|
- - ">="
|
@@ -137,7 +137,7 @@ dependencies:
|
|
137
137
|
- !ruby/object:Gem::Version
|
138
138
|
version: '0'
|
139
139
|
- !ruby/object:Gem::Dependency
|
140
|
-
name:
|
140
|
+
name: simplecov
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|
142
142
|
requirements:
|
143
143
|
- - ">="
|
@@ -151,7 +151,7 @@ dependencies:
|
|
151
151
|
- !ruby/object:Gem::Version
|
152
152
|
version: '0'
|
153
153
|
- !ruby/object:Gem::Dependency
|
154
|
-
name: simplecov
|
154
|
+
name: simplecov-lcov
|
155
155
|
requirement: !ruby/object:Gem::Requirement
|
156
156
|
requirements:
|
157
157
|
- - ">="
|
@@ -164,7 +164,7 @@ dependencies:
|
|
164
164
|
- - ">="
|
165
165
|
- !ruby/object:Gem::Version
|
166
166
|
version: '0'
|
167
|
-
description:
|
167
|
+
description: A colletion of sequel plugins by Umbrellio
|
168
168
|
email:
|
169
169
|
- nulldefiner@gmail.com
|
170
170
|
- oss@umbrellio.biz
|
@@ -172,6 +172,7 @@ executables: []
|
|
172
172
|
extensions: []
|
173
173
|
extra_rdoc_files: []
|
174
174
|
files:
|
175
|
+
- ".github/workflows/ci.yml"
|
175
176
|
- ".gitignore"
|
176
177
|
- ".rspec"
|
177
178
|
- ".rubocop.yml"
|
@@ -211,7 +212,7 @@ homepage: https://github.com/umbrellio/umbrellio-sequel-plugins
|
|
211
212
|
licenses:
|
212
213
|
- MIT
|
213
214
|
metadata: {}
|
214
|
-
post_install_message:
|
215
|
+
post_install_message:
|
215
216
|
rdoc_options: []
|
216
217
|
require_paths:
|
217
218
|
- lib
|
@@ -226,8 +227,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
226
227
|
- !ruby/object:Gem::Version
|
227
228
|
version: '0'
|
228
229
|
requirements: []
|
229
|
-
rubygems_version: 3.
|
230
|
-
signing_key:
|
230
|
+
rubygems_version: 3.1.2
|
231
|
+
signing_key:
|
231
232
|
specification_version: 4
|
232
233
|
summary: Sequel plugins
|
233
234
|
test_files: []
|