exercism-config 0.44.0 → 0.45.0

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
  SHA256:
3
- metadata.gz: d16293bab1db89c167c3057474f342b2db3e741c4929b67b0529c9be72c73cf0
4
- data.tar.gz: f0202eebe5d45b1c5703d09eeb1a4057807f47d05e032f6bdd5dc6666b79bf26
3
+ metadata.gz: d8059e119b7057a0972501f6f3d0921e575024f3497ffaab9b9e62fa63bd186b
4
+ data.tar.gz: 1ee220aa35d61dbcf41b498ea268b21a0bd0c1cd4d72507993a759d83847faa1
5
5
  SHA512:
6
- metadata.gz: e7455d261fa9914f62b971eb05e9ad40b900f767d8228a30cddd4023a360daf613df5fa067261daad9c2193d749dc1691f785b12b9f3ea553ca743cf1fc9e92e
7
- data.tar.gz: 51c76961b8c6be0264462c57dd9677659f4ef86b868fcdffa07ca284fb63c401922f6b9fcae559e3df42678a08f0d88e986d8754b312ffeb7a07a7aeab489150
6
+ metadata.gz: '048546048f8700a7156b6b791ebea79a4d622c3f77b997d9a198c975eb4d20571b59c2a97fff65f0c5d3df37179f0fec660f02cdfbb769d8728ae223b999fd55'
7
+ data.tar.gz: 734e6b495e2e67405d3396e8621ee611050c75043f4a7ab2fc43085bbad45603a45777b328967ccc41eebcdd5dfd28ae7004f6b815065cd4a7b58f3f9764f47f
@@ -97,4 +97,43 @@ end
97
97
  }
98
98
  ]
99
99
  )
100
+
101
+ Exercism.config.dynamodb_client.update_table(
102
+ table_name: table_name,
103
+ attribute_definitions: [
104
+ {
105
+ attribute_name: "submission_uuid",
106
+ attribute_type: "S"
107
+ },
108
+ {
109
+ attribute_name: "type",
110
+ attribute_type: "S"
111
+ }
112
+ ],
113
+ global_secondary_index_updates: [
114
+ {
115
+ create: {
116
+ index_name: "submission_type", # required
117
+ key_schema: [ # required
118
+ {
119
+ attribute_name: "submission_uuid", # required
120
+ key_type: "HASH" # required, accepts HASH, RANGE
121
+ },
122
+ {
123
+ attribute_name: "type", # required
124
+ key_type: "RANGE" # required, accepts HASH, RANGE
125
+ }
126
+ ],
127
+ projection: { # required
128
+ projection_type: "INCLUDE",
129
+ non_key_attributes: ["id", "job_status"]
130
+ },
131
+ provisioned_throughput: {
132
+ read_capacity_units: 1, # required
133
+ write_capacity_units: 1 # required
134
+ }
135
+ }
136
+ }
137
+ ]
138
+ )
100
139
  end
@@ -1,3 +1,3 @@
1
1
  module ExercismConfig
2
- VERSION = '0.44.0'.freeze
2
+ VERSION = '0.45.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: exercism-config
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.44.0
4
+ version: 0.45.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy Walker
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-10-06 00:00:00.000000000 Z
11
+ date: 2020-10-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-dynamodb