git-pivotal-tracker-integration 1.3.0 → 1.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +13 -2
- data/bin/git-finish +2 -2
- data/bin/git-release +1 -1
- data/bin/git-start +1 -1
- data/lib/git-pivotal-tracker-integration/command/base.rb +4 -4
- data/lib/git-pivotal-tracker-integration/command/command.rb +1 -1
- data/lib/git-pivotal-tracker-integration/command/configuration.rb +18 -18
- data/lib/git-pivotal-tracker-integration/command/finish.rb +7 -5
- data/lib/git-pivotal-tracker-integration/command/release.rb +6 -6
- data/lib/git-pivotal-tracker-integration/command/start.rb +10 -10
- data/lib/git-pivotal-tracker-integration/util/git.rb +39 -37
- data/lib/git-pivotal-tracker-integration/util/shell.rb +3 -3
- data/lib/git-pivotal-tracker-integration/util/story.rb +18 -22
- data/lib/git-pivotal-tracker-integration/util/util.rb +1 -1
- data/lib/git-pivotal-tracker-integration/version-update/gradle.rb +5 -5
- data/lib/git-pivotal-tracker-integration/version-update/version_update.rb +1 -1
- data/spec/git-pivotal-tracker-integration/command/base_spec.rb +6 -6
- data/spec/git-pivotal-tracker-integration/command/configuration_spec.rb +32 -32
- data/spec/git-pivotal-tracker-integration/command/finish_spec.rb +10 -10
- data/spec/git-pivotal-tracker-integration/command/release_spec.rb +18 -18
- data/spec/git-pivotal-tracker-integration/command/start_spec.rb +16 -16
- data/spec/git-pivotal-tracker-integration/util/git_spec.rb +98 -88
- data/spec/git-pivotal-tracker-integration/util/shell_spec.rb +11 -11
- data/spec/git-pivotal-tracker-integration/util/story_spec.rb +35 -35
- data/spec/git-pivotal-tracker-integration/version-update/gradle_spec.rb +18 -18
- metadata +6 -6
@@ -13,12 +13,12 @@
|
|
13
13
|
# See the License for the specific language governing permissions and
|
14
14
|
# limitations under the License.
|
15
15
|
|
16
|
-
require
|
17
|
-
require
|
16
|
+
require 'spec_helper'
|
17
|
+
require 'git-pivotal-tracker-integration/version-update/gradle'
|
18
18
|
|
19
19
|
describe GitPivotalTrackerIntegration::VersionUpdate::Gradle do
|
20
20
|
|
21
|
-
it
|
21
|
+
it 'should not support if there is no gradle.properties file' do
|
22
22
|
Dir.mktmpdir do |root|
|
23
23
|
updater = GitPivotalTrackerIntegration::VersionUpdate::Gradle.new(root)
|
24
24
|
|
@@ -26,10 +26,10 @@ describe GitPivotalTrackerIntegration::VersionUpdate::Gradle do
|
|
26
26
|
end
|
27
27
|
end
|
28
28
|
|
29
|
-
it
|
29
|
+
it 'should not support if there is no version in the gradle.properties file' do
|
30
30
|
Dir.mktmpdir do |root|
|
31
|
-
gradle_properties = File.expand_path
|
32
|
-
File.open(gradle_properties,
|
31
|
+
gradle_properties = File.expand_path 'gradle.properties', root
|
32
|
+
File.open(gradle_properties, 'w') { |file| file.write 'foo=bar' }
|
33
33
|
|
34
34
|
updater = GitPivotalTrackerIntegration::VersionUpdate::Gradle.new(root)
|
35
35
|
|
@@ -37,10 +37,10 @@ describe GitPivotalTrackerIntegration::VersionUpdate::Gradle do
|
|
37
37
|
end
|
38
38
|
end
|
39
39
|
|
40
|
-
it
|
40
|
+
it 'should support if there is a version in the gradle.properties file' do
|
41
41
|
Dir.mktmpdir do |root|
|
42
|
-
gradle_properties = File.expand_path
|
43
|
-
File.open(gradle_properties,
|
42
|
+
gradle_properties = File.expand_path 'gradle.properties', root
|
43
|
+
File.open(gradle_properties, 'w') { |file| file.write 'version=1' }
|
44
44
|
|
45
45
|
updater = GitPivotalTrackerIntegration::VersionUpdate::Gradle.new(root)
|
46
46
|
|
@@ -48,27 +48,27 @@ describe GitPivotalTrackerIntegration::VersionUpdate::Gradle do
|
|
48
48
|
end
|
49
49
|
end
|
50
50
|
|
51
|
-
it
|
51
|
+
it 'returns the current version' do
|
52
52
|
Dir.mktmpdir do |root|
|
53
|
-
gradle_properties = File.expand_path
|
54
|
-
File.open(gradle_properties,
|
53
|
+
gradle_properties = File.expand_path 'gradle.properties', root
|
54
|
+
File.open(gradle_properties, 'w') { |file| file.write 'version=1' }
|
55
55
|
|
56
56
|
updater = GitPivotalTrackerIntegration::VersionUpdate::Gradle.new(root)
|
57
57
|
|
58
|
-
expect(updater.current_version).to eq(
|
58
|
+
expect(updater.current_version).to eq('1')
|
59
59
|
end
|
60
60
|
end
|
61
61
|
|
62
|
-
it
|
62
|
+
it 'returns the current version' do
|
63
63
|
Dir.mktmpdir do |root|
|
64
|
-
gradle_properties = File.expand_path
|
65
|
-
File.open(gradle_properties,
|
64
|
+
gradle_properties = File.expand_path 'gradle.properties', root
|
65
|
+
File.open(gradle_properties, 'w') { |file| file.write 'version=1' }
|
66
66
|
|
67
67
|
updater = GitPivotalTrackerIntegration::VersionUpdate::Gradle.new(root)
|
68
68
|
|
69
|
-
updater.update_version
|
69
|
+
updater.update_version '2'
|
70
70
|
|
71
|
-
File.open(gradle_properties,
|
71
|
+
File.open(gradle_properties, 'r') { |file| expect(file.read).to eq('version=2') }
|
72
72
|
end
|
73
73
|
end
|
74
74
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: git-pivotal-tracker-integration
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ben Hale
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-05-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: highline
|
@@ -72,14 +72,14 @@ dependencies:
|
|
72
72
|
requirements:
|
73
73
|
- - ~>
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 2.2
|
75
|
+
version: '2.2'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - ~>
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: 2.2
|
82
|
+
version: '2.2'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: rspec
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -114,14 +114,14 @@ dependencies:
|
|
114
114
|
requirements:
|
115
115
|
- - ~>
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version: 0.8
|
117
|
+
version: '0.8'
|
118
118
|
type: :development
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
122
|
- - ~>
|
123
123
|
- !ruby/object:Gem::Version
|
124
|
-
version: 0.8
|
124
|
+
version: '0.8'
|
125
125
|
description: Provides a set of additional Git commands to help developers when working
|
126
126
|
with Pivotal Tracker
|
127
127
|
email: nebhale@nebhale.com
|