pigi 0.1.1 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -12
- data/lib/pigi.rb +4 -4
- data/lib/pigi/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7d16a4717277767b92c2365f32e2c35e1eab7139
|
4
|
+
data.tar.gz: 083601deec0300d98b75fb38a480dc95375e8c3d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 852e303d4cf3915c34f8443193a13a73f3f96a226cc76f8da4f032dd1e37d24a53cc5baaadb1ac7a1407e0f29337eb84689328ee14a62a3900109fe2567f8ae3
|
7
|
+
data.tar.gz: bf0e71c603e59aeda69cd2a37657ae8637effd9d389f6db2e9e6a129a61244541329e1fabf3da3555c3d1d5a20b6a96cae94f2f73e4a09579361695f4a8eb5b1
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Pigi
|
2
2
|
|
3
|
-
Pigi is a command line tool that automatically adds your Pivotal Tracker story ID into your commit message. The purpose of this tool is to speed up development process of developers using [
|
3
|
+
Pigi is a command line tool that automatically adds your Pivotal Tracker story ID into your commit message. The purpose of this tool is to speed up development process of developers using [Github’s service hook for Pivotal Tracker](http://www.pivotaltracker.com/community/tracker-blog/guide-githubs-service-hook-tracker).
|
4
4
|
|
5
5
|
## Installation
|
6
6
|
|
@@ -18,19 +18,10 @@ Now every time you want to commit changes in your git repository you do it by ty
|
|
18
18
|
|
19
19
|
$ pigi m "add awesome feature"
|
20
20
|
|
21
|
-
The result of this command is identical
|
21
|
+
The result of this command is identical to this command:
|
22
22
|
|
23
23
|
$ git commit -m "add awesome feature [#12345678]"
|
24
24
|
|
25
25
|
If you want to work on another story just simply set pigi to your current story ID that you are working on:
|
26
26
|
|
27
|
-
$ pigi s 87654321
|
28
|
-
|
29
|
-
|
30
|
-
## Contributing
|
31
|
-
|
32
|
-
1. Fork it ( https://github.com/aleksandergrzyb/PivotalGithubHelper/fork )
|
33
|
-
2. Create your feature branch (`git checkout -b my-new-feature`)
|
34
|
-
3. Commit your changes (`git commit -am 'Add some feature'`)
|
35
|
-
4. Push to the branch (`git push origin my-new-feature`)
|
36
|
-
5. Create a new Pull Request
|
27
|
+
$ pigi s 87654321
|
data/lib/pigi.rb
CHANGED
@@ -14,7 +14,7 @@ module Pigi
|
|
14
14
|
if File::exists?(@@filePath)
|
15
15
|
arr = IO.readlines(@@filePath)
|
16
16
|
arr[0]
|
17
|
-
else
|
17
|
+
else
|
18
18
|
"ID wasn't set. Set your ID once again using s command."
|
19
19
|
end
|
20
20
|
end
|
@@ -23,9 +23,9 @@ module Pigi
|
|
23
23
|
class SetID < Thor
|
24
24
|
desc "s <id>", "Set <id> of your Pivotal Tracker story."
|
25
25
|
def s(id)
|
26
|
-
if !/\A\d
|
26
|
+
if !/\A\d*\z/.match(id)
|
27
27
|
puts "Invalid story ID format. Set your ID once again using s command."
|
28
|
-
else
|
28
|
+
else
|
29
29
|
puts "Set project ID: #{id}"
|
30
30
|
IDFileManager.saveIDToFile(id)
|
31
31
|
end
|
@@ -34,7 +34,7 @@ module Pigi
|
|
34
34
|
desc "m <message>", "Execute a command in format 'git commit -m \"<message> [#<id>]\"'."
|
35
35
|
def m(message)
|
36
36
|
pivotalTrackerID = IDFileManager.readID()
|
37
|
-
if !/\A\d
|
37
|
+
if !/\A\d*\z/.match(pivotalTrackerID)
|
38
38
|
puts "Invalid story ID format. Set your ID once again using s command."
|
39
39
|
else
|
40
40
|
command = "git commit -m \"" + message + " [##{pivotalTrackerID}]\""
|
data/lib/pigi/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pigi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aleksander Grzyb
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-08-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|