story_express 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +21 -3
- data/lib/story_express/story_finder.rb +1 -1
- data/lib/story_express/version.rb +1 -1
- data/spec/story_express/story_finder_spec.rb +2 -2
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fac73c6f4c81a9dbd812c6623b9061a292cbbe9a
|
4
|
+
data.tar.gz: 7a9b2ad45e0c834af72ec21548a4f157c3579c0b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0ed140bf6b989b2bcc32431222dfaa6d7280136e16d43674d8221ebf9fed281d9819f0e89d60553a2a708591eabb5b352438e8cb01ea993cb1e0f531526ce8be
|
7
|
+
data.tar.gz: 29beb91cd71b2b23b586e30bb298b2089775c12f0c3bef840fdf9af3ab32b5ad6f8b0e63b2777f2f4bc11b736fdef9680f5093cda81b20e7accd4c996c505172
|
data/README.md
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
# StoryExpress
|
2
2
|
|
3
|
-
|
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
|
-
|
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/
|
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(
|
9
|
+
GitReader.grep_log(story.id).length > 0
|
10
10
|
end
|
11
11
|
end
|
12
12
|
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('
|
13
|
-
allow(StoryExpress::GitReader).to receive(:grep_log).with('
|
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.
|
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-
|
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.
|
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:
|