zsh_dots 0.6.3 → 0.6.5
Sign up to get free protection for your applications and to get access to all the features.
- data.tar.gz.sig +0 -0
- data/Rakefile +1 -14
- data/config/gitconfig +11 -10
- data/config/railsrc +1 -2
- data/config/zshenv +2 -1
- data/etc/rails/builder.rb +87 -0
- data/etc/rails/template/Procfile +1 -0
- data/etc/rails/template/bundle-config +3 -0
- data/etc/rails/template/env +2 -0
- data/etc/rails/template/{.travis.yml → travis.yml} +0 -0
- data/lib/plugins/git/git.plugin.zsh +3 -1
- data/lib/ruby/dots/installation.rb +1 -1
- data/lib/ruby/dots/version.rb +1 -1
- data/lib/tasks/antigen.rake +5 -0
- metadata +8 -4
- metadata.gz.sig +0 -0
- data/etc/rails/template/.env +0 -2
data.tar.gz.sig
CHANGED
Binary file
|
data/Rakefile
CHANGED
@@ -1,16 +1,8 @@
|
|
1
1
|
#!/usr/bin/env rake
|
2
|
-
#
|
3
|
-
# This is for Rake tasks that pertain to the development and
|
4
|
-
# maintainence of DOTS itself. All tasks that can be loaded
|
5
|
-
# with `rake -g` should be put into a .rake file in ~/.dots/lib/tasks.
|
6
|
-
#
|
7
|
-
# These tasks are also available within DOTS natively.
|
8
2
|
|
9
3
|
require 'rake'
|
10
4
|
require 'bundler/gem_tasks'
|
11
5
|
|
12
|
-
Dir["lib/tasks/*.rake"].each { |rake_file| load rake_file }
|
13
|
-
|
14
6
|
begin
|
15
7
|
require 'rspec/core/rake_task'
|
16
8
|
RSpec::Core::RakeTask.new(:test)
|
@@ -18,9 +10,4 @@ rescue LoadError => e
|
|
18
10
|
# RSpec can not be run in the gem installation.
|
19
11
|
end
|
20
12
|
|
21
|
-
|
22
|
-
task :update do
|
23
|
-
sh "cd ~/.dots && git pull origin master"
|
24
|
-
sh "cd ~/.dots && git submodule sync"
|
25
|
-
sh "antigen-update"
|
26
|
-
end
|
13
|
+
Dir["lib/tasks/*.rake"].each { |rake_file| load rake_file }
|
data/config/gitconfig
CHANGED
@@ -12,24 +12,25 @@
|
|
12
12
|
br = branch
|
13
13
|
co = checkout
|
14
14
|
blog = log --graph --pretty=format':%C(yellow)%h%Cblue%d%Creset %s %C(white) %an, %ar%Creset' --decorate
|
15
|
-
l = !git blog
|
16
|
-
unstage = reset HEAD
|
17
15
|
staged = diff --cached
|
18
16
|
unstaged = diff
|
19
17
|
current-branch = !git symbolic-ref -q HEAD | sed -e 's|^refs/heads/||'
|
20
18
|
track = checkout -t
|
21
19
|
restore = stash pop
|
22
|
-
# Rewrite of 'git-process' in git. Basically the same thing without
|
23
|
-
|
24
|
-
|
25
|
-
|
20
|
+
# git_ship: Rewrite of 'git-process' in git. Basically the same thing without the _parking_ branch (it's the same as master)
|
21
|
+
blog = log --graph --pretty=format':%C(yellow)%h%Cblue%d%Creset %s %C(white) %an, %ar%Creset' --abbrev-commit --decorate
|
22
|
+
unstage = reset HEAD
|
23
|
+
restore = stash pop
|
24
|
+
sync = !export GIT_BRANCH=`git current-branch` && git fetch origin && git checkout master && git rebase origin/master && git checkout $GIT_BRANCH && git rebase master
|
25
|
+
feature = !git checkout master && git pull --rebase origin master && git checkout -b $2
|
26
|
+
new-fb = !git feature
|
26
27
|
expose = !git sync && git push origin `git current-branch`
|
27
|
-
|
28
|
-
|
29
|
-
|
28
|
+
swim = !git pull --rebase origin master && git checkout master
|
29
|
+
ship = !export GIT_BRANCH=`git current-branch` && git swim && git merge $GIT_BRANCH && git push origin master && git branch -D $GIT_BRANCH
|
30
|
+
prepare = rebase --interactive origin/master
|
31
|
+
# Makes your life generally easier..
|
30
32
|
rename-branch = !export GIT_BRANCH=`git current-branch` && git checkout master && git branch -m $GIT_BRANCH $1
|
31
33
|
delete-branch = !export GIT_BRANCH=`git current-branch` && git checkout master && git branch -D $GIT_BRANCH
|
32
|
-
prepare = rebase --interactive origin/master
|
33
34
|
[apply]
|
34
35
|
whitespace = warn
|
35
36
|
[color]
|
data/config/railsrc
CHANGED
@@ -1,2 +1 @@
|
|
1
|
-
--skip-bundle
|
2
|
-
|
1
|
+
--skip-bundle --database=postgresql --builder=~/etc/rails/builder.rb --template=~/etc/rails/template.rb
|
data/config/zshenv
CHANGED
@@ -8,7 +8,8 @@ ZSH=$HOME/.dots
|
|
8
8
|
DOTS=$ZSH
|
9
9
|
|
10
10
|
# Domain-specific PATHs.
|
11
|
-
|
11
|
+
RUBY_VERSION='1.9.3-p385'
|
12
|
+
RBPATH=/usr/local/lib/ruby/gems/1.9.1/bin:/usr/local/Cellar/ruby/$RUBY_VERSION/bin
|
12
13
|
JSPATH=node_modules/.bin:/usr/local/share/npm/bin
|
13
14
|
PYPATH=/usr/local/Cellar/python/2.7.3/bin:/usr/local/share/python
|
14
15
|
GOPATH=$HOME/Code/Go
|
@@ -0,0 +1,87 @@
|
|
1
|
+
# Some modern modifications to the standard Rails application builder.
|
2
|
+
class ModernBuilder < Rails::AppBuilder
|
3
|
+
attr_accessor :devise_requested
|
4
|
+
|
5
|
+
# Use Markdown instead of RDoc
|
6
|
+
def readme
|
7
|
+
create_file "README.md", "# #{app_name.titleize}"
|
8
|
+
end
|
9
|
+
|
10
|
+
# Use RSpec instead of Minitest
|
11
|
+
def test
|
12
|
+
run 'bundle install'
|
13
|
+
generate 'rspec:install'
|
14
|
+
end
|
15
|
+
|
16
|
+
# Use Haml, Foreman, Draper and ActiveModelSerializers as well
|
17
|
+
# as other helpful testing gems.
|
18
|
+
def gemfile
|
19
|
+
super
|
20
|
+
self.devise_requested = ask? "Would you like to install Devise?"
|
21
|
+
@generator.gem 'devise' if devise_requested
|
22
|
+
@generator.gem 'haml'
|
23
|
+
@generator.gem 'foreman'
|
24
|
+
@generator.gem 'draper'
|
25
|
+
@generator.gem 'active_model_serializers'
|
26
|
+
|
27
|
+
@generator.gem_group :development do
|
28
|
+
@generator.gem 'haml-rails'
|
29
|
+
@generator.gem 'ruby_parser'
|
30
|
+
@generator.gem 'hpricot'
|
31
|
+
@generator.gem 'puma'
|
32
|
+
end
|
33
|
+
|
34
|
+
@generator.gem_group :test do
|
35
|
+
@generator.gem 'rspec-rails'
|
36
|
+
@generator.gem 'capybara'
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
# Set up the Travis-CI, Shell and generator configuration
|
41
|
+
def leftovers
|
42
|
+
copy_configuration
|
43
|
+
initialize_generators
|
44
|
+
install_devise if devise_requested
|
45
|
+
remove_garbage
|
46
|
+
create_repository
|
47
|
+
end
|
48
|
+
|
49
|
+
private
|
50
|
+
def copy_configuration
|
51
|
+
%w(.env .travis.yml Procfile).each do |name|
|
52
|
+
file(name) { IO.read File.expand_path("~/etc/rails/template/#{name}") }
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
56
|
+
def initialize_generators
|
57
|
+
initializer "generators.rb", <<-RUBY
|
58
|
+
Rails.application.config.generators do |g|
|
59
|
+
g.template_engine :haml
|
60
|
+
g.test_framework :rspec, fixtures: true, fixture_location: "spec/fixtures"
|
61
|
+
end
|
62
|
+
RUBY
|
63
|
+
end
|
64
|
+
|
65
|
+
def install_devise
|
66
|
+
generate 'devise:install'
|
67
|
+
append_file 'config/application.rb', <<-RUBY
|
68
|
+
Rails.application.config.action_mailer.default_url_options = { :host => 'localhost:3000' }
|
69
|
+
RUBY
|
70
|
+
generate 'devise user'
|
71
|
+
end
|
72
|
+
|
73
|
+
def remove_garbage
|
74
|
+
run "rm -rf public/index.html"
|
75
|
+
end
|
76
|
+
|
77
|
+
def set_up_database
|
78
|
+
run "createuser -s #{app_name}"
|
79
|
+
rake 'db:create'
|
80
|
+
rake 'db:test:prepare'
|
81
|
+
end
|
82
|
+
|
83
|
+
def create_repository
|
84
|
+
git :init
|
85
|
+
git add: '.', commit: "-m 'Initial commit'"
|
86
|
+
end
|
87
|
+
end
|
@@ -0,0 +1 @@
|
|
1
|
+
web: bundle exec rails server puma
|
File without changes
|
@@ -9,7 +9,9 @@ alias gur='git pull --rebase'
|
|
9
9
|
compdef _git gl=git-pull
|
10
10
|
alias gp='git push'
|
11
11
|
compdef _git gp=git-push
|
12
|
-
alias gpf=
|
12
|
+
alias gpf="git push `git config github.user`"
|
13
|
+
compdef _git gpf=git-push
|
14
|
+
alias gph="git push heroku"
|
13
15
|
compdef _git gpf=git-push
|
14
16
|
gdv() { git diff -w "$@" | view - }
|
15
17
|
compdef _git gdv=git-diff
|
@@ -11,7 +11,7 @@ module Dots
|
|
11
11
|
|
12
12
|
# The Git remote we'll be pulling from. Set this in your +~/.zshenv+
|
13
13
|
# to use a different fork of the project.
|
14
|
-
REMOTE = ENV['DOTS_REMOTE']
|
14
|
+
REMOTE = ENV['DOTS_REMOTE'] || "origin"
|
15
15
|
|
16
16
|
# Attempts to update DOTS, but fails if changes are detected
|
17
17
|
# in the repo beforehand.
|
data/lib/ruby/dots/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zsh_dots
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -37,7 +37,7 @@ cert_chain:
|
|
37
37
|
VXZIRWlMV3BGOTVnejlId0tFRmVmZkVwNWR1bFRKSXYxYk0rTTRkVC8wcXRQ
|
38
38
|
a09iS1l3VgpmL2ppSG92UXJMWT0KLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0t
|
39
39
|
LQo=
|
40
|
-
date: 2013-02-
|
40
|
+
date: 2013-02-18 00:00:00.000000000 Z
|
41
41
|
dependencies:
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
43
|
name: thor
|
@@ -130,14 +130,17 @@ files:
|
|
130
130
|
- etc/irssi/solarized-universal.theme
|
131
131
|
- etc/irssi/triggers
|
132
132
|
- etc/mandlebrot.c
|
133
|
+
- etc/rails/builder.rb
|
133
134
|
- etc/rails/composer.yml
|
134
135
|
- etc/rails/ember_template.rb
|
135
136
|
- etc/rails/recipes/haml_views.rb
|
136
137
|
- etc/rails/recipes/html5.rb
|
137
138
|
- etc/rails/recipes/readme_markdown.rb
|
138
139
|
- etc/rails/template.rb
|
139
|
-
- etc/rails/template
|
140
|
-
- etc/rails/template
|
140
|
+
- etc/rails/template/Procfile
|
141
|
+
- etc/rails/template/bundle-config
|
142
|
+
- etc/rails/template/env
|
143
|
+
- etc/rails/template/travis.yml
|
141
144
|
- gem-public_cert.pem
|
142
145
|
- lib/dots.sh
|
143
146
|
- lib/dots/aliases.zsh
|
@@ -170,6 +173,7 @@ files:
|
|
170
173
|
- lib/ruby/dots/version.rb
|
171
174
|
- lib/ruby/templates/usage.txt.erb
|
172
175
|
- lib/tasks/.gitkeep
|
176
|
+
- lib/tasks/antigen.rake
|
173
177
|
- script/stock
|
174
178
|
- spec/integration/command_spec.rb
|
175
179
|
- spec/models/dot_file_spec.rb
|
metadata.gz.sig
CHANGED
Binary file
|
data/etc/rails/template/.env
DELETED