guard-gitpusher 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2012 hatone
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,28 @@
1
+ # Guard-GitPusher
2
+
3
+ Auto upload to Git repository.
4
+
5
+
6
+ ## Install
7
+
8
+ Make sure you have [guard](http://github.com/guard/guard) installed.
9
+
10
+
11
+ Install the gem with:
12
+
13
+ gem install guard-gitpusher
14
+
15
+ Add it to your Gemfile:
16
+
17
+ gem 'guard-gitpusher'
18
+
19
+ And then add a basic setup to your Guardfile:
20
+
21
+ guard init gitpusher
22
+
23
+ Please use this befor:
24
+
25
+ git init
26
+ git commit -m 'first commit'
27
+ git remote add origin [yourrepository].git
28
+ git push origin master
@@ -0,0 +1,3 @@
1
+ guard 'gitpusher' do
2
+ watch(/(.*)/) {|m| `git add -u;git add -a;git commit -m "auto upload by gitpusher";git push` }
3
+ end
@@ -0,0 +1,19 @@
1
+ require 'guard'
2
+ require 'guard/guard'
3
+
4
+ module Guard
5
+ class Gitpusher < Guard
6
+
7
+ VERSION = '0.1.1'
8
+
9
+ # Print the result of the command, if there is a result
10
+ # to be printed. (see README.md)
11
+ #
12
+ # @param res [Array] the result of the commands that have run
13
+ #
14
+ def run_on_change(res)
15
+ puts res[0] if res[0]
16
+ end
17
+
18
+ end
19
+ end
metadata ADDED
@@ -0,0 +1,83 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: guard-gitpusher
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - hatone
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-02-03 00:00:00.000000000Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: guard
16
+ requirement: &70208315205660 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: 0.2.0
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: *70208315205660
25
+ - !ruby/object:Gem::Dependency
26
+ name: bundler
27
+ requirement: &70208315204760 !ruby/object:Gem::Requirement
28
+ none: false
29
+ requirements:
30
+ - - ~>
31
+ - !ruby/object:Gem::Version
32
+ version: 1.0.2
33
+ type: :development
34
+ prerelease: false
35
+ version_requirements: *70208315204760
36
+ - !ruby/object:Gem::Dependency
37
+ name: rspec
38
+ requirement: &70208315204020 !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
41
+ - - ~>
42
+ - !ruby/object:Gem::Version
43
+ version: 2.0.0.rc
44
+ type: :development
45
+ prerelease: false
46
+ version_requirements: *70208315204020
47
+ description: Guard::Gitpusher automatically runs git commands when watched files are
48
+ modified.
49
+ email:
50
+ - b1006006@gmail.com
51
+ executables: []
52
+ extensions: []
53
+ extra_rdoc_files: []
54
+ files:
55
+ - lib/guard/gitpusher/templates/Guardfile
56
+ - lib/guard/gitpusher.rb
57
+ - LICENSE
58
+ - README.md
59
+ homepage: http://rubygems.org/gems/guard-gitpusher
60
+ licenses: []
61
+ post_install_message:
62
+ rdoc_options: []
63
+ require_paths:
64
+ - lib
65
+ required_ruby_version: !ruby/object:Gem::Requirement
66
+ none: false
67
+ requirements:
68
+ - - ! '>='
69
+ - !ruby/object:Gem::Version
70
+ version: '0'
71
+ required_rubygems_version: !ruby/object:Gem::Requirement
72
+ none: false
73
+ requirements:
74
+ - - ! '>='
75
+ - !ruby/object:Gem::Version
76
+ version: 1.3.6
77
+ requirements: []
78
+ rubyforge_project: guard-gitpusher
79
+ rubygems_version: 1.8.15
80
+ signing_key:
81
+ specification_version: 3
82
+ summary: Guard gem for git
83
+ test_files: []