v2gpti 0.2.0.b1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (31) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +202 -0
  3. data/NOTICE +2 -0
  4. data/README.md +184 -0
  5. data/bin/git-finish +19 -0
  6. data/bin/git-release +19 -0
  7. data/bin/git-start +19 -0
  8. data/lib/git-pivotal-tracker-integration/command/base.rb +48 -0
  9. data/lib/git-pivotal-tracker-integration/command/command.rb +20 -0
  10. data/lib/git-pivotal-tracker-integration/command/configuration.rb +104 -0
  11. data/lib/git-pivotal-tracker-integration/command/finish.rb +38 -0
  12. data/lib/git-pivotal-tracker-integration/command/prepare-commit-msg.sh +26 -0
  13. data/lib/git-pivotal-tracker-integration/command/release.rb +56 -0
  14. data/lib/git-pivotal-tracker-integration/command/start.rb +96 -0
  15. data/lib/git-pivotal-tracker-integration/util/git.rb +244 -0
  16. data/lib/git-pivotal-tracker-integration/util/shell.rb +36 -0
  17. data/lib/git-pivotal-tracker-integration/util/story.rb +134 -0
  18. data/lib/git-pivotal-tracker-integration/util/util.rb +20 -0
  19. data/lib/git-pivotal-tracker-integration/version-update/gradle.rb +64 -0
  20. data/lib/git-pivotal-tracker-integration/version-update/version_update.rb +20 -0
  21. data/lib/git_pivotal_tracker_integration.rb +18 -0
  22. data/spec/git-pivotal-tracker-integration/command/base_spec.rb +38 -0
  23. data/spec/git-pivotal-tracker-integration/command/configuration_spec.rb +91 -0
  24. data/spec/git-pivotal-tracker-integration/command/finish_spec.rb +45 -0
  25. data/spec/git-pivotal-tracker-integration/command/release_spec.rb +57 -0
  26. data/spec/git-pivotal-tracker-integration/command/start_spec.rb +55 -0
  27. data/spec/git-pivotal-tracker-integration/util/git_spec.rb +235 -0
  28. data/spec/git-pivotal-tracker-integration/util/shell_spec.rb +52 -0
  29. data/spec/git-pivotal-tracker-integration/util/story_spec.rb +143 -0
  30. data/spec/git-pivotal-tracker-integration/version-update/gradle_spec.rb +74 -0
  31. metadata +213 -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 GitPivotalTrackerIntegration::VersionUpdate::Gradle do
20
+
21
+ it 'should not support if there is no gradle.properties file' do
22
+ Dir.mktmpdir do |root|
23
+ updater = GitPivotalTrackerIntegration::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 = GitPivotalTrackerIntegration::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 = GitPivotalTrackerIntegration::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 = GitPivotalTrackerIntegration::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 = GitPivotalTrackerIntegration::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,213 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: v2gpti
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.2.0.b1
5
+ platform: ruby
6
+ authors:
7
+ - Ben Hale
8
+ - Jeff Wolski
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2014-05-02 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: highline
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - "~>"
19
+ - !ruby/object:Gem::Version
20
+ version: '1.6'
21
+ type: :runtime
22
+ prerelease: false
23
+ version_requirements: !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - "~>"
26
+ - !ruby/object:Gem::Version
27
+ version: '1.6'
28
+ - !ruby/object:Gem::Dependency
29
+ name: pivotal-tracker
30
+ requirement: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - "~>"
33
+ - !ruby/object:Gem::Version
34
+ version: '0.5'
35
+ type: :runtime
36
+ prerelease: false
37
+ version_requirements: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - "~>"
40
+ - !ruby/object:Gem::Version
41
+ version: '0.5'
42
+ - !ruby/object:Gem::Dependency
43
+ name: parseconfig
44
+ requirement: !ruby/object:Gem::Requirement
45
+ requirements:
46
+ - - "~>"
47
+ - !ruby/object:Gem::Version
48
+ version: '1.0'
49
+ type: :runtime
50
+ prerelease: false
51
+ version_requirements: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - "~>"
54
+ - !ruby/object:Gem::Version
55
+ version: '1.0'
56
+ - !ruby/object:Gem::Dependency
57
+ name: bundler
58
+ requirement: !ruby/object:Gem::Requirement
59
+ requirements:
60
+ - - "~>"
61
+ - !ruby/object:Gem::Version
62
+ version: '1.3'
63
+ type: :development
64
+ prerelease: false
65
+ version_requirements: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - "~>"
68
+ - !ruby/object:Gem::Version
69
+ version: '1.3'
70
+ - !ruby/object:Gem::Dependency
71
+ name: rake
72
+ requirement: !ruby/object:Gem::Requirement
73
+ requirements:
74
+ - - "~>"
75
+ - !ruby/object:Gem::Version
76
+ version: '10.0'
77
+ type: :development
78
+ prerelease: false
79
+ version_requirements: !ruby/object:Gem::Requirement
80
+ requirements:
81
+ - - "~>"
82
+ - !ruby/object:Gem::Version
83
+ version: '10.0'
84
+ - !ruby/object:Gem::Dependency
85
+ name: redcarpet
86
+ requirement: !ruby/object:Gem::Requirement
87
+ requirements:
88
+ - - "~>"
89
+ - !ruby/object:Gem::Version
90
+ version: '2.2'
91
+ type: :development
92
+ prerelease: false
93
+ version_requirements: !ruby/object:Gem::Requirement
94
+ requirements:
95
+ - - "~>"
96
+ - !ruby/object:Gem::Version
97
+ version: '2.2'
98
+ - !ruby/object:Gem::Dependency
99
+ name: rspec
100
+ requirement: !ruby/object:Gem::Requirement
101
+ requirements:
102
+ - - "~>"
103
+ - !ruby/object:Gem::Version
104
+ version: '2.13'
105
+ type: :development
106
+ prerelease: false
107
+ version_requirements: !ruby/object:Gem::Requirement
108
+ requirements:
109
+ - - "~>"
110
+ - !ruby/object:Gem::Version
111
+ version: '2.13'
112
+ - !ruby/object:Gem::Dependency
113
+ name: simplecov
114
+ requirement: !ruby/object:Gem::Requirement
115
+ requirements:
116
+ - - "~>"
117
+ - !ruby/object:Gem::Version
118
+ version: '0.7'
119
+ type: :development
120
+ prerelease: false
121
+ version_requirements: !ruby/object:Gem::Requirement
122
+ requirements:
123
+ - - "~>"
124
+ - !ruby/object:Gem::Version
125
+ version: '0.7'
126
+ - !ruby/object:Gem::Dependency
127
+ name: yard
128
+ requirement: !ruby/object:Gem::Requirement
129
+ requirements:
130
+ - - "~>"
131
+ - !ruby/object:Gem::Version
132
+ version: '0.8'
133
+ type: :development
134
+ prerelease: false
135
+ version_requirements: !ruby/object:Gem::Requirement
136
+ requirements:
137
+ - - "~>"
138
+ - !ruby/object:Gem::Version
139
+ version: '0.8'
140
+ description: Provides a set of additional Git commands to help developers when working
141
+ with Pivotal Tracker
142
+ email: jeff@xxxxxxxxx.com
143
+ executables:
144
+ - git-finish
145
+ - git-release
146
+ - git-start
147
+ extensions: []
148
+ extra_rdoc_files: []
149
+ files:
150
+ - LICENSE
151
+ - NOTICE
152
+ - README.md
153
+ - bin/git-finish
154
+ - bin/git-release
155
+ - bin/git-start
156
+ - lib/git-pivotal-tracker-integration/command/base.rb
157
+ - lib/git-pivotal-tracker-integration/command/command.rb
158
+ - lib/git-pivotal-tracker-integration/command/configuration.rb
159
+ - lib/git-pivotal-tracker-integration/command/finish.rb
160
+ - lib/git-pivotal-tracker-integration/command/prepare-commit-msg.sh
161
+ - lib/git-pivotal-tracker-integration/command/release.rb
162
+ - lib/git-pivotal-tracker-integration/command/start.rb
163
+ - lib/git-pivotal-tracker-integration/util/git.rb
164
+ - lib/git-pivotal-tracker-integration/util/shell.rb
165
+ - lib/git-pivotal-tracker-integration/util/story.rb
166
+ - lib/git-pivotal-tracker-integration/util/util.rb
167
+ - lib/git-pivotal-tracker-integration/version-update/gradle.rb
168
+ - lib/git-pivotal-tracker-integration/version-update/version_update.rb
169
+ - lib/git_pivotal_tracker_integration.rb
170
+ - spec/git-pivotal-tracker-integration/command/base_spec.rb
171
+ - spec/git-pivotal-tracker-integration/command/configuration_spec.rb
172
+ - spec/git-pivotal-tracker-integration/command/finish_spec.rb
173
+ - spec/git-pivotal-tracker-integration/command/release_spec.rb
174
+ - spec/git-pivotal-tracker-integration/command/start_spec.rb
175
+ - spec/git-pivotal-tracker-integration/util/git_spec.rb
176
+ - spec/git-pivotal-tracker-integration/util/shell_spec.rb
177
+ - spec/git-pivotal-tracker-integration/util/story_spec.rb
178
+ - spec/git-pivotal-tracker-integration/version-update/gradle_spec.rb
179
+ homepage: https://github.com/v2dev/V2GPTI
180
+ licenses:
181
+ - Apache-2.0
182
+ metadata: {}
183
+ post_install_message:
184
+ rdoc_options: []
185
+ require_paths:
186
+ - lib
187
+ required_ruby_version: !ruby/object:Gem::Requirement
188
+ requirements:
189
+ - - ">="
190
+ - !ruby/object:Gem::Version
191
+ version: 1.8.7
192
+ required_rubygems_version: !ruby/object:Gem::Requirement
193
+ requirements:
194
+ - - ">"
195
+ - !ruby/object:Gem::Version
196
+ version: 1.3.1
197
+ requirements: []
198
+ rubyforge_project:
199
+ rubygems_version: 2.2.2
200
+ signing_key:
201
+ specification_version: 4
202
+ summary: Git commands for integration with Pivotal Tracker
203
+ test_files:
204
+ - spec/git-pivotal-tracker-integration/command/base_spec.rb
205
+ - spec/git-pivotal-tracker-integration/command/configuration_spec.rb
206
+ - spec/git-pivotal-tracker-integration/command/finish_spec.rb
207
+ - spec/git-pivotal-tracker-integration/command/release_spec.rb
208
+ - spec/git-pivotal-tracker-integration/command/start_spec.rb
209
+ - spec/git-pivotal-tracker-integration/util/git_spec.rb
210
+ - spec/git-pivotal-tracker-integration/util/shell_spec.rb
211
+ - spec/git-pivotal-tracker-integration/util/story_spec.rb
212
+ - spec/git-pivotal-tracker-integration/version-update/gradle_spec.rb
213
+ has_rdoc: