hypershield 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/LICENSE.txt +1 -1
- data/README.md +1 -1
- data/lib/hypershield/migration.rb +3 -2
- data/lib/hypershield/version.rb +1 -1
- data/lib/hypershield.rb +5 -5
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7471838dfb23abedfea720ee5e2db90e34e37c3a8711fd0015eba55956fe94fa
|
4
|
+
data.tar.gz: 1fb652c549cc0eabdda025444520e83c6d4cb9d57a0e68365ca7b4f7770fd2b9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 851e844d7e810726939e45b20e6bed6d08c4759e547d643c7e0a0519a9bfe63b98567003a7203e798982620ef13355a32e3c0a1e0323fa5c5b9611dbd538412b
|
7
|
+
data.tar.gz: a16ffdbb1d5c61b0c1cfcb7288974a2a5bf6e417f7cc58971006a17473b27641d167ba3a5696fc1bdce26b0103d545575cbf2c066c074a5e1a57d55288536d72
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,11 @@
|
|
1
|
+
## 0.4.0 (2024-06-24)
|
2
|
+
|
3
|
+
- Dropped support for Ruby < 3.1 and Rails < 6.1
|
4
|
+
|
5
|
+
## 0.3.1 (2022-11-06)
|
6
|
+
|
7
|
+
- Fixed dropping views for `change_table`, `drop_join_table`, `remove_belongs_to`, and `remove_reference`
|
8
|
+
|
1
9
|
## 0.3.0 (2022-10-09)
|
2
10
|
|
3
11
|
- Dropped support for Ruby < 2.7 and Rails < 6
|
data/LICENSE.txt
CHANGED
data/README.md
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
Great for business intelligence tools like [Blazer](https://github.com/ankane/blazer)
|
6
6
|
|
7
|
-
[![Build Status](https://github.com/ankane/hypershield/workflows/build/badge.svg
|
7
|
+
[![Build Status](https://github.com/ankane/hypershield/actions/workflows/build.yml/badge.svg)](https://github.com/ankane/hypershield/actions)
|
8
8
|
|
9
9
|
## How It Works
|
10
10
|
|
@@ -2,8 +2,9 @@ module Hypershield
|
|
2
2
|
module Migration
|
3
3
|
def method_missing(method, *args)
|
4
4
|
if [
|
5
|
-
:change_column, :
|
6
|
-
:
|
5
|
+
:change_column, :change_table, :drop_join_table, :drop_table,
|
6
|
+
:remove_belongs_to, :remove_column, :remove_columns,
|
7
|
+
:remove_reference, :remove_timestamps, :rename_column, :rename_table
|
7
8
|
].include?(method)
|
8
9
|
Hypershield.drop_view(args[0])
|
9
10
|
end
|
data/lib/hypershield/version.rb
CHANGED
data/lib/hypershield.rb
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
require "active_support"
|
3
3
|
|
4
4
|
# modules
|
5
|
-
|
6
|
-
|
5
|
+
require_relative "hypershield/migration"
|
6
|
+
require_relative "hypershield/version"
|
7
7
|
|
8
8
|
# integrations
|
9
|
-
|
9
|
+
require_relative "hypershield/engine" if defined?(Rails)
|
10
10
|
|
11
11
|
module Hypershield
|
12
12
|
class << self
|
@@ -29,7 +29,7 @@ module Hypershield
|
|
29
29
|
end
|
30
30
|
|
31
31
|
def refresh(dry_run: false)
|
32
|
-
if adapter_name
|
32
|
+
if adapter_name.match?(/sqlite/i)
|
33
33
|
raise "Adapter not supported: #{adapter_name}"
|
34
34
|
end
|
35
35
|
|
@@ -104,7 +104,7 @@ module Hypershield
|
|
104
104
|
end
|
105
105
|
|
106
106
|
def mysql?
|
107
|
-
adapter_name
|
107
|
+
adapter_name.match?(/mysql/i)
|
108
108
|
end
|
109
109
|
|
110
110
|
def tables(schema = nil)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hypershield
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Kane
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-06-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '6'
|
19
|
+
version: '6.1'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '6'
|
26
|
+
version: '6.1'
|
27
27
|
description:
|
28
28
|
email: andrew@ankane.org
|
29
29
|
executables: []
|
@@ -52,14 +52,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
52
52
|
requirements:
|
53
53
|
- - ">="
|
54
54
|
- !ruby/object:Gem::Version
|
55
|
-
version: '
|
55
|
+
version: '3.1'
|
56
56
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
57
57
|
requirements:
|
58
58
|
- - ">="
|
59
59
|
- !ruby/object:Gem::Version
|
60
60
|
version: '0'
|
61
61
|
requirements: []
|
62
|
-
rubygems_version: 3.
|
62
|
+
rubygems_version: 3.5.11
|
63
63
|
signing_key:
|
64
64
|
specification_version: 4
|
65
65
|
summary: Shield sensitive data in Postgres and MySQL
|