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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2775e59f59c4f49f048e1a249fc1d75c26c6d1cee43ecd86204494a681eb79f1
4
- data.tar.gz: 024fa0d9a08bafec097a4091596e579b0cba7c62ab3246cf92e86ca56585c40c
3
+ metadata.gz: 7471838dfb23abedfea720ee5e2db90e34e37c3a8711fd0015eba55956fe94fa
4
+ data.tar.gz: 1fb652c549cc0eabdda025444520e83c6d4cb9d57a0e68365ca7b4f7770fd2b9
5
5
  SHA512:
6
- metadata.gz: ae5ee76f57dc72ff6580baa8fbfc32dddb6b3a878bbea7c4b731088f9112be638577fc8b44173307cdca885af168098d3bed75deaf313012acd4e02cd710133f
7
- data.tar.gz: e4e453b2bb45a25c2e9f9de72e6d3ac6222d428e0982d6deadbb7a9ac94bb0bec51dff9038233a1f86738c8ac8ff4b92dd9d7c78360c2b89ff6a45c2380c1405
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
@@ -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
 
@@ -2,8 +2,9 @@ module Hypershield
2
2
  module Migration
3
3
  def method_missing(method, *args)
4
4
  if [
5
- :change_column, :drop_table, :remove_column, :remove_columns,
6
- :remove_timestamps, :rename_column, :rename_table
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
@@ -1,3 +1,3 @@
1
1
  module Hypershield
2
- VERSION = "0.3.0"
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.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: 2022-10-10 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