umbrellio-sequel-plugins 0.4.0.152 → 0.4.0.164
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -4
- data/Gemfile.lock +49 -46
- data/Rakefile +3 -1
- data/lib/sequel/plugins/attr_encrypted/simple_crypt.rb +2 -2
- data/lib/sequel/timestamp_migrator_undo_extension.rb +7 -3
- data/lib/umbrellio-sequel-plugins.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6bd4394bf53fcf0c95a1c67b2268c5def71d15f2a64fec6e30cb70fcb281caed
|
4
|
+
data.tar.gz: 57178f6c6365073e28bb3787f6253a774c6b134d6cd4a84656725e2d6400d373
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f34fda6b627aed0be50ae0a3fa6bc3978d7186f8477748870ff1871868ddbca2c0175b6bd4a7471b617406b28c0efee4ace1096d94795e40e402d7e0b2d0a1e9
|
7
|
+
data.tar.gz: b440a1b8b808c71b8c52fee03d0ead284dbbdf963cf3391fba385392703db6744b0aad41268e298430641709270f1f595edcabc63e3184ad0ec0d157beb8cecd
|
data/.travis.yml
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
language: ruby
|
2
2
|
|
3
3
|
os: linux
|
4
|
+
|
4
5
|
dist: xenial
|
5
6
|
|
6
7
|
jobs:
|
@@ -43,10 +44,6 @@ install: bundle install --jobs=3 --retry=3 --path=${BUNDLE_PATH:-vendor/bundle}
|
|
43
44
|
before_script:
|
44
45
|
- psql -c 'create database sequel_plugins;' -U postgres
|
45
46
|
|
46
|
-
script:
|
47
|
-
- bundle exec rspec
|
48
|
-
- bundle exec rubocop
|
49
|
-
|
50
47
|
deploy:
|
51
48
|
provider: rubygems
|
52
49
|
api_key:
|
data/Gemfile.lock
CHANGED
@@ -8,78 +8,81 @@ PATH
|
|
8
8
|
GEM
|
9
9
|
remote: https://rubygems.org/
|
10
10
|
specs:
|
11
|
-
activesupport (6.0.
|
11
|
+
activesupport (6.0.3.4)
|
12
12
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
13
13
|
i18n (>= 0.7, < 2)
|
14
14
|
minitest (~> 5.1)
|
15
15
|
tzinfo (~> 1.1)
|
16
|
-
zeitwerk (~> 2.2)
|
17
|
-
ast (2.4.
|
18
|
-
coderay (1.1.
|
19
|
-
concurrent-ruby (1.1.
|
16
|
+
zeitwerk (~> 2.2, >= 2.2.2)
|
17
|
+
ast (2.4.1)
|
18
|
+
coderay (1.1.3)
|
19
|
+
concurrent-ruby (1.1.7)
|
20
20
|
coveralls (0.8.23)
|
21
21
|
json (>= 1.8, < 3)
|
22
22
|
simplecov (~> 0.16.1)
|
23
23
|
term-ansicolor (~> 1.3)
|
24
24
|
thor (>= 0.19.4, < 2.0)
|
25
25
|
tins (~> 1.6)
|
26
|
-
diff-lcs (1.
|
26
|
+
diff-lcs (1.4.4)
|
27
27
|
docile (1.3.2)
|
28
|
-
i18n (1.8.
|
28
|
+
i18n (1.8.5)
|
29
29
|
concurrent-ruby (~> 1.0)
|
30
|
-
|
31
|
-
json (2.3.0)
|
30
|
+
json (2.3.1)
|
32
31
|
method_source (1.0.0)
|
33
|
-
minitest (5.14.
|
34
|
-
money (6.13.
|
32
|
+
minitest (5.14.2)
|
33
|
+
money (6.13.8)
|
35
34
|
i18n (>= 0.6.4, <= 2)
|
36
|
-
parallel (1.
|
37
|
-
parser (2.7.
|
38
|
-
ast (~> 2.4.
|
35
|
+
parallel (1.20.1)
|
36
|
+
parser (2.7.2.0)
|
37
|
+
ast (~> 2.4.1)
|
39
38
|
pg (1.2.3)
|
40
|
-
pry (0.13.
|
39
|
+
pry (0.13.1)
|
41
40
|
coderay (~> 1.1)
|
42
41
|
method_source (~> 1.0)
|
43
|
-
rack (2.2.
|
42
|
+
rack (2.2.3)
|
44
43
|
rainbow (3.0.0)
|
45
44
|
rake (13.0.1)
|
45
|
+
regexp_parser (2.0.0)
|
46
46
|
rexml (3.2.4)
|
47
|
-
rspec (3.
|
48
|
-
rspec-core (~> 3.
|
49
|
-
rspec-expectations (~> 3.
|
50
|
-
rspec-mocks (~> 3.
|
51
|
-
rspec-core (3.
|
52
|
-
rspec-support (~> 3.
|
53
|
-
rspec-expectations (3.
|
47
|
+
rspec (3.10.0)
|
48
|
+
rspec-core (~> 3.10.0)
|
49
|
+
rspec-expectations (~> 3.10.0)
|
50
|
+
rspec-mocks (~> 3.10.0)
|
51
|
+
rspec-core (3.10.0)
|
52
|
+
rspec-support (~> 3.10.0)
|
53
|
+
rspec-expectations (3.10.0)
|
54
54
|
diff-lcs (>= 1.2.0, < 2.0)
|
55
|
-
rspec-support (~> 3.
|
56
|
-
rspec-mocks (3.
|
55
|
+
rspec-support (~> 3.10.0)
|
56
|
+
rspec-mocks (3.10.0)
|
57
57
|
diff-lcs (>= 1.2.0, < 2.0)
|
58
|
-
rspec-support (~> 3.
|
59
|
-
rspec-support (3.
|
60
|
-
rubocop (0.
|
61
|
-
jaro_winkler (~> 1.5.1)
|
58
|
+
rspec-support (~> 3.10.0)
|
59
|
+
rspec-support (3.10.0)
|
60
|
+
rubocop (0.90.0)
|
62
61
|
parallel (~> 1.10)
|
63
|
-
parser (>= 2.7.
|
62
|
+
parser (>= 2.7.1.1)
|
64
63
|
rainbow (>= 2.2.2, < 4.0)
|
64
|
+
regexp_parser (>= 1.7)
|
65
65
|
rexml
|
66
|
+
rubocop-ast (>= 0.3.0, < 1.0)
|
66
67
|
ruby-progressbar (~> 1.7)
|
67
68
|
unicode-display_width (>= 1.4.0, < 2.0)
|
68
|
-
rubocop-
|
69
|
-
|
70
|
-
|
71
|
-
rubocop
|
72
|
-
rubocop-
|
73
|
-
|
74
|
-
rubocop (
|
75
|
-
rubocop-
|
76
|
-
|
69
|
+
rubocop-ast (0.8.0)
|
70
|
+
parser (>= 2.7.1.5)
|
71
|
+
rubocop-config-umbrellio (0.90.0.93)
|
72
|
+
rubocop (= 0.90.0)
|
73
|
+
rubocop-performance (= 1.7.1)
|
74
|
+
rubocop-rails (= 2.7.0)
|
75
|
+
rubocop-rspec (= 1.42.0)
|
76
|
+
rubocop-performance (1.7.1)
|
77
|
+
rubocop (>= 0.82.0)
|
78
|
+
rubocop-rails (2.7.0)
|
79
|
+
activesupport (>= 4.2.0)
|
77
80
|
rack (>= 1.1)
|
78
|
-
rubocop (>= 0.
|
79
|
-
rubocop-rspec (1.
|
80
|
-
rubocop (>= 0.
|
81
|
+
rubocop (>= 0.87.0)
|
82
|
+
rubocop-rspec (1.42.0)
|
83
|
+
rubocop (>= 0.87.0)
|
81
84
|
ruby-progressbar (1.10.1)
|
82
|
-
sequel (5.
|
85
|
+
sequel (5.39.0)
|
83
86
|
simplecov (0.16.1)
|
84
87
|
docile (~> 1.1)
|
85
88
|
json (>= 1.8, < 3)
|
@@ -91,12 +94,12 @@ GEM
|
|
91
94
|
tins (~> 1.0)
|
92
95
|
thor (1.0.1)
|
93
96
|
thread_safe (0.3.6)
|
94
|
-
tins (1.
|
97
|
+
tins (1.26.0)
|
95
98
|
sync
|
96
|
-
tzinfo (1.2.
|
99
|
+
tzinfo (1.2.8)
|
97
100
|
thread_safe (~> 0.1)
|
98
101
|
unicode-display_width (1.7.0)
|
99
|
-
zeitwerk (2.
|
102
|
+
zeitwerk (2.4.2)
|
100
103
|
|
101
104
|
PLATFORMS
|
102
105
|
ruby
|
data/Rakefile
CHANGED
@@ -30,7 +30,7 @@ module Sequel::Plugins::AttrEncrypted::SimpleCrypt
|
|
30
30
|
private
|
31
31
|
|
32
32
|
def new_cipher(key)
|
33
|
-
result = OpenSSL::Cipher
|
33
|
+
result = OpenSSL::Cipher.new("aes-256-gcm")
|
34
34
|
yield(result)
|
35
35
|
result.key = key
|
36
36
|
result
|
@@ -41,6 +41,6 @@ module Sequel::Plugins::AttrEncrypted::SimpleCrypt
|
|
41
41
|
end
|
42
42
|
|
43
43
|
def dump(*values)
|
44
|
-
|
44
|
+
Array(values).map { |x| Base64.strict_encode64(x) }.join(SEPARATOR)
|
45
45
|
end
|
46
46
|
end
|
@@ -8,10 +8,10 @@ module Sequel
|
|
8
8
|
# Rollback a migration
|
9
9
|
def undo(version)
|
10
10
|
path = files.find { |file| migration_version_from_file(get_filename(file)) == version }
|
11
|
-
|
11
|
+
error!("Migration #{version} does not exist in the filesystem") unless path
|
12
12
|
|
13
13
|
filename = get_filename(path)
|
14
|
-
|
14
|
+
error!("Migration #{version} is not applied") unless applied_migrations.include?(filename)
|
15
15
|
|
16
16
|
migration = get_migration(path)
|
17
17
|
|
@@ -41,7 +41,7 @@ module Sequel
|
|
41
41
|
end
|
42
42
|
end
|
43
43
|
|
44
|
-
Sequel::TimestampMigrator.prepend
|
44
|
+
Sequel::TimestampMigrator.prepend(TimestampMigratorLogger)
|
45
45
|
|
46
46
|
private
|
47
47
|
|
@@ -57,6 +57,10 @@ module Sequel
|
|
57
57
|
def get_filename(path)
|
58
58
|
File.basename(path).downcase
|
59
59
|
end
|
60
|
+
|
61
|
+
def error!(message)
|
62
|
+
raise Sequel::Migrator::Error, message
|
63
|
+
end
|
60
64
|
end
|
61
65
|
end
|
62
66
|
# rubocop:enable Layout/ClassStructure
|
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.0.
|
4
|
+
version: 0.4.0.164
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- nulldef
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-12-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sequel
|