heirloom 0.7.0 → 0.7.1

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ ## v0.7.1:
2
+
3
+ * Truncate long commit messages.
4
+
1
5
  ## v0.7.0:
2
6
 
3
7
  * Adding catalog which will contain all heirloom regions & bases.
@@ -52,7 +52,7 @@ module Heirloom
52
52
  def add_git_commit_to_artifact_record(commit)
53
53
  attributes = { 'sha' => @id,
54
54
  'abbreviated_sha' => commit.id_abbrev,
55
- 'message' => commit.message.gsub("\n"," "),
55
+ 'message' => commit.message.gsub("\n"," ")[0..1023],
56
56
  'author' => commit.author.name }
57
57
 
58
58
  attributes.each_pair do |k, v|
@@ -1,3 +1,3 @@
1
1
  module Heirloom
2
- VERSION = "0.7.0"
2
+ VERSION = "0.7.1"
3
3
  end
@@ -70,6 +70,23 @@ describe Heirloom::Builder do
70
70
  :git => 'true').should == '/var/tmp/file.tar.gz'
71
71
  end
72
72
 
73
+ it "should truncate commit message to 1024 chars" do
74
+ long_commit_message = 'long commit message' * 100
75
+ truncated_commit_attributes = { 'sha' => '123',
76
+ 'abbreviated_sha' => 'abc123',
77
+ 'message' => long_commit_message[0..1023],
78
+ 'author' => 'weaver' }
79
+ @simpledb_mock.should_receive(:put_attributes).
80
+ with('heirloom_tim', '123', truncated_commit_attributes)
81
+ @git_commit_stub = stub :id_abbrev => "abc123",
82
+ :message => long_commit_message,
83
+ :author => @author_stub
84
+ @git_dir_mock.stub :commit => @git_commit_stub
85
+ @builder.build(:exclude => ['.dir_to_exclude'],
86
+ :directory => 'path_to_build',
87
+ :git => 'true').should == '/var/tmp/file.tar.gz'
88
+ end
89
+
73
90
  end
74
91
 
75
92
  context "without git dir" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: heirloom
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-09-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
16
- requirement: &70204824406120 !ruby/object:Gem::Requirement
16
+ requirement: &70192551256780 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *70204824406120
24
+ version_requirements: *70192551256780
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: fog
27
- requirement: &70204824368560 !ruby/object:Gem::Requirement
27
+ requirement: &70192551220380 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 1.5.0
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70204824368560
35
+ version_requirements: *70192551220380
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: grit
38
- requirement: &70204824367580 !ruby/object:Gem::Requirement
38
+ requirement: &70192551219280 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: 2.5.0
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *70204824367580
46
+ version_requirements: *70192551219280
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: trollop
49
- requirement: &70204824366820 !ruby/object:Gem::Requirement
49
+ requirement: &70192551218540 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - =
@@ -54,7 +54,7 @@ dependencies:
54
54
  version: '2.0'
55
55
  type: :runtime
56
56
  prerelease: false
57
- version_requirements: *70204824366820
57
+ version_requirements: *70192551218540
58
58
  description: I help build and manage building tar.gz files and deploying them into
59
59
  the cloud
60
60
  email:
@@ -184,7 +184,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
184
184
  version: '0'
185
185
  segments:
186
186
  - 0
187
- hash: 223379144740037259
187
+ hash: 1794685191257357930
188
188
  required_rubygems_version: !ruby/object:Gem::Requirement
189
189
  none: false
190
190
  requirements:
@@ -193,7 +193,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
193
193
  version: '0'
194
194
  segments:
195
195
  - 0
196
- hash: 223379144740037259
196
+ hash: 1794685191257357930
197
197
  requirements: []
198
198
  rubyforge_project: heirloom
199
199
  rubygems_version: 1.8.16