exercism-config 0.52.0 → 0.53.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 +4 -4
 - data/bin/setup_exercism_local_aws +8 -7
 - data/lib/exercism_config/version.rb +1 -1
 - metadata +1 -1
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA256:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: 7b4188dd389760a20d284cf858bae3a8c5cb2226d25a2ebb706379a2d7ee190d
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: a9d689610218fbbebb9d79b2d1e829e513108adeef3ef9f1c41429caeae01fb1
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: fcb1fb3b17ae426c88743fa0426a201e38d6c334567a8524c4357ebc280639d002974683f8d7c9d70a122a5990d51c3922e6e31ec3e7fe9ae06cf3b672dd3db7
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 1441485d22fcd440909630a2deafb126e9e4628d803660ddb8087daed84c0281cd9dfc9881d1cc5c09f1a3fb79e56bf6253c14248e4affee0575a7cfa6dfb1b9
         
     | 
| 
         @@ -6,7 +6,6 @@ require "exercism-config" 
     | 
|
| 
       6 
6 
     | 
    
         
             
            return if Exercism.env.production?
         
     | 
| 
       7 
7 
     | 
    
         | 
| 
       8 
8 
     | 
    
         
             
            puts "Create AWS/DynamoDB tables..."
         
     | 
| 
       9 
     | 
    
         
            -
             
     | 
| 
       10 
9 
     | 
    
         
             
            ##################
         
     | 
| 
       11 
10 
     | 
    
         
             
            # Setup local s3 #
         
     | 
| 
       12 
11 
     | 
    
         
             
            ##################
         
     | 
| 
         @@ -18,6 +17,8 @@ unless ENV["EXERCISM_SKIP_S3"] 
     | 
|
| 
       18 
17 
     | 
    
         
             
              ].each do |bucket|
         
     | 
| 
       19 
18 
     | 
    
         
             
                begin
         
     | 
| 
       20 
19 
     | 
    
         
             
                  Exercism.s3_client.create_bucket(bucket: bucket)
         
     | 
| 
      
 20 
     | 
    
         
            +
                rescue Aws::S3::Errors::BucketAlreadyExists 
         
     | 
| 
      
 21 
     | 
    
         
            +
                  # Bucket already exists
         
     | 
| 
       21 
22 
     | 
    
         
             
                rescue Seahorse::Client::NetworkingError => e
         
     | 
| 
       22 
23 
     | 
    
         
             
                  puts "local S3 not up yet..."
         
     | 
| 
       23 
24 
     | 
    
         
             
                  sleep 2 # slighty retry delaty
         
     | 
| 
         @@ -34,14 +35,14 @@ end 
     | 
|
| 
       34 
35 
     | 
    
         
             
              Exercism.config.dynamodb_tooling_jobs_table + "-test"
         
     | 
| 
       35 
36 
     | 
    
         
             
            ].each do |table_name|
         
     | 
| 
       36 
37 
     | 
    
         
             
              begin
         
     | 
| 
       37 
     | 
    
         
            -
                Exercism. 
     | 
| 
      
 38 
     | 
    
         
            +
                Exercism.dynamodb_client.delete_table(
         
     | 
| 
       38 
39 
     | 
    
         
             
                  table_name: table_name
         
     | 
| 
       39 
40 
     | 
    
         
             
                )
         
     | 
| 
       40 
41 
     | 
    
         
             
              rescue Aws::DynamoDB::Errors::ResourceNotFoundException
         
     | 
| 
       41 
42 
     | 
    
         
             
              end
         
     | 
| 
       42 
43 
     | 
    
         
             
              puts "[x] #{table_name}"
         
     | 
| 
       43 
44 
     | 
    
         | 
| 
       44 
     | 
    
         
            -
              Exercism. 
     | 
| 
      
 45 
     | 
    
         
            +
              Exercism.dynamodb_client.create_table(
         
     | 
| 
       45 
46 
     | 
    
         
             
                table_name: table_name,
         
     | 
| 
       46 
47 
     | 
    
         
             
                attribute_definitions: [
         
     | 
| 
       47 
48 
     | 
    
         
             
                  {
         
     | 
| 
         @@ -61,7 +62,7 @@ end 
     | 
|
| 
       61 
62 
     | 
    
         
             
                }
         
     | 
| 
       62 
63 
     | 
    
         
             
              )
         
     | 
| 
       63 
64 
     | 
    
         | 
| 
       64 
     | 
    
         
            -
              Exercism. 
     | 
| 
      
 65 
     | 
    
         
            +
              Exercism.dynamodb_client.update_table(
         
     | 
| 
       65 
66 
     | 
    
         
             
                table_name: table_name,
         
     | 
| 
       66 
67 
     | 
    
         
             
                attribute_definitions: [
         
     | 
| 
       67 
68 
     | 
    
         
             
                  {
         
     | 
| 
         @@ -99,7 +100,7 @@ end 
     | 
|
| 
       99 
100 
     | 
    
         
             
                ]
         
     | 
| 
       100 
101 
     | 
    
         
             
              )
         
     | 
| 
       101 
102 
     | 
    
         | 
| 
       102 
     | 
    
         
            -
              Exercism. 
     | 
| 
      
 103 
     | 
    
         
            +
              Exercism.dynamodb_client.update_table(
         
     | 
| 
       103 
104 
     | 
    
         
             
                table_name: table_name,
         
     | 
| 
       104 
105 
     | 
    
         
             
                attribute_definitions: [
         
     | 
| 
       105 
106 
     | 
    
         
             
                  {
         
     | 
| 
         @@ -147,14 +148,14 @@ end 
     | 
|
| 
       147 
148 
     | 
    
         
             
              Exercism.config.dynamodb_tooling_language_groups_table + "-test"
         
     | 
| 
       148 
149 
     | 
    
         
             
            ].each do |table_name|
         
     | 
| 
       149 
150 
     | 
    
         
             
              begin
         
     | 
| 
       150 
     | 
    
         
            -
                Exercism. 
     | 
| 
      
 151 
     | 
    
         
            +
                Exercism.dynamodb_client.delete_table(
         
     | 
| 
       151 
152 
     | 
    
         
             
                  table_name: table_name
         
     | 
| 
       152 
153 
     | 
    
         
             
                )
         
     | 
| 
       153 
154 
     | 
    
         
             
              rescue Aws::DynamoDB::Errors::ResourceNotFoundException
         
     | 
| 
       154 
155 
     | 
    
         
             
              end
         
     | 
| 
       155 
156 
     | 
    
         
             
              puts "[x] #{table_name}"
         
     | 
| 
       156 
157 
     | 
    
         | 
| 
       157 
     | 
    
         
            -
              Exercism. 
     | 
| 
      
 158 
     | 
    
         
            +
              Exercism.dynamodb_client.create_table(
         
     | 
| 
       158 
159 
     | 
    
         
             
                table_name: table_name,
         
     | 
| 
       159 
160 
     | 
    
         
             
                attribute_definitions: [
         
     | 
| 
       160 
161 
     | 
    
         
             
                  {
         
     |