zfben_rails_rake 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +2 -0
- data/lib/zfben_rails_rake/railtie.rb +13 -0
- data/lib/zfben_rails_rake/version.rb +1 -1
- data/lib/zfben_rails_rake.rb +1 -1
- data/tasks/git.rb +21 -0
- data/tasks/helper.rb +4 -0
- data/zfben_rails_rake.gemspec +1 -0
- metadata +16 -3
data/Gemfile
CHANGED
@@ -0,0 +1,13 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
require 'zfben_rails_rake'
|
3
|
+
require 'rails'
|
4
|
+
require 'rainbow'
|
5
|
+
module ZfbenRailsRake
|
6
|
+
class Railtie < Rails::Railtie
|
7
|
+
railtie_name :zfben_rails_rake
|
8
|
+
|
9
|
+
rake_tasks do
|
10
|
+
Dir[File.join(File.dirname(__FILE__), '..', '..', 'tasks', '*')].each{ |f| load f }
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
data/lib/zfben_rails_rake.rb
CHANGED
data/tasks/git.rb
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
namespace 'git' do
|
2
|
+
desc 'git pull'
|
3
|
+
task :pull do
|
4
|
+
sys 'git pull'
|
5
|
+
end
|
6
|
+
|
7
|
+
desc 'git commit with your comment'
|
8
|
+
task :commit, :comment do |task, comment|
|
9
|
+
if comment == {}
|
10
|
+
comment = 'no comment'
|
11
|
+
else
|
12
|
+
comment = comment.comment
|
13
|
+
end
|
14
|
+
sys "git commit -m '#{comment}' -a"
|
15
|
+
end
|
16
|
+
|
17
|
+
desc 'git push with your comment'
|
18
|
+
task :push, :comment, :needs => :commit do |task, comment|
|
19
|
+
sys 'git push'
|
20
|
+
end
|
21
|
+
end
|
data/tasks/helper.rb
ADDED
data/zfben_rails_rake.gemspec
CHANGED
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.3
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Ben
|
@@ -11,8 +11,18 @@ bindir: bin
|
|
11
11
|
cert_chain: []
|
12
12
|
|
13
13
|
date: 2011-05-17 00:00:00 Z
|
14
|
-
dependencies:
|
15
|
-
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: rainbow
|
17
|
+
prerelease: false
|
18
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
19
|
+
none: false
|
20
|
+
requirements:
|
21
|
+
- - ">="
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: "0"
|
24
|
+
type: :runtime
|
25
|
+
version_requirements: *id001
|
16
26
|
description: ""
|
17
27
|
email:
|
18
28
|
- ben@zfben.com
|
@@ -27,7 +37,10 @@ files:
|
|
27
37
|
- Gemfile
|
28
38
|
- Rakefile
|
29
39
|
- lib/zfben_rails_rake.rb
|
40
|
+
- lib/zfben_rails_rake/railtie.rb
|
30
41
|
- lib/zfben_rails_rake/version.rb
|
42
|
+
- tasks/git.rb
|
43
|
+
- tasks/helper.rb
|
31
44
|
- zfben_rails_rake.gemspec
|
32
45
|
homepage: https://github.com/benz303/zfben_rails_rake
|
33
46
|
licenses: []
|