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 +4 -4
- data/.circleci/config.yml +35 -0
- data/lib/pivo_flow/pivotal.rb +5 -2
- data/lib/pivo_flow/version.rb +1 -1
- data/pivo_flow.gemspec +1 -2
- data/spec/spec_helper.rb +0 -3
- metadata +7 -20
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bc58c87f0cb7c6e04e4b648d255976a24e4e6dd3
|
4
|
+
data.tar.gz: a735b46f5c33d07117f56d9db687839a5697a115
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/pivo_flow/pivotal.rb
CHANGED
@@ -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
|
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
|
|
data/lib/pivo_flow/version.rb
CHANGED
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
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:
|
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:
|
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: '
|
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: '
|
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
|