awful 0.0.169 → 0.0.170

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: bce09c752dd834816f275301dafc8034e9e435ea
4
- data.tar.gz: a462ceed5eecc9438220a6c74492aa4d90145eb0
3
+ metadata.gz: 46b16f11adba9027c3b20d1f5e373d97c18a3c23
4
+ data.tar.gz: 7452fde330e44ba9466d876f854b6ec39ea5f33c
5
5
  SHA512:
6
- metadata.gz: a4093be50cbb4c87d8913c7f55e63f4a621f6ada8022cd38cf185e699b322160095e3cecf1bd40d567884b047684ec6e357b03a44dd39007e5394708fb4415e1
7
- data.tar.gz: ffae339b0d777baf05507c77f042df2cac3f965fe3a48d20513ecd267106b5c5c13ad06822ebd67b0fa952e18c52c91719bef4e11f8a0f96286d0296b7be2f2a
6
+ metadata.gz: caa9da54dc7b1a696b931e7e17b91a6179fe0b050e7814b39247e15d345913d2625f9e784e5b90ae26b6eb7a75f06bc92967bc0ca61e897ba5ab62ee9846cafc
7
+ data.tar.gz: 73e623b46224db234ec100bbe95f1a56614c70397b1e1da63ad2d49b8e39101f3892b12df8b63756da9a440dbaa197b17e91ca31006b30bc4a09a9758daf26a5
@@ -21,7 +21,7 @@ Gem::Specification.new do |spec|
21
21
  spec.add_development_dependency "bundler", "~> 1.7"
22
22
  spec.add_development_dependency "rake"
23
23
 
24
- spec.add_dependency('aws-sdk', '>= 2.7.9')
24
+ spec.add_dependency('aws-sdk', '>= 2.8.0')
25
25
  spec.add_dependency('thor')
26
26
  spec.add_dependency('dotenv')
27
27
  end
@@ -366,6 +366,24 @@ module Awful
366
366
  )
367
367
  end
368
368
 
369
+ desc 'ttl TABLE [ATTRIBUTE]', 'get/set time to live for table'
370
+ method_option :disable, type: :boolean, default: false, desc: 'disable TTL'
371
+ def ttl(name, attribute = nil)
372
+ if attribute
373
+ dynamodb.update_time_to_live(
374
+ table_name: name,
375
+ time_to_live_specification: {
376
+ enabled: !options[:disable],
377
+ attribute_name: attribute,
378
+ }
379
+ )
380
+ else
381
+ dynamodb.describe_time_to_live(table_name: name).time_to_live_description.output do |t|
382
+ puts YAML.dump(stringify_keys(t.to_hash))
383
+ end
384
+ end
385
+ end
386
+
369
387
  ## see lambda_events.rb for subcommands
370
388
  desc 'streams SUBCOMMANDS', 'subcommands for dynamodb streams'
371
389
  subcommand 'streams', Streams
@@ -1,3 +1,3 @@
1
1
  module Awful
2
- VERSION = '0.0.169'
2
+ VERSION = '0.0.170'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: awful
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.169
4
+ version: 0.0.170
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ric Lister
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-03-01 00:00:00.000000000 Z
11
+ date: 2017-03-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - ">="
46
46
  - !ruby/object:Gem::Version
47
- version: 2.7.9
47
+ version: 2.8.0
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
- version: 2.7.9
54
+ version: 2.8.0
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: thor
57
57
  requirement: !ruby/object:Gem::Requirement