rails_db_protect 0.0.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +7 -16
- data/lib/rails_db_protect/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4e809399e4fb12352e94c1b9986bafdfa394c00c
|
4
|
+
data.tar.gz: 8b4270925ea29532d34d61f0bb05ba732b991d2a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3ade97f31ca0d262189dbc742c2219cd85708fd85c27185945e99b156cab2a6f7726181a069f99267f306ba0b668665b784c3a44fe865288bcd40b81b949a1ed
|
7
|
+
data.tar.gz: 96aa72f2cbb94d1a7227b8a7541b4141e835c5362c08479e439be03bfd6d2e8d328599b2514331477d7d1469355b484ca62c4ed96e884623b3f17f5b2ec4e859
|
data/README.md
CHANGED
@@ -1,11 +1,17 @@
|
|
1
1
|
# RailsDbProtect
|
2
2
|
|
3
|
-
Protect your Rails production databases from destructive
|
3
|
+
Protect your Rails production databases from the following destructive tasks:
|
4
4
|
|
5
5
|
```bash
|
6
6
|
db:setup db:reset db:drop db:create db:schema:load
|
7
7
|
```
|
8
8
|
|
9
|
+
## Usage
|
10
|
+
|
11
|
+
Add the gem and you're done!
|
12
|
+
|
13
|
+
To bypass the protection in a production environment, add `ENV['ALLOW_DANGEROUS_TASKS'] = 'true'` to your environment.
|
14
|
+
|
9
15
|
## Installation
|
10
16
|
|
11
17
|
Add this line to your application's Gemfile:
|
@@ -14,21 +20,6 @@ Add this line to your application's Gemfile:
|
|
14
20
|
gem 'rails_db_protect'
|
15
21
|
```
|
16
22
|
|
17
|
-
And then install:
|
18
|
-
|
19
|
-
```bash
|
20
|
-
$ bundle install
|
21
|
-
```
|
22
|
-
|
23
|
-
Or install it yourself as:
|
24
|
-
|
25
|
-
```bash
|
26
|
-
$ gem install rails_db_protect
|
27
|
-
```
|
28
|
-
|
29
|
-
## Usage
|
30
|
-
|
31
|
-
Just drop it in and you will not be able to run the dangerous tasks in production environments. To bypass this in, say, a staging environment, add `ENV['ALLOW_DANGEROUS_TASKS'] = 'true'` to your environment.
|
32
23
|
|
33
24
|
## Contributing
|
34
25
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_db_protect
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam Steel
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-01-
|
11
|
+
date: 2016-01-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|