dyna 0.1.7 → 0.1.8

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: dbe5f22bbdcbee71087af4e8cda0d1f8012314b2
4
- data.tar.gz: f0c508309a68a01ad44cd026760d9d7ea6d38569
3
+ metadata.gz: e9a4fd21f8722b9dd15010855a735ce3654a7367
4
+ data.tar.gz: '0139bc8b1a21d8297db048c82dcae35f270e33ae'
5
5
  SHA512:
6
- metadata.gz: 7e9b8af4fefdcc374db854c566e6cc07b904d715224aff6b7399d62d0c6b58bf86cc89ff5216e89041bb4a8fb44844c34a484dac894a7b716e1e9a03f9e9178a
7
- data.tar.gz: 4279144f0e7e5a14b01db20eea7daf5ff7ff3aed01ac788c33181e7748d6d037daeafe89147c1e5789669960aee16453e01c4cbfdffc52e64e666e81b7229325
6
+ metadata.gz: 2a90044411ff9c1dca04650e365c29e0be5d84e56b7d31cd0f2923286766c147b1885d3e1169bc0d7248f5556f0c142292e17b35c9d9c74e3add6c7b2d788c18
7
+ data.tar.gz: 79a66929725e50978f204df808da497c15db070ee36eb8102c23c823a8d307ae600b200385d921ea20b40754208d0dbbe6ea068270140f321cc7dd9ff55bee11
@@ -32,6 +32,7 @@ end
32
32
  def output_table(name, table)
33
33
  local_secondary_indexes = ''
34
34
  global_secondary_indexes = ''
35
+ stream_specification = ''
35
36
  if table[:local_secondary_indexes]
36
37
  local_secondary_indexes_tmpl = <<-EOS.chomp
37
38
  <% table[:local_secondary_indexes].each do |index| %>
@@ -66,6 +67,18 @@ EOS
66
67
  <% end %>
67
68
  EOS
68
69
  attribute_definitions = ERB.new(attribute_definitions_tmpl).result(binding)
70
+
71
+ if table[:stream_specification]
72
+ stream_specification_tmpl = <<-EOS.chomp
73
+
74
+ stream_specification(
75
+ stream_enabled: <%= table[:stream_specification][:stream_enabled] %>,
76
+ stream_view_type: <%= table[:stream_specification][:stream_view_type].inspect %>,
77
+ )
78
+ EOS
79
+ stream_specification = ERB.new(stream_specification_tmpl).result(binding)
80
+ end
81
+
69
82
  <<-EOS
70
83
  table "#{name}" do
71
84
  key_schema(
@@ -77,7 +90,7 @@ EOS
77
90
  read_capacity_units: #{table[:provisioned_throughput][:read_capacity_units]},
78
91
  write_capacity_units: #{table[:provisioned_throughput][:write_capacity_units]},
79
92
  )
80
- #{local_secondary_indexes}#{global_secondary_indexes}
93
+ #{local_secondary_indexes}#{global_secondary_indexes}#{stream_specification}
81
94
  end
82
95
  EOS
83
96
  end
data/lib/dyna/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Dyna
2
- VERSION = '0.1.7'
2
+ VERSION = '0.1.8'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dyna
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - wata