githole 1.0.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d40bd64feb01ac2601dcf3442887f3e4f67f4ed7
4
- data.tar.gz: d7ad9808c2201625cf138bd5a4037068b80d848a
3
+ metadata.gz: 311e635db99d1c42005e159fda8dae4a1ea4bd43
4
+ data.tar.gz: fc8f9fa3de6b94d58e0e5cc59711c85ad0be6709
5
5
  SHA512:
6
- metadata.gz: f5ae0055a3d4405ae43a54e332b1edd8bdaa454ca0d1183408bc599c83095e4d03923853109bf7cb048223c299c9606a6e4d6abd3580cd4df0b04c2d5c3ac5ea
7
- data.tar.gz: d30b5e7202523c448096f4769956c7acd57d06236dff503031b3eb33f5cf2fe20a87d9a8f20bd59adec3a999178dd6469a084f45b1228ac82b07067aa95f74ac
6
+ metadata.gz: 5a2fb8427c2510823cc854ec7a6eab68149b1b86318c76be0be1c631cc7470c11775a0c393e145b0b4bf3c5ef5c6c50e3f8ed2fde06a6c949fe7a16f3b2f61ed
7
+ data.tar.gz: 2284e29a9998746d73a91de6d8b93e94a718540336ebcb11be2e2e57b7cd9ef0b9a87b3483bef2e7476845d142f0869e786ce44122a38cae089c0765f30d51f7
data/README.md CHANGED
@@ -170,6 +170,27 @@ $ git branch -D v1.4.1
170
170
  $ git branch -D local-v1.4.1
171
171
  ```
172
172
 
173
+ ### Tag
174
+
175
+ Tag will pull and tag the `master` branch of your current repo, then *push all
176
+ tags* to origin.
177
+
178
+ This is a separate action because it has to happen **after the merge/pull
179
+ request is accepted.**
180
+
181
+ ```text
182
+ $ githole tag 1.4.1
183
+ ```
184
+
185
+ The tag action runs these commands:
186
+
187
+ ```text
188
+ $ git checkout master
189
+ $ git pull origin master
190
+ $ git tag -a v1.4.1 -m "v1.4.1"
191
+ $ git push origin --tags
192
+ ```
193
+
173
194
  Contributing
174
195
  ----------------
175
196
 
@@ -178,3 +199,8 @@ Contributing
178
199
  3. Commit your changes (`git commit -am 'Add some feature'`)
179
200
  4. Push to the branch (`git push origin my-new-feature`)
180
201
  5. Create a new Pull Request
202
+
203
+ Changelog
204
+ ----------------
205
+
206
+ * **v1.1.0**: Add a `tag` action that pulls and tags master, then pushes tag
data/lib/githole/git.rb CHANGED
@@ -6,7 +6,7 @@ module Githole
6
6
  end
7
7
 
8
8
  def respond_to?(cmd)
9
- ['add','update','push','remove'].include?(cmd)
9
+ ['add','update','push','remove', 'tag'].include?(cmd)
10
10
  end
11
11
 
12
12
  def add
@@ -43,6 +43,13 @@ module Githole
43
43
  delete local
44
44
  end
45
45
 
46
+ def tag
47
+ checkout master
48
+ pull master
49
+ git "tag -a v#{@version} -m v#{@version}"
50
+ git_push "--tags"
51
+ end
52
+
46
53
  private
47
54
 
48
55
  def git(cmd)
@@ -1,3 +1,3 @@
1
1
  module Githole
2
- VERSION = "1.0.0"
2
+ VERSION = "1.1.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: githole
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sean C Davis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-22 00:00:00.000000000 Z
11
+ date: 2015-02-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler