ignored_columns_tasks 0.0.1 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Changes +3 -0
- data/README.md +3 -3
- data/ignored_columns_tasks.gemspec +1 -1
- data/lib/ignored_columns_tasks/tasks/ignored_columns.rake +2 -2
- data/lib/ignored_columns_tasks/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5766d5af94e72067164ba02354d848710b42fc85aabb19b0a4805fc9a0d5fa2f
|
4
|
+
data.tar.gz: c21503fa1b197220802644e8a697bec55fb454b3d059084a8c12120c4418843f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 02e85c9e24669d726ba4bfb78ae04162ebe04ef9540c706ec1f710f2ba591cc050e0bf737675bbedfae763852c93d1c37ed0f76f8011c241728d76540eb9a051
|
7
|
+
data.tar.gz: 6f09ed53de2d8439bba4befa933ccaa979d0492f6028980ea8682b936da004f8550e681f0d9b70c5743ded6ea829cdf8df3218db23175ebbdffd7cd1f902c5b1
|
data/Changes
ADDED
data/README.md
CHANGED
@@ -32,13 +32,13 @@ If you have ignored columns that must not be dropped add them to the `SKIP_COLUM
|
|
32
32
|
```
|
33
33
|
|
34
34
|
You can set this once for your project instead of specifying it every time.
|
35
|
-
In this case it is recommended to use the `
|
35
|
+
In this case it is recommended to use the `IGNORED_COLUMNS_TASKS_SKIP_COLUMNS` environment variable:
|
36
36
|
|
37
37
|
```sh
|
38
|
-
export
|
38
|
+
export IGNORED_COLUMNS_TASKS_SKIP_COLUMNS="some_column,another_column"
|
39
39
|
```
|
40
40
|
|
41
|
-
This task can also be limited to a single model
|
41
|
+
This task can also be limited to a single model by setting the `MODEL` environment variable:
|
42
42
|
|
43
43
|
```
|
44
44
|
./bin/rails ignored_columns:migration MODEL=User
|
@@ -14,7 +14,7 @@ Gem::Specification.new do |spec|
|
|
14
14
|
|
15
15
|
spec.metadata["homepage_uri"] = spec.homepage
|
16
16
|
spec.metadata["source_code_uri"] = "https://github.com/sshaw/ignored_columns_tasks"
|
17
|
-
|
17
|
+
spec.metadata["changelog_uri"] = "https://github.com/sshaw/ignored_columns_tasks/blob/master/Changes"
|
18
18
|
|
19
19
|
# Specify which files should be added to the gem when it is released.
|
20
20
|
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
@@ -9,9 +9,9 @@ namespace :ignored_columns do
|
|
9
9
|
def skip_columns
|
10
10
|
skip = nil
|
11
11
|
|
12
|
-
#
|
12
|
+
# IGNORED_COLUMNS_TASKS_SKIP_COLUMNS is our global, namespaced version
|
13
13
|
# SKIP_COLUMNS is shorter, command-line argument
|
14
|
-
%w[
|
14
|
+
%w[IGNORED_COLUMNS_TASKS_SKIP_COLUMNS SKIP_COLUMNS].each do |name|
|
15
15
|
if ENV[name]
|
16
16
|
skip ||= []
|
17
17
|
skip.concat(ENV[name].split(/\s*,\s/))
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ignored_columns_tasks
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Skye Shaw
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-07-
|
11
|
+
date: 2023-07-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -47,6 +47,7 @@ extensions: []
|
|
47
47
|
extra_rdoc_files: []
|
48
48
|
files:
|
49
49
|
- ".gitignore"
|
50
|
+
- Changes
|
50
51
|
- Gemfile
|
51
52
|
- LICENSE.txt
|
52
53
|
- README.md
|
@@ -64,6 +65,7 @@ licenses:
|
|
64
65
|
metadata:
|
65
66
|
homepage_uri: https://github.com/sshaw/ignored_columns_tasks
|
66
67
|
source_code_uri: https://github.com/sshaw/ignored_columns_tasks
|
68
|
+
changelog_uri: https://github.com/sshaw/ignored_columns_tasks/blob/master/Changes
|
67
69
|
post_install_message:
|
68
70
|
rdoc_options: []
|
69
71
|
require_paths:
|