zfben_rails_rake 0.0.6 → 0.0.8
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.
- data/README.rdoc +1 -0
- data/lib/zfben_rails_rake/railtie.rb +1 -1
- data/lib/zfben_rails_rake/static/.gitignore +7 -0
- data/{tasks → lib/zfben_rails_rake/tasks}/clear.rb +0 -0
- data/{tasks → lib/zfben_rails_rake/tasks}/git.rb +8 -6
- data/{tasks → lib/zfben_rails_rake/tasks}/helper.rb +0 -0
- data/{tasks → lib/zfben_rails_rake/tasks}/log.rb +0 -0
- data/{tasks → lib/zfben_rails_rake/tasks}/unicorn.rb +0 -0
- data/lib/zfben_rails_rake/version.rb +1 -1
- data/lib/zfben_rails_rake.rb +3 -1
- metadata +8 -7
data/README.rdoc
CHANGED
@@ -10,6 +10,7 @@ This is plugin to add some useful tasks to rails.
|
|
10
10
|
rake git:commit[comment] # git commit with your comment
|
11
11
|
rake git:pull # git pull
|
12
12
|
rake git:push[comment] # git push with your comment
|
13
|
+
rake git:copy # copy .gitignore to rails root path
|
13
14
|
|
14
15
|
rake unicorn:restart[env,config] # restart server
|
15
16
|
rake unicorn:start[env,config] # start server
|
File without changes
|
@@ -7,16 +7,18 @@ namespace 'git' do
|
|
7
7
|
desc 'git commit with your comment'
|
8
8
|
task :commit, [:comment] do |task, args|
|
9
9
|
args = args.to_hash
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
comment = args[:comment]
|
14
|
-
end
|
15
|
-
sys "git add .;git commit -m '#{comment}' -a"
|
10
|
+
sys "git add ."
|
11
|
+
comment = args.has_key?(:comment) ? args[:comment] : `git status`
|
12
|
+
sys "git commit -m '#{comment}' -a"
|
16
13
|
end
|
17
14
|
|
18
15
|
desc 'git push with your comment'
|
19
16
|
task :push, [:comment] => [:commit] do |task, comment|
|
20
17
|
sys 'git push'
|
21
18
|
end
|
19
|
+
|
20
|
+
desc 'copy .gitignore to rails root path'
|
21
|
+
task :copy do
|
22
|
+
sys 'cp ' << File.join(ZfbenRailsRakePath, 'static', '.gitignore') << ' ' << Rails.root.to_s
|
23
|
+
end
|
22
24
|
end
|
File without changes
|
File without changes
|
File without changes
|
data/lib/zfben_rails_rake.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
ZfbenRailsRakePath = File.join File.dirname(__FILE__), 'zfben_rails_rake'
|
2
|
+
|
1
3
|
module ZfbenRailsRake
|
2
|
-
require File.join(
|
4
|
+
require File.join(ZfbenRailsRakePath, 'railtie.rb') if defined?(Rails)
|
3
5
|
end
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: zfben_rails_rake
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.0.
|
5
|
+
version: 0.0.8
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Ben
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-05-
|
13
|
+
date: 2011-05-26 00:00:00 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rake
|
@@ -83,12 +83,13 @@ files:
|
|
83
83
|
- Rakefile
|
84
84
|
- lib/zfben_rails_rake.rb
|
85
85
|
- lib/zfben_rails_rake/railtie.rb
|
86
|
+
- lib/zfben_rails_rake/static/.gitignore
|
87
|
+
- lib/zfben_rails_rake/tasks/clear.rb
|
88
|
+
- lib/zfben_rails_rake/tasks/git.rb
|
89
|
+
- lib/zfben_rails_rake/tasks/helper.rb
|
90
|
+
- lib/zfben_rails_rake/tasks/log.rb
|
91
|
+
- lib/zfben_rails_rake/tasks/unicorn.rb
|
86
92
|
- lib/zfben_rails_rake/version.rb
|
87
|
-
- tasks/clear.rb
|
88
|
-
- tasks/git.rb
|
89
|
-
- tasks/helper.rb
|
90
|
-
- tasks/log.rb
|
91
|
-
- tasks/unicorn.rb
|
92
93
|
- zfben_rails_rake.gemspec
|
93
94
|
homepage: https://github.com/benz303/zfben_rails_rake
|
94
95
|
licenses: []
|