effective_developer 0.4.6 → 0.4.7
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 +5 -5
- data/README.md +18 -4
- data/lib/effective_developer/version.rb +1 -1
- data/lib/tasks/pg_pull.rake +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 92bfc764a4f9498b3604970872aadbecf01595080c4265ee2f67c66658342c31
|
4
|
+
data.tar.gz: b4543f444df0d29f7f24368225e8da8b840752bad49dcba66470ffa46f77c775
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 398ec3a8e6c6454ad6560db75eb957c133f08bc88958cc29c2da709a593604e6b88026c3b7ede520ea5be9a9a2b32ae31864160122fb0648dceed2728bd38238
|
7
|
+
data.tar.gz: 7ab24b39b9b094846767e3a80e3188521fc788f7e1080b89ab1cf997171e2bbd02da81b92475897ec72a6648d78fd4800f54bc50fa5d946565470eece830ef96
|
data/README.md
CHANGED
@@ -38,6 +38,12 @@ git config --global core.hooksPath ~/effective_developer/githooks
|
|
38
38
|
|
39
39
|
# Shell scripts
|
40
40
|
|
41
|
+
To use the included command line shell scripts:
|
42
|
+
|
43
|
+
```console
|
44
|
+
export PATH="$PATH:$HOME/effective_developer/bin"
|
45
|
+
```
|
46
|
+
|
41
47
|
## gem_develop
|
42
48
|
|
43
49
|
A command line shell script to update a `Gemfile` and use any provided gems locally.
|
@@ -147,6 +153,12 @@ A command line script to delete any git branch that has already been merged into
|
|
147
153
|
|
148
154
|
# Git hooks
|
149
155
|
|
156
|
+
To use the included git hooks for all git repos, run the following:
|
157
|
+
|
158
|
+
```
|
159
|
+
git config --global core.hooksPath ~/effective_developer/githooks
|
160
|
+
```
|
161
|
+
|
150
162
|
## pre-push
|
151
163
|
|
152
164
|
Prevents pushing git commits that have the following bad patterns:
|
@@ -340,7 +352,7 @@ A huge head start to the interesting part of the code.
|
|
340
352
|
|
341
353
|
Scaffolding is the fastest way to build a CRUD rails app.
|
342
354
|
|
343
|
-
The effective scaffolds generally follow the same pattern as the
|
355
|
+
The effective scaffolds generally follow the same pattern as the [rails generate](http://guides.rubyonrails.org/command_line.html#rails-generate) commands.
|
344
356
|
|
345
357
|
To create an entire CRUD resource from the command line:
|
346
358
|
|
@@ -375,9 +387,11 @@ class Post < ApplicationRecord
|
|
375
387
|
belongs_to :category
|
376
388
|
|
377
389
|
# Attributes
|
378
|
-
|
379
|
-
|
380
|
-
|
390
|
+
effective_resources do
|
391
|
+
title :string
|
392
|
+
body :text
|
393
|
+
published_at :datetime
|
394
|
+
end
|
381
395
|
|
382
396
|
validates :title, presence: true
|
383
397
|
validates :description, presence: true
|
data/lib/tasks/pg_pull.rake
CHANGED
@@ -45,7 +45,7 @@ namespace :pg do
|
|
45
45
|
Rake::Task['db:drop'].invoke
|
46
46
|
Rake::Task['db:create'].invoke
|
47
47
|
|
48
|
-
if system("pg_restore --no-acl --no-owner -h localhost -U #{db['username']} -d #{db['database']} #{args.file_name}")
|
48
|
+
if system("pg_restore --no-acl --no-owner --clean --if-exists -h localhost -U #{db['username']} -d #{db['database']} #{args.file_name}")
|
49
49
|
puts "Loading database completed"
|
50
50
|
else
|
51
51
|
puts "Error loading database"
|
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.4.
|
4
|
+
version: 0.4.7
|
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: 2019-
|
11
|
+
date: 2019-09-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -118,8 +118,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
118
118
|
- !ruby/object:Gem::Version
|
119
119
|
version: '0'
|
120
120
|
requirements: []
|
121
|
-
|
122
|
-
rubygems_version: 2.4.5.1
|
121
|
+
rubygems_version: 3.0.3
|
123
122
|
signing_key:
|
124
123
|
specification_version: 4
|
125
124
|
summary: Provides some quality of life developer tools.
|