hipchat-s3 0.1.0 → 0.1.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.
- data/README.textile +2 -2
- data/Rakefile +1 -1
- data/VERSION +1 -1
- data/hipchat-s3.gemspec +2 -2
- data/lib/hipchat-s3.rb +3 -3
- metadata +10 -10
data/README.textile
CHANGED
@@ -41,14 +41,14 @@ h2. Rspec hook
|
|
41
41
|
bc.. config.after(:each) do
|
42
42
|
if example.exception
|
43
43
|
|
44
|
-
message = "#{example.full_description} <br
|
44
|
+
message = "#{example.full_description} <br> #{example.location}"
|
45
45
|
hipchat_s3 ||= HipchatS3.new(HIPCHAT_S3)
|
46
46
|
|
47
47
|
if example.metadata[:type] == :acceptance && example.metadata[:js] == true
|
48
48
|
page.driver.browser.save_screenshot("failure.jpg")
|
49
49
|
hipchat_s3.create_inline_image("failure.jpg", hipchat_id, {:message => message, :username => "Failmaster", :color => "red"})
|
50
50
|
else
|
51
|
-
hipchat_s3.hipchat_client[hipchat_id].send("Enforcer", "Failure! YOU BROKE THE BUILD <br
|
51
|
+
hipchat_s3.hipchat_client[hipchat_id].send("Enforcer", "Failure! YOU BROKE THE BUILD <br> #{message}", :notify => true, :color => "red")
|
52
52
|
end
|
53
53
|
|
54
54
|
end
|
data/Rakefile
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.1
|
data/hipchat-s3.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "hipchat-s3"
|
8
|
-
s.version = "0.1.
|
8
|
+
s.version = "0.1.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Justin"]
|
12
|
-
s.date = "
|
12
|
+
s.date = "2013-03-07"
|
13
13
|
s.description = "Ruby library to upload files to s3 and alert users in hipchat with a link"
|
14
14
|
s.email = "jd@stinware.com"
|
15
15
|
s.extra_rdoc_files = [
|
data/lib/hipchat-s3.rb
CHANGED
@@ -20,7 +20,7 @@ class HipchatS3
|
|
20
20
|
|
21
21
|
def create_compressed_upload(path, room, options={})
|
22
22
|
options = {:username => 'fileuploader', :message => "File Uploaded", :color => 'yellow'}.merge(options)
|
23
|
-
|
23
|
+
|
24
24
|
unless tar_exists?
|
25
25
|
@hipchat_client[room].send(username, "You don't have tar installed on host", :notify => true, :color => color)
|
26
26
|
return
|
@@ -58,12 +58,12 @@ class HipchatS3
|
|
58
58
|
display_uri = "https://s3.amazonaws.com/#{@s3_bucket}/#{timestamp}/#{thumb_basename}"
|
59
59
|
end
|
60
60
|
|
61
|
-
@hipchat_client[room].send(options[:username], "#{options[:message]} <br
|
61
|
+
@hipchat_client[room].send(options[:username], "#{options[:message]} <br> <a href=\"#{uri}\"><img src=\"#{display_uri}\" /></a>", :notify => true, :color => options[:color])
|
62
62
|
end
|
63
63
|
|
64
64
|
|
65
65
|
private
|
66
|
-
|
66
|
+
|
67
67
|
def tar_exists?
|
68
68
|
`which tar`.strip != ""
|
69
69
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hipchat-s3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2013-03-07 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: hipchat
|
16
|
-
requirement: &
|
16
|
+
requirement: &70303414821980 !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: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70303414821980
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: aws-s3
|
27
|
-
requirement: &
|
27
|
+
requirement: &70303414821200 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70303414821200
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: rspec
|
38
|
-
requirement: &
|
38
|
+
requirement: &70303414820220 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ~>
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: '2.0'
|
44
44
|
type: :development
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *70303414820220
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: rr
|
49
|
-
requirement: &
|
49
|
+
requirement: &70303414819000 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ~>
|
@@ -54,7 +54,7 @@ dependencies:
|
|
54
54
|
version: '1.0'
|
55
55
|
type: :development
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *70303414819000
|
58
58
|
description: Ruby library to upload files to s3 and alert users in hipchat with a
|
59
59
|
link
|
60
60
|
email: jd@stinware.com
|