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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 15f36f88e3404784bf73b58ff3196df98492590e
4
- data.tar.gz: 7d35fb8e3900d77065d6c99cdb0ea9900bac7e34
3
+ metadata.gz: 0c1dcd060414a45aacdcf14faefdab5a744de468
4
+ data.tar.gz: f951c300bcad12a52b92452e1e6aaa3b83a52486
5
5
  SHA512:
6
- metadata.gz: 856fe1521e93b04bcdf9e204f621e42718f27a25e21d788ec552cef92f302d4e8547c803f41b3eaf3a34b8e185f32df7ea30c27368ebe091353ce6b01ce831be
7
- data.tar.gz: 35006e5d35678f9984fd0ec544391b42e30c53faafc2a5bee95e62b44d4cccc0b3459889a32f3dceb3e0c86d88251cc71f65346ef68fbd2259cd08423865f7c5
6
+ metadata.gz: 44e4654b97cecbded6e1a7124cebdb333b0f1b66a0401d9fc90e3533369d5a312d49069b7d01c2ac2b8cc4c7fab6f8dd938bd871203d7095d6a8cafa79392e02
7
+ data.tar.gz: 7110a3b58f5f4ecb690d384688a9c774102b891e11d2bf8888df7c1b29b3d046340f33230165afd6856fd48aaae005d84ebf5a3fbe27946c328b0637e2b330dc
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.4
1
+ 0.0.5
@@ -1,14 +1,14 @@
1
1
  # -*- encoding: utf-8 -*-
2
- # stub: git-story-workflow 0.0.4 ruby lib
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.4"
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-04"
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
- name = name.downcase.gsub(/[^a-z0-9-]+/, '-').gsub(/(\A-*|[\-0-9]*\z)/, '')
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)}/)
@@ -1,6 +1,6 @@
1
1
  module Git::Story
2
2
  # Git::Story version
3
- VERSION = '0.0.4'
3
+ VERSION = '0.0.5'
4
4
  VERSION_ARRAY = VERSION.split('.').map(&:to_i) # :nodoc:
5
5
  VERSION_MAJOR = VERSION_ARRAY[0] # :nodoc:
6
6
  VERSION_MINOR = VERSION_ARRAY[1] # :nodoc:
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
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-04 00:00:00.000000000 Z
11
+ date: 2017-09-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gem_hadar