git-story-workflow 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/git-story-workflow.gemspec +3 -3
- data/lib/git/story/app.rb +9 -2
- data/lib/git/story/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0c1dcd060414a45aacdcf14faefdab5a744de468
|
4
|
+
data.tar.gz: f951c300bcad12a52b92452e1e6aaa3b83a52486
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 44e4654b97cecbded6e1a7124cebdb333b0f1b66a0401d9fc90e3533369d5a312d49069b7d01c2ac2b8cc4c7fab6f8dd938bd871203d7095d6a8cafa79392e02
|
7
|
+
data.tar.gz: 7110a3b58f5f4ecb690d384688a9c774102b891e11d2bf8888df7c1b29b3d046340f33230165afd6856fd48aaae005d84ebf5a3fbe27946c328b0637e2b330dc
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.5
|
data/git-story-workflow.gemspec
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
|
-
# stub: git-story-workflow 0.0.
|
2
|
+
# stub: git-story-workflow 0.0.5 ruby lib
|
3
3
|
|
4
4
|
Gem::Specification.new do |s|
|
5
5
|
s.name = "git-story-workflow".freeze
|
6
|
-
s.version = "0.0.
|
6
|
+
s.version = "0.0.5"
|
7
7
|
|
8
8
|
s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
|
9
9
|
s.require_paths = ["lib".freeze]
|
10
10
|
s.authors = ["Florian Frank".freeze]
|
11
|
-
s.date = "2017-09-
|
11
|
+
s.date = "2017-09-11"
|
12
12
|
s.description = "Gem abstracting a git workflow\u2026".freeze
|
13
13
|
s.email = "flori@ping.de".freeze
|
14
14
|
s.executables = ["git-story".freeze]
|
data/lib/git/story/app.rb
CHANGED
@@ -67,8 +67,7 @@ class Git::Story::App
|
|
67
67
|
return
|
68
68
|
end
|
69
69
|
if name = fetch_story_name(@story_id)
|
70
|
-
|
71
|
-
[ 'story', name, @story_id ] * ?_
|
70
|
+
[ 'story', normalize_name(name), @story_id ] * ?_
|
72
71
|
else
|
73
72
|
@reason = "name for ##@story_id could not be fetched from tracker"
|
74
73
|
return
|
@@ -172,6 +171,14 @@ class Git::Story::App
|
|
172
171
|
|
173
172
|
private
|
174
173
|
|
174
|
+
def normalize_name(name)
|
175
|
+
name = name.downcase
|
176
|
+
name = name.tr('äöü', 'aou').tr(?ß, 'ss')
|
177
|
+
name = name.gsub(/[^a-z0-9-]+/, '-')
|
178
|
+
name = name.gsub(/(\A-*|[\-0-9]*\z)/, '')
|
179
|
+
name = name.gsub(/-+/, ?-)
|
180
|
+
end
|
181
|
+
|
175
182
|
def apply_pattern(pattern, stories)
|
176
183
|
pattern = pattern.gsub(?#, '')
|
177
184
|
stories.grep(/#{Regexp.quote(pattern)}/)
|
data/lib/git/story/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: git-story-workflow
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Florian Frank
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-09-
|
11
|
+
date: 2017-09-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gem_hadar
|