zfben_rails_rake 0.0.6 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
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
@@ -7,7 +7,7 @@ module ZfbenRailsRake
7
7
  railtie_name :zfben_rails_rake
8
8
 
9
9
  rake_tasks do
10
- Dir[File.join(File.dirname(__FILE__), '..', '..', 'tasks', '*')].each{ |f| load f }
10
+ Dir[File.join(ZfbenRailsRakePath, 'tasks', '*')].each{ |f| load f }
11
11
  end
12
12
  end
13
13
  end
@@ -0,0 +1,7 @@
1
+ *.lock
2
+ *.log
3
+ *.swp
4
+ log/
5
+ tmp/
6
+ public/caches
7
+ public/assets
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
- if args.has_key? :comment
11
- comment = `git status`
12
- else
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
@@ -1,3 +1,3 @@
1
1
  module ZfbenRailsRake
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.8"
3
3
  end
@@ -1,3 +1,5 @@
1
+ ZfbenRailsRakePath = File.join File.dirname(__FILE__), 'zfben_rails_rake'
2
+
1
3
  module ZfbenRailsRake
2
- require File.join(File.dirname(__FILE__), 'zfben_rails_rake', 'railtie.rb') if defined?(Rails)
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.6
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-22 00:00:00 Z
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: []