story_express 0.0.2 → 0.0.3

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: bc2569d3ea2a62a5ff6dc2c15f0c69fb70e4f075
4
- data.tar.gz: f217930372afed358b77581f69b86ace664d9274
3
+ metadata.gz: fac73c6f4c81a9dbd812c6623b9061a292cbbe9a
4
+ data.tar.gz: 7a9b2ad45e0c834af72ec21548a4f157c3579c0b
5
5
  SHA512:
6
- metadata.gz: 5f984e044bd51c6203ee19318a0e9fec54c173264cef51a58401586c13757802cf1dd66b7f929ef43d2eaedca820272d942cdd136b970c6ef0436a65a00781cd
7
- data.tar.gz: 6b07b2539c96286461dfe4166bf7bb13bab7161d43f5a7832dcb4011409cc65c2dda13f9d4fef4d1baaf57d51b624e069e39c69695ff1a352362c8dd438eeae9
6
+ metadata.gz: 0ed140bf6b989b2bcc32431222dfaa6d7280136e16d43674d8221ebf9fed281d9819f0e89d60553a2a708591eabb5b352438e8cb01ea993cb1e0f531526ce8be
7
+ data.tar.gz: 29beb91cd71b2b23b586e30bb298b2089775c12f0c3bef840fdf9af3ab32b5ad6f8b0e63b2777f2f4bc11b736fdef9680f5093cda81b20e7accd4c996c505172
data/README.md CHANGED
@@ -1,6 +1,7 @@
1
1
  # StoryExpress
2
2
 
3
- TODO: Write a gem description
3
+ Story Express delivers all the stories you've marked as finished.
4
+ We recommend to use it at the end of your CI build once the stories have been deployed to an environment where your PM can accept.
4
5
 
5
6
  ## Installation
6
7
 
@@ -20,11 +21,28 @@ Or install it yourself as:
20
21
 
21
22
  ## Usage
22
23
 
23
- TODO: Write usage instructions here
24
+ **Currently only supports tracker projects.**
25
+
26
+ Story Express delivers stories that are found by grepping git logs for a story id.
27
+ So, to work with story express, include the story id in your commit message(s) for the commit(s) that finish a given story.
28
+
29
+ You need your tracker project id and a tracker API key.
30
+ Set the ```TRACKER_PROJECT_ID``` and ```TRACKER_TOKEN``` to your project id and API key respectively.
31
+ Then, running ```story_express``` will deliver all your finished stories.
32
+
33
+ ```
34
+ TRACKER_PROJECT_ID=123456789 TRACKER_TOKEN=0123456789abcdef story_express
35
+ ```
36
+
37
+ ## TODO
38
+
39
+ * Support other agile tracking systems (JIRA primarily)
40
+ * Accept inputs as command-line arguments
41
+ * Allow for customization of matching commit messages
24
42
 
25
43
  ## Contributing
26
44
 
27
- 1. Fork it ( https://github.com/[my-github-username]/story_express/fork )
45
+ 1. Fork it ( https://github.com/shelbyd/story_express/fork )
28
46
  2. Create your feature branch (`git checkout -b my-new-feature`)
29
47
  3. Commit your changes (`git commit -am 'Add some feature'`)
30
48
  4. Push to the branch (`git push origin my-new-feature`)
@@ -6,7 +6,7 @@ module StoryExpress
6
6
  project = PivotalTracker::Project.find(ENV['TRACKER_PROJECT_ID'])
7
7
  stories = project.stories.all(state: 'finished', story_type: ['bug', 'feature'])
8
8
  stories.select do |story|
9
- GitReader.grep_log("finishes ##{story.id}").length > 0
9
+ GitReader.grep_log(story.id).length > 0
10
10
  end
11
11
  end
12
12
  end
@@ -1,3 +1,3 @@
1
1
  module StoryExpress
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
@@ -9,8 +9,8 @@ describe StoryExpress::StoryFinder do
9
9
  it 'returns finished stories that have been marked finished' do
10
10
  allow(PivotalTracker::Project).to receive(:find).with(ENV['TRACKER_PROJECT_ID']).and_return(project)
11
11
  allow(project.stories).to receive(:all).with(state: 'finished', story_type: ['bug', 'feature']).and_return([finished_marked_story, finished_unmarked_story])
12
- allow(StoryExpress::GitReader).to receive(:grep_log).with('finishes #finished_marked_story').and_return('[finishes #finished_marked_story]')
13
- allow(StoryExpress::GitReader).to receive(:grep_log).with('finishes #finished_unmarked_story').and_return('')
12
+ allow(StoryExpress::GitReader).to receive(:grep_log).with('finished_marked_story').and_return('[finishes #finished_marked_story]')
13
+ allow(StoryExpress::GitReader).to receive(:grep_log).with('finished_unmarked_story').and_return('')
14
14
 
15
15
  expect(StoryExpress::StoryFinder.deliverables).to eq [finished_marked_story]
16
16
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: story_express
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shelby Doolittle
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-03 00:00:00.000000000 Z
11
+ date: 2015-02-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pivotal-tracker
@@ -114,7 +114,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
114
114
  version: '0'
115
115
  requirements: []
116
116
  rubyforge_project:
117
- rubygems_version: 2.4.3
117
+ rubygems_version: 2.4.2
118
118
  signing_key:
119
119
  specification_version: 4
120
120
  summary: Story Express delivers your stories to your PM.
@@ -123,3 +123,4 @@ test_files:
123
123
  - spec/story_express/rider_spec.rb
124
124
  - spec/story_express/story_finder_spec.rb
125
125
  - spec/story_express_spec.rb
126
+ has_rdoc: