rails_db_protect 0.0.0 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b61c6d5d127a19e7ad74443c80dcc4d408ababa6
4
- data.tar.gz: 5bd10bb6def5246248c027946694ea7c7c92704f
3
+ metadata.gz: 4e809399e4fb12352e94c1b9986bafdfa394c00c
4
+ data.tar.gz: 8b4270925ea29532d34d61f0bb05ba732b991d2a
5
5
  SHA512:
6
- metadata.gz: 5164923b0926357ed547efae975b3d49501ac6e50250dabc7b1cfa922e22b75c353987bb29ced3d294b8abfde60da0ad2e939517e21b0ab3ef09a142b8c6a1e7
7
- data.tar.gz: 82c07b44ce218ffa2a691317e4fe00e630ca26d4f20303c2264cb319759f3324b5e9e5f3be5334f4451eeeea9067af01b3a2729317d38183dca0f78a0ee3a0c2
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 rake tasks:
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
 
@@ -1,3 +1,3 @@
1
1
  module RailsDbProtect
2
- VERSION = "0.0.0"
2
+ VERSION = "1.0.0"
3
3
  end
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: 0.0.0
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-21 00:00:00.000000000 Z
11
+ date: 2016-01-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails