mamiya 0.0.1.alpha17 → 0.0.1.alpha18
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mamiya/agent/handlers/fetch.rb +14 -9
- data/lib/mamiya/storages/s3.rb +1 -1
- data/lib/mamiya/version.rb +1 -1
- data/mamiya.gemspec +1 -1
- data/spec/agent/handlers/fetch_spec.rb +1 -1
- data/spec/storages/s3_spec.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6db58a4aec3a8f7f2929cd2664c6e303f902bb9c
|
4
|
+
data.tar.gz: e37776e176631e187e95a8b6b2775d33180a8ac3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7f2675131a259a228697439db198a6394b6e0c9b4fd8d7934c98cc2c47a32e40ebfe67eba878dd1ded48ef299351ba6a6bec9aa17252081847539256082ff265
|
7
|
+
data.tar.gz: fb8a0ffb6701073386fcd62a22de3f5d5f7140c420ce0eced26c270037dc141ba5f8b94e1bcf2d214963b1fea25cfd3d5c7b01c90de6696217975c485411b067
|
@@ -39,15 +39,20 @@ module Mamiya
|
|
39
39
|
}
|
40
40
|
) do |error|
|
41
41
|
if error && IGNORED_ERRORS.lazy.grep(error.class).none?
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
42
|
+
# FIXME: TODO: may exceed 256
|
43
|
+
begin
|
44
|
+
agent.serf.event(FETCH_ERROR_EVENT,
|
45
|
+
{
|
46
|
+
name: agent.serf.name,
|
47
|
+
application: payload['application'],
|
48
|
+
package: payload['package'],
|
49
|
+
error: error.class,
|
50
|
+
pending: agent.fetcher.queue_size,
|
51
|
+
}.to_json
|
52
|
+
)
|
53
|
+
rescue Villein::Client::SerfError => e
|
54
|
+
agent.logger.error "error sending fetch error event: #{e.inspect}"
|
55
|
+
end
|
51
56
|
else
|
52
57
|
agent.serf.event(FETCH_SUCCESS_EVENT,
|
53
58
|
{
|
data/lib/mamiya/storages/s3.rb
CHANGED
data/lib/mamiya/version.rb
CHANGED
data/mamiya.gemspec
CHANGED
@@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
|
|
19
19
|
spec.require_paths = ["lib"]
|
20
20
|
|
21
21
|
spec.add_runtime_dependency "thor", ">= 0.18.1"
|
22
|
-
spec.add_runtime_dependency "aws-sdk-core", "2.0.0.
|
22
|
+
spec.add_runtime_dependency "aws-sdk-core", "2.0.0.rc14"
|
23
23
|
spec.add_runtime_dependency "term-ansicolor", ">= 1.3.0"
|
24
24
|
unless ENV["MAMIYA_VILLEIN_PATH"]
|
25
25
|
spec.add_runtime_dependency "villein", ">= 0.3.2"
|
data/spec/storages/s3_spec.rb
CHANGED
@@ -39,7 +39,7 @@ describe Mamiya::Storages::S3 do
|
|
39
39
|
end
|
40
40
|
|
41
41
|
before do
|
42
|
-
allow(Aws::S3).to receive(:new).with(foo: :bar, access_key_id: 'AKI', secret_access_key: 'secret', region: 'ap-northeast-1').and_return(s3)
|
42
|
+
allow(Aws::S3::Client).to receive(:new).with(foo: :bar, access_key_id: 'AKI', secret_access_key: 'secret', region: 'ap-northeast-1').and_return(s3)
|
43
43
|
end
|
44
44
|
|
45
45
|
describe "#push(package)" do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mamiya
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.1.
|
4
|
+
version: 0.0.1.alpha18
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shota Fukumori (sora_h)
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-08-
|
11
|
+
date: 2014-08-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - '='
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 2.0.0.
|
33
|
+
version: 2.0.0.rc14
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - '='
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 2.0.0.
|
40
|
+
version: 2.0.0.rc14
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: term-ansicolor
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|