pigi 0.1.1 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +3 -12
  3. data/lib/pigi.rb +4 -4
  4. data/lib/pigi/version.rb +1 -1
  5. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0e87066990bc804a9ba87b0bc62f725689cfd3c6
4
- data.tar.gz: 51337554ac342e425227697910ca59d4683613ac
3
+ metadata.gz: 7d16a4717277767b92c2365f32e2c35e1eab7139
4
+ data.tar.gz: 083601deec0300d98b75fb38a480dc95375e8c3d
5
5
  SHA512:
6
- metadata.gz: ff58d4c0826f07b5b3ad4ca25100d023bc820f8037b76cbf22dbd9117bbb35604fa9e4d59d9d47a825f64a002e1e2f81174170810583738a9f3dc19a8fe3f8ce
7
- data.tar.gz: d915fb6d687f3fccb8e5a86f23d221622731009698615e23ba6ca3abd15493614c52db30b88c7988dbc95b604411bc7d76200bcf3b6512c0e64647fce4014bec
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 [integration](http://pivotallabs.com/level-up-your-development-workflow-with-github-pivotal-tracker/) between Github and Pivotal Tracker.
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 as this command:
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
@@ -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{8}\z/.match(id)
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{8}\z/.match(pivotalTrackerID)
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}]\""
@@ -1,3 +1,3 @@
1
1
  module Pigi
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.3"
3
3
  end
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.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-07-05 00:00:00.000000000 Z
11
+ date: 2015-08-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler