eye-s3 0.0.1 → 0.0.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 30b56144e82786fa946982a3671d0e714dbeb1d2
4
- data.tar.gz: 6c8fbd4170ff33990909d04205614097011801de
3
+ metadata.gz: 9b5c9af05ce559cc10abe3c71f8ec6dcd6ca1881
4
+ data.tar.gz: 176aae2d397fdad652e80ecc145b5597d3824d0d
5
5
  SHA512:
6
- metadata.gz: 29ac58399d2a4e67eade9dd9dc6d0086f44331533e75eb94423d43880e64160852d2295b4eb4971b71731bca6cc8915360110f40d8af505630554eabfafc4212
7
- data.tar.gz: 465f2e4e2e272364e775a7d515cd23d92319057875ab6c41233243cb4d27d4d8eb3635e0e933aa50c0888e217ed51b141f471beef730f1490bd9a8b6c4770241
6
+ metadata.gz: 4255c22e437d1fb10d9949e800c9b16c32c24637f926cbf26d6f4dab1c734a23a4b83d637ed51f70877073f928f8235733fa2544cab08755a73b7957c9939a70
7
+ data.tar.gz: 409d85ac7d0ebde72836c2723a0384fe03c9744a27659ec5fb05d5cf5b2d00c918b5fedc627b09de1d111311be1118a6919e8828151d46aa459098249f30e1a9
@@ -4,7 +4,7 @@ module Eye
4
4
  class Eye::Notify::Custom < Eye::Notify; end
5
5
 
6
6
  class EyeS3 < Eye::Notify::Custom
7
- VERSION = '0.0.1'
7
+ VERSION = '0.0.2'
8
8
  end
9
9
  end
10
10
  end
@@ -12,7 +12,6 @@ module Eye
12
12
 
13
13
  param :bucket_name, String, true
14
14
  param :region, String, false, 'us-east-1'
15
- param :key, String, false, default_object_key
16
15
 
17
16
  def execute
18
17
  Aws::S3::Object.new(options).put object
@@ -30,9 +29,8 @@ module Eye
30
29
 
31
30
  def object
32
31
  {
33
- acl: 'authenticated-read',
34
32
  content_type: 'application/json',
35
- body: body,
33
+ body: body
36
34
  }
37
35
  end
38
36
 
@@ -47,14 +45,14 @@ module Eye
47
45
  def event
48
46
  {
49
47
  host: msg_host,
50
- timestamp: msg_at,
48
+ timestamp: msg_at.to_i,
51
49
  message: msg_message,
52
50
  name: msg_name,
53
51
  level: msg_level
54
52
  }
55
53
  end
56
54
 
57
- def default_object_key
55
+ def key
58
56
  now = Time.now
59
57
  [now.year, now.month, now.day, "#{now.to_i}_#{msg_host}.json"].join '/'
60
58
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eye-s3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ricardo Mota
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-01-22 00:00:00.000000000 Z
11
+ date: 2018-01-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler