pivotal-integration 1.6.0.1

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.
Files changed (43) hide show
  1. checksums.yaml +15 -0
  2. data/LICENSE +202 -0
  3. data/NOTICE +2 -0
  4. data/README.md +331 -0
  5. data/bin/pivotal +81 -0
  6. data/lib/pivotal-integration/command/assign.rb +50 -0
  7. data/lib/pivotal-integration/command/base.rb +63 -0
  8. data/lib/pivotal-integration/command/command.rb +20 -0
  9. data/lib/pivotal-integration/command/comment.rb +31 -0
  10. data/lib/pivotal-integration/command/configuration.rb +129 -0
  11. data/lib/pivotal-integration/command/estimate.rb +53 -0
  12. data/lib/pivotal-integration/command/finish.rb +50 -0
  13. data/lib/pivotal-integration/command/info.rb +30 -0
  14. data/lib/pivotal-integration/command/label.rb +33 -0
  15. data/lib/pivotal-integration/command/mark.rb +44 -0
  16. data/lib/pivotal-integration/command/new.rb +52 -0
  17. data/lib/pivotal-integration/command/open.rb +31 -0
  18. data/lib/pivotal-integration/command/prepare-commit-msg.sh +26 -0
  19. data/lib/pivotal-integration/command/release.rb +54 -0
  20. data/lib/pivotal-integration/command/start.rb +82 -0
  21. data/lib/pivotal-integration/command/switch.rb +44 -0
  22. data/lib/pivotal-integration/util/git.rb +280 -0
  23. data/lib/pivotal-integration/util/label.rb +72 -0
  24. data/lib/pivotal-integration/util/shell.rb +36 -0
  25. data/lib/pivotal-integration/util/story.rb +170 -0
  26. data/lib/pivotal-integration/util/util.rb +20 -0
  27. data/lib/pivotal-integration/version-update/gradle.rb +64 -0
  28. data/lib/pivotal-integration/version-update/version_update.rb +20 -0
  29. data/lib/pivotal_integration.rb +18 -0
  30. data/spec/git-pivotal-tracker-integration/command/assign_spec.rb +55 -0
  31. data/spec/git-pivotal-tracker-integration/command/base_spec.rb +38 -0
  32. data/spec/git-pivotal-tracker-integration/command/configuration_spec.rb +119 -0
  33. data/spec/git-pivotal-tracker-integration/command/finish_spec.rb +45 -0
  34. data/spec/git-pivotal-tracker-integration/command/label_spec.rb +44 -0
  35. data/spec/git-pivotal-tracker-integration/command/mark_spec.rb +49 -0
  36. data/spec/git-pivotal-tracker-integration/command/release_spec.rb +57 -0
  37. data/spec/git-pivotal-tracker-integration/command/start_spec.rb +55 -0
  38. data/spec/git-pivotal-tracker-integration/util/git_spec.rb +235 -0
  39. data/spec/git-pivotal-tracker-integration/util/label_spec.rb +193 -0
  40. data/spec/git-pivotal-tracker-integration/util/shell_spec.rb +52 -0
  41. data/spec/git-pivotal-tracker-integration/util/story_spec.rb +158 -0
  42. data/spec/git-pivotal-tracker-integration/version-update/gradle_spec.rb +74 -0
  43. metadata +241 -0
@@ -0,0 +1,74 @@
1
+ # Git Pivotal Tracker Integration
2
+ # Copyright (c) 2013 the original author or authors.
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+
16
+ require 'spec_helper'
17
+ require 'git-pivotal-tracker-integration/version-update/gradle'
18
+
19
+ describe PivotalIntegration::VersionUpdate::Gradle do
20
+
21
+ it 'should not support if there is no gradle.properties file' do
22
+ Dir.mktmpdir do |root|
23
+ updater = PivotalIntegration::VersionUpdate::Gradle.new(root)
24
+
25
+ expect(updater.supports?).to be_false
26
+ end
27
+ end
28
+
29
+ it 'should not support if there is no version in the gradle.properties file' do
30
+ Dir.mktmpdir do |root|
31
+ gradle_properties = File.expand_path 'gradle.properties', root
32
+ File.open(gradle_properties, 'w') { |file| file.write 'foo=bar' }
33
+
34
+ updater = PivotalIntegration::VersionUpdate::Gradle.new(root)
35
+
36
+ expect(updater.supports?).to be_false
37
+ end
38
+ end
39
+
40
+ it 'should support if there is a version in the gradle.properties file' do
41
+ Dir.mktmpdir do |root|
42
+ gradle_properties = File.expand_path 'gradle.properties', root
43
+ File.open(gradle_properties, 'w') { |file| file.write 'version=1' }
44
+
45
+ updater = PivotalIntegration::VersionUpdate::Gradle.new(root)
46
+
47
+ expect(updater.supports?).to be_true
48
+ end
49
+ end
50
+
51
+ it 'returns the current version' do
52
+ Dir.mktmpdir do |root|
53
+ gradle_properties = File.expand_path 'gradle.properties', root
54
+ File.open(gradle_properties, 'w') { |file| file.write 'version=1' }
55
+
56
+ updater = PivotalIntegration::VersionUpdate::Gradle.new(root)
57
+
58
+ expect(updater.current_version).to eq('1')
59
+ end
60
+ end
61
+
62
+ it 'returns the current version' do
63
+ Dir.mktmpdir do |root|
64
+ gradle_properties = File.expand_path 'gradle.properties', root
65
+ File.open(gradle_properties, 'w') { |file| file.write 'version=1' }
66
+
67
+ updater = PivotalIntegration::VersionUpdate::Gradle.new(root)
68
+
69
+ updater.update_version '2'
70
+
71
+ File.open(gradle_properties, 'r') { |file| expect(file.read).to eq('version=2') }
72
+ end
73
+ end
74
+ end
metadata ADDED
@@ -0,0 +1,241 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: pivotal-integration
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.6.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Ben Hale
8
+ - Daniel Vandersluis
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2014-03-21 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ type: :runtime
16
+ prerelease: false
17
+ name: active_support
18
+ requirement: !ruby/object:Gem::Requirement
19
+ requirements:
20
+ - - ! '>='
21
+ - !ruby/object:Gem::Version
22
+ version: '0'
23
+ version_requirements: !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - ! '>='
26
+ - !ruby/object:Gem::Version
27
+ version: '0'
28
+ - !ruby/object:Gem::Dependency
29
+ type: :runtime
30
+ prerelease: false
31
+ name: highline
32
+ requirement: !ruby/object:Gem::Requirement
33
+ requirements:
34
+ - - ~>
35
+ - !ruby/object:Gem::Version
36
+ version: '1.6'
37
+ version_requirements: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - ~>
40
+ - !ruby/object:Gem::Version
41
+ version: '1.6'
42
+ - !ruby/object:Gem::Dependency
43
+ type: :runtime
44
+ prerelease: false
45
+ name: launchy
46
+ requirement: !ruby/object:Gem::Requirement
47
+ requirements:
48
+ - - ! '>='
49
+ - !ruby/object:Gem::Version
50
+ version: '0'
51
+ version_requirements: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - ! '>='
54
+ - !ruby/object:Gem::Version
55
+ version: '0'
56
+ - !ruby/object:Gem::Dependency
57
+ type: :runtime
58
+ prerelease: false
59
+ name: pivotal-tracker
60
+ requirement: !ruby/object:Gem::Requirement
61
+ requirements:
62
+ - - ~>
63
+ - !ruby/object:Gem::Version
64
+ version: '0.5'
65
+ version_requirements: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - ~>
68
+ - !ruby/object:Gem::Version
69
+ version: '0.5'
70
+ - !ruby/object:Gem::Dependency
71
+ type: :development
72
+ prerelease: false
73
+ name: bundler
74
+ requirement: !ruby/object:Gem::Requirement
75
+ requirements:
76
+ - - ~>
77
+ - !ruby/object:Gem::Version
78
+ version: '1.3'
79
+ version_requirements: !ruby/object:Gem::Requirement
80
+ requirements:
81
+ - - ~>
82
+ - !ruby/object:Gem::Version
83
+ version: '1.3'
84
+ - !ruby/object:Gem::Dependency
85
+ type: :development
86
+ prerelease: false
87
+ name: rake
88
+ requirement: !ruby/object:Gem::Requirement
89
+ requirements:
90
+ - - ~>
91
+ - !ruby/object:Gem::Version
92
+ version: '10.0'
93
+ version_requirements: !ruby/object:Gem::Requirement
94
+ requirements:
95
+ - - ~>
96
+ - !ruby/object:Gem::Version
97
+ version: '10.0'
98
+ - !ruby/object:Gem::Dependency
99
+ type: :development
100
+ prerelease: false
101
+ name: redcarpet
102
+ requirement: !ruby/object:Gem::Requirement
103
+ requirements:
104
+ - - ~>
105
+ - !ruby/object:Gem::Version
106
+ version: '2.2'
107
+ version_requirements: !ruby/object:Gem::Requirement
108
+ requirements:
109
+ - - ~>
110
+ - !ruby/object:Gem::Version
111
+ version: '2.2'
112
+ - !ruby/object:Gem::Dependency
113
+ type: :development
114
+ prerelease: false
115
+ name: rspec
116
+ requirement: !ruby/object:Gem::Requirement
117
+ requirements:
118
+ - - ~>
119
+ - !ruby/object:Gem::Version
120
+ version: '2.13'
121
+ version_requirements: !ruby/object:Gem::Requirement
122
+ requirements:
123
+ - - ~>
124
+ - !ruby/object:Gem::Version
125
+ version: '2.13'
126
+ - !ruby/object:Gem::Dependency
127
+ type: :development
128
+ prerelease: false
129
+ name: simplecov
130
+ requirement: !ruby/object:Gem::Requirement
131
+ requirements:
132
+ - - ~>
133
+ - !ruby/object:Gem::Version
134
+ version: '0.7'
135
+ version_requirements: !ruby/object:Gem::Requirement
136
+ requirements:
137
+ - - ~>
138
+ - !ruby/object:Gem::Version
139
+ version: '0.7'
140
+ - !ruby/object:Gem::Dependency
141
+ type: :development
142
+ prerelease: false
143
+ name: yard
144
+ requirement: !ruby/object:Gem::Requirement
145
+ requirements:
146
+ - - ~>
147
+ - !ruby/object:Gem::Version
148
+ version: '0.8'
149
+ version_requirements: !ruby/object:Gem::Requirement
150
+ requirements:
151
+ - - ~>
152
+ - !ruby/object:Gem::Version
153
+ version: '0.8'
154
+ description: Provides a set of additional Git commands to help developers when working
155
+ with Pivotal Tracker
156
+ email: nebhale@nebhale.com
157
+ executables:
158
+ - pivotal
159
+ extensions: []
160
+ extra_rdoc_files: []
161
+ files:
162
+ - LICENSE
163
+ - NOTICE
164
+ - README.md
165
+ - lib/pivotal-integration/command/assign.rb
166
+ - lib/pivotal-integration/command/base.rb
167
+ - lib/pivotal-integration/command/command.rb
168
+ - lib/pivotal-integration/command/comment.rb
169
+ - lib/pivotal-integration/command/configuration.rb
170
+ - lib/pivotal-integration/command/estimate.rb
171
+ - lib/pivotal-integration/command/finish.rb
172
+ - lib/pivotal-integration/command/info.rb
173
+ - lib/pivotal-integration/command/label.rb
174
+ - lib/pivotal-integration/command/mark.rb
175
+ - lib/pivotal-integration/command/new.rb
176
+ - lib/pivotal-integration/command/open.rb
177
+ - lib/pivotal-integration/command/release.rb
178
+ - lib/pivotal-integration/command/start.rb
179
+ - lib/pivotal-integration/command/switch.rb
180
+ - lib/pivotal-integration/util/git.rb
181
+ - lib/pivotal-integration/util/label.rb
182
+ - lib/pivotal-integration/util/shell.rb
183
+ - lib/pivotal-integration/util/story.rb
184
+ - lib/pivotal-integration/util/util.rb
185
+ - lib/pivotal-integration/version-update/gradle.rb
186
+ - lib/pivotal-integration/version-update/version_update.rb
187
+ - lib/pivotal_integration.rb
188
+ - lib/pivotal-integration/command/prepare-commit-msg.sh
189
+ - bin/pivotal
190
+ - spec/git-pivotal-tracker-integration/command/assign_spec.rb
191
+ - spec/git-pivotal-tracker-integration/command/base_spec.rb
192
+ - spec/git-pivotal-tracker-integration/command/configuration_spec.rb
193
+ - spec/git-pivotal-tracker-integration/command/finish_spec.rb
194
+ - spec/git-pivotal-tracker-integration/command/label_spec.rb
195
+ - spec/git-pivotal-tracker-integration/command/mark_spec.rb
196
+ - spec/git-pivotal-tracker-integration/command/release_spec.rb
197
+ - spec/git-pivotal-tracker-integration/command/start_spec.rb
198
+ - spec/git-pivotal-tracker-integration/util/git_spec.rb
199
+ - spec/git-pivotal-tracker-integration/util/label_spec.rb
200
+ - spec/git-pivotal-tracker-integration/util/shell_spec.rb
201
+ - spec/git-pivotal-tracker-integration/util/story_spec.rb
202
+ - spec/git-pivotal-tracker-integration/version-update/gradle_spec.rb
203
+ homepage: https://github.com/dvandersluis/pivotal-integration
204
+ licenses:
205
+ - Apache-2.0
206
+ metadata: {}
207
+ post_install_message:
208
+ rdoc_options: []
209
+ require_paths:
210
+ - lib
211
+ required_ruby_version: !ruby/object:Gem::Requirement
212
+ requirements:
213
+ - - ! '>='
214
+ - !ruby/object:Gem::Version
215
+ version: 1.8.7
216
+ required_rubygems_version: !ruby/object:Gem::Requirement
217
+ requirements:
218
+ - - ! '>='
219
+ - !ruby/object:Gem::Version
220
+ version: '0'
221
+ requirements: []
222
+ rubyforge_project:
223
+ rubygems_version: 2.1.5
224
+ signing_key:
225
+ specification_version: 4
226
+ summary: Git commands for integration with Pivotal Tracker
227
+ test_files:
228
+ - spec/git-pivotal-tracker-integration/command/assign_spec.rb
229
+ - spec/git-pivotal-tracker-integration/command/base_spec.rb
230
+ - spec/git-pivotal-tracker-integration/command/configuration_spec.rb
231
+ - spec/git-pivotal-tracker-integration/command/finish_spec.rb
232
+ - spec/git-pivotal-tracker-integration/command/label_spec.rb
233
+ - spec/git-pivotal-tracker-integration/command/mark_spec.rb
234
+ - spec/git-pivotal-tracker-integration/command/release_spec.rb
235
+ - spec/git-pivotal-tracker-integration/command/start_spec.rb
236
+ - spec/git-pivotal-tracker-integration/util/git_spec.rb
237
+ - spec/git-pivotal-tracker-integration/util/label_spec.rb
238
+ - spec/git-pivotal-tracker-integration/util/shell_spec.rb
239
+ - spec/git-pivotal-tracker-integration/util/story_spec.rb
240
+ - spec/git-pivotal-tracker-integration/version-update/gradle_spec.rb
241
+ has_rdoc: