effective_developer 0.0.4 → 0.0.5
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 +4 -4
- data/README.md +24 -7
- data/lib/effective_developer/version.rb +1 -1
- data/lib/tasks/reset_pk_sequence.rake +6 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 37009e501c345970f6f61ba7da9de4434ed0aa80
|
4
|
+
data.tar.gz: 16d0fdc7164a019cd888b0777d25a9888e5d0b34
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6d5d37ee66983776213ddc80550ef3090274e955c28a3ed75b77237f4d7b90e90368b12b86f602edad51925236dcb9873662a6f5e2f6a75c213c0f187397c75b
|
7
|
+
data.tar.gz: 6a72d5938336c130800ef95dcb140c40dcf64d38ae0dab52197ba2e57ff1bd8ebd618328ef80be505d4926e28aa0f5f47a080f49ce5e0cd067e48d92c73c9f6c
|
data/README.md
CHANGED
@@ -18,19 +18,19 @@ Run the bundle command to install it:
|
|
18
18
|
bundle install
|
19
19
|
```
|
20
20
|
|
21
|
+
To use with any gem, add the following folder to your `PATH` (edit your ~/.bashrc or ~/.profile):
|
22
|
+
|
23
|
+
```console
|
24
|
+
export PATH="$PATH:$HOME/effective_developer/bin"
|
25
|
+
```
|
26
|
+
|
21
27
|
## gem_release
|
22
28
|
|
23
29
|
A command line shell script that quickly bumps the version of any ruby gem.
|
24
30
|
|
25
31
|
It checks for any uncommitted files, updates the gem's `version.rb` with the given version, makes a single file `git commit` with a tag and message, then runs `git push origin master`, `gem build` and `gem push` to rubygems.
|
26
32
|
|
27
|
-
|
28
|
-
|
29
|
-
```console
|
30
|
-
export PATH="$PATH:$HOME/effective_developer/bin"
|
31
|
-
```
|
32
|
-
|
33
|
-
Once included in your `PATH`, `gem_release` should be run from the root directory of any ruby gem.
|
33
|
+
`gem_release` should be run from the root directory of any ruby gem.
|
34
34
|
|
35
35
|
To print the current gem version:
|
36
36
|
|
@@ -44,6 +44,23 @@ To release a new gem version:
|
|
44
44
|
> gem_release 1.0.0
|
45
45
|
```
|
46
46
|
|
47
|
+
## gitsweep
|
48
|
+
|
49
|
+
A command line script to delete any git branch that has already been merged into master & develop
|
50
|
+
|
51
|
+
```console
|
52
|
+
> gitsweep
|
53
|
+
```
|
54
|
+
|
55
|
+
## BFG Repo-Cleaner
|
56
|
+
|
57
|
+
A command line script that calls [BFG Repo-Cleaner](https://rtyley.github.io/bfg-repo-cleaner/) to remove sensitive data from the git repository history.
|
58
|
+
|
59
|
+
```console
|
60
|
+
> bfg --delete-files id_rsa.pub
|
61
|
+
```
|
62
|
+
|
63
|
+
|
47
64
|
## CSV Importer
|
48
65
|
|
49
66
|
Extend a class from `Effective::CSVImporter` to quickly build a csv importer.
|
@@ -0,0 +1,6 @@
|
|
1
|
+
desc 'Reset all database table PK sequences. Fixes duplicate key violates unique constraint (id) error'
|
2
|
+
task :reset_pk_sequence => :environment do
|
3
|
+
ActiveRecord::Base.connection.tables.each do |table|
|
4
|
+
ActiveRecord::Base.connection.reset_pk_sequence!(table)
|
5
|
+
end
|
6
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: effective_developer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Code and Effect
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-07-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -43,6 +43,7 @@ files:
|
|
43
43
|
- lib/generators/effective_developer/install_generator.rb
|
44
44
|
- lib/tasks/effective_csv_importer.rake
|
45
45
|
- lib/tasks/pg_pull.rake
|
46
|
+
- lib/tasks/reset_pk_sequence.rake
|
46
47
|
homepage: https://github.com/code-and-effect/effective_developer
|
47
48
|
licenses:
|
48
49
|
- MIT
|