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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6fa254b596631cde33d5d8faac01f61d64714384
4
- data.tar.gz: bef9bacf0b8706d6ea1f963fd2f9417a9121b07d
3
+ metadata.gz: 6db58a4aec3a8f7f2929cd2664c6e303f902bb9c
4
+ data.tar.gz: e37776e176631e187e95a8b6b2775d33180a8ac3
5
5
  SHA512:
6
- metadata.gz: c9fd3931a0e2cc4203451ede0e03cc5aee3abb9c63ffdb1ae042c2514a81bc8dbe625e3542646e4bd55622f092308d6c9e296033fca7403cf343cd0375469859
7
- data.tar.gz: 7ac1a6a440fc39b59fcfd29d7e643900a203e21de74261edffb1c5ea8a6fa090568a7c9d718938c594217a6fe23c6b010de5e0fe9ba12d44413e8da60ef01417
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
- agent.serf.event(FETCH_ERROR_EVENT,
43
- {
44
- name: agent.serf.name,
45
- application: payload['application'],
46
- package: payload['package'],
47
- error: error.inspect,
48
- pending: agent.fetcher.queue_size,
49
- }.to_json
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
  {
@@ -100,7 +100,7 @@ module Mamiya
100
100
  end
101
101
 
102
102
  def self.initiate_s3_with_config(config) # :nodoc:
103
- Aws::S3.new(s3_config(config))
103
+ Aws::S3::Client.new(s3_config(config))
104
104
  end
105
105
 
106
106
  def self.s3_config(base) # :nodoc:
@@ -1,3 +1,3 @@
1
1
  module Mamiya
2
- VERSION = "0.0.1.alpha17"
2
+ VERSION = "0.0.1.alpha18"
3
3
  end
@@ -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.rc6"
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"
@@ -102,7 +102,7 @@ describe Mamiya::Agent::Handlers::Fetch do
102
102
  'mamiya:fetch-result:error',
103
103
  {
104
104
  name: serf.name, application: 'app', package: 'package',
105
- error: error.inspect, pending: 0,
105
+ error: error.class, pending: 0,
106
106
  }.to_json,
107
107
  )
108
108
 
@@ -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.alpha17
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-05 00:00:00.000000000 Z
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.rc6
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.rc6
40
+ version: 2.0.0.rc14
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: term-ansicolor
43
43
  requirement: !ruby/object:Gem::Requirement