ocean-rails 7.0.4 → 7.0.5

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: c688e729d2c1b39ad3bdfa4784e9a2a592ac1fdb
4
- data.tar.gz: 4b48fa1e6101bd8a33c88a56fc13adf941176aa5
3
+ metadata.gz: 0838aa1ceee275569e027e38341000b6ef6d052b
4
+ data.tar.gz: 7a215e48eb6d666f8611123ad34265118b78c9dc
5
5
  SHA512:
6
- metadata.gz: 1be2f8a525ada27bd029d04e98c86e60571da22ce080008a7a228fcbee3313f711e69d33a5b3b1210df3738e14ecac1de0ae918ae431057882e9810001896d67
7
- data.tar.gz: ab9b7ba1613a4617bb5e5336d51d5f2e21a95e27e102c4fc1069c9760cfb4ef91566013aaac51019c24e96842f6fbcde0047355dbaa7aa8e70fb6ae24857ae14
6
+ metadata.gz: 65e6de0a1effb6a88b960c991ddfcea0baa36fade0969edc36490a87acfd8df16515f870a3f38b452eb945dc7fe8439d4198da9d5751e0d18e2c8f1a3ab7c87c
7
+ data.tar.gz: cc138ac59d2dd8e2de3e03b43ee5fe09bbcba3a9ab82cb25d64d96d0a9d9d3e54cd968841f0a740a0946fd00783bf0432a21c3f1e154b72dc0aad4ac35cdce92
@@ -26,7 +26,7 @@ else
26
26
  # Set the ENV variables
27
27
  ENV['AWS_ACCESS_KEY_ID'] = cfg[:access_key_id] || cfg['access_key_id']
28
28
  ENV['AWS_SECRET_ACCESS_KEY'] = cfg[:secret_access_key] || cfg['secret_access_key']
29
- ENV['AWS_REGION'] = cfg[:region] || cfg['region']
29
+ ENV['AWS_REGION'] ||= cfg[:region] || cfg['region']
30
30
  # Configure AWS with the raw cfg data
31
31
  AWS.config(cfg)
32
32
  # Configure Aws with a massaged version of the cfg data
@@ -36,7 +36,7 @@ else
36
36
  config[:endpoint] = cfg["endpoint"] if cfg["endpoint"]
37
37
  Aws.config.update(config)
38
38
  else
39
- # Otherwise print an error message and abort.
39
+ # Otherwise print an error message and exit with an error.
40
40
  puts
41
41
  puts "-----------------------------------------------------------------------"
42
42
  puts "AWS config file missing. Please copy config/aws.yml.example"
@@ -48,7 +48,7 @@ else
48
48
  puts " data private to your Ocean system."
49
49
  puts "-----------------------------------------------------------------------"
50
50
  puts
51
- abort
51
+ exit 1
52
52
  end
53
53
  end
54
54
  end
@@ -6,12 +6,13 @@ require "ocean/api_resource"
6
6
  require "ocean/ocean_resource_model" if defined? ActiveRecord || defined? OceanDynamo
7
7
  require "ocean/ocean_resource_controller" if defined? ActionController
8
8
  require "ocean/ocean_application_controller"
9
+
9
10
  if ENV['RAILS_ENV'] == "production" && ENV['NO_ZEROMQ_LOGGING'].blank?
10
- puts "YAAAAAAAS"
11
11
  require "ocean/zero_log"
12
12
  require "ocean/zeromq_logger"
13
13
  require "ocean/selective_rack_logger"
14
14
  end
15
+
15
16
  require "ocean/api_remote_resource"
16
17
 
17
18
  require "aws-sdk-v1" # Remove later
@@ -1,3 +1,3 @@
1
1
  module Ocean
2
- VERSION = "7.0.4"
2
+ VERSION = "7.0.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ocean-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.0.4
4
+ version: 7.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Bengtson