github-pivotal-flow 0.1.0 → 0.2.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: 2d3dc57a3d6971ab0f6f3cc715b8ed92ec6e09a9
4
- data.tar.gz: d464f101f21dc6d6cfccc0903c73d0b7d8b2c9d5
3
+ metadata.gz: 96c3e7ec554233e7990b6a64f15f0d35503d5927
4
+ data.tar.gz: 94ed6f85456f4b63b47fe10318d22fa7786f00dc
5
5
  SHA512:
6
- metadata.gz: 7aa4127d145bc305ac40e50620057dc801aa0e547830939f5d7ab03470396a3b082d5e04cb034cf647a657329bfab08533549d6ce62455440d985e944c36a20d
7
- data.tar.gz: 873c99a594c2d6684b744b54ae1f803f05730904be0edd15b8f2ed0f18e1557c550c922d725972469a1ffb6117d0d9fe96fe91b15ce618e6e4935ee2b677efa0
6
+ metadata.gz: 121a7ad7681ec313e1670db59a7e8c5683f926e3241326f61a9854b6d0036fb4a89984e73f7246242a46bf4e6cc895acd2db2e93734483097e9d4754a3328894
7
+ data.tar.gz: 183f9dc438715c9b1cc8cc22079fc5c3f3db01f8014ee6f754bd245351067db92413866772e13a8de0bcc24583c99f985e4fe9ea62071b994f5b0fd759bcee99
@@ -253,6 +253,8 @@ module GithubPivotalFlow
253
253
  }
254
254
  if type
255
255
  criteria[:story_type] = type
256
+ else
257
+ criteria[:story_type] = ['feature', 'bug']
256
258
  end
257
259
 
258
260
  candidates = project.stories.all criteria
@@ -1,3 +1,3 @@
1
1
  module GithubPivotalFlow
2
- VERSION = '0.1.0'
2
+ VERSION = '0.2.0'
3
3
  end
@@ -105,13 +105,14 @@ module GithubPivotalFlow
105
105
  it 'prompts the user with the story type if no filter is specified' do
106
106
  expect(@stories).to receive(:all).with(
107
107
  :current_state => %w(rejected unstarted unscheduled),
108
- :limit => 5
108
+ :limit => 5,
109
+ :story_type => ['feature', 'bug']
109
110
  ).and_return([
110
- PivotalTracker::Story.new(:story_type => 'chore', :name => 'name-1'),
111
+ PivotalTracker::Story.new(:story_type => 'feature', :name => 'name-1'),
111
112
  PivotalTracker::Story.new(:story_type => 'bug', :name => 'name-2')
112
113
  ])
113
114
  expect(@menu).to receive(:prompt=)
114
- expect(@menu).to receive(:choice).with('CHORE name-1')
115
+ expect(@menu).to receive(:choice).with('FEATURE name-1')
115
116
  expect(@menu).to receive(:choice).with('BUG name-2')
116
117
  expect(Story).to receive(:choose) { |&arg| arg.call @menu }.and_return(@pivotal_story)
117
118
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: github-pivotal-flow
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Donald Piret
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-01-30 00:00:00.000000000 Z
11
+ date: 2014-02-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: highline