pivo_flow 0.7 → 0.7.1

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: 3b0e99ca7d80278c1cee9005ae3c938aa10da3e8
4
- data.tar.gz: 1d37fb1d48975ec2f1374c6965c63e32cfe2b79b
3
+ metadata.gz: bc58c87f0cb7c6e04e4b648d255976a24e4e6dd3
4
+ data.tar.gz: a735b46f5c33d07117f56d9db687839a5697a115
5
5
  SHA512:
6
- metadata.gz: 0fcc5cd5b21649c2ef9ae3e9157861f6f0beacf675a585c6353d7c0567ec2ac075cb5554505a7cc56519e1419cd58236d4b3d9a63c23d210348ce8dd6762e0ff
7
- data.tar.gz: 28688a32e8c4af94d3ccf7d3dbc73c3782132b3a791d9816ab99e1bc9ae722f6075795650b78c0789fb3c72d04466eb7db4d9eabfe2c83b69d5e8a49d303e789
6
+ metadata.gz: e959b3fc862acefde0f48989975f3754267f9df8819235553bc4f82336b87e9e07b6f82b13235331b3a1d3906fb056ec3cffb6c7c5cd1cbda52a8c2307518e14
7
+ data.tar.gz: 8df4ef1b15af10b7023d540271a9a457d224de7d721bc4bebf8f889612b680246e54fbc29c7764f76d488ebcc82c8b6dd943e21a89852c0c25ff70bf5207a31d
@@ -0,0 +1,35 @@
1
+ version: 2
2
+
3
+ .build_template: &build_definition
4
+ steps:
5
+ - checkout
6
+ - run: bundle install
7
+ - run: bundle exec rspec --require spec_helper --format documentation --color spec
8
+ working_directory: ~/app
9
+
10
+ jobs:
11
+ build:
12
+ <<: *build_definition
13
+ docker:
14
+ - image: ruby:2.5
15
+ build_ruby2_4:
16
+ <<: *build_definition
17
+ docker:
18
+ - image: ruby:2.4
19
+ build_ruby2_3:
20
+ <<: *build_definition
21
+ docker:
22
+ - image: ruby:2.3
23
+ build_ruby2_2:
24
+ <<: *build_definition
25
+ docker:
26
+ - image: ruby:2.2
27
+
28
+ workflows:
29
+ version: 2
30
+ build_ruby_versions:
31
+ jobs:
32
+ - build
33
+ - build_ruby2_4
34
+ - build_ruby2_3
35
+ - build_ruby2_2
@@ -224,6 +224,8 @@ module PivoFlow
224
224
  end
225
225
  end
226
226
 
227
+ MAX_BRANCH_NAME_LENGTH = 50
228
+
227
229
  def create_branch story_id
228
230
  story = find_story(story_id)
229
231
 
@@ -232,10 +234,11 @@ module PivoFlow
232
234
  return
233
235
  end
234
236
 
235
- ticket_name = story.name
237
+ ticket_name = story
238
+ .name
236
239
  .tr('^A-Za-z0-9 ', '')
237
240
  .tr(' ', '-')
238
- .downcase
241
+ .downcase[0...MAX_BRANCH_NAME_LENGTH]
239
242
 
240
243
  branch_name = [ticket_name, story.id].join("-")
241
244
 
@@ -1,3 +1,3 @@
1
1
  module PivoFlow
2
- VERSION = '0.7'
2
+ VERSION = '0.7.1'
3
3
  end
data/pivo_flow.gemspec CHANGED
@@ -21,8 +21,7 @@ Gem::Specification.new do |gem|
21
21
  gem.add_runtime_dependency "colorize"
22
22
 
23
23
  gem.add_development_dependency "rspec"
24
- gem.add_development_dependency "coveralls"
25
24
  gem.add_development_dependency "rake"
26
- gem.add_development_dependency "vcr"
25
+ gem.add_development_dependency "vcr", "< 4"
27
26
  gem.add_development_dependency "fakeweb"
28
27
  end
data/spec/spec_helper.rb CHANGED
@@ -1,6 +1,3 @@
1
- require 'coveralls'
2
- Coveralls.wear!
3
-
4
1
  $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
5
2
 
6
3
  require 'pivo_flow'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pivo_flow
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.7'
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Nowak
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-10-06 00:00:00.000000000 Z
11
+ date: 2018-02-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pivotal-tracker
@@ -80,20 +80,6 @@ dependencies:
80
80
  - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
- - !ruby/object:Gem::Dependency
84
- name: coveralls
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - ">="
88
- - !ruby/object:Gem::Version
89
- version: '0'
90
- type: :development
91
- prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - ">="
95
- - !ruby/object:Gem::Version
96
- version: '0'
97
83
  - !ruby/object:Gem::Dependency
98
84
  name: rake
99
85
  requirement: !ruby/object:Gem::Requirement
@@ -112,16 +98,16 @@ dependencies:
112
98
  name: vcr
113
99
  requirement: !ruby/object:Gem::Requirement
114
100
  requirements:
115
- - - ">="
101
+ - - "<"
116
102
  - !ruby/object:Gem::Version
117
- version: '0'
103
+ version: '4'
118
104
  type: :development
119
105
  prerelease: false
120
106
  version_requirements: !ruby/object:Gem::Requirement
121
107
  requirements:
122
- - - ">="
108
+ - - "<"
123
109
  - !ruby/object:Gem::Version
124
- version: '0'
110
+ version: '4'
125
111
  - !ruby/object:Gem::Dependency
126
112
  name: fakeweb
127
113
  requirement: !ruby/object:Gem::Requirement
@@ -146,6 +132,7 @@ executables:
146
132
  extensions: []
147
133
  extra_rdoc_files: []
148
134
  files:
135
+ - ".circleci/config.yml"
149
136
  - ".gitignore"
150
137
  - ".rspec"
151
138
  - CHANGELOG.md