pivo_flow 0.4.5.1 → 0.4.5.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +2 -1
- data/lib/pivo_flow/core_extensions.rb +7 -0
- data/lib/pivo_flow/pivotal.rb +4 -7
- data/lib/pivo_flow/version.rb +1 -1
- data/lib/pivo_flow.rb +1 -0
- data/pivo_flow.gemspec +1 -1
- data/spec/spec_helper.rb +2 -2
- metadata +11 -5
data/README.md
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
# PivoFlow
|
2
2
|
|
3
|
+
[![Code Climate](https://codeclimate.com/github/lubieniebieski/pivo_flow.png)](https://codeclimate.com/github/lubieniebieski/pivo_flow)
|
3
4
|
[![Build Status](https://secure.travis-ci.org/lubieniebieski/pivo_flow.png?branch=master)](http://travis-ci.org/lubieniebieski/pivo_flow)
|
4
5
|
|
5
6
|
PivoFlow let's you choose the story from Pivotal Tracker you are currently working on. Intended for all the people, who doesn't like feature-branch approach or are "merdżuj - nie pier*ol"-theory enthusiasts.
|
@@ -15,7 +16,7 @@ Install it yourself as:
|
|
15
16
|
All the required information is gathered on demand, but it's a good idea to prepare:
|
16
17
|
|
17
18
|
* project's Pivotal Tracker ID
|
18
|
-
* your Pivotal Tracker API token
|
19
|
+
* your Pivotal Tracker API token (see here https://www.pivotaltracker.com/profile#api)
|
19
20
|
* when project's ID is strictly connected with one project, API-token is for all the projects, so the best solution would be to add it globally to git config:
|
20
21
|
|
21
22
|
`git config --global pivo-flow.pivotal-token YOUR_PIVOTAL_API_TOKEN`
|
data/lib/pivo_flow/pivotal.rb
CHANGED
@@ -58,7 +58,7 @@ module PivoFlow
|
|
58
58
|
menu.prompt = "story no.? "
|
59
59
|
menu.select_by = :index
|
60
60
|
stories.each do |story|
|
61
|
-
menu.choice(story_string(story)) { |answer| show_story(answer.match(/\[#(?<id>\d+)\]/)[:id])}
|
61
|
+
menu.choice(story_string(story).fix_encoding) { |answer| show_story(answer.match(/\[#(?<id>\d+)\]/)[:id])}
|
62
62
|
end
|
63
63
|
menu.choice("Show all") { show_stories(100) }
|
64
64
|
end
|
@@ -169,12 +169,9 @@ module PivoFlow
|
|
169
169
|
end
|
170
170
|
|
171
171
|
def story_type_icon story
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
when "chore" then "✙"
|
176
|
-
else "☺"
|
177
|
-
end
|
172
|
+
type = story.story_type
|
173
|
+
space_count = 7 - type.length
|
174
|
+
type + " " * space_count
|
178
175
|
end
|
179
176
|
|
180
177
|
def truncate string
|
data/lib/pivo_flow/version.rb
CHANGED
data/lib/pivo_flow.rb
CHANGED
data/pivo_flow.gemspec
CHANGED
@@ -21,7 +21,7 @@ Gem::Specification.new do |gem|
|
|
21
21
|
gem.add_runtime_dependency "colorize"
|
22
22
|
|
23
23
|
gem.add_development_dependency "rspec"
|
24
|
-
gem.add_development_dependency "
|
24
|
+
gem.add_development_dependency "coveralls"
|
25
25
|
gem.add_development_dependency "rake"
|
26
26
|
gem.add_development_dependency "vcr"
|
27
27
|
gem.add_development_dependency "fakeweb"
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pivo_flow
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.5.
|
4
|
+
version: 0.4.5.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2013-03-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: pivotal-tracker
|
@@ -92,7 +92,7 @@ dependencies:
|
|
92
92
|
- !ruby/object:Gem::Version
|
93
93
|
version: '0'
|
94
94
|
- !ruby/object:Gem::Dependency
|
95
|
-
name:
|
95
|
+
name: coveralls
|
96
96
|
requirement: !ruby/object:Gem::Requirement
|
97
97
|
none: false
|
98
98
|
requirements:
|
@@ -177,6 +177,7 @@ files:
|
|
177
177
|
- lib/pivo_flow.rb
|
178
178
|
- lib/pivo_flow/base.rb
|
179
179
|
- lib/pivo_flow/cli.rb
|
180
|
+
- lib/pivo_flow/core_extensions.rb
|
180
181
|
- lib/pivo_flow/errors.rb
|
181
182
|
- lib/pivo_flow/pivotal.rb
|
182
183
|
- lib/pivo_flow/version.rb
|
@@ -199,15 +200,21 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
199
200
|
- - ! '>='
|
200
201
|
- !ruby/object:Gem::Version
|
201
202
|
version: '0'
|
203
|
+
segments:
|
204
|
+
- 0
|
205
|
+
hash: -507342757961463089
|
202
206
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
203
207
|
none: false
|
204
208
|
requirements:
|
205
209
|
- - ! '>='
|
206
210
|
- !ruby/object:Gem::Version
|
207
211
|
version: '0'
|
212
|
+
segments:
|
213
|
+
- 0
|
214
|
+
hash: -507342757961463089
|
208
215
|
requirements: []
|
209
216
|
rubyforge_project:
|
210
|
-
rubygems_version: 1.8.
|
217
|
+
rubygems_version: 1.8.25
|
211
218
|
signing_key:
|
212
219
|
specification_version: 3
|
213
220
|
summary: Simple pivotal tracker integration for day to day work with git
|
@@ -218,4 +225,3 @@ test_files:
|
|
218
225
|
- spec/pivo_flow/vcr_cassettes/pivotal_fetch_project_not_found.yml
|
219
226
|
- spec/pivo_flow/vcr_cassettes/pivotal_fetch_project_unauthorized.yml
|
220
227
|
- spec/spec_helper.rb
|
221
|
-
has_rdoc:
|