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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 193c655d942757d507f1ab629050ccb0acac0382
4
- data.tar.gz: 00a493b6599aa029eb76bd2712e9569c6a97baef
3
+ metadata.gz: 37009e501c345970f6f61ba7da9de4434ed0aa80
4
+ data.tar.gz: 16d0fdc7164a019cd888b0777d25a9888e5d0b34
5
5
  SHA512:
6
- metadata.gz: 0f9e6f62e39f501bd1d0bea5a4452de888a4fee127f80254f2a7ef398e1985d5d404795072954f365969543f0a0a723eb963d9e02e286e1ebca21a58097a8861
7
- data.tar.gz: f1052aab12a26b3deaee1f40407f71434bd546e194487668efbc5ed1f8399241d3e3916246da0e74ca1afca5ac2d5b9d900f3a2035d59610644399796d819bcd
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
- To use with any gem, add the following folder to your `PATH` (~/.bashrc or ~/.profile):
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.
@@ -1,3 +1,3 @@
1
1
  module EffectiveDeveloper
2
- VERSION = '0.0.4'.freeze
2
+ VERSION = '0.0.5'.freeze
3
3
  end
@@ -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
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-05-06 00:00:00.000000000 Z
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