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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 0ce913589010cffddecd856b87a7e6c2b4c1e0de
4
- data.tar.gz: f91300abce4b84510afffc96365e9e53608c008e
2
+ SHA256:
3
+ metadata.gz: 92bfc764a4f9498b3604970872aadbecf01595080c4265ee2f67c66658342c31
4
+ data.tar.gz: b4543f444df0d29f7f24368225e8da8b840752bad49dcba66470ffa46f77c775
5
5
  SHA512:
6
- metadata.gz: ff5b96a3df95badc14f304078aaa068e27ad122873f40b4e0256789df4a8b317a02a4c8afd6202cbf7b2acca73f35569ad36ae8272cf50510aa3785a3d6237a4
7
- data.tar.gz: 5153737f019a8c3dcf4c12271f1757adc3c89d26853208ec08e0c218da63057ff55a842405e434af35ec9f9c9e0e811bec4805f58d0513e108038e2a89a53d76
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 (rails generate)[http://guides.rubyonrails.org/command_line.html#rails-generate] commands.
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
- # title :string
379
- # body :text
380
- # published_at :datetime
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
@@ -1,3 +1,3 @@
1
1
  module EffectiveDeveloper
2
- VERSION = '0.4.6'.freeze
2
+ VERSION = '0.4.7'.freeze
3
3
  end
@@ -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.6
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-05-15 00:00:00.000000000 Z
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
- rubyforge_project:
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.