hypershield 0.3.1 → 0.4.0

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: b8d39eaf38e8a6c7359940834a4786f4d09adff6a1b64a6d75453be88e8bdceb
4
- data.tar.gz: 4f59a99c83df2407dbfa0c2ea993b4e250475937dfceafae0a0f9025727fadc1
3
+ metadata.gz: 7471838dfb23abedfea720ee5e2db90e34e37c3a8711fd0015eba55956fe94fa
4
+ data.tar.gz: 1fb652c549cc0eabdda025444520e83c6d4cb9d57a0e68365ca7b4f7770fd2b9
5
5
  SHA512:
6
- metadata.gz: fa43b08b7c3ffe6d3c9337f38a6a438452dfb89af02785a4a27fb27e1639d2f37c73212e4ad8e7389acc7dd3081a1557e615d0e038e58a230e235077da6e9038
7
- data.tar.gz: cf7ae97eda6a2bb627900d541b69135deff5d808781f44fb990a09611e86a1a3e46cbe92f8061ee81db424e40c38674e1de24c25dfeffa62108f386e39cefe04
6
+ metadata.gz: 851e844d7e810726939e45b20e6bed6d08c4759e547d643c7e0a0519a9bfe63b98567003a7203e798982620ef13355a32e3c0a1e0323fa5c5b9611dbd538412b
7
+ data.tar.gz: a16ffdbb1d5c61b0c1cfcb7288974a2a5bf6e417f7cc58971006a17473b27641d167ba3a5696fc1bdce26b0103d545575cbf2c066c074a5e1a57d55288536d72
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.4.0 (2024-06-24)
2
+
3
+ - Dropped support for Ruby < 3.1 and Rails < 6.1
4
+
1
5
  ## 0.3.1 (2022-11-06)
2
6
 
3
7
  - Fixed dropping views for `change_table`, `drop_join_table`, `remove_belongs_to`, and `remove_reference`
data/LICENSE.txt CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2018-2022 Andrew Kane
3
+ Copyright (c) 2018-2024 Andrew Kane
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
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?branch=master)](https://github.com/ankane/hypershield/actions)
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
 
@@ -1,3 +1,3 @@
1
1
  module Hypershield
2
- VERSION = "0.3.1"
2
+ VERSION = "0.4.0"
3
3
  end
data/lib/hypershield.rb CHANGED
@@ -2,11 +2,11 @@
2
2
  require "active_support"
3
3
 
4
4
  # modules
5
- require "hypershield/migration"
6
- require "hypershield/version"
5
+ require_relative "hypershield/migration"
6
+ require_relative "hypershield/version"
7
7
 
8
8
  # integrations
9
- require "hypershield/engine" if defined?(Rails)
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 =~ /sqlite/i
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 =~ /mysql/i
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.3.1
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: 2022-11-07 00:00:00.000000000 Z
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: '2.7'
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.3.7
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