spire-git-pivotal-tracker 1.0.0

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