simplecov-s3 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README.md +2 -2
- data/lib/simplecov-s3/version.rb +1 -1
- data/lib/simplecov-s3.rb +19 -0
- metadata +13 -21
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: fd9cb36e71a3e0ba0af0873074af077bb96c92b8
|
4
|
+
data.tar.gz: 53977763c8dbe8ea5476e9ed4fa9a0c6a8a09a41
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 556747ea5527d9c5ec04afae92bad25a8feaeca9f66c7c329d37efae9a0d169db9c5019e717bdcfa779ff892bbfa517325065a45dda12912f8a56b20fcbc5cbc
|
7
|
+
data.tar.gz: 3196d83cc74fde660ec40e6d9dfa421798b3da7ce6aea7caae17058aa317f006d118faa92cf34caefc516f2ebdbff7fb3a00724fe38a1a3e750edc5db962d5c0
|
data/README.md
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Sample Usage:
|
4
4
|
|
5
|
-
|
5
|
+
Gemfile
|
6
6
|
|
7
7
|
group :test do
|
8
8
|
gem 'simplecov-s3'
|
@@ -96,7 +96,7 @@ Rakefile (advanced, merge build units across worker boxes)
|
|
96
96
|
#ignore generated coverage results
|
97
97
|
coverage
|
98
98
|
|
99
|
-
Sample S3 Bucket policy to allow the "
|
99
|
+
Sample S3 Bucket policy to allow the "\<user\>" user of from the Amazon Account ID "\<awsaccount\>" access to read/write from the "\<bucket\>" bucket, while the public is allowed read-only:
|
100
100
|
|
101
101
|
{
|
102
102
|
"Version": "2008-10-17",
|
data/lib/simplecov-s3/version.rb
CHANGED
data/lib/simplecov-s3.rb
CHANGED
@@ -142,6 +142,25 @@ module SimpleCov
|
|
142
142
|
:headers => { "Content-Type" => "application/x-www-form-urlencoded" })
|
143
143
|
puts result.inspect
|
144
144
|
end
|
145
|
+
repush_assets_if_needed
|
146
|
+
end
|
147
|
+
|
148
|
+
def repush_assets_if_needed
|
149
|
+
#check: @connection.directories.get(@bucket_name, prefix: "assets/0.7.1").files.size
|
150
|
+
local_assets_are_in = SimpleCov::Formatter::HTMLFormatter.new.send(:asset_output_path)
|
151
|
+
asset_dir_needed = local_assets_are_in.split("/").last
|
152
|
+
if @connection.directories.get(@bucket_name, prefix: "assets/#{asset_dir_needed}").files.size == 0
|
153
|
+
puts "No assets directory on s3 found. Re-pushing!"
|
154
|
+
Dir.glob("#{local_assets_are_in}/**/*").each do |file|
|
155
|
+
unless File.directory?(file)
|
156
|
+
path = "assets/#{asset_dir_needed}" + file[local_assets_are_in.size..-1]
|
157
|
+
data = File.read(file)
|
158
|
+
puts "pushing asset to #{path} sized #{data.size}"
|
159
|
+
@connection.directories.get(@bucket_name).files.create(:key => path, :body => data)
|
160
|
+
end
|
161
|
+
end
|
162
|
+
puts "asset push completed"
|
163
|
+
end
|
145
164
|
end
|
146
165
|
|
147
166
|
def commit_time
|
metadata
CHANGED
@@ -1,62 +1,55 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simplecov-s3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
5
|
-
prerelease:
|
4
|
+
version: 0.1.3
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Jacob
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2014-02-12 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: rspec
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - '>='
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: '0'
|
22
20
|
type: :development
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
|
-
- -
|
24
|
+
- - '>='
|
28
25
|
- !ruby/object:Gem::Version
|
29
26
|
version: '0'
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: fog
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
|
-
- -
|
31
|
+
- - '>='
|
36
32
|
- !ruby/object:Gem::Version
|
37
33
|
version: '0'
|
38
34
|
type: :runtime
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
|
-
- -
|
38
|
+
- - '>='
|
44
39
|
- !ruby/object:Gem::Version
|
45
40
|
version: '0'
|
46
41
|
- !ruby/object:Gem::Dependency
|
47
42
|
name: simplecov
|
48
43
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
44
|
requirements:
|
51
|
-
- -
|
45
|
+
- - '>='
|
52
46
|
- !ruby/object:Gem::Version
|
53
47
|
version: '0'
|
54
48
|
type: :runtime
|
55
49
|
prerelease: false
|
56
50
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
51
|
requirements:
|
59
|
-
- -
|
52
|
+
- - '>='
|
60
53
|
- !ruby/object:Gem::Version
|
61
54
|
version: '0'
|
62
55
|
description: Merge simplecov outputs using S3 as shared storage (and publish the results
|
@@ -80,27 +73,26 @@ files:
|
|
80
73
|
- spec/a_spec.rb
|
81
74
|
homepage: https://github.com/engineyard/simplecov-s3
|
82
75
|
licenses: []
|
76
|
+
metadata: {}
|
83
77
|
post_install_message:
|
84
78
|
rdoc_options: []
|
85
79
|
require_paths:
|
86
80
|
- lib
|
87
81
|
required_ruby_version: !ruby/object:Gem::Requirement
|
88
|
-
none: false
|
89
82
|
requirements:
|
90
|
-
- -
|
83
|
+
- - '>='
|
91
84
|
- !ruby/object:Gem::Version
|
92
85
|
version: '0'
|
93
86
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
94
|
-
none: false
|
95
87
|
requirements:
|
96
|
-
- -
|
88
|
+
- - '>='
|
97
89
|
- !ruby/object:Gem::Version
|
98
90
|
version: '0'
|
99
91
|
requirements: []
|
100
92
|
rubyforge_project:
|
101
|
-
rubygems_version:
|
93
|
+
rubygems_version: 2.0.3
|
102
94
|
signing_key:
|
103
|
-
specification_version:
|
95
|
+
specification_version: 4
|
104
96
|
summary: Merge simplecov outputs using S3 as shared storage (and publish the results
|
105
97
|
as html to S3)
|
106
98
|
test_files:
|